Adversarial Attack on Large Scale Graph

Jintang Li, Tao Xie, Liang Chen, Fenfang Xie, Xiangnan He, Zibin Zheng

TL;DR

This paper introduces a novel, efficient adversarial attack method called Simplified Gradient-based Attack (SGA) for Graph Neural Networks (GNNs). SGA significantly reduces the computational cost of attacks on large-scale graphs by focusing on a smaller subgraph, making practical adversarial attacks on real-world networks feasible. They also propose a new metric, Degree Assortativity Change (DAC), to better measure the unnoticeability of these attacks.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) have shown great promise in analyzing graph-structured data, but like other deep learning models, they are vulnerable to adversarial attacks. Existing methods for attacking GNNs often rely on gradient information to perturb graph structures or node features, aiming to fool the GNN into misclassifying target nodes. However, these methods typically require processing the entire graph, leading to prohibitively high time and memory costs for large-scale graphs, which are common in real-world applications. This scalability issue is a major bottleneck preventing the practical deployment of adversarial attacks on GNNs. Furthermore, evaluating the "unnoticeability" of these attacks on graph data, which is discrete and non-Euclidean, is also challenging.

Methods

The paper proposes a Simplified Gradient-based Attack (SGA) framework. The core idea is to avoid using the entire graph for attacks. Instead, SGA extracts a k-hop subgraph centered around the target node. This significantly reduces the computational burden.

Key components of SGA include:

  • Simplified Surrogate Model: Instead of using a full GCN, SGA employs a Simplified Graph Convolutional Network (SGC) as its surrogate model. SGC is a linear variant of GCN that removes non-linear activation functions, making it computationally more efficient.
  • Subgraph Extraction: SGA focuses on a k-hop neighborhood of the target node. This subgraph, along with some "potential nodes" and edges, forms the basis for gradient computation.
  • Gradient Computation and Calibration: Gradients are computed on this smaller subgraph. To address the issue of "gradient vanishing" caused by overconfident predictions of the surrogate model, SGA introduces a scale factor to calibrate the model's output.
  • Iterative Gradient-based Attack: Edges are iteratively added or removed within the subgraph based on computed gradients and a "structure score" to maximize the misclassification loss of the target node. The subgraph is dynamically updated to maintain the k-hop neighborhood property.

Additionally, the paper introduces Degree Assortativity Change (DAC) as a metric to quantify the impact of adversarial attacks. DAC measures how much the tendency of nodes to connect to nodes of similar degrees changes after an attack, providing a more nuanced measure of unnoticeability than traditional metrics.

Datasets

The authors evaluate their method on four real-world graph datasets:

  • Citeseer: A citation network.
  • Cora: Another citation network.
  • Pubmed: A citation network.
  • Reddit: A large-scale dataset of online discussion forums.

For evaluation, they randomly select 20% of nodes for training, half of which are used for validation, and the remaining for testing. They also consider the largest connected component of each graph.

Key Insights and Ideas

  • Subgraph-based attacks are feasible and efficient: The paper demonstrates that it's not necessary to use the entire graph to launch effective adversarial attacks. Focusing on a localized subgraph is sufficient and drastically improves efficiency.
  • SGC is a practical surrogate for attacks: The simplification in SGC, while potentially reducing robustness for classification, makes it an excellent choice for a computationally efficient surrogate model in adversarial attacks.
  • Gradient calibration is crucial for overconfident models: Modern GNNs can be overconfident, leading to vanishing gradients during attacks. The proposed scale factor effectively mitigates this issue.
  • DAC offers a better measure of unnoticeability: Traditional metrics are ill-suited for discrete graph data. DAC, by focusing on degree assortativity, provides a more relevant way to assess how much an attack alters the graph's intrinsic properties.
  • Influence attacks are less impactful than direct attacks: The results suggest that direct attacks, which directly modify the target node's neighborhood, tend to have a greater impact on classification accuracy.

Key Results

  • Significant Speedup: SGA achieves remarkable improvements in time and memory efficiency. For instance, on the Pubmed dataset, it shows up to a 1,976x speedup over Nettack in direct attack settings and 5,753x speedup in influence attack settings. On the large Reddit dataset, SGA is still efficient while Nettack and GradArgmax fail due to memory limitations.
  • Competitive Attack Performance: Despite its efficiency, SGA maintains competitive attack performance, often achieving higher accuracy degradation than other methods, especially against robust GNNs like GAT and GraphSAGE.
  • DAC Effectiveness: The DAC metric shows that direct attacks have a greater impact than influence attacks, and Nettack achieves the most unnoticeable influence attacks due to its constraints on degree distribution. SGA's DAC values are slightly worse than Nettack but still reasonable.
  • Scalability: SGA demonstrates excellent scalability, performing well on large datasets like Pubmed and Reddit where other methods struggle.

Limitations and Future Work

  • DAC Computation Cost: While DAC is a practical metric, its computation can be costly, especially for large graphs. The authors suggest exploring ways to improve its efficiency and potentially use it as an unnoticeability constraint during attacks.
  • Generalization to Other Attacks: The paper discusses how SGA can be generalized to feature attacks. However, it notes that SGA is not directly applicable to node injection attacks, as these involve adding entirely new nodes, which breaks the k-hop subgraph assumption. Future work could investigate adapting gradient-based methods for node injection attacks, though this might still incur high computational costs.
  • Further Exploration of Subgraph Radius: The ablation study shows that the optimal subgraph radius (k) can vary depending on the target model and dataset. Further research could explore adaptive or more sophisticated subgraph selection strategies.

Summary updated

BibTeX
@article{li2023adversarial,
  author = {Jintang Li and Tao Xie and Liang Chen and Fenfang Xie and Xiangnan He and Zibin Zheng},
  title = {{Adversarial Attack on Large Scale Graph}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2023},
  doi = {10.1109/tkde.2021.3078755},
}
Figure