Robust Graph Learning Against Adversarial Evasion Attacks via Prior-Free Diffusion-Based Structure Purification

Jiayi Luo, Qingyun Sun, Haonan Yuan, Xingcheng Fu, Jianxin Li

TL;DR

Graph Neural Networks (GNNs) are highly vulnerable to subtle structural attacks, and current defenses rely on rigid, hand-crafted assumptions like homophily or low-rank structures. This paper introduces DiffSP, a prior-free framework that leverages graph diffusion models to adaptively learn clean graph distributions and purify attacked structures. By combining localized noise injection with transfer-entropy guidance, DiffSP effectively strips away adversarial perturbations while preserving the graph's original semantic meaning.

What Problem Does This Paper Address?

Graph Neural Networks excel at modeling relational data, from social networks to financial transactions. However, they suffer from a critical vulnerability: adversarial evasion attacks. Attackers can make tiny, imperceptible changes to a graph's topology (adding or removing edges) during the test phase, causing a drastic drop in GNN performance.

Existing defense methods usually rely on heavy assumptions or "priors" about the graph data, such as homophily (the assumption that connected nodes share similar features) or low-rank properties. However, these assumptions fall apart if node features are missing or if the low-rank constraint accidentally discards vital structural details. The authors address this limitation by proposing a defense mechanism that requires no data priors and can universally handle diverse datasets and attack strategies.

Figure 1: Comparison of existing robust GNNs and DiffSP. Existing robust GNNs rely on priors that limit adaptability, while DiffSP is prior-free with universal robustness.

Methods

The authors propose DiffSP (Diffusion-based Structure Purification), which uses generative graph diffusion models to learn the underlying distribution of clean graphs and filter out adversarial noise. The framework consists of two main novel components wrapped around a discrete diffusion backbone:

  1. LID-Driven Non-Isotropic Diffusion: Standard diffusion models inject noise uniformly (isotropically), which risks destroying clean parts of the graph. DiffSP uses Local Intrinsic Dimensionality (LID) to measure how much a node deviates from its natural data manifold—effectively calculating an "adversarial score." It then maps this non-isotropic noise requirement to adjusted diffusion time steps per edge, ensuring adversarial edges get heavily blurred while clean structures are preserved.
  2. Graph Transfer Entropy Guided Denoising: Generative diffusion models naturally introduce randomness to create diverse samples. While great for generation, purification requires recovering the exact target clean graph. To minimize this uncertainty, DiffSP maximizes the transfer entropy between successive reverse denoising steps, guiding the generation process to align semantically with the original unperturbed graph.
Figure 2: The overall architecture of DiffSP. DiffSP first employs a diffusion model to learn the predictive patterns of clean graphs. Then for the adversarial graph under evasion attack: 1) DiffSP injects non-isotropic noise by adjusting the diffusion time for each edge based on its adversarial degree, determined by LID. 2) During the generation process, DiffSP reduces uncertainty and guides the generation toward the target clean graph by maximizing the transfer entropy between two successive time steps.

Datasets

The framework was evaluated on nine real-world benchmarks across two distinct tasks:

  • Graph Classification: MUTAG (molecular toxicity), IMDB-BINARY & IMDB-MULTI (movie collaboration networks), REDDIT-BINARY (social discussion threads), and COLLAB (scientific collaboration networks).
  • Node Classification: Cora & CiteSeer (citation networks), PolBlogs (political blog hyperlinks), and Photo (Amazon co-purchase network).

No new benchmarks were introduced; standard datasets were used to ensure fair comparison against a wide array of baselines.

Key Insights and Ideas

  • Data-Centric over Heuristic: Instead of assuming how a clean graph should look (e.g., assuming neighbors must be similar), diffusion models allow the framework to learn the implicit distribution directly from the data, making it robust to unseen attack strategies.
  • LID as an Attack Detector: Local Intrinsic Dimensionality effectively captures the topological distortions caused by adversarial edge injections, acting as a localized radar for perturbations.
  • Taming Generative Diversity: The clever use of transfer entropy solves a classic conflict in diffusion models: turning a model designed for creative diversity into a precise, deterministic reconstruction tool.

Key Results

  • State-of-the-Art Robustness: DiffSP consistently achieved the highest average robustness across all tested evasion attacks (including PR-BCD, GradArgmax, and Nettack) on both graph and node classification tasks.
  • Performance Gains: On the IMDB-BINARY dataset under the PR-BCD attack, DiffSP showed a notable 4.80% average accuracy improvement over the best-performing baseline.
  • Cross-Dataset Generalization: When trained on IMDB-BINARY and tested on IMDB-MULTI (and vice versa), DiffSP maintained strong performance with minimal degradation, proving it learns generalized structural properties rather than just overfitting to a single dataset.

Limitations and Future Work

  • Structural vs. Feature Attacks: DiffSP currently focuses exclusively on structural perturbations (edge additions/deletions). The authors note that extending the framework to handle feature-based attacks is a key next step.
  • Computational Complexity: While the overall time complexity is managed at $O(N^2)$, diffusion models are inherently iterative and slower than simple preprocessing heuristics. Optimizing the time efficiency of the reverse denoising process remains an open challenge.
  • Sensitivity to Weak Noise: DiffSP performs exceptionally well under strong, targeted attacks but is less effective against weaker, random noise injections, where the perturbed edges don't exhibit distinctly adversarial characteristics.

Summary updated

BibTeX
@inproceedings{luo2025robust,
  author = {Jiayi Luo and Qingyun Sun and Haonan Yuan and Xingcheng Fu and Jianxin Li},
  title = {{Robust Graph Learning Against Adversarial Evasion Attacks via Prior-Free Diffusion-Based Structure Purification}},
  booktitle = {The Web Conference},
  year = {2025},
}
Figure