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

Detection and Defense of Topological Adversarial Attacks on Graphs

Yingxue Zhang, Florence Regol, Soumyasundar Pal, Sakif Khan, Liheng Ma, Mark Coates

Overview

Graph Neural Networks (GNNs) are powerful tools for modeling relational data, yet they remain highly vulnerable to topological adversarial attacks. In these scenarios, an attacker subtly modifies the graph's structure—adding or deleting edges—to manipulate model predictions. This research introduces a robust framework designed to detect such attacks at both individual node and subgraph levels. By implementing a "cleaning" pre-processing step based on statistical divergence, the proposed defense significantly outperforms existing state-of-the-art methods without compromising performance on clean data.

The Challenge of Topological Attacks

GNNs typically operate under the assumption of "homophily," where connected nodes are expected to share similar features or labels. Adversarial attacks exploit this dependency by injecting "poisonous" edges that link nodes with disparate characteristics. A prime example is found in financial networks: a fraudulent actor might establish fake links to reputable accounts to evade detection by a GNN-based fraud monitor.

Adversarial attack on a transaction graph: adding fake flows to hide malicious intent.

While previous research has largely focused on increasing the potency of these attacks, this work prioritizes the defender's perspective. The primary difficulty lies in the subtlety of these perturbations; they are often designed to be "unnoticeable" to standard graph statistics, necessitating a more principled statistical approach for identification.

Proposed Detection and Defense Strategies

The authors introduce two primary detection mechanisms and a novel defense strategy:

  1. Single Targeted Node Detection (Multi-JSD): This method identifies attacked nodes by measuring the "disagreement" between a GNN’s prediction for a specific node and the predictions for its immediate neighbors. Using Multi-distribution Jensen-Shannon Divergence (JSD), the system flags nodes where the neighborhood is no longer "smooth."
  2. Corrupted Subset Detection (MMD): To identify larger-scale tampering, the researchers employ a Maximum Mean Discrepancy (MMD) two-sample test. This compares a suspected set of nodes against a known "clean" baseline using extended feature vectors that combine node attributes and local topology.
  3. The "Ameliorated" Defense: Rather than modifying the GNN architecture itself, the detector serves as a gatekeeper. If a node's neighborhood is flagged as unreliable, the GNN ignores that neighborhood information during classification, relying solely on the node's intrinsic features.
  4. Adaptive Attack Testing: To ensure robustness, the framework was tested against "adaptive adversaries" that attempt to remain stealthy by specifically minimizing the JSD signal during their attack.
Statistical distribution of Multi-JSD for clean vs. poisoned nodes.

Experimental Evaluation

The methodology was evaluated across a diverse set of benchmarks, including citation networks (Cora, Citeseer, Pubmed), social networks (Polblogs), and e-commerce graphs (Amazon Computers/Photo). Notably, the framework was applied to the Elliptic Bitcoin Dataset, which involves distinguishing licit from illicit transaction flows in a massive real-world network.

Key Insights and Results

  • Softmax as a Diagnostic Tool: A critical finding is that the GNN’s own softmax output probabilities contain signatures of adversarial interference. An attacked node effectively becomes a statistical outlier within its neighborhood's prediction space.
  • High Detection Accuracy: The JSD-based detector achieved Area-Under-the-Curve (AUC) scores frequently exceeding 85-90% on datasets like Cora and Pubmed, outperforming baselines such as GraphSAC.
  • Robust Accuracy Recovery: The "Ameliorated" GCN outperformed other robust models (e.g., RGCN) by an average of 15% against targeted attacks. On the Bitcoin dataset, the detector identified disguised illicit transactions with an AUC of up to 87%.
  • The Cost of Stealth: When attackers are forced to stay below detection thresholds (e.g., low JSD), the effectiveness of their attacks drops significantly. This implies that successful GNN subversion inherently creates detectable statistical noise.

Limitations and Future Work

Despite its success, the framework has certain requirements. Subset detection (MMD) requires access to a small portion of verified "clean" data, which may not always be available in fully compromised systems. Additionally, current detection relies on the output of the specific GNN being attacked; future research could investigate model-agnostic detectors. Finally, while this work focuses on topological changes, a comprehensive defense must also address adversarial modifications to node features.

Summary updated

BibTeX
@inproceedings{zhang2021detection,
  author = {Yingxue Zhang and Florence Regol and Soumyasundar Pal and Sakif Khan and Liheng Ma and Mark Coates},
  title = {{Detection and Defense of Topological Adversarial Attacks on Graphs}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
}
Figure