Graph-based Diffusion Model for Collaborative Filtering

Xuan Zhang, Xiang Deng, Hongxing Yuan, Chunyu Wei, Yushun FanarXiv 2025 · DOI

Abstract

Diffusion models are emerging as a powerful tool for generative recommender systems. However, existing methods typically treat user histories as isolated sequences, failing to capture the rich, higher-order collaborative signals present in user-item bipartite graphs. This paper introduces GDMCF (Graph-based Diffusion Model for Collaborative Filtering), which applies diffusion directly to graph structures. To address the computational bottlenecks of graph-based diffusion, GDMCF employs a "user-active" sampling strategy. Experimental results demonstrate that GDMCF significantly outperforms state-of-the-art baselines while maintaining computational efficiency.

Introduction

In collaborative filtering, higher-order signals—such as the similarity between users who interact with the same items—are vital for accurate recommendations. While Graph Neural Networks (GNNs) are adept at capturing these signals, integrating them into generative diffusion models presents two major challenges:

  1. Noise Heterogeneity: Recommendation data involves both discrete signals (e.g., binary interactions) and continuous signals (e.g., preference nuances). Standard diffusion models often struggle to model this joint distribution.
  2. Relation Explosion: Standard graph diffusion requires $O(N^2)$ complexity to compute probabilities for every node pair, which is infeasible for large-scale systems.

The GDMCF Framework

GDMCF addresses these challenges by redesigning the forward and reverse diffusion processes to accommodate graph structures efficiently.

Overview of the GDMCF architecture, illustrating the multi-level corruption process and the GCN-based denoiser.

Multi-level Corruption and Unified Construction

The forward process in GDMCF utilizes Multi-level Corruption. It injects discrete noise into the graph's structure by randomly flipping edges and applies continuous Gaussian noise to user feature vectors. To reconcile these two views, a Unified Graph Construction step uses contrastive learning to align structural and feature-level representations in a shared latent space.

GCN-based Denoising

The reverse process replaces standard MLPs with a Graph Convolutional Network (GCN). This allows the model to leverage higher-order neighborhood information during the iterative denoising steps, leading to more contextually aware generation.

User-active Guided Generation

To overcome the $O(N^2)$ complexity during inference, GDMCF introduces User-active Guided Generation. Instead of generating the entire graph at once, the model starts with an empty graph and iteratively adds edges.

Detailed mechanism of the user-active guided diffusion modeling, showing how degree distribution guides edge sampling.

At each step, a subset of "active" users is selected based on the original graph's degree distribution. Only edges connected to these active users are processed, significantly reducing memory and time requirements while effectively pruning redundant topological noise.

Experimental Evaluation

The model was evaluated on three standard benchmark datasets: ML-1M, Yelp, and Amazon-book.

Key Results

  • State-of-the-Art Performance: GDMCF consistently outperformed nine baselines, including LightGCN and DiffRec. Notably, on the Amazon-book dataset, it achieved a ~30% relative improvement in Recall@20 and NDCG@20.
  • Efficiency Gains: On the Yelp dataset, the user-active strategy reduced memory usage from 12.2 GB to 7.4 GB and cut inference time by approximately 22%, without sacrificing accuracy.
  • Bias Mitigation: The probabilistic sampling approach helps mitigate popularity bias, showing improved performance for long-tail users compared to standard average-probability strategies.

Conclusion

GDMCF demonstrates that multi-level diffusion on graphs is not only feasible but highly effective for collaborative filtering. By modeling heterogeneous noise and employing a degree-based sampling heuristic, the framework captures complex collaborative signals while remaining computationally scalable. Future work may focus on further accelerating the iterative diffusion process for real-time applications.

Summary updated

BibTeX
@misc{zhang2025graph,
  author = {Xuan Zhang and Xiang Deng and Hongxing Yuan and Chunyu Wei and Yushun Fan},
  title = {{Graph-based Diffusion Model for Collaborative Filtering}},
  year = {2025},
  eprint = {2504.05029},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.05029},
}
Figure