Reinforcement Learning-based Black-Box Evasion Attacks to Link Prediction in Dynamic Graphs

Houxiang Fan, Binghui Wang, Pan Zhou, Ang Li, Zichuan Xu, Cai Fu, Hai Li, Yiran ChenHPCC/DSS/SmartCity/DependSys 2020 · DOI

TL;DR

This paper introduces the first black-box evasion attack against dynamic graph link prediction (LPDG) models. By framing the attack as a reinforcement learning problem, they can effectively perturb graph structures to degrade LPDG performance without needing to know the model's internal workings, demonstrating significant effectiveness and efficiency.

What Problem Does This Paper Address?

Link prediction in dynamic graphs (LPDG) is crucial for applications like recommendations and disease spread modeling. While sophisticated LPDG models, often based on graph neural networks (GNNs), achieve state-of-the-art performance, their vulnerability to adversarial attacks remains largely unexplored, especially in a "black-box" setting. A black-box attack means the attacker can only observe the model's predictions (e.g., predicted links) and cannot access its parameters or architecture. The challenge is to perturb the graph structure (add/remove links) to maximize the model's prediction errors without this internal knowledge, which is difficult due to the combinatorial nature of graph perturbations and the lack of gradient information.

Methods

The authors propose a novel Reinforcement Learning (RL)-based approach to conduct black-box evasion attacks on LPDG models. They leverage the Soft Actor-Critic (SAC) algorithm, a stochastic policy-based RL method known for its exploration capabilities and stable training.

The core idea is to model the process of perturbing graph edges as a sequence of actions taken by an RL agent.

  • States: The state is a low-dimensional embedding of the perturbed graph, capturing its latent structural information.
  • Actions: The attacker can add or delete edges. To manage complexity, they focus on perturbing links between "popular" (high-degree) and "neglected" (low-degree) nodes.
  • Rewards: The reward function is designed to be positive when the LPDG model's performance (measured by F1 score) degrades after a perturbation, and negative otherwise. The magnitude of the reward is proportional to the performance drop.
  • Policy Network: A neural network learns a policy to select actions (which edges to perturb) that maximize the expected cumulative reward.
  • Q-Network: Another network estimates the value of taking a specific action in a given state, guiding the policy learning.

This RL formulation circumvents the need for gradient information and tackles the NP-hard graph perturbation problem by learning an optimal policy through trial and error.

Datasets

The authors evaluate their attack on three real-world dynamic graph datasets:

  • Haggle: A social network representing wireless device connections.
  • Hypertext: A face-to-face contact network from a conference.
  • Trapping: An animal interaction network.

Each dataset is split into 30 graphs chronologically, with a portion used for training DyGCN, a portion for training the attack model, and the remainder for testing.

Key Insights and Ideas

  • Vulnerability of LPDG Models: The research demonstrates that even sophisticated LPDG models are susceptible to black-box evasion attacks, highlighting a critical security concern for these systems.
  • RL as a Powerful Attack Tool: Framing graph perturbation as an RL problem is a novel and effective way to conduct black-box attacks, overcoming limitations of traditional optimization-based methods (lack of gradients, NP-hardness).
  • Targeted Perturbations are Key: Focusing perturbations on edges connecting high-degree and low-degree nodes is an efficient strategy to degrade model performance, suggesting that these nodes play a disproportionately important role in LPDG models.
  • Efficiency of the Attack: The RL-based attack is shown to be efficient, with running time scaling linearly with the number of perturbed edges and parameters.

Key Results

  • Effectiveness: The proposed RL-based attack significantly degrades the performance of the DyGCN model. On the Trapping dataset, the attack reduced the F1 score by 45.5% compared to the no-attack scenario.
  • Superiority over Baselines: The attack outperforms random perturbation strategies (Random-whole and Random-partial) by a considerable margin. For instance, on Trapping, the RL attack achieved a 30.3% and 22.8% performance gain over these random attacks, respectively.
  • Impact of Perturbation Budget: Even with a small perturbation budget (e.g., 1% of edges), the attack can cause substantial performance degradation (e.g., 8.8% F1 score reduction on Haggle).
  • Parameter Sensitivity: The attack's effectiveness is influenced by parameters like the fraction of perturbed graphs ($\mu$), the fraction of nodes selected for perturbation ($\rho$), and the fraction of edges perturbed per graph ($\delta$), with performance generally increasing as these values increase.

Limitations and Future Work

  • Focus on DyGCN: While the attack is designed to be applicable to any LPDG algorithm, the experiments are specifically conducted against DyGCN. Future work could explore its effectiveness on a wider range of LPDG models.
  • Simplification in Perturbation: The attack focuses on perturbing edges between popular and neglected nodes. While this simplifies the problem and proves effective, a more comprehensive attack might consider a broader range of perturbation strategies.
  • Computational Cost: While efficient, training RL agents can still be computationally intensive. Further optimizations or alternative RL algorithms could be explored.
  • Defense Mechanisms: The paper focuses on the attack itself. Future research could investigate defense mechanisms against such black-box evasion attacks.

Summary updated

BibTeX
@inproceedings{fan2020reinforcement,
  author = {Houxiang Fan and Binghui Wang and Pan Zhou and Ang Li and Zichuan Xu and Cai Fu and Hai Li and Yiran Chen},
  title = {{Reinforcement Learning-based Black-Box Evasion Attacks to Link Prediction in Dynamic Graphs}},
  booktitle = {HPCC/DSS/SmartCity/DependSys},
  year = {2020},
  doi = {10.1109/hpcc-dss-smartcity-dependsys53884.2021.00149},
}
Figure