Attacks on Node Attributes in Graph Neural Networks

Ying Xu, Michael Lanier, Anindya Sarkar, Yevgeniy VorobeychikarXiv 2024 · DOI

Abstract

Adversarial research in Graph Neural Networks (GNNs) has predominantly focused on structural perturbations, such as adding or removing edges. However, in many real-world scenarios, an attacker may only have the capability to modify node-level attributes. This paper investigates the vulnerability of GNNs to attribute-only attacks, demonstrating that strategic perturbations to node features—particularly in high-degree "influencer" nodes—can significantly degrade model performance. We evaluate both decision-time and poisoning attacks across multiple datasets, revealing that GNNs are highly susceptible to misinformation injected through node attributes even when the underlying graph structure remains intact.

Introduction

Graph Neural Networks have become essential for tasks ranging from social network analysis to recommendation systems. Their reliance on both graph topology and node features makes them powerful but also introduces unique security risks. While existing literature extensively covers structural attacks, the threat posed by manipulating node attributes alone is often overlooked. In practical settings, users can easily alter their own profile information (attributes) but cannot typically dictate connections between others (structure). This study addresses this gap by quantifying the impact of feature-only adversarial attacks.

Methodology

The research framework encompasses a multi-stage pipeline for feature extraction, graph construction, and adversarial intervention.

Overview of the GNN attack pipeline, illustrating feature extraction with BERT, graph construction via cosine similarity, and the injection of poisoning or decision-time attacks.

1. Decision-Time Attacks

At inference, the authors employ Projected Gradient Descent (PGD) to introduce subtle perturbations to node embeddings. A key innovation is the Targeted Top-K Degree strategy, which prioritizes attacking nodes with the highest connectivity. By corrupting these "hubs," the attacker leverages the GNN's message-passing mechanism to propagate misinformation throughout the network.

2. Poisoning Attacks

During the training phase, two strategies are explored to corrupt the model's learning:

  • Distribution Deviation: Node embeddings are shifted toward the global centroid, reducing inter-class variance and hindering the model's ability to distinguish between categories.
  • Graph Contrastive Learning (GCL) Poisoning: An optimization-based approach that maximizes the dissimilarity between original and poisoned embeddings.

Experimental Evaluation

The study utilizes three datasets: Hellaswag (text completion transformed into a graph via BERT embeddings), Cora, and CiteSeer (citation networks). These diverse benchmarks allow for a robust assessment of attack effectiveness across different graph types.

Results and Discussion

The results indicate a severe vulnerability in standard GNN architectures. For instance, on the Cora dataset, a GCN's accuracy plummeted from 92.00% to 31.90% under a decision-time $L_2$ norm attack.

Test Loss vs. Epsilon (ε) for the Hellaswag and Cora datasets, showing a sharp increase in loss as perturbation strength grows.

Key findings include:

  • The Hub Vulnerability: High-degree nodes act as single points of failure. Corrupting a hub effectively poisons the neighborhood's aggregated information.
  • Inference vs. Training: Decision-time attacks (PGD) generally proved more potent than poisoning attacks, suggesting that GNNs are particularly vulnerable to adversarial inputs at the moment of classification.
  • Limitations of Structural Attacks: Existing structural attack models performed poorly when restricted to feature-only modifications, highlighting the need for specialized attribute-focused attack strategies.

Conclusion

This research underscores the critical need for defensive mechanisms that go beyond protecting graph structure. The vulnerability of high-degree nodes suggests that future work should focus on robust aggregation functions and specialized regularizers designed to mitigate the impact of feature manipulation. As GNNs continue to be deployed in sensitive domains, addressing these attribute-level vulnerabilities is paramount for ensuring system security.

Summary updated

BibTeX
@misc{xu2024attacks,
  author = {Ying Xu and Michael Lanier and Anindya Sarkar and Yevgeniy Vorobeychik},
  title = {{Attacks on Node Attributes in Graph Neural Networks}},
  year = {2024},
  eprint = {2402.12426},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.12426},
}
Figure