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

Model Stealing Attack against Graph Classification with Authenticity, Uncertainty and Diversity

Zhihao Zhu, Chenwang Wu, Rui Fan, Yi Yang, Zhen Wang, Defu Lian, Enhong Chen

TL;DR

This paper introduces the first practical model stealing attacks targeting graph-level classification tasks. By operating under strict, realistic constraints—where attackers only have access to a tiny fraction of real data and receive only hard labels from the target model—the authors propose a novel synthetic data generation framework that effectively clones Graph Neural Networks (GNNs) while remaining highly imperceptible to defenders.

What Problem Does This Paper Address?

Model stealing attacks aim to duplicate a black-box target model by querying its API and training a "clone" model on the responses. While well-explored in image and text domains, existing work on Graph Neural Networks (GNNs) has almost exclusively focused on node-level classification. Furthermore, prior methods rely on unrealistic assumptions: they assume the attacker has access to a massive amount of in-distribution data and that the target model outputs rich information like confidence vectors or node representations.

In real-world applications (such as predicting molecular properties or analyzing biological networks), data collection is incredibly resource-intensive, and Machine Learning as a Service (MLaaS) platforms typically only return hard labels (e.g., discrete categories). This paper bridges this gap by exploring how an attacker can steal a graph classification model under a strict budget: limited real data (as low as 1%) and hard-label-only access.

Methods

To overcome data scarcity, the authors propose generating synthetic graphs. They establish two core principles for this generation process: Authenticity (synthetic graphs must look structurally similar to real ones to evade detection) and Query Value (graphs must be highly informative to the clone model).

Based on these principles, they develop three attack variants:

  1. MSA-AU (Authenticity & Uncertainty): Inspired by active learning, this method uses the gradient of the clone model to greedily flip a small percentage ($\alpha$) of edges in the adjacency matrix. This maximizes the model's prediction uncertainty (pushing samples close to the decision boundary) while enforcing strict statistical constraints to maintain graph authenticity.
  2. MSA-AD (Authenticity & Diversity): Relying solely on uncertainty can cause synthetic samples to become overly similar as the model converges. MSA-AD introduces a model-independent graph Mixup strategy. It extracts induced subgraphs from two random real graphs and swaps them. To preserve structural integrity, nodes are matched based on their PageRank importance scores.
  3. MSA-AUD (Authenticity, Uncertainty, and Diversity): This flagship framework combines both techniques. It first applies the Mixup strategy (MSA-AD) to ensure population diversity, and then perturbs the resulting graphs to maximize uncertainty (MSA-AU).

The overall iterative workflow of the framework is illustrated below:

Figure 1: The workflow of our framework. Each round be- gins with the generation of new synthetic data by applying model-related or model-agnostic methods. We then query new samples against the target model, whose predictions will be utilized to boost the clone model’s imitation.

Datasets

The authors evaluated their attacks on four diverse, standard graph classification benchmarks:

  • ENZYMES: A protein dataset containing 600 graphs across 6 classes.
  • COIL-DEL: An image-derived graph dataset with 3,900 graphs across 100 classes.
  • NCI1: A biological dataset for anticancer activity classification (4,110 graphs, 2 classes).
  • TRIANGLES: A synthetic dataset where the task is to count the number of triangles (45,000 graphs, 10 classes).

In all setups, the attacker was restricted to using only 10% of the target dataset (and a mere 1% for the massive TRIANGLES dataset) as seed data.

Key Insights and Ideas

  • The Diversity Trap in Active Learning: While generating high-uncertainty samples helps the clone model learn the decision boundary early on, the generated samples quickly become redundant. As shown in the paper's statistical analysis, combining uncertainty with model-independent diversity (via Mixup) prevents query inefficiency.
  • PageRank for Graph Mixup: Standard image Mixup linearly interpolates pixels. For discrete graph structures, this is impossible. The authors' insight to use PageRank ensures that structurally important nodes in graph $A$ are swapped with equally important nodes in graph $B$, preserving global graph statistics like degree distribution and clustering coefficients.
  • Task Complexity Matters: The difficulty of a model stealing attack is heavily correlated with the number of classes. For simple binary tasks (like NCI1), baseline models perform adequately. However, on complex tasks with many classes (like COIL-DEL with 100 classes), synthetic data generation becomes absolutely vital to achieving high fidelity.

Key Results

The attacks were tested against three classic GNN architectures: SAGE, GCN, and GIN. Performance was measured using Fidelity (how well the clone model mimics the target model's predictions, regardless of ground truth accuracy).

  • Substantial Performance Boosts: On the challenging COIL-DEL dataset using a SAGE target model, the baseline attack using only real data (MSA-Real) achieved a dismal 22.8% fidelity. The proposed MSA-AUD attack skyrocketed this to 66.1% fidelity.
  • Outperforming Image Baselines: The framework consistently beat adaptations of popular image-based data augmentation attacks like JbDA and T-RND across all datasets.
  • High Imperceptibility: In structural evaluations (measuring triangle counts, transitivity, and clique numbers), MSA-AUD and MSA-AD exhibited miniscule discrepancies compared to the original data, meaning they easily bypass state-of-the-art generated graph detectors.
  • Defense Resilience: The authors tested a defense that adds random noise to the target model's outputs. Even with 20% noise injected into the API responses, MSA-AUD maintained over 50% stealing fidelity.

Limitations and Future Work

Despite its strength, the attack still requires a small initial pool of genuine data (1-10%) to seed the generation process; a completely data-free graph classification stealing attack remains an open challenge.

For future defenses, the authors note that standard noise-injection or graph-detection methods fail against these attacks. They suggest that defenders should focus on maintaining strict secrecy regarding the GNN architecture (as unknown architectures degrade attack transferability), increasing query costs, or developing robust adversarial training frameworks specifically tuned to detect these high-fidelity synthetic graphs.

Summary updated

BibTeX
@misc{zhu2023model,
  author = {Zhihao Zhu and Chenwang Wu and Rui Fan and Yi Yang and Zhen Wang and Defu Lian and Enhong Chen},
  title = {{Model Stealing Attack against Graph Classification with Authenticity, Uncertainty and Diversity}},
  year = {2023},
  eprint = {2312.10943},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.10943},
}
Figure