NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Efficient Model-Stealing Attacks Against Inductive Graph Neural Networks

Marcin Podhajski, Jan Dubinski, Franziska Boenisch, Adam Dziedzic, Agnieszka Pregowska, Tomasz Michalak · DOI

TL;DR

This paper introduces a more efficient method for "stealing" Graph Neural Networks (GNNs), specifically those that can generalize to new data (inductive GNNs). By combining graph contrastive learning with spectral augmentations, their attack requires significantly fewer queries to the target model, making it harder to detect and more practical.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) are becoming increasingly powerful for analyzing complex, interconnected data like social networks and molecular structures. A particular type, inductive GNNs, can learn from new graphs they haven't seen before, making them very versatile. However, this versatility also makes them attractive targets for "model-stealing" attacks. These attacks aim to create a copy of the original GNN by querying its API and observing its outputs. While significant research exists on stealing models trained on images and text, GNNs have been relatively under-explored. Existing GNN stealing methods often require many queries, increasing the risk of detection and making the attack less efficient. This paper aims to bridge this gap by developing a more efficient and stealthy model-stealing attack specifically for inductive GNNs.

Methods

The core of the proposed attack lies in a novel approach to training a "surrogate" model (the attacker's copy) to mimic the target GNN. Instead of simply trying to match the target's output for each query, the authors introduce two key innovations:

  • Graph Contrastive Learning: This technique focuses on learning representations that are not only similar for corresponding nodes between the target and surrogate models but also distinct from other nodes. This is achieved by creating "positive pairs" (matching nodes) and "negative pairs" (non-matching nodes) and training the models to pull positive pairs closer while pushing negative pairs apart in a shared representation space.
  • Spectral Graph Augmentations: To make the contrastive learning more effective, the authors augment the input graphs. They use spectral analysis to create different "views" of the graph by manipulating its frequency components. This helps the surrogate model learn more robust and discriminative features, as it learns to be invariant to certain graph transformations.

These techniques are combined to create a more efficient learning process for the surrogate model, requiring fewer queries to the target GNN.

Datasets

The authors evaluated their attack on six standard benchmark datasets commonly used for GNN evaluation:

  • DBLP
  • Pubmed
  • Citeseer Full
  • Coauthor Physics
  • ACM
  • Amazon Co-purchase Network for Photos

These datasets represent a variety of graph characteristics, including size, node features, and class distributions.

Key Insights and Ideas

  • Contrastive learning is key for efficiency: Simply matching outputs isn't enough for efficient GNN stealing. Contrastive learning, by focusing on relative similarities and differences, extracts more information per query.
  • Graph structure is rich information: Spectral graph augmentations exploit the underlying structure of graphs in a way that standard augmentations might miss, leading to better surrogate models.
  • Inductive GNNs are vulnerable: The attack demonstrates that even GNNs designed to generalize to new data are susceptible to sophisticated stealing techniques.
  • Fewer queries mean stealthier attacks: The primary benefit of their method is reducing the number of queries, which is crucial for evading detection mechanisms.

Key Results

The proposed model-stealing attack consistently outperformed the state-of-the-art baseline method (Shen et al., 2021) across various GNN models (GIN, GAT, GraphSAGE) and datasets.

  • Superior Accuracy and Fidelity: The stolen models achieved higher downstream accuracy and fidelity compared to the baseline. For instance, in one case, their method achieved a 35.8%pt. increase in embedding fidelity.
  • Significantly Fewer Queries: Crucially, their attack required less than half the number of queries compared to the baseline method to achieve comparable or better results. This is a major practical advantage.
  • Robustness: The attack demonstrated stable performance across multiple runs, indicating its reliability.

Limitations and Future Work

  • Node-Level Focus: The current attack is primarily designed for GNNs that provide node-level outputs. The authors suggest extending it to graph-level or link prediction tasks by adapting the augmentation strategies.
  • Reliance on Existing Structure Inference: The method for inferring missing graph structures (for Type II attacks) is based on prior work. Developing novel structure inference techniques tailored for contrastive learning could be a future research direction.
  • Defense Mechanisms: While the paper briefly touches upon defense mechanisms, further research into robust defenses against these advanced GNN stealing attacks is needed.

Summary updated

BibTeX
@inproceedings{podhajski2024efficient,
  author = {Marcin Podhajski and Jan Dubinski and Franziska Boenisch and Adam Dziedzic and Agnieszka Pregowska and Tomasz Michalak},
  title = {{Efficient Model-Stealing Attacks Against Inductive Graph Neural Networks}},
  booktitle = {ECAI},
  year = {2024},
  doi = {10.3233/faia240646},
}
Figure