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

Distributionally Robust Graph-based Recommendation System

Bohao Wang, Jiawei Chen, Changdong Li, Sheng Zhou, Qihao Shi, Yang Gao, Yan Feng, Chun Chen, Can Wang · DOI

Introduction

Graph Neural Networks (GNNs) are widely regarded as the state-of-the-art for recommendation systems. However, their effectiveness relies heavily on the IID assumption—the belief that training and testing data are drawn from the same distribution. In practice, recommendation data is subject to significant shifts: users' tastes evolve (temporal shift), popular items dominate logs (popularity shift), and users only interact with a fraction of the catalog (exposure shift).

When these shifts occur, standard GNNs often amplify training biases, leading to poor generalization and a "Matthew Effect" where popular items are over-recommended at the expense of diversity. As shown in the performance analysis of models like MF and LightGCN, there is a substantial drop in Recall@20 when moving from IID to Out-Of-Distribution (OOD) scenarios.

Performance degradation of standard models under OOD shifts in Yelp2018 and Movielens-1M datasets.

The DR-GNN Framework

To address these vulnerabilities, this paper introduces DR-GNN, a framework that leverages Distributionally Robust Optimization (DRO) to make GNNs resilient to distribution shifts. The methodology bridges the gap between GNN architecture and robust optimization through two primary innovations:

  1. GNN as a Smoothing Regularizer: The authors demonstrate that GNN aggregation is mathematically equivalent to optimizing a graph smoothness regularizer. By recasting the "black box" of message passing into a well-defined optimization problem, they can apply DRO directly to the smoothing objective. This results in a closed-form solution that adjusts edge weights during training to account for the "worst-case" distribution within a defined uncertainty set.
  2. Graph Edge-Addition (GEA): Standard DRO is limited by the existing data's support. In sparse recommendation graphs, this provides little room for optimization. GEA introduces potential connections between similar non-neighboring nodes, expanding the distribution's support and allowing the model to explore a broader range of scenarios for better generalization.
Comparison of standard LightGCN with DR-GNN variants showing the introduction of weights and edge additions.

Experimental Evaluation

The researchers evaluated DR-GNN across eight datasets representing various distribution shifts, including Yelp2018 (popularity), MovieLens-1M (temporal), and Yahoo (exposure).

Key Results

DR-GNN consistently outperformed state-of-the-art baselines, including specialized debiasing models like InvCF and graph contrastive learning models like SGL and LightGCL.

  • Robustness to Popularity Bias: On the Douban dataset, DR-GNN achieved a 30% improvement in NDCG over the next best model. Qualitative t-SNE analysis confirmed that DR-GNN effectively distributes "hot" and "cold" items within the same latent space, whereas standard models tend to cluster them separately.
  • Generalization Across Shifts: Unlike many baselines that excel in one specific area (e.g., popularity debiasing) but fail in others (e.g., exposure shift), DR-GNN maintained stable and superior performance across all tested shift types.
  • The Robustness Knob: The hyperparameter $\alpha$ acts as a "robustness knob." Datasets with more severe distribution shifts were found to benefit from a smaller $\alpha$, which corresponds to a larger, more robust uncertainty set.

Conclusion and Future Directions

DR-GNN provides a theoretically grounded and efficient approach to building robust recommendation systems. By treating GNNs as regularizers, it enables the application of DRO to complex graph structures. While the current implementation uses KL-divergence to define uncertainty sets, future work may explore other distance metrics like Wasserstein distance or more sophisticated heuristics for selecting potential edges in the GEA process.

Summary updated

BibTeX
@inproceedings{wang2024distributionally,
  author = {Bohao Wang and Jiawei Chen and Changdong Li and Sheng Zhou and Qihao Shi and Yang Gao and Yan Feng and Chun Chen and Can Wang},
  title = {{Distributionally Robust Graph-based Recommendation System}},
  booktitle = {The Web Conference},
  year = {2024},
  doi = {10.1145/3589334.3645598},
}
Figure