Introduction
Graph Neural Networks (GNNs) have become the standard for analyzing interconnected data, from social networks to citation graphs. However, their widespread adoption is hindered by a significant vulnerability: susceptibility to adversarial attacks. While much research has focused on Graph Modification Attacks (GMA)—where an attacker alters existing nodes or edges—real-world adversaries are more likely to employ Graph Injection Attacks (GIA). In a GIA scenario, an attacker simply creates fake nodes (e.g., bot accounts) and links them to target nodes to manipulate the model's predictions. This paper introduces CHAGNN (Cooperative Homophilous Augmentation of Graph Neural Network), an iterative defense framework designed to neutralize GIA by identifying and removing malicious edges through structural and probabilistic analysis.
The Challenge of Graph Injection Attacks
Defending against GIA is particularly difficult because attackers strategically connect fake nodes to targets with different labels. This process artificially increases the graph's heterophily—the proportion of edges connecting dissimilar nodes. Previous defense strategies often relied on raw feature similarity (such as Jaccard similarity) to identify these malicious links. However, raw features frequently fail to capture the complex structural context of the graph, leading to "biased cleaning" where legitimate, naturally occurring edges are accidentally deleted, thereby degrading the model's overall performance.
The CHAGNN Framework
CHAGNN addresses these limitations by moving beyond raw features. Instead, it leverages the GNN's own learned representations in a self-enhancing, cooperative loop. The framework operates in four primary stages:
- Pre-training: A base GNN is trained on the potentially poisoned graph to generate "soft pseudo-labels" (class probability distributions) for all nodes.
- Heterophily Measurement: For edges connected to unlabeled or injected nodes, the algorithm calculates the Jensen-Shannon (JS) divergence between the soft labels of the two connected nodes. A high JS divergence indicates that the nodes likely belong to different classes, marking the edge as suspicious.
- Probabilistic Elimination: Rather than using a hard threshold, edges are sampled and removed based on their JS divergence scores. Highly heterophilous edges have a significantly higher probability of being purged.
- Cooperative Fine-tuning: The GNN is fine-tuned on the cleaned graph. This improved model then generates more accurate pseudo-labels, which are used for the next iteration of cleaning.
Unlike prior methods like AdaEdge, which utilize hard pseudo-labels, CHAGNN’s use of soft labels and JS divergence allows for a more nuanced quantification of heterophily, minimizing the risk of accidental deletions.
Theoretical Foundation
A key contribution of this work is the mathematical justification for its edge-removal strategy. The authors provide a formal proof demonstrating that, provided the underlying classifier achieves better than 50% accuracy, the expected benefit of removing a malicious heterophilous edge outweighs the potential penalty of accidentally removing a valid homophilous edge. This provides a theoretical "safety net" for the data-cleaning process.
Experimental Evaluation
The authors evaluated CHAGNN on four standard citation network datasets: Cora-ml, Cora, Citeseer, and Pubmed. The framework was tested against several state-of-the-art defenses (including GCNSVD, GNNGUARD, and AdaEdge) under various attack vectors such as TDGIA, FGA, and MGA.
Key Results
- Superior Robustness: CHAGNN consistently achieved the highest node classification accuracy across nearly all datasets and attack types.
- Resilience to Heavy Poisoning: In scenarios where 20% of the graph consisted of injected nodes (via the TDGIA attack), a standard GCN's performance collapsed. CHAGNN successfully recovered this performance, improving accuracy over the vanilla GCN by 27% on Cora-ml, 12% on Cora, 13% on Citeseer, and 10% on Pubmed.
- Metric Validation: CHAGNN outperformed methods relying on raw features (GCN-Jaccard) or hard labels (AdaEdge), confirming that JS divergence on soft labels is a superior metric for identifying malicious structural anomalies.
Conclusion and Future Work
CHAGNN demonstrates that the structural footprints left by GIA attackers—specifically the creation of heterophilous edges—can be exploited to build robust defenses. By using a model's own predictions to iteratively clean the graph, CHAGNN effectively neutralizes attacks without requiring knowledge of the specific attack algorithm.
Currently, the framework's primary limitation is its sensitivity to the "elimination rate" (the percentage of edges removed per iteration), which is a fixed hyperparameter. Future research will focus on developing adaptive methods to automatically determine the optimal elimination rate based on the graph's specific state and applying this cooperative strategy to a wider range of adversarial scenarios.
Summary updated