DiffGraph: Heterogeneous Graph Diffusion Model

Zongwei Li, Lianghao Xia, Hua Hua, Shijie Zhang, Shuangyang Wang, Chao Huang

Introduction

Real-world systems, ranging from e-commerce platforms to academic citation networks, are inherently complex and are best represented as Heterogeneous Graphs (HGs). Unlike homogeneous graphs, HGs contain multiple types of nodes and relations (e.g., users viewing, adding to cart, or purchasing items). While Heterogeneous Graph Neural Networks (HGNNs) have advanced the state-of-the-art, they face two critical challenges: data noise and semantic transitions.

In many scenarios, auxiliary interactions (like a casual product view) may be irrelevant or noisy relative to a target behavior (like a purchase). Furthermore, the transition between different semantic relations is often non-linear and difficult to capture using standard attention mechanisms. To address these issues, we present DiffGraph, a novel framework that applies the principles of diffusion models to the latent space of heterogeneous graphs to perform iterative denoising and robust feature extraction.

Methodology

DiffGraph treats heterogeneous graph learning as a generative denoising task. Rather than operating directly on discrete graph structures—which is computationally prohibitive and prone to sparsity issues—the model functions within a continuous latent space.

1. Cross-view Denoising Strategy

The framework bifurcates the graph into two components: a target graph (representing the specific behavior to be predicted) and an auxiliary graph (containing all other interaction types). The goal is to distill the auxiliary data, filtering out noise so that it effectively supports the target task.

2. Latent-Space Diffusion

DiffGraph utilizes a GCN-based encoder to project graph structures into a continuous embedding space. This approach avoids the "curse of dimensionality" associated with discrete graph generation. The diffusion process consists of two phases:

  • Forward Diffusion: Gaussian noise is systematically added to the auxiliary graph embeddings, gradually obscuring the original signal.
  • Backward Diffusion (Denoising): The model learns to reverse the noise injection process. Crucially, it uses the target graph's embeddings as a "clean" conditioning signal. This forces the model to learn the specific semantic transitions required to transform noisy auxiliary information into task-relevant features.

3. Stepwise vs. One-shot Denoising

Unlike Denoising Autoencoders (DAEs) that attempt to remove noise in a single step, DiffGraph’s iterative approach allows for a more granular refinement of features, which the authors found to be significantly more effective at handling complex noise patterns in heterogeneous data.

Experimental Evaluation

DiffGraph was evaluated against 21 state-of-the-art baselines, including HGT, HAN, and LightGCN, across several diverse datasets:

  • Link Prediction: Tmall, Retailrocket, and IJCAI (e-commerce datasets).
  • Node Classification: DBLP and AMiner (academic networks).
  • Industrial Application: A large-scale gaming platform dataset involving 1 million users and 23 million interactions to predict user retention.

Key Results

  • Performance Gains: On the Tmall dataset, DiffGraph achieved a 27.21% improvement in Recall@20 and a 39.09% improvement in NDCG@20 over the strongest baseline.
  • Robustness: In stress tests where 50% artificial noise was injected into the data, DiffGraph maintained significantly higher performance levels than traditional models like HGT, demonstrating its superior filtering capabilities.
  • Efficiency: Despite the iterative nature of diffusion, the model is highly optimized. On Tmall, DiffGraph completed training epochs in approximately 6.5 seconds, compared to 16.8 seconds for the Heterogeneous Graph Transformer (HGT).

Discussion and Future Work

The success of DiffGraph highlights the potential of treating auxiliary relations as a "noisy source" that can be distilled through generative modeling. By diffusing in the latent space, the model achieves a balance between computational efficiency and the ability to capture complex semantic shifts.

However, limitations remain. Current iterations of DiffGraph focus on static graph snapshots. Future research will explore extending this diffusion framework to dynamic graphs where node attributes and structures evolve over time. Additionally, improving the explainability of the diffusion process—specifically identifying which auxiliary signals are filtered and why—remains a priority for deployment in high-stakes industrial environments.

Summary updated

BibTeX
@inproceedings{li2025diffgraph,
  author = {Zongwei Li and Lianghao Xia and Hua Hua and Shijie Zhang and Shuangyang Wang and Chao Huang},
  title = {{DiffGraph: Heterogeneous Graph Diffusion Model}},
  booktitle = {WSDM},
  year = {2025},
  doi = {10.1145/3701551.3703590},
}
Figure