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

RecDiff: Diffusion Model for Social Recommendation

Zongwei Li, Lianghao Xia, Chao Huang · DOI

Abstract

Social recommendation systems leverage social relationships to enhance user preference prediction, grounded in the principle of homophily. However, real-world social networks are often fraught with "social noise"—connections that do not reflect shared consumer interests. Traditional denoising methods often rely on rigid, handcrafted targets that fail to capture the complexity of these interactions. This paper introduces RecDiff, a novel framework that utilizes a hidden-space diffusion model to filter social noise. By shifting the denoising process from the discrete graph structure to a continuous latent representation space, RecDiff achieves state-of-the-art performance and superior computational efficiency across multiple benchmarks.

Introduction

Social recommendation operates on the assumption that users with social ties are likely to share similar tastes. While this principle of homophily is powerful, the utility of social data is frequently compromised by noise. Casual acquaintances, coworkers, or accidental follows create edges in the social graph that do not correlate with purchase behavior. In Graph Neural Network (GNN) based recommenders, these noisy edges allow irrelevant information to propagate, contaminating user embeddings and degrading recommendation accuracy.

Existing attempts to mitigate this noise, such as self-supervised learning (SSL) and contrastive learning, often struggle with the diversity of noise levels or rely on fixed data-augmentation strategies. RecDiff addresses these limitations by treating the recovery of clean social signals as a generative task within the embedding space.

Methodology: Denoising in the Latent Space

RecDiff departs from traditional methods by performing denoising in the hidden (latent) representation space rather than directly on the raw social graph. The framework consists of four primary stages:

  1. Graph Encoding: A lightweight Graph Convolutional Network (GCN) is employed to encode both user-item interactions and user-user social ties into low-dimensional embeddings.
  2. Forward Diffusion Process: To model the uncertainty and noise in social ties, the system incrementally adds Gaussian noise to the social embeddings over a series of steps until they are transformed into pure noise.
  3. Reverse (Denoising) Process: A trainable neural network (the denoiser) learns to reverse the forward process. By learning to reconstruct the original embeddings from the noisy versions, the model identifies and filters out the components of the representation that do not contribute to meaningful social patterns.
  4. Task-Aware Optimization: The model is trained using a joint loss function that combines recommendation loss (e.g., BPR loss for predicting user-item interactions) with diffusion loss. This ensures that the denoising process is explicitly aligned with the goal of improving recommendation accuracy.

Experimental Evaluation

RecDiff was evaluated against 11 baseline models, including state-of-the-art denoising frameworks like GDMSR and DSL, using three public benchmarks: Yelp, Ciao, and Epinions.

Performance Metrics

RecDiff demonstrated consistent improvements in accuracy across all datasets. On the Ciao dataset, RecDiff achieved a Recall@20 of 0.0712, representing a significant improvement over the next best baseline, DSL (0.0606). Similar gains were observed in NDCG metrics, confirming the model's ability to rank relevant items higher in the recommendation list.

Efficiency and Robustness

Despite the iterative nature of diffusion models, RecDiff proved highly efficient due to its operation in the compact latent space. On the Yelp dataset, RecDiff required only 4.23 seconds per epoch, significantly faster than competitors like MHCN (28.51s) and KCGN (75.84s). Furthermore, when subjected to a robustness test involving the injection of 50% "fake" social edges, RecDiff exhibited the smallest performance degradation among all tested models, highlighting its superior anti-noise capabilities.

Discussion

The Advantage of Hidden Space

Operating in the latent space rather than the discrete graph space provides two main benefits: it reduces the computational complexity of the denoising task and allows the model to handle varying intensities of noise. Unlike contrastive learning, which often uses a fixed noise scale (e.g., dropping a specific percentage of edges), the multi-step diffusion process exposes the model to a spectrum of noise levels, making it more robust to different degrees of social irrelevance.

Theoretical Grounding

The authors justify denoising embeddings by treating the GNN encoder and the recommendation predictor as paired projections. This theoretical framework suggests that refining the latent representation is mathematically equivalent to denoising the underlying structural data, but with greater optimization flexibility.

Conclusion and Future Work

RecDiff represents a significant step forward in social recommendation by successfully applying generative diffusion models to the problem of social noise. By focusing on latent space denoising, the model achieves a balance of accuracy, efficiency, and robustness. Future research may explore the integration of multi-modal data—such as review text or product images—to further refine the denoising process and improve stability on smaller datasets where social signals may be sparse.

Summary updated

BibTeX
@inproceedings{li2024recdiff,
  author = {Zongwei Li and Lianghao Xia and Chao Huang},
  title = {{RecDiff: Diffusion Model for Social Recommendation}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2024},
  url = {https://openreview.net/forum?id=QuibNQEg8g},
}
Figure