When a graph neural network (a model that predicts a node's label by repeatedly mixing its features with those of its neighbors) scores well on Cora or an Open Graph Benchmark dataset, we assume the score reflects generalization. Test information can reach the model in two ways, though. It can enter through the graph's edges, for example when an edge links a test node to a near-copy of itself in the training set. It can also enter through the stored weights, when noisy duplicates of test nodes, with their labels, sit in the training set. This proposal asks whether we can detect such leakage, and tell which of the two routes it took, by watching how each test prediction survives as we delete edges and weights separately. The intuition is simple. A prediction that rests on a leak depends on a few specific edges or a few specific weights. It should therefore break early, and along one axis, when that axis is pruned. A prediction that rests on genuine generalization should degrade gradually and along both axes.
This matters because the usual contamination detectors compare loss or confidence on suspected members against non-members, and these detectors can be blinded. On The Fragility of Benchmark Contamination Detection in Reasoning Models shows that one epoch of clean reinforcement learning pushes LiRA, a strong membership-inference detector, from 89.1% AUROC toward chance on contaminated language models, because the loss gap between seen and unseen questions closes. A structural signal such as "how much of the network or graph must I remove before this answer flips?" asks a different question from "how low is the loss?" It may survive training that equalizes losses. Graph models are the right place to test this first. They are small enough to contaminate under control and prune exhaustively. They also have two separate substrates, edges and weights, that joint graph-weight sparsification already knows how to mask.
Core Claim
For each test node we will compute a two-dimensional pruning-response profile. The first coordinate is the edge sparsity at which its prediction flips while weights stay dense. The second is the weight sparsity at which it flips while the graph stays intact. We also record the flip point along a joint path. We claim three things. First, contaminated test nodes flip at markedly lower sparsity than clean test nodes on the axis that carries the leak. Second, this separation persists after "cloaking" training that erases the loss gap exploited by loss-based detectors. Third, the axis on which a node is fragile identifies whether the leak lives in the topology or in the parameters.
The closest existing work differs in what it measures and where. Memorization in Graph Neural Networks measures memorization of training nodes by leave-one-out retraining and reduces it by feature-similarity rewiring. It never prunes weights and never considers leaked test data. We reuse its heterophilic datasets and its finding that GNNs lean on topology even when that topology is uninformative. RADAR separates recall from reasoning in language models using circuit features, reaching 93.0% accuracy. It motivates the premise that memorized answers sit in concentrated internal pathways, but it observes those pathways rather than removing them and has no notion of input-graph structure. Joint Edge-Model Sparse Learning is Provably Efficient for Graph Neural Networks proves, for two-layer GNNs, that magnitude pruning removes neurons that fit noise and that edge sampling removes noisy neighbors. That result gives our hypothesis its mechanism, since leaked labels behave like idiosyncratic signal carried by a few units or edges. It also constrains our claim, because the guarantee covers only shallow models and synthetic noise.
Research Program
The program builds a controlled contamination testbed for node classification and then the profile detector on top of it.
We will inject three kinds of leakage, following the granularity taxonomy in Benchmark Data Contamination of Large Language Models: A Survey. Label-level parametric leakage adds perturbed copies of a chosen subset of test nodes, with their true labels, to the training set. The copies get feature dropout and noise, the graph analogue of paraphrase. Structural leakage adds edges from chosen test nodes to training nodes of the same class. We also run a mixed condition. Following the duplication analysis in Data Contamination: From Memorization to Exploitation, we vary the number of copies and the injection time, early versus late in training. We record exploitation, meaning the accuracy gap between contaminated and matched clean test nodes, so that we only try to detect leaks that actually inflate scores.
To build the profile, we train the model and then draw pruning orders in two ways. One uses magnitude and learned masks from Unified GNN Sparsification in A Unified Lottery Ticket Hypothesis for Graph Neural Networks, fitted on training labels only. The other uses random orders averaged over many draws. Each test node $v$ gets flip points $s_E(v)$ and $s_W(v)$, the smallest edge or weight sparsity at which its predicted class changes, plus $s_J(v)$ along the joint path. The detector score is the node's position relative to the empirical distribution of these points over all test nodes. It is therefore reference-free and needs no clean shadow model. As a supervised variant, we train a small classifier on the profile using one contaminated dataset and test it on others.
Next we test whether the signal survives cloaking. After contaminated training, we continue training on clean data under label smoothing and temperature calibration, the graph stand-in for the variance contraction described by Tang et al. We then check whether loss-based membership inference collapses while the profile stays informative. If cloaking does not collapse loss detectors on GNNs, we will report that; it would itself be informative about how far the language-model result transfers.
A secondary audit addresses the fact that the standard transductive setting already exposes test features and edges during training. This is data-level exposure in the survey's taxonomy. We will measure whether sparse tickets from Unified GNN Sparsification preferentially keep edges incident to test nodes, which would mean reported ticket accuracies partly reflect that exposure.
Baselines
The naive reference point is the dense model's own confidence on each test node, used directly as a contamination score. If the profile cannot beat raw confidence, the pruning machinery adds nothing.
The strongest existing competitor is loss-based membership inference, specifically LiRA and the plain loss detector evaluated by On The Fragility of Benchmark Contamination Detection in Reasoning Models. That paper reports 89.1% AUROC for LiRA on SFT-contaminated reasoning models, falling toward about 50% after clean GRPO. There is no reported result on Lacuna for loss-based detection of injected test-set leakage in GNNs. For graphs, the file reports only that rewiring lowers membership-inference AUC by over 20% on heterophilic graphs, in Memorization in Graph Neural Networks, with no absolute value. We will therefore establish this number ourselves. LiRA will get the same trained models and a shadow-model budget matched in GPU-hours to the full profile computation, so neither method wins by spending more. Beating it means higher AUROC after cloaking at equal compute, and no worse than 3 points below it before cloaking.
The second strong competitor is a leave-one-out memorization score in the style of NCMemo, applied to test nodes by retraining with and without each suspected copy. It is closest to ground truth but costly. We will run it on the small citation graphs as an upper-bound reference and compare cost per node.
Two ablations isolate the key ingredient, which is using two separate axes. Weight-only and edge-only profiles test whether the joint profile adds detection power. The attribution test asks whether the fragile axis predicts leak type above chance in the mixed condition. A random-order versus mask-order comparison tests whether the learned sparsification masks matter or whether any deletion suffices.
Why not just…?
Why not just deduplicate features between test and training nodes? Nearest-neighbor search over node features will catch exact and lightly perturbed copies, and for those it will likely match or beat our method at a tiny fraction of the cost. We will report it as a baseline and expect it to win at low perturbation. It cannot see structural leakage, where no feature copy exists and the leak is an edge. It also degrades as copies are perturbed, which is the graph analogue of paraphrase evading n-gram filters noted by RADAR. The experiment sweeps perturbation strength to find where deduplication stops working. The claim is limited to leaks beyond that point.
Why not just use loss-based membership inference, which may work fine on GNNs? This is the real threat. Small GNNs trained without cloaking may show large, easily detected loss gaps. If LiRA matches the profile both before and after cloaking, the detection claim fails. What would remain is attribution of the leak route, which loss cannot provide, and we would scope the paper to that. The cloaking experiment decides it.
Why not just prune weights, the standard lottery-ticket probe? The two-layer theory in Joint Edge-Model Sparse Learning is Provably Efficient for Graph Neural Networks says edges and weights carry different noise. In our structural-leak condition, the leak lives entirely in the adjacency matrix, so weight pruning alone should be blind to it. The weight-only ablation tests this directly. If weight-only matches joint across all three conditions, we drop the joint claim.
Proposed Experiments
Datasets are Cora, Citeseer, and Pubmed as homophilic citation graphs, an OGB node-classification graph for scale, Squirrel and Chameleon for heterophily, and syn-cora across homophily levels. The heterophily axis matters because Memorization in Graph Neural Networks finds memorization near 0% on Cora and Pubmed but above 50% on heterophilic graphs. We expect leaks to be easier to exploit, and possibly harder to separate from ordinary memorization, there. Models are GCN and GAT, since A Unified Lottery Ticket Hypothesis for Graph Neural Networks finds attention models far more tolerant of edge pruning. That tolerance could let GAT reroute around a pruned leak edge and weaken the edge signal. Metrics are detection AUROC and true-positive rate at 1% false-positive rate, attribution accuracy on the mixed condition, exploitation, and compute per test node.
Three checks are decisive. First, in the structural-leak condition, contaminated nodes must show $s_E$ well below clean nodes while $s_W$ does not separate them; the parametric condition should show the reverse. Second, after cloaking, loss-detector AUROC must fall substantially while profile AUROC stays within a few points of its pre-cloaking value. Third, the signal should grow with duplication count and early injection, as the exploitation results of Data Contamination: From Memorization to Exploitation predict. The first check validates attribution. The second validates the robustness claim, and failing it reduces the contribution to attribution alone. Failing the third would suggest the profile tracks something other than leakage, and we would treat that as a negative result.
References
- On The Fragility of Benchmark Contamination Detection in Reasoning Models
- Memorization in Graph Neural Networks
- RADAR: Mechanistic Pathways for Detecting Data Contamination in LLM Evaluation
- Joint Edge-Model Sparse Learning is Provably Efficient for Graph Neural Networks
- Benchmark Data Contamination of Large Language Models: A Survey
- Data Contamination: From Memorization to Exploitation
- A Unified Lottery Ticket Hypothesis for Graph Neural Networks