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 P. Michalak

Abstract

Graph Neural Networks (GNNs) are increasingly deployed in sensitive domains, yet their vulnerability to model-stealing attacks remains under-explored. This paper presents a highly efficient, unsupervised framework for stealing GNN functionality. By leveraging contrastive learning and spectral graph augmentations, the proposed attack achieves superior fidelity and accuracy compared to existing supervised methods while requiring less than half the query budget of previous state-of-the-art methods.

Introduction

Model stealing is an adversarial attack where a malicious actor attempts to "clone" a proprietary AI model by querying its API and observing the outputs. While this threat has been extensively studied for images and text, Graph Neural Networks (GNNs)—which power critical applications from social network analysis to drug discovery—have remained relatively under-explored.

Existing GNN stealing attacks typically utilize a "one-to-one" supervised approach: they send a node to the victim model, obtain an output, and train a surrogate model to match that specific output. This methodology is often inefficient, ignoring the rich structural information inherent in graphs and requiring a massive number of queries, which makes the attack expensive and easier to detect.

Methodology: Contrastive GNN Stealing

The authors introduce a novel framework that shifts from simple supervised learning to unsupervised contrastive learning.

Comparison of existing supervised methods vs. the proposed contrastive learning approach.

Instead of matching one output at a time, the surrogate model is trained to align its node representations with the victim’s while simultaneously learning to distinguish them from the representations of other nodes. This "one-to-many" approach extracts significantly more information from every single query.

To further enhance the surrogate model's robustness, the researchers employ spectral graph augmentations. By performing spectral analysis on the graph's eigenvalues and eigenvectors, they create "augmented" versions of the input graphs. Manipulating high and low-frequency components creates diverse "views" that force the surrogate model to learn the essential structural patterns utilized by the victim model.

Training occurs in two steps:

  1. Embedding Mimicry: The surrogate learns to replicate the victim's internal mathematical representations (embeddings).
  2. Task Training: Once the embeddings are successfully "stolen," a simple classification head is trained on top to perform the final task, such as node classification.

Experimental Setup

The attack was evaluated on six diverse, standard GNN benchmarks, including citation networks (DBLP, ACM, Pubmed, Citeseer Full), co-authorship graphs (Coauthor Physics), and product networks (Amazon Co-purchase). The researchers tested both Type I attacks (where the adversary has access to data from the same distribution as the victim) and Type II attacks (where the adversary must reconstruct the unknown graph structure).

Key Results

The proposed method consistently outperformed the previous state-of-the-art (Shen et al., 2021) across all six datasets and three different GNN architectures: GraphSAGE, GAT, and GIN.

Performance comparison (Accuracy and Fidelity) across different query budgets for Type I and Type II attacks.
  • Superior Accuracy: In specific cases, such as a GIN target on the Amazon dataset, the surrogate model’s accuracy was 36.8 percentage points higher than the previous baseline.
  • Query Efficiency: The attack reached the same level of fidelity as the baseline while using less than 50% of the query budget. This efficiency is critical for bypassing security systems that monitor for query bursts.
  • Robustness to Defense: The researchers tested the attack against Gaussian noise injection—a common defense intended to confuse attackers. The contrastive attack remained highly effective even under significant noise, suggesting that current output-perturbation defenses are insufficient.

Discussion and Insights

A core insight of the paper is that GNN outputs contain a wealth of structural "DNA" that can be exploited. Furthermore, the study demonstrates that spectral augmentations—which treat the graph like a signal and filter out noise—are significantly more effective for training a surrogate model to understand a victim's logic than traditional spatial augmentations like random edge dropping.

Conclusion and Future Work

While highly effective for node-level tasks, the authors note that this framework could be extended to graph-level tasks or link prediction. For "Type II" attacks, the adversary still relies on existing graph reconstruction techniques; developing reconstruction methods specifically optimized for contrastive loss represents a significant potential next step in adversarial GNN research.

Summary updated

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