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

Conditional Diffusion Anomaly Modeling on Graphs

Chunyu Wei, Haozhe Lin, Yueguo Chen, Yunhai WangNeurIPS 2025

Graph Anomaly Detection (GAD) is a critical tool for identifying malicious activities such as financial fraud, money laundering, and telecommunication scams. However, traditional Graph Neural Networks (GNNs) often struggle to keep up with increasingly sophisticated fraudsters. The Conditional Graph Anomaly Diffusion Model (CGADM) reimagines graph anomaly detection as a generative task rather than a simple classification problem. By utilizing a prior-guided diffusion process and a confidence-aware sampling mechanism, CGADM overcomes the limitations of traditional GNNs, achieving state-of-the-art performance with significantly improved efficiency.

The Achilles' Heel of Traditional GNNs

Traditional GNNs face two major challenges when applied to anomaly detection:

  1. Topology-level Over-smoothing: Vanilla GNNs inherently act like low-pass filters, averaging out a node's representations with its neighbors. Fraudsters exploit this by intentionally connecting to many "normal" accounts to blend in. This effectively "smooths" their anomalous signal until it becomes indistinguishable from the crowd.
  2. Feature-level Obfuscation: Discriminative models attempt to draw a hard decision boundary between normal and anomalous nodes. As fraudsters evolve, they camouflage their features to cross that boundary and evade detection.

While Diffusion Models (DMs) excel at iterative refinement and reconstruction, applying them to graphs is typically slow and challenging. Standard DMs start from pure white noise—a "blank slate" that fails to account for the deceptive, camouflaged tactics used by anomalous nodes.

Methods: Adapting Diffusion for Graphs

To make diffusion effective for graph anomalies, CGADM introduces three clever innovations:

Overview of the CGADM architecture, illustrating the prior-guided forward and reverse diffusion processes.
  • Prior-Guided Diffusion: Instead of starting the reverse denoising process from random noise, CGADM begins with an "anomaly prior" generated by a lightweight, pre-trained model (such as Random Forest or XGBoost). This provides a "warm start" that guides the model toward the true anomaly distribution, bypassing the blank slate problem.
  • Topological-guided Denoising Network: To combat over-smoothing, the model employs a GNN-based denoiser equipped with a residual propagation mechanism. This acts as a high-pass filter, preserving the "sharp," high-frequency signals that characterize anomalies rather than washing them out.
  • Prior Confidence-aware Mechanism: Standard diffusion requires hundreds or thousands of steps, which is computationally expensive. CGADM adaptively determines the number of steps for each node based on the initial prior's confidence. If the prior is highly confident (close to 0 or 1), the model uses fewer steps. If the prior is ambiguous (near 0.5), it allocates more steps to refine the result.

Key Insights and Ideas

  • Generative vs. Discriminative: By modeling the joint distribution of anomalies rather than merely learning a decision boundary, CGADM is much harder to "fool" with feature tweaks.
  • Anomalies are High-Frequency: Anomalies manifest as local deviations in a graph. While standard GNNs flatten these deviations, CGADM’s residual propagation specifically amplifies them to ensure they stand out.
  • Efficiency through Confidence: Most nodes in a graph are obviously normal. The adaptive mechanism ensures that computational budget is not wasted on obvious cases, reserving intensive denoising steps for camouflaged or ambiguous nodes.

Key Results

The model was evaluated on a massive suite of benchmark datasets across various domains, including finance (Elliptic, T-Finance), social media (Reddit, Weibo), and reviews (YelpChi). These datasets vary widely in scale and anomaly ratio.

Performance comparison of CGADM against baseline models across multiple benchmark datasets.
  • State-of-the-Art Performance: CGADM outperformed all baselines, including standard GNNs (GCN, GAT) and specialized GAD models (BWGNN). On average, it achieved a 6.15% improvement in AUPRC and a 4.53% improvement in AUROC.
  • Robustness: When node features were intentionally perturbed to simulate camouflage, CGADM's performance dropped much more slowly than competing models, proving the efficacy of its denoising reconstruction.
  • Efficiency: The adaptive sampling mechanism reduced the average number of reverse steps from 1000 down to 583, providing a significant speedup without sacrificing accuracy.

Limitations and Future Work

While highly effective, the authors identify a few areas for future growth. The current model relies on a pre-trained prior, which may require frequent retraining if the graph structure is highly dynamic. Additionally, the approach is supervised, whereas real-world scenarios often face "cold start" problems with scarce labels, suggesting a need for unsupervised or self-supervised adaptations. Finally, while faster than standard diffusion, CGADM is still computationally heavier than a simple one-pass GNN, which must be considered for real-time deployment.

Summary updated

BibTeX
@inproceedings{wei2025conditional,
  author = {Chunyu Wei and Haozhe Lin and Yueguo Chen and Yunhai Wang},
  title = {{Conditional Diffusion Anomaly Modeling on Graphs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=5Z8ckcrfq1},
}
Figure