[Paper Review] Metapath- and Entity-aware Graph Neural Network for Recommendation
This paper proposes PEAGNN, a metapath- and entity-aware graph neural network that enhances recommendation by explicitly modeling multi-hop sequential semantics through metapath-aware subgraphs and fusing them via attention. It achieves state-of-the-art performance on benchmark datasets by jointly optimizing BPR loss and a contrastive entity-aware regularizer that leverages first-order local structure.
In graph neural networks (GNNs), message passing iteratively aggregates nodes' information from their direct neighbors while neglecting the sequential nature of multi-hop node connections. Such sequential node connections e.g., metapaths, capture critical insights for downstream tasks. Concretely, in recommender systems (RSs), disregarding these insights leads to inadequate distillation of collaborative signals. In this paper, we employ collaborative subgraphs (CSGs) and metapaths to form metapath-aware subgraphs, which explicitly capture sequential semantics in graph structures. We propose meta extbf{P}ath and extbf{E}ntity- extbf{A}ware extbf{G}raph extbf{N}eural extbf{N}etwork (PEAGNN), which trains multilayer GNNs to perform metapath-aware information aggregation on such subgraphs. This aggregated information from different metapaths is then fused using attention mechanism. Finally, PEAGNN gives us the representations for node and subgraph, which can be used to train MLP for predicting score for target user-item pairs. To leverage the local structure of CSGs, we present entity-awareness that acts as a contrastive regularizer on node embedding. Moreover, PEAGNN can be combined with prominent layers such as GAT, GCN and GraphSage. Our empirical evaluation shows that our proposed technique outperforms competitive baselines on several datasets for recommendation tasks. Further analysis demonstrates that PEAGNN also learns meaningful metapath combinations from a given set of metapaths.
Motivation & Objective
- To address the limitation of existing GNNs in capturing sequential multi-hop relations in user-item interaction graphs.
- To improve collaborative filtering by explicitly modeling metapath-aware subgraphs that encode high-order user-item interaction patterns.
- To enhance node representations by incorporating first-order structural connectivity through a contrastive regularizer (entity-awareness).
- To enable efficient, scalable message passing without full-graph reconstruction by using on-the-fly metapath-guided propagation.
- To allow end-to-end learning of metapath importance and fusion through an attention mechanism, enabling interpretable and adaptive recommendation.
Proposed method
- Construct h-hop enclosing collaborative subgraphs (CSGs) centered on user-item pairs to suppress noise from unrelated interactions.
- Decompose each CSG into γ metapath-aware subgraphs based on predefined metapath schemas, isolating sequential semantics.
- Apply multilayer GNNs (e.g., GCN, GAT, GraphSAGE) for metapath-aware message passing on each subgraph to aggregate multi-hop information.
- Fuse representations from different metapath-aware subgraphs using an attention mechanism to learn dynamic importance weights.
- Introduce entity-awareness as a contrastive regularizer that pulls user/item nodes closer to connected feature entities and pushes them apart from unconnected ones.
- Train the model end-to-end using a combination of BPR loss and entity-awareness loss to optimize both recommendation accuracy and structural consistency.
Experimental results
Research questions
- RQ1How does explicit modeling of metapath-aware subgraphs improve recommendation performance compared to standard GNNs?
- RQ2What is the impact of entity-awareness on node representation quality and recommendation accuracy, especially in sparse settings?
- RQ3Which metapaths contribute most significantly to model performance, and can PEAGNN learn meaningful metapath combinations automatically?
- RQ4How does PEAGNN’s on-the-fly metapath-guided message passing compare to explicit metapath reconstruction in terms of efficiency and performance?
- RQ5Can the attention mechanism in PEAGNN identify and prioritize key metapath combinations for better recommendation?
Key findings
- PEAGNN achieves consistent performance gains across multiple datasets, with a minimum 1.9% improvement in HR@10 on the ML-small dataset when using entity-awareness.
- On the Yelp dataset, PEASage achieves a 4.06% improvement in NDCG@10 with entity-awareness, demonstrating its effectiveness in dense, real-world graphs.
- The metapath Y-M-U (Year-Movie-User) has the most significant impact on performance, with a consistent 10%+ drop in HR@10 when removed, indicating its critical role in user preference modeling.
- Metapaths such as U-M-U (User-Movie-User) and M-U-M (Movie-User-Movie) are key contributors, highlighting collaborative effects in user behavior.
- Removal of tag-related metapaths (e.g., T-M-U) leads to a 15.32% drop in performance in one run, suggesting complementary roles in user-item interaction modeling.
- The attention mechanism in PEAGNN learns to assign higher weights to meaningful metapath combinations, enabling interpretable and incremental model refinement.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.