GraphIP–Bench: How Hard Is It to Steal a Graph Neural Network, and Can We Stop It?

Kaixiang Zhao, Bolin Shen, Yuyang Dai, Shayok Chakraborty, Yushun DongNeurIPS 2026 Evaluations and Datasets Track Poster 2026

TL;DR

Graph neural networks (GNNs) served via cloud APIs are surprisingly easy to steal: an attacker can query the API and train a local copy (a surrogate) that mimics the original model at medium query budgets. To figure out how bad the problem is and whether defenses actually work, the authors introduce GraphIP-Bench, a unified benchmark testing 12 extraction attacks and 12 defenses under a single black-box protocol. The verdict? Most defenses don't stop theft, and many watermarks that look great on the original model vanish once the model is actually stolen.

What Problem Does This Paper Address?

When companies deploy GNNs behind public inference endpoints—for product recommendations, fraud detection, or molecular property prediction—they open the door to model-extraction attacks. An adversary simply sends carefully chosen graph queries, records the returned labels or confidence scores, and trains a local surrogate model to replicate the target's behavior.

To fight back, researchers have proposed two main defense families: information-limiting defenses (like adding noise to outputs, rounding predictions, or detecting suspicious query patterns) and ownership-tracing defenses (like embedding watermarks or extracting behavioral fingerprints to prove a stolen model is yours).

The catch? Until now, we couldn't fairly compare these attacks and defenses. Prior studies used private data splits, incompatible query budgets, and inconsistent metrics. Worse, defenses were often evaluated in isolation—testing if a watermark works on the original model, rather than on the stolen surrogate where it actually matters.

Methods

The authors built GraphIP-Bench (integrated into the PyGIP library) to put attacks and defenses on equal footing under a standardized black-box protocol:

  • 12 Extraction Attacks: Spanning six standard query-synthesis baselines (MEA0–MEA5), adaptive/centrality-based methods (AdvMEA, CEGA, Realistic), and three data-free variants (DFEA_I, DFEA_II, DFEA_III) that generate synthetic queries without needing real graph data.
  • 12 Defenses: Five ownership-tracing methods (RandomWM, BackdoorWM, SurviveWM, ImperceptibleWM, and Integrity) and seven information-limiting or query-detection methods (OP_low, OP_high, PR_2bit, PR_top1, PRADA, AdaptMisinfo, GradRedir).
  • Standardized Regimes & Budgets: Every method is tested across five query budgets ($0.05\times$ to $1.00\times$), four data-availability regimes (features only, structure only, both, and data-free), and three GNN backbones (GCN, GAT, GraphSAGE).
  • Joint Attack-and-Defense Track: Crucially, the benchmark runs every attack against every defended target and measures watermark survival—whether the ownership signal still verifies on the extracted surrogate.

Datasets

The benchmark evaluates node classification across ten public graphs spanning four structural regimes:

  • Homophilic citation networks: Cora, CiteSeer, PubMed.
  • Homophilic coauthor & co-purchase networks: CoauthorCS, CoauthorPhysics, Computers, Photo.
  • Large-scale graph: OGBN-Arxiv (169,343 nodes, 40 classes).
  • Heterophilic graphs (where connected nodes tend to have different labels): RomanEmpire and AmazonRatings.

They also include link prediction on Cora and graph classification on ENZYMES and PROTEINS in the appendix.

Key Insights and Ideas

  • Stealing is a sample-efficiency problem, not a brute-force one: Most attacks saturate their performance by a medium query budget ($0.25\times$ to $0.50\times$). Even data-free attacks can match data-driven ones if their synthetic queries cover the label space well.
  • Watermarks often fail the "theft test": Several watermarks verify near-perfectly on the protected model itself, but lose most of their signal on the extracted surrogate. Testing a watermark only on the deployed model gives a false sense of security.
  • Heterophily and architecture mismatches slow attackers down: Heterophilic graphs (like RomanEmpire) are systematically harder to steal, and attacks that implicitly assume homophily (like AdvMEA) collapse on them. Cross-architecture mismatches between target and surrogate also reduce—but do not prevent—extraction.
  • Backdoor triggers offer the best defense balance: Among ownership defenses, BackdoorWM achieves the best protection-utility trade-off, preserving clean accuracy while retaining the strongest signal after extraction.

Key Results

  • Extraction Fidelity: At medium budgets ($0.25\times$–$0.50\times$), the strongest attacks exceed 90% fidelity (agreement with the target) on most homophilic graphs. Even on the 40-class OGBN-Arxiv graph, top attacks reach 75–82% fidelity at $0.25\times$.
Figure 2: Budget–metric curves on six representative datasets (columns) for accuracy and fidelity (rows). Lines are the twelve attacks (mean over three seeds, shaded bands ±1 std). The four homophilic graphs share a 0–100% y-axis; OGBN-Arxiv and RomanEmpire use per-subplot ranges since their target accuracy is bounded by intrinsic task difficulty. The full ten-dataset, three-metric version (including macro F1) and per-dataset numbers are reported as Figure 10 and Appendix E.1.
  • Protection-Utility Trade-off: On the seven homophilic graphs, BackdoorWM achieves 80.07% median fidelity, 100% target verification, and only a 3.27 percentage point median utility drop, training in ~2 seconds. In contrast, ImperceptibleWM takes hundreds of seconds (up to 950s) and uses much more memory.
Figure 4: Protection-utility scatter across ten datasets (three seeds per defense; ten for In- tegrity on Computers and Photo) (one point per dataset-seed run). Upper-left is best.
  • Watermark Survival: On the Computers dataset at $0.25\times$ budget, all embedded watermarks verify at 100% on the target model. Once stolen, verification on the surrogate drops to 0% for ImperceptibleWM, 10.0% for SurviveWM, and 14.7% for RandomWM. Only BackdoorWM retains a substantial signal (59.2%).

Limitations and Future Work

The authors note that their findings apply to the tested black-box API interfaces. Scenarios involving cross-user collusion detection and sequential (multi-step) defenses remain open challenges for future work.

Summary updated

BibTeX
@inproceedings{zhao2026graphipbench,
  author = {Kaixiang Zhao and Bolin Shen and Yuyang Dai and Shayok Chakraborty and Yushun Dong},
  title = {{GraphIP–Bench: How Hard Is It to Steal a Graph Neural Network, and Can We Stop It?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=gVarjIBpLT},
}
Figure