AHSG: Adversarial Attack on High-level Semantics in Graph Neural Networks

Kai Yuan, Jiahao Zhang, Yidi Wang, pei XiaobingACML Conference Track 2024 · DOI

TL;DR

This paper introduces AHSG, a novel adversarial attack method for Graph Neural Networks (GNNs) that focuses on preserving the "primary semantics" of the graph while still causing misclassifications. By cleverly manipulating latent representations, AHSG achieves more effective and stealthy attacks compared to existing methods, making it harder for defenses to detect.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) are powerful tools for analyzing graph-structured data, but they are vulnerable to adversarial attacks. These attacks involve subtly altering the graph's structure or node features to trick the GNN into making incorrect predictions. Existing attack methods often try to maintain stealth by limiting the number of changes (attack budget) or preserving global graph properties like degree distribution. However, the paper argues that these methods often disrupt the primary semantics of the graph – the core meaning and relationships that are crucial for the task. This disruption, even if subtle, can make the attacks less effective in the long run and easier to detect. The paper aims to develop an attack that is both potent and preserves these essential graph semantics.

Methods

AHSG operates in three main stages:

  1. Extract Semantics from Graph: The method first leverages the hidden layer representations of a trained GNN. These representations are assumed to encapsulate the graph's primary semantics.
  2. Construct Adversarial Latent Representation: This is the core innovation. AHSG assumes that latent representations can be decomposed into a "primary semantic base" (shared across nodes of the same class) and a "secondary semantic" component (representing variations). The attack focuses on perturbing these secondary semantics while keeping the primary semantics intact. This is achieved by combining class-shared latent representations and then using gradient ascent to find representations with attack effects.
  3. Map Adversarial Latent Representation to Attacked Graph: Finally, the perturbed latent representations are mapped back to an adversarial graph structure. This involves using a binary perturbation matrix to decide which edges to add or remove, guided by a loss function that balances attack effectiveness with the preservation of the latent representation's structure. A regularization term is used to control the similarity between the perturbed and original latent representations.

Datasets

The paper evaluates AHSG on three standard benchmark datasets:

  • Cora: A citation network.
  • Citeseer: Another citation network.
  • Cora-ML: A citation network with continuous features.

The datasets are described with statistics on nodes, links, features, classes, and whether they have binary features.

Key Insights and Ideas

  • Primary Semantics are Key: The paper highlights that simply limiting edge changes isn't enough to preserve graph semantics. Disrupting core relationships can lead to less robust attacks.
  • Latent Representations as Attack Surface: By focusing on the latent representations within GNNs, AHSG can target the semantic information more directly and subtly.
  • Decomposing Semantics: The idea of separating "primary" (task-relevant) and "secondary" (variational) semantics in latent representations is a novel way to guide adversarial attacks.
  • Preserving Semantics Enhances Stealth: By preserving primary semantics, AHSG aims to create attacks that are harder to detect, even by defense mechanisms designed to spot semantic shifts.

Key Results

  • Superior Attack Effectiveness: AHSG consistently outperforms state-of-the-art adversarial attack methods across various GNN models and datasets, achieving lower accuracy for the victim models. For example, on the Cora dataset with 10% edge modifications, AHSG achieves an accuracy of 0.646, significantly lower than other methods.
  • Robustness Against Defenses: AHSG demonstrates strong attack performance even against GNNs equipped with defense strategies, indicating its effectiveness in bypassing common defenses.
  • Semantic Preservation Validated: Experiments using Contextual Stochastic Block Models (CSBMs) and a reference classifier confirm that AHSG effectively preserves the primary semantics of the attacked graphs, as evidenced by high "Bayes_maintain" scores.
  • Impact of Attack Budget: As the attack budget (percentage of perturbed edges) increases, the accuracy of GNNs generally decreases, but AHSG consistently maintains its leading attack performance across different budgets.

Limitations and Future Work

  • Computational Cost: While not explicitly detailed as a limitation, the multi-stage optimization process and the use of a surrogate GNN suggest potential computational overhead.
  • Surrogate Model Dependence: The paper notes that AHSG's effectiveness is strongest when the surrogate GNN used for attack generation matches the target GNN architecture (white-box scenario). However, it also shows effectiveness even when the target model has a different hidden layer dimension.
  • Future Work: The paper suggests that further research could explore more sophisticated methods for decomposing and manipulating latent representations to achieve even greater stealth and effectiveness. The semantic detection mechanism using CSBMs could also be further refined.

Summary updated

BibTeX
@inproceedings{yuan2024ahsg,
  author = {Kai Yuan and Jiahao Zhang and Yidi Wang and pei Xiaobing},
  title = {{AHSG: Adversarial Attack on High-level Semantics in Graph Neural Networks}},
  booktitle = {ACML Conference Track},
  year = {2024},
  doi = {10.48550/arxiv.2412.07468},
}
Figure