Can subgraph explanations be weaponized to steal graph neural networks?Can Subgraph Explanations Be Weaponized to Steal Graph Neural Networks?
The authors propose XSTEAL: stealing graph classification GNNs under strict black-box conditions where only discrete labels and binary explanation masks are returned, achieving 92.9% fidelity on Tox21 with a GCN victim model (Table 1).
Strict black-box model extraction: the attacker has only query access, and the victim API returns only discrete class labels and binary explanation masks, with no probability scores, logits, confidence, gradients, or internal parameters; the attacker holds a public shadow dataset, and the goal is to train a surrogate model that replicates the victim model's decision behavior.
- GMLaaS platforms include explanation interfaces to meet regulatory transparency requirements, and the authors argue this exposes a new attack surface: whether explanations can be used to steal the graph classification GNN being explained itself.
- The authors propose XSTEAL, recasting model extraction as boundary pair search: using Monte Carlo sampling to estimate edge sensitivity from discrete labels (with a Hoeffding concentration bound), restricting candidate edges to the explanation subgraph and its one-hop neighborhood to reduce query volume, and then training a surrogate model on the found boundary pairs.
- Evaluated on 8 graph classification datasets, 3 victim architectures (GCN, GAT, GraphSAGE), and 2 explainers. With a GCN victim, Boundary or Hybrid achieves the highest fidelity on every dataset-explainer combination, e.g., 92.9% on Tox21 versus 60.7% for Shadow-Only; fidelity is noticeably lower on multi-class datasets (MNIST at most 55.1%).
- The authors note that the baselines can only be adapted from methods of different threat models, because no prior work operates under the same constraints (Appendix B). The experiments cover only graph classification, 3 architectures, 2 explainers, and structural perturbations; fidelity drops substantially on multi-class tasks, which the authors attribute to the fragmentation effect of the class-agnostic estimator.
- Evaluated models
- GCNGATGraphSAGE
- Benchmarks
- AIDSLetter-lowMNISTMUTAGPTC_FMSynthieNCI1Tox21_AhR
- Metrics
- FidelityAccuracy
The researchers propose a model extraction attack that exploits the interpretability interface of graph machine learning as a service (GMLaaS) platforms; the authors state that this is the first such attack designed for graph classification under the strict black-box constraint where the attacker can observe only discrete class labels and binary explanation masks (no probability scores, gradients, or confidence). The method uses model explanation outputs to guide Monte Carlo edge sensitivity estimation to approximate the decision boundary, the estimation accuracy has a Hoeffding concentration guarantee, and it uses explanation subgraphs to efficiently narrow the boundary search space. Extensive experiments on benchmark graph datasets across multiple domains show that the method outperforms comparable baselines. The authors point out that such interpretability interfaces constitute an exploitable attack surface, and that the findings can inform defense mechanisms and policy frameworks mandating interpretable AI; the code is open-sourced at https://github.com/LabRAI/XSTEAL/。
Paper analysis
What problem does this paper attempt to solve?
Author's study: whether the explanation interface required by regulation can be used to steal graph classification GNNs under strict black-box conditions.
Core question: Can the subgraph explanations that GMLaaS platforms provide for compliance be weaponized to steal graph classification GNNs under strict black-box conditions? The authors claim this is the first model extraction attack against graph classification under this constraint.
- Setting and motivation: GMLaaS provides graph model services via API (such as fraud detection and recommender systems), and regulations such as the EU AI Act push platforms to include explanation interfaces. The authors argue that this transparency is in tension with model security and is an open challenge for MLaaS.
- Three shortcomings of existing methods (per the paper): First, existing GNN extraction constructs queries around high-confidence samples and does not formalize what data is most effective for extraction; second, boundary search techniques from continuous domains cannot transfer to discrete graph space (there is no unique "midpoint" between two graphs); third, all existing GNN extraction methods require probability scores, continuous importance vectors, or gradient signals, which real APIs do not provide.
- Core observation: The authors conduct controlled experiments on five binary classification datasets and find that surrogate models trained only on boundary pairs consistently achieve higher fidelity than those trained on non-boundary or random samples (Figure 3, Table 3), and on this basis reformulate the extraction problem as boundary pair search.
- Proposed in the paper: The XSTEAL framework—using Monte Carlo sampling to estimate edge sensitivity from discrete labels, using explanation subgraphs to reduce candidate edges from O(|V|²) to O(|Vsub|²), and training the surrogate model on boundary pairs.
- Threat model:
- Goal: Train a surrogate model g that replicates the decision behavior of the victim model f (measured by fidelity).
- Knowledge: Strict black-box—can only observe discrete prediction labels and binary explanation masks, with no probabilities, logits, confidence, gradients, or internal parameters.
- Capability: Query access to the victim API (budget Q), holding a public shadow dataset as the query pool.
- Victim system: Graph classification GNNs on GMLaaS (GCN, GAT, GraphSAGE), with GNNExplainer or PGExplainer explanation interfaces.
What related research exists?
Related work is divided into three groups: model extraction attacks, explanation-guided attacks, and defenses; the authors state that no prior work operates under the same constraints.
Model extraction attacks
- Tramèr et al. (2016) proposed extraction attacks on simple models whose equations are solvable, and later work extended this to deep networks (Papernot et al. 2017; Milli et al. 2019).
- Biton Dor and Mirsky (2024) empirically showed that samples near the decision boundary maximize extraction efficiency, but this targets non-graph data and requires probability outputs.
- Extraction targeting GNNs (Shen et al. 2021; Wu et al. 2021; Zhuang et al. 2024) targets node classification and exploits shared graph topology and node embeddings; the authors note that these methods cannot transfer to graph classification, where each query is an independent graph.
Explanation-guided attacks
- GNNExplainer (Ying et al. 2019), PGExplainer (Luo et al. 2020), and SubgraphX (Yuan et al. 2021) are the explanation methods used in the paper, identifying the substructures most influential to the prediction.
- Autolycus (Oksuz et al. 2024), MEGEX (Miura et al. 2024), and EGSteal (Ma et al. 2025) use explanations to assist model extraction; the authors note that they either require white-box access to the explanation internals or assume continuous probability outputs.
Defenses
- The authors discuss input validity/out-of-distribution filtering as a natural mitigation: rejecting queries whose structure deviates from the data manifold; and note that its effect on the two stages of the attack is uneven—Phase 1, which only deletes edges, does not introduce invalid substructures, whereas Phase 2's flip search may add edges and produce off-manifold graphs that are easier to detect.
Baselines and benchmarks: the paper's comparison baselines are Shadow-Only (random shadow samples), Non-boundary (internal samples), EGSteal-BB (adapting EGSteal's style-invariance enhancement to the discrete mask setting, which the authors state strips away its core alignment mechanism because it requires continuous importance vectors), and a budget-matched No-Exp control; evaluation is conducted on 8 graph classification datasets.
Positioning: the authors state that this paper is the first model extraction attack targeting GNN graph classification under the strict black-box constraint where both predictions and explanations are discrete outputs (Table 2 compares the task, victim output granularity, and explanation access level of each method); the difference from hard-label black-box evasion attacks (Mu et al. 2021) is that the latter only flips the label of a single graph, whereas this paper aims to reconstruct the entire decision boundary.
How does the paper address this problem?
XSTEAL reformulates extraction as boundary pair search: MC estimates edge sensitivity, explanations reduce candidates, and a two-stage process generates boundary pairs to train the surrogate model.
Overall approach: formulate black-box model extraction as a boundary pair search problem—find as many similar graph pairs (G, G′) as possible such that f(G) ≠ f(G′) and the edit distance does not exceed δ, then train a surrogate model on these pairs. XSTEAL uses three components to address three challenges: discrete space has no midpoint (use sensitivity-guided discrete search), no gradients available (use Monte Carlo estimation), too many candidate edges (use explanation subgraphs to reduce).
Problem formulation
- The victim model f: G → [C] returns only discrete labels; the explainer h returns a discrete explanation subgraph Gsub = (Vsub, Esub), and the attacker cannot obtain h's gradients or importance scores.
- Goal: M(Q, f, h, δ) = argmaxM |Ḡ|, where Ḡ is the set of boundary pairs satisfying f(G) ≠ f(G′) and dis(G, G′) ≤ δ, with dis defined as the number of differing entries in the adjacency matrix; the surrogate model maximizes agreement with the victim model on these pairs.
- The paper considers only structural perturbations (edge flips), states that feature perturbations can be added as needed, and cites Lemma C.2: the queried boundary pairs force all surviving hypotheses to place the decision boundary within the O(δ) neighborhood of that pair.
Discrete edge sensitivity estimation (Section 3.1)
- For each candidate edge e, under random perturbations, compare whether the prediction deviates from the original label when "flipping e" versus "not flipping e", obtaining binary observations with values {−1, 0, +1}, and use the empirical mean as the sensitivity estimate ĝe.
- The formula is class-agnostic: in the multi-class case it rewards any crossing of the boundary without specifying a target class.
- Theorem 3.1 gives a Hoeffding concentration bound: the estimation error decays as O(√(log(2/s)/ne)); the authors note this is a pointwise guarantee for a single estimate, not a convergence result for the entire search, and that the search only uses the estimates for ranking, with every boundary pair verified by the victim model.
Boundary search (Section 3.2)
- In each round, flip the k positive-sensitivity edges with the highest estimated sensitivity, iterating until the prediction changes and the edit distance does not exceed δ, and record the boundary pair.
- Four exit conditions: success, edit budget exhausted, no positive-sensitivity candidates (stagnation), reaching the iteration limit Tmax = 10; the latter two abandon the graph.
Explanation-guided query reduction (Section 3.3)
- The candidate edge set includes only: edges within the explanation subgraph, edges from explanation nodes to one-hop neighbors, high-impact edges from the previous round (carry-over), and random exploration edges.
- Victim queries per round drop from O(|V|²·ne) to O(|C|·ne); the paper gives an example: for an 18-node graph with |Vsub| = 5, candidates drop from 153 to 40 (a 3.8× reduction).
Two-phase pipeline and surrogate model training (Section 3.4)
- Phase 1 cheaply tests all single-edge deletions (O(|E|) queries) and records any boundary pair found; Phase 2 runs the full explanation-guided MC search on the remaining graphs only when Phase 1 output is insufficient.
- Default hyperparameters (Appendix E.5): Tmax = 10, δmax = 20, k = 3, ne = 5, pflip = 0.05, |Scarry| = 5, |Srand| = 10.
- The surrogate model uses the same architecture family as the victim model with fixed hyperparameters (hidden dimension 64, 3 layers, 500 epochs) to isolate the effect of training data quality; the flipped graphs in boundary pairs are synthetic samples, and both the original and flipped graphs are added to the training set with victim labels.
What experiments did the paper conduct?
8 datasets × 3 victim architectures × 2 explainers; on GCN, Boundary/Hybrid has the highest fidelity in every combination, and multi-class tasks are markedly lower.
Experimental Setup
- Victim models: GCN, GAT, GraphSAGE, all with 3 layers of message passing + global mean pooling, with hidden dimension {64,128} and epochs grid-searched per dataset (Appendix Table 7).
- Datasets: 8 graph classification benchmarks—molecular (AIDS, MUTAG, NCI1, PTC_FM, Tox21_AhR), vision (MNIST, Letter-low), synthetic (Synthie); 188 to 70,000 graphs, 5 binary classification and 3 multi-class classification (up to 15 classes) (Table 6).
- Explainers: GNNExplainer (100 optimization steps, node mask) and PGExplainer (trained for 100 epochs, edge mask binarized by median threshold).
- Baselines: Shadow-Only, Non-boundary, EGSteal-BB (a discretized adaptation of EGSteal, retaining only the style-invariance enhancement), plus a budget-matched No-Exp control.
- Metrics: fidelity (agreement rate between the surrogate model and the victim model on a class-balanced test set) as the primary metric, accuracy (against true labels) as the secondary metric.
- Data split and budget: 60% victim training / 20% shadow / 20% test; the main results use a query budget of 70% of the shadow set, and each method is matched to the same training set size (Table 8, e.g., MUTAG ntrain = 26, Synthie/GCN ntrain = 16).
Main Results
Fidelity (%) for the GCN victim model under matched training set size (from Table 1; for each dataset the higher value under the two explainers is taken; full values are in the original table):
Swipe horizontally to read the table
Dataset Shadow-Only Non-boundary EGSteal-BB Boundary (XSTEAL) Hybrid (XSTEAL) AIDS 86.8 71.3 68.4 91.1 88.8 MUTAG 81.8 84.8 90.9 100.0 97.0 NCI1 94.3 91.4 90.9 96.0 92.6 PTC_FM 77.4 75.0 59.5 85.7 90.5 Tox21 60.7 54.8 57.1 92.9 91.7 Letter-low (15 classes) 68.6 44.4 68.9 69.9 72.3 MNIST (10 classes) 53.4 48.3 53.8 55.1 55.1 Synthie (4 classes) 39.7 47.4 44.9 51.3 46.8 - The authors state that Boundary or Hybrid achieves the highest fidelity on every dataset-explainer combination, with the largest gap on Tox21 (Boundary 92.9% vs. Shadow-Only 60.7%, a difference of 32.2 percentage points).
- Exceptions: on Synthie, Non-boundary (47.4%) is higher than Hybrid (46.8%) and Shadow-Only (39.7%); under Letter-low/GNNExp, EGSteal-BB (68.9%) is higher than Boundary (63.0%).
- Under GCN/GNNExplainer, EGSteal-BB is lower than Shadow-Only on 5 of the 8 datasets (e.g., PTC_FM 59.5% vs. 77.4%); the authors explain that its core alignment mechanism relies on continuous importance vectors, and after discretization only the style-invariance enhancement remains, while imprecise masks cause the enhanced samples to introduce label noise (Appendix F.6 reports that the label fidelity of its generated data is 93.3%–100%, whereas the training data of other methods all have 100% fidelity).
Cross-architecture and Cross-explainer Generalization (RQ2)
- GAT victim (Table 9): Boundary reaches 97.6% on Tox21/GNNExp and 95.5% on MUTAG; exceptions: on Letter-low/GNNExp, Boundary (73.6%) is lower than Shadow-Only (78.3%) and EGSteal-BB (82.9%), and on MNIST, Boundary (28.9%) is lower than Non-boundary (36.1%).
- GraphSAGE victim (Table 10): Boundary reaches 94.9% on Tox21 and 93.3% on PTC_FM/PGExp; exceptions: on MUTAG, Shadow-Only already reaches 100.0%, and on Synthie, Boundary (19.7%) is lower than Shadow-Only (26.3%).
- The authors state that performance is consistent under the two explainers with no systematic advantage, and attribute this to the method using explanations only as a heuristic for candidate reduction, with every boundary pair verified by the victim model.
Component Ablation (RQ3)
- Stage ablation (Table 13, GCN+GNNExp): Phase 2 alone outperforms Phase 1 alone, e.g., on Tox21_AhR, Boundary's P2 is 96.4% vs. P1's 71.4%; Figure 6a reports that averaged across datasets, Phase 2 is 7.5 percentage points higher than Phase 1 (92.7% vs. 85.2%).
- No-Exp control (Table 12, GCN+GNNExp, single seed): under matched ntrain, explanation guidance is higher by +10.7, +0.3, and +10.7 percentage points on PTC_FM, NCI1, and Tox21_AhR, respectively; the authors explain that NCI1 is nearly tied because its Phase 1 yield is the highest and the Phase 2 contribution is small.
- No-MC ablation (Table 11, GCN, 70% budget): after removing Monte Carlo sampling (ne = 1), AIDS fidelity drops from 91.1% to 77.6%, NCI1 drops from 96.0% to 94.7%, and Tox21 is unchanged (89.3%); Figure 6b reports a cross-dataset average of 87.2% vs. 92.1%. The authors state that in most cases No-MC's search cannot find boundary pairs within the iteration limit.
Other Ablations and Analyses
- Motivation experiment (Table 3): with equal training set sizes on five binary classification datasets, the Boundary or Hybrid strategy has higher fidelity than Non-boundary and Shadow.
- Boundary detection rate (Table 4): the single-edge flip boundary rate ranges from 4.2% on Tox21_AhR to 45.7% on PTC_FM.
- Flip vs. deletion only (Table 5): allowing edge addition increases boundary yield by 1.28×–3.83×, with the largest gap on Tox21_AhR.
- Multi-class performance: MNIST (10 classes) reaches at most 55.1% and Synthie (4 classes) at most 51.3%; the authors state these are above the random agreement rates (10%, 25%), and attribute the gap between binary and multi-class to the fragmentation effect of the class-agnostic estimator spreading the budget across C(2) pairwise boundaries.
- Appendix B deployment case: on Tox21_AhR, within a 70% shadow budget the surrogate model reaches 92.9% fidelity, compared with 60.7% for unguided shadow sampling.
What are some points that can be further explored?
The authors note that the baselines can only be adapted from other threat models, and list three future directions; the experiments cover only graph classification and structural perturbations.
Limitations noted by the authors and future directions
- Baseline limitation (Appendix B): The authors acknowledge that no existing method operates under the same constraints, so the baselines "are necessarily adapted from methods designed for different threat models, rather than direct competitors."
- Future direction one (Appendix B): Design native strict black-box baselines for graph classification without adapting white-box methods.
- Future direction two (Appendix B): Extend to counterfactual explanations and other explanation families.
- Future direction three (Appendix B): Joint structural-feature perturbations, generalizing the attack beyond edge flips only.
- Multi-class extension (Section 4.2): The authors consider proportionally increasing the query budget with the number of class boundaries a promising future direction.
- Defense discussion (Appendix A): The authors discuss input validity/out-of-distribution filtering as a natural mitigation, noting that it comes at the cost of coverage (legitimate rare inputs may also be rejected) and that it suppresses Phase 2 more than Phase 1; the paper does not experimentally evaluate this defense.
Scope of experiments
- The victim models tested are 3 architectures in total: GCN, GAT, and GraphSAGE, all 3-layer, with hyperparameters grid-searched per dataset (Appendix E.3).
- Evaluation covers 8 graph classification datasets (5 binary, 3 multi-class) and 2 explainers (GNNExplainer, PGExplainer); all tasks are graph classification.
- The attack uses only structural perturbations (edge flips); the paper states that feature perturbations "can be added as needed" but does not experiment with them.
- The main results use a query budget of 70% of the shadow set, with each method matched to the training set size (Table 8); the No-Exp control experiment uses a single seed (Table 12 notes one seed); the paper does not report the number of repetitions for the main results (Table 1 gives ± standard deviation but does not state the number of seeds).
- The paper does not evaluate attack performance under any defense, nor does it report measured total query counts for the attack (Appendix H gives an upper-bound analysis of query complexity).
Summarize the main content of the paper
XSTEAL: stealing graph classification GNNs using only discrete labels and binary explanation masks, with 92.9% fidelity on Tox21 versus 60.7% for the baseline.
A model extraction attack paper addressing the question of whether the explanation interfaces that GMLaaS platforms attach for compliance can be used to steal models.
- Problem: existing GNN extraction attacks all require probability scores or continuous importance vectors; the authors study whether graph classification GNNs can be extracted under strict black-box conditions where only discrete labels and binary explanation masks are returned.
- Method: XSTEAL formulates extraction as boundary pair search—using Monte Carlo sampling to estimate edge sensitivity from discrete labels (with a Hoeffding concentration bound), restricting candidate edges to the explanation subgraph and its one-hop neighborhood, and a two-stage process (cheap single-edge deletion + explanation-guided MC search) to generate boundary pairs for training the surrogate model.
- Main results: across 8 datasets, 3 victim architectures, and 2 explainers, the authors state that Boundary or Hybrid has the highest fidelity on every dataset-explainer combination for the GCN victim; 92.9% vs. Shadow-Only's 60.7% on Tox21, and 100.0% on MUTAG.
- Exceptions and negative results: fidelity drops substantially on multi-class datasets (MNIST at most 55.1%, Synthie at most 51.3%), which the authors attribute to the fragmentation effect of the class-agnostic estimator; under GAT and GraphSAGE victims, Boundary is lower than the baselines on some individual combinations.
- Ablations: explanation guidance is higher than random candidates by +0.3 to +10.7 percentage points on three datasets; removing MC sampling lowers average fidelity from 92.1% to 87.2%.
- Authors' conclusion: the authors state that this shows white-box graph explanations also constitute an exploitable attack surface under strict black-box constraints, that regulatory transparency requirements are in tension with model security, and that defenses that do not expose decision boundary information are needed; the authors acknowledge that the baselines can only be adapted from other threat models, and plan to open-source the code.
Related papers
- Label-Only Membership Inference AttacksAttacksarXiv