Invariance Matters: Empowering Social Recommendation via Graph Invariant Learning

Yonghui Yang, Le Wu, Yuxin Liao, Zhuangzhuang He, Pengyang Shao, Richang Hong, Meng Wang · OpenReview

TL;DR

Real-world social networks are inherently noisy, often leading graph-based recommendation systems astray with task-irrelevant connections. To solve this, the authors propose Social Graph Invariant Learning (SGIL), a framework that avoids the impossible task of perfect graph cleaning by instead learning user preferences that remain invariant across multiple adversarially simulated noisy environments.

What Problem Does This Paper Address?

Graph-based social recommendation systems leverage the idea of social homophily—that our friends and connections influence what we like—to beat the classic "data sparsity" problem in collaborative filtering. By using Graph Neural Networks (GNNs), these systems map out high-order social relationships to predict user preferences.

However, real-world social graphs are incredibly noisy. Just because you follow a celebrity or a colleague doesn't mean you share their taste in books or restaurants. Directly feeding these noisy, task-irrelevant connections into a GNN can actually degrade recommendation performance.

While existing methods try to filter out this noise, they face a fundamental hurdle: there is no ground-truth label for what constitutes "noise" versus a "valid connection." The authors of this paper flip the script. Instead of trying to perfectly prune the graph, they ask: Can we learn stable, robust user preferences that persist despite the presence of diverse noisy environments?

Figure 1: Illustration of the existing filtering-based social denoising methods and our proposed invariance-based method. Instead of filtering the noisy part of the input social graph, we encourage learning the invariant yet sufficient user preferences across environments.

Methods

SGIL tackles social graph denoising through the lens of Invariant Risk Minimization (IRM). The framework consists of two main components operating in an adversarial loop:

  1. Environment Simulation: The model uses $K$ independent, preference-guided environment generators parameterized by MLPs. Using a Gumbel-Softmax relaxation to maintain differentiability, these generators drop edges from the original social graph to simulate $K$ distinct, noisy social subgraphs (environments).
  2. Invariant Preference Learning: A GNN encoder (specifically LightGCN-S) extracts user and item representations within each simulated environment. Instead of optimizing a standard point-wise loss, the authors introduce a distribution-aligned, softmax-based empirical risk loss to align user preference distributions across all environments.

To ensure the learned preferences are truly robust, SGIL uses a variance-based invariance penalty alongside an adversarial training strategy. The environment generators act as an adversary, trying to maximize the variance of the loss across environments (i.e., making the environments as distinct and challenging as possible). Meanwhile, the recommendation encoder minimizes the loss and the variance, forcing it to find features that are invariant to whatever noise the generators throw at it.

Figure 1: Illustration of the existing filtering-based social denoising methods and our proposed invariance-based method. Instead of filtering the noisy part of the input social graph, we encourage learning the invariant yet sufficient user preferences across environments.

Datasets

The authors evaluated SGIL on three widely used public social recommendation benchmarks:

  • Douban-Book: A dataset capturing user-book interactions and social links from the Douban platform.
  • Yelp: A business review dataset containing user-business interactions and social friendships.
  • Epinions: A consumer review site dataset well-known for its explicit trust network.

For all datasets, 80% of interactions were used for training and 20% for testing. The authors also created semi-synthetic datasets by injecting varying proportions of fake social relations to explicitly test model robustness against extreme noise.

Key Insights and Ideas

  • The Invariance Shift: Moving from filtering noise to surviving noise changes the game. By forcing the model to perform consistently across diverse, artificially degraded environments, it naturally latches onto the core, invariant social structures that matter for the recommendation task.
  • Social Graphs Can Hurt Performance: The experiments revealed that raw, un-denoised social graphs actually caused standard GNN recommenders to perform worse than simple collaborative filtering on the Douban-Book dataset. This underscores the absolute necessity of denoising.
  • Long-Tail Users Benefit Most: Sparsity analysis showed that SGIL provides the highest relative improvements for "low-activity" users. Because these users have few direct item interactions, they rely heavily on social signals; SGIL ensures those signals are stable and uncorrupted.

Key Results

SGIL consistently outperformed state-of-the-art graph-based recommenders and existing denoising baselines (like GBSR, ShaRe, and SEPT) across all metrics (Recall@N and NDCG@N):

  • Baseline Improvements: Compared to the strongest baseline (GBSR), SGIL achieved relative improvements in NDCG@10 of 7.99% on Douban-Book, 10.47% on Yelp, and 5.97% on Epinions.
  • Robustness to Extreme Noise: In semi-synthetic tests where fake social relations were injected, SGIL demonstrated remarkable resilience. At a high noise ratio ($\sigma = 2.0$), SGIL achieved roughly 28% gains over the backbone LightGCN-S model.

Limitations and Future Work

The primary trade-off in SGIL is computational complexity. Simulating $K$ environments and optimizing a softmax-based loss means that SGIL incurs roughly 1 to 3 times the total training time compared to the simpler LightGCN-S backbone. Although the authors note that SGIL converges quickly (often requiring $K < 5$), scaling this adversarial environment simulation to massive, industrial-scale web graphs remains a challenge for future engineering work.

Summary updated

Abstract

Graph-based social recommendation systems have shown significant promise in enhancing recommendation performance, particularly in addressing the issue of data sparsity in user behaviors. Typically, these systems leverage Graph Neural Networks (GNNs) to capture user preferences by incorporating high-order social influences from observed social networks. However, existing graph-based social recommendations often overlook the fact that social networks are inherently noisy, containing task-irrelevant relationships that can hinder accurate user preference learning. The removal of these redundant social relations is crucial, yet it remains challenging due to the lack of ground truth. In this paper, we approach the social denoising problem from the perspective of graph invariant learning and propose a novel method, Social Graph Invariant Learning(SGIL). Specifically,SGIL aims to uncover stable user preferences within the input social graph, thereby enhancing the robustness of graph-based social recommendation systems. To achieve this goal, SGIL first simulates multiple noisy social environments through graph generators. It then seeks to learn environment-invariant user preferences by minimizing invariant risk across these environments. To further promote diversity in the generated social environments, we employ an adversarial training strategy to simulate more potential social noisy distributions. Extensive experimental results demonstrate the effectiveness of the proposed SGIL. The code is available at https://github.com/yimutianyang/SIGIR2025-SGIL.
BibTeX
@inproceedings{yang2025invariance,
  author = {Yonghui Yang and Le Wu and Yuxin Liao and Zhuangzhuang He and Pengyang Shao and Richang Hong and Meng Wang},
  title = {{Invariance Matters: Empowering Social Recommendation via Graph Invariant Learning}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2025},
  url = {https://openreview.net/forum?id=ztDbqPe5cy},
}
Figure