ContextGNN: Beyond Two-Tower Recommendation Systems

Yiwen Yuan, Zecheng Zhang, Xinwei He, Akihiro Nitta, Weihua Hu +8 more
2/12/2026

No official code found. Best implementation: kumo-ai/ContextGNN (41 stars, MIT, last commit 2024-11-28).

Abstract

Recommendation systems predominantly utilize two-tower architectures, which evaluate user-item rankings through the inner product of their respective embeddings. However, one key limitation of two-tower models is that they learn a pair-agnostic representation of users and items. In contrast, pair-wise representations either scale poorly due to their quadratic complexity or are too restrictive on the candidate pairs to rank. To address these issues, we introduce Context-based Graph Neural Networks (ContextGNNs), a novel deep learning architecture for link prediction in recommendation systems. The method employs a pair-wise representation technique for familiar items situated within a user's local subgraph, while leveraging two-tower representations to facilitate the recommendation of exploratory items. A final network then predicts how to fuse both pair-wise and two-tower recommendations into a single ranking of items. We demonstrate that ContextGNN is able to adapt to different data characteristics and outperforms existing methods, both traditional and GNN-based, on a diverse set of practical recommendation tasks, improving performance by 20% on average.

View on arXivView PDF

Code Implementations(1)

kumo-ai/ContextGNNCommunity100%
MIT
4113PythonJul 4, 20241 years agoMIT

Similar Papers

Cite this paper

@article{yuan2026contextgnn,
  title  = {ContextGNN: Beyond Two-Tower Recommendation Systems},
  author = {Yiwen Yuan and Zecheng Zhang and Xinwei He and Akihiro Nitta and Weihua Hu and Dong Wang and Manan Shah and Shenyang Huang and Blaz Stojanovic and Alan Krumholz and J. E. Lenssen and J. Leskovec and Matthias Fey},
  year   = {2026},
  eprint = {2411.19513},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2411.19513},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.19513.svg)](https://codeofpaper.com/paper/2411.19513)

Discussion