Node Injection Attacks on Graphs via Reinforcement Learning

Yiwei Sun, Suhang Wang, Xianfeng Tang, Tsung-Yu Hsieh, Vasant G. HonavararXiv 2019

Introduction

Graph-based machine learning models, particularly Graph Convolutional Networks (GCNs), have become foundational in applications ranging from social network analysis to recommendation engines. However, their vulnerability to adversarial attacks poses significant security risks. Most existing research focuses on poisoning attacks that modify existing edges—a task that is often practically impossible for an external adversary. This paper explores a more realistic threat model: node injection attacks, where an attacker introduces "fake" nodes into the network to degrade model performance.

The NIPA Framework

The authors propose NIPA (Node Injection Poisoning Attack), a reinforcement learning-based framework designed to strategically inject nodes and links. The primary challenge in node injection is the massive combinatorial search space: an attacker must decide which fake nodes to link to which real nodes and what labels to assign them.

To address this, NIPA utilizes a Hierarchical Q-Network (HQN). Instead of a single complex decision, the attack is decomposed into three manageable sub-actions:

  1. Selecting an injected (fake) node.
  2. Selecting a target (real or fake) node for connection.
  3. Assigning a label to the injected node.

This hierarchical approach reduces the action space complexity from $O(|V_A| \cdot |V'| \cdot |L|)$ to $O(|V_A| + |V'| + |L|)$, making the attack computationally feasible for large-scale graphs. The agent's state is captured using struct2vec for structural features and a two-layer neural network for label information. The reward function is a guiding binary signal, providing $+1$ if an action increases the misclassification rate on a validation set.

Strategic Insights and Attack Effectiveness

A key finding of the research is the difference between "dummy" and "smart" attackers. While random node injection (dummy) has a negligible impact on GCN accuracy, NIPA (smart) identifies structural weak points to maximize the spread of incorrect influence during the GCN's message-passing phase.

Comparison of a clean graph (a) with the ineffective connections of a dummy attacker (b) and the strategic, targeted connections of the NIPA smart attacker (c).

Key Findings:

  • Stealthiness: NIPA-poisoned graphs maintain critical statistical properties, such as the Power Law exponent and Gini coefficient, allowing them to bypass automated defense systems that look for structural anomalies.
  • Sparsity Vulnerability: The attack is most potent on sparse graphs. In these environments, nodes have fewer neighbors, meaning the influence of a single malicious injected node is disproportionately high.
  • Label Importance: Experiments showed that optimizing the labels of injected nodes is as critical as the link structure itself. Removing label optimization significantly reduces the attack's effectiveness.

Experimental Results

NIPA was evaluated on three benchmark citation networks: CITESEER, CORA-ML, and PUBMED. On the CITESEER dataset, a 10% injection rate caused the GCN's accuracy to plummet from 77.3% to 62.0%. Furthermore, the attacks demonstrated high transferability; poisoned graphs remained effective even when the final classifier was trained from scratch, independent of the surrogate model used during the RL training phase.

Conclusion and Future Directions

NIPA demonstrates that node injection is a potent and practical threat to graph-based systems. While the current work uses Gaussian noise for feature generation, future iterations could employ Generative Adversarial Networks (GANs) to create even more realistic malicious features. Additionally, extending this framework to heterogeneous and dynamic graphs remains a critical area for future research into graph robustness.

Summary updated

BibTeX
@misc{sun2019node,
  author = {Yiwei Sun and Suhang Wang and Xianfeng Tang and Tsung-Yu Hsieh and Vasant G. Honavar},
  title = {{Node Injection Attacks on Graphs via Reinforcement Learning}},
  year = {2019},
  eprint = {1909.06543},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.06543},
}
Figure