NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Neural Graph Collaborative Filtering

Xiang Wang, Xiangnan He, Meng Wang, Fuli Feng, Tat-Seng ChuaSIGIR 2019 · DOI

Abstract

Learning vector representations (embeddings) of users and items lies at the core of modern recommender systems. Ranging from early matrix factorization to recently emerged deep learning-based methods, existing efforts typically obtain a user's (or an item's) embedding by mapping from pre-existing features such as IDs and attributes. We argue that an inherent drawback of such methods is that the collaborative signal, which is latent in user-item interactions, is not encoded in the embedding process. As such, the resultant embeddings may not be sufficient to capture the collaborative filtering effect. In this work, we propose to integrate the user-item interactions—specifically the bipartite graph structure—into the embedding process. We develop a new recommendation framework, Neural Graph Collaborative Filtering (NGCF), which exploits the user-item graph structure by propagating embeddings on it. This leads to the expressive modeling of high-order connectivity in the user-item graph, effectively injecting the collaborative signal into the embedding process in an explicit manner. Extensive experiments on three public benchmarks demonstrate significant improvements over several state-of-the-art models, including HOP-Rec and Collaborative Memory Network.

Introduction

At the heart of modern recommendation is Collaborative Filtering (CF): the principle that users with similar past behaviors are likely to share future interests. Traditionally, models like Matrix Factorization (MF) or Neural Collaborative Filtering (NCF) represent users and items as independent vectors (embeddings) based on their IDs.

However, these methods possess a fundamental limitation: they only utilize interaction data to define the objective function during training. They do not use the inherent structure of those interactions to actually construct the embeddings. This means the "collaborative signal"—the rich web of connections between users and items—is only captured implicitly. Consequently, when interaction data is sparse, these traditional models struggle to create meaningful representations, as the embedding process lacks the structural context of the user-item ecosystem.

The NGCF Framework

NGCF addresses this by treating the user-item interaction history as a bipartite graph and applying Embedding Propagation layers. This architecture ensures that the collaborative signal is baked into the vector representations from the start.

1. Embedding Layer

Like traditional models, NGCF begins with an initial lookup table for user and item IDs, providing a starting point for the representations.

2. Embedding Propagation Layers

This is the core innovation of the framework. Inspired by Graph Convolutional Networks (GCNs), each layer refines a user’s or item’s embedding by aggregating information from its immediate neighbors in the graph.

  • Message Construction: When an item sends a "message" to a user, NGCF considers both the item's embedding and the specific interaction between the two (via an element-wise product). This makes the message dependent on the affinity between that specific user and item, rather than just the item's general characteristics.
  • Message Aggregation: The model sums the messages from all neighbors and applies a nonlinear activation (LeakyReLU) to update the representation.

3. High-Order Connectivity

By stacking multiple propagation layers (e.g., $L=3$), the model allows a user's embedding to incorporate information from their neighbors (items they liked), their neighbors' neighbors (similar users), and even further reaches of the graph. This explicitly captures high-order paths, such as User 1 → Item 1 → User 2 → Item 2, which suggests that User 1 might be interested in Item 2 based on their shared connection to Item 1.

4. Layer Aggregation

Finally, the model concatenates the embeddings from every layer. This multi-scale representation ensures the final vector captures both direct interactions (low-order) and complex, multi-hop relationships (high-order).

Experimental Evaluation

The authors evaluated NGCF on three large-scale benchmarks: Gowalla (location check-ins), Yelp2018 (business reviews), and Amazon-book (product reviews). All datasets were filtered using a "10-core" setting, ensuring every user and item had at least ten interactions.

Key Results

NGCF consistently outperformed state-of-the-art baselines, including Matrix Factorization, NeuMF, and specialized graph methods like HOP-Rec and PinSage.

  • Accuracy Gains: On the Gowalla dataset, NGCF improved Recall@20 by 11.68% and NDCG@20 by 8.64% over the strongest baseline.
  • Robustness to Sparsity: The performance gap between NGCF and other models was most pronounced for users with the fewest interactions. This suggests that embedding propagation acts as a form of data augmentation; inactive users can "borrow" information from similar users through the graph structure.
  • Representation Quality: Visualization using t-SNE confirmed that NGCF creates tighter, more distinct clusters of related items compared to traditional Matrix Factorization, indicating more semantically rich embeddings.

Discussion and Future Work

NGCF demonstrates that the interaction graph itself is a powerful structural feature. By moving the collaborative signal from the objective function into the embedding process, the model achieves a more expressive representation of user preferences.

While effective, the model introduces higher computational complexity than simple inner-product models. Future iterations could improve efficiency or incorporate attention mechanisms (similar to Graph Attention Networks) to learn which neighbors in the graph are most influential. Additionally, integrating "side information"—such as user demographics or item descriptions—into the bipartite graph presents a promising avenue for further enhancing recommendation quality.

Summary updated

BibTeX
@inproceedings{wang2019neural,
  author = {Xiang Wang and Xiangnan He and Meng Wang and Fuli Feng and Tat-Seng Chua},
  title = {{Neural Graph Collaborative Filtering}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2019},
  doi = {10.1145/3331184.3331267},
}
Figure