Adversarial Attacks on Graph Classifiers via Bayesian Optimisation

Xingchen Wan, Henry Kenlay, Robin Ru, Arno Blaas, Michael A. Osborne, Xiaowen DongNeurIPS 2021

TL;DR

Researchers from the University of Oxford have developed GRABNEL, a novel black-box method that uses Bayesian Optimisation to launch adversarial attacks on graph-level classification models. Unlike previous methods, GRABNEL is highly query-efficient and "parsimonious." It successfully tricks models by changing only a tiny fraction of a graph's structure, all without needing any internal information about the target model.

The Vulnerability of Graph-Level Classification

While it is well-established that Graph Neural Networks (GNNs) are vulnerable to adversarial attacks, most research has historically focused on node-level tasks (e.g., predicting the category of a single user in a social network). However, graph-level classification—where a model predicts a property for an entire graph, such as whether a molecule is toxic or if a Twitter conversation constitutes "fake news"—is arguably more critical for real-world applications like drug discovery and cybersecurity.

Existing attacks on graph classification often rely on "white-box" assumptions, requiring full access to the model's gradients and weights. Alternatively, they require an impractically high number of queries to the victim model. The authors address this gap by treating the attack as a black-box optimization problem: How can we find the smallest possible change to a graph that causes the model to fail, using the fewest attempts possible?

Methods: Introducing GRABNEL

The authors introduce GRABNEL (Graph Adversarial attack via BayesiaN Efficient Loss-minimisation). The core of the approach is a Bayesian Optimisation (BO) loop designed to navigate the complex, discrete space of graph structures.

GRABNEL Architecture

The GRABNEL pipeline consists of several key components:

  1. Feature Extraction: To handle the discrete, non-vector nature of graphs, the method uses a Weisfeiler-Lehman (WL) feature extractor. This transforms the graph structure into a high-dimensional vector that captures local neighborhood information.
  2. Surrogate Model: GRABNEL employs Sparse Bayesian Linear Regression with an Automatic Relevance Determination (ARD) prior. This surrogate model learns to map the extracted graph features to the "attack loss" (how close the victim model is to misclassifying the graph). The ARD prior is crucial for handling high-dimensional features effectively, even when query data is scarce.
  3. Sequential Perturbation: Instead of attempting to flip many edges simultaneously, GRABNEL uses a greedy sequential strategy. It selects one edge to flip (add or delete) at a time, moving to the next "stage" only if the attack hasn't succeeded yet.
  4. Acquisition Function: To decide which perturbed graph to query next, the system optimizes an acquisition function using a Genetic Algorithm (GA) tailored specifically for discrete graph spaces.

Datasets

The method was rigorously evaluated on several benchmarks:

  • TU Datasets: Common graph classification benchmarks including IMDB-M (social), PROTEINS (bioinformatics), COLLAB, and REDDIT-MULTI-5K.
  • MNIST-75sp: A version of the MNIST digit dataset where images are converted into graphs of 75 superpixels.
  • Twitter Fake News: A real-world dataset where cascades of tweets and retweets are modeled as graphs to detect the spread of misinformation.

Key Insights and Ideas

  • Parsimony is Key: GRABNEL doesn't just aim to break the model; it aims to do it quietly. By leveraging Bayesian Optimisation, it finds adversarial examples with significantly fewer edge changes than random or standard genetic algorithm attacks.
  • Adversarial Clustering: The authors observed that adversarial edges (the ones changed to fool the model) tend to cluster together spatially. This suggests that GNNs might be particularly sensitive to local structural "bruises" rather than scattered, global changes.
  • Community Destruction: In social network datasets, the attack frequently targets "community structures." For GCN models, the attack tends to flip edges between communities to merge them, while for GIN models, it tends to strengthen existing communities to force misclassification.
  • Vulnerability of Low-Degree Nodes: Surprisingly, the attack often targets nodes with very few connections. While high-degree "hubs" seem intuitively important, changes to peripheral nodes can effectively "poison" the neighborhood aggregation process in GNNs.

Key Results

GRABNEL demonstrated remarkable effectiveness and efficiency across the board.

Attack Success Rate across datasets
  • Effectiveness: GRABNEL consistently outperformed random search and standard Genetic Algorithms across all tested TU datasets.
  • White-Box Performance in a Black-Box Package: In many scenarios, GRABNEL achieved an Attack Success Rate (ASR) comparable to or even better than gradient-based "white-box" methods, despite having zero access to the model's internal parameters.
  • Query Efficiency: On datasets like PROTEINS, GRABNEL reached high success rates with an order of magnitude fewer queries than baseline black-box methods.
  • Real-World Impact: On the Twitter fake news task, GRABNEL successfully reduced the accuracy of a GCN-based detector by a third simply by "injecting" a few malicious nodes (simulating fake accounts retweeting peripheral users).

Limitations and Future Work

While highly effective, the current iteration of GRABNEL focuses primarily on topological attacks (adding or removing edges). The authors note that the surrogate model is theoretically compatible with node and edge feature attacks, but "hybrid" attacks combining structural and feature perturbations remain an area for future exploration.

Furthermore, this paper focuses heavily on the attack side. A natural next step for the research community is utilizing GRABNEL to perform adversarial training, ultimately creating more robust GNNs. The authors acknowledge the social risk of such tools potentially being used by bad actors to bypass fake news detectors, emphasizing that their work serves as a necessary "proof-of-concept" to raise awareness and spur the development of stronger defenses.

Summary updated

BibTeX
@inproceedings{wan2021adversarial,
  author = {Xingchen Wan and Henry Kenlay and Robin Ru and Arno Blaas and Michael A. Osborne and Xiaowen Dong},
  title = {{Adversarial Attacks on Graph Classifiers via Bayesian Optimisation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
}
Figure