Diffusion-Guided Graph Data Augmentation

Maria Marrium, Arif Mahmood, Muhammad Haris Khan, M. Saad Shakeel, Wenxiong KangNeurIPS 2025

TL;DR

D-GDA is a novel, label-free graph data augmentation framework that uses latent diffusion to generate diverse yet structurally consistent synthetic data. By targeting "hard-to-learn" samples and operating in a compact latent space, it significantly boosts the generalization and robustness of Graph Neural Networks (GNNs) across node, link, and graph-level tasks.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) are powerful but notoriously prone to overfitting, especially when training data is sparse, imbalanced, or lacks diversity. While Graph Data Augmentation (GDA) aims to fix this, traditional methods like randomly dropping edges or masking features often provide only marginal gains.

Recent diffusion-based approaches have shown promise by generating more complex synthetic data, but they suffer from three major drawbacks: they are often task-specific (e.g., only for node classification), they rely heavily on class labels (limiting them to supervised settings), and they can be computationally expensive. The authors of this paper sought a "holy grail" for GDA: a method that is task-agnostic, label-free, and capable of producing high-quality augmentations that balance diversity with label consistency.

Methods

The proposed D-GDA (Diffusion-Guided Graph Data Augmentation) framework consists of three main components:

  1. Target Sample Selector (TSS): Instead of augmenting the whole dataset, D-GDA uses a "budget-aware" strategy. It trains a baseline GNN and identifies samples with high prediction entropy—essentially the "hard" cases the model is most uncertain about. Augmenting these specific regions yields much higher performance gains than random selection.
  2. Graph Variational Auto-Encoder (GVAE): To avoid the massive computational overhead of running diffusion on raw graph data, D-GDA first learns a compact latent representation using a GVAE. This latent space captures both node features and local topology.
  3. Latent Diffusion Model (LDM): The core generative engine operates in this latent space. Crucially, the diffusion process is conditioned on the neighborhood embeddings of the target. This ensures that the generated augmentations are "neighborhood-aware," preserving structural coherence while introducing meaningful variations.

Because the method is label-free, it enables Test-Time Augmentation (TTA), where test samples are augmented during inference to provide a more robust, "ensemble-like" prediction.

The overall architecture of D-GDA showing the TSS, GVAE, and LDM components across different graph tasks.

Key Insights and Ideas

  • The "Hard Sample" Advantage: The TSS component proves that not all augmentations are created equal. Focusing on challenging regions in the data manifold is significantly more effective than uniform augmentation.
  • Balancing Consistency and Diversity: Most GDA methods struggle with a trade-off: too much diversity breaks the original label, while too much consistency leads to redundant data. D-GDA finds a "sweet spot" in the top-right corner of the consistency-diversity spectrum.
D-GDA targets hard samples for higher accuracy gains (left) and achieves a superior balance of test-set diversity and consistency compared to SOTA methods (right).
  • Label-Free Generality: By conditioning on neighborhoods rather than class labels, D-GDA becomes a versatile tool for graph tasks, working equally well for link prediction and graph classification without modification.
  • Safety First: Beyond accuracy, D-GDA improves "ML safety" measures. It produces better-calibrated models (where confidence matches actual accuracy) and is more resilient to data corruptions like Gaussian or impulse noise.

Key Results

Evaluated across 12 benchmark datasets, D-GDA was compared against 30 existing methods and consistently came out on top:

  • Accuracy Gains: On the Cora dataset, it improved GCN accuracy by 7.5%. On the massive OGBN-Products dataset, it saw a 7.48% boost.
  • Robustness: It showed superior resistance to four types of adversarial attacks (Random, DICE, GFAttack, and Meta-Attack).
  • Long-Tail Performance: In highly imbalanced settings (Cora-LT with an imbalance ratio of 100), D-GDA improved balanced accuracy from 59.42% (baseline) to 80.34%, outperforming specialized imbalance-handling methods like GraphSMOTE.
  • Generalization: Analysis of the loss landscape showed that D-GDA leads to flatter minima, a hallmark of models that generalize well to unseen data.

Limitations and Future Work

The primary limitation acknowledged is the computational cost. Training a GCN baseline, a GVAE, and an LDM for every dataset is more resource-intensive than static augmentation methods like DropEdge. Additionally, Test-Time Augmentation (TTA) adds overhead during the inference phase, which might be a bottleneck for real-time applications. Future research directions include optimizing the efficiency of the diffusion process and exploring how this neighborhood-aware conditioning might scale to even larger, more heterogeneous graph structures.

Summary updated

BibTeX
@inproceedings{marrium2025diffusion,
  author = {Maria Marrium and Arif Mahmood and Muhammad Haris Khan and M. Saad Shakeel and Wenxiong Kang},
  title = {{Diffusion-Guided Graph Data Augmentation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=NKJzAFYYI4},
}
Figure