TL;DR
Training a Graph Neural Network (GNN) for drug discovery or recommendation takes serious compute and data, making the final weights valuable intellectual property—yet traditional model watermarks are often brittle and easily scrubbed out by fine-tuning or pruning. InvGNN-WM solves this by weaving the watermark into the GNN's structural intuition: instead of memorizing arbitrary trigger patterns, the model is jointly trained to perceive a fundamental mathematical property of graphs on a set of private "carrier" inputs. This approach embeds a multi-bit signature deep into the shared representation, surviving model extraction and retraining while barely touching task accuracy.
What Problem Does This Paper Address?
Suppose you spend weeks training a GNN, and a competitor steals or distills your model behind a closed API. How do you prove it is yours? The standard playbook is trigger-based watermarking: during training, you feed the network bizarre, out-of-distribution (OOD) graphs and force it to output specific, arbitrary labels—like teaching a portrait painter to hide a tiny neon-pink flamingo in the corner of specific canvases.
The catch is that OOD triggers live on the fringes of what the network actually cares about. Because these memorized quirks aren't useful for the main task, standard post-processing—like pruning dead weights, fine-tuning on clean data, or knowledge distillation (training a fresh "student" model on the original's outputs)—tends to wash the watermark right out. Furthermore, claiming "my model got 90% of the watermark bits right" isn't enough for a rigorous audit unless that score is statistically calibrated against a false-positive threshold for unwatermarked models.
Methods
Instead of arbitrary triggers, InvGNN-WM anchors ownership to a genuine topological property: normalized algebraic connectivity ($\tilde{\lambda}_2$). Derived from the second-smallest eigenvalue of the graph Laplacian matrix, $\tilde{\lambda}_2$ is a classic mathematical invariant that measures how well-connected a graph is globally.
Here is how the protocol works:
- Stealthy Carrier Generation: Rather than inventing random graphs that look obviously synthetic, the owner takes real task graphs and rewires their edges while preserving node degrees. They filter these using structural (Weisfeiler–Lehman) and statistical (Kolmogorov–Smirnov) checks so the resulting private "carrier" graphs ($m = 128$ by default) blend in with normal data while remaining distinct from the training set.
- Joint Invariant Supervision: Alongside its normal classification loss, the GNN backbone is trained to predict $\tilde{\lambda}_2(G) \in [0, 1]$ on those private carriers. Thresholding each prediction at $0.5$ yields a 128-bit binary secret key.
- Two Black-Box Query Interfaces: To audit a suspect model via queries alone, the authors design two deployment modes:
- Auxiliary Scalar Endpoint: An extra, spectrally normalized readout head directly outputs the scalar $\tilde{\lambda}_2$ estimate.
- Task-Logit Decoder: A stealthier setup with no extra head. The owner chooses a fixed, secret linear projection of the model's ordinary classification logits before training and differentiates the watermark loss right through it. During an audit, the owner simply queries normal task logits and decodes the bits locally.
Datasets
The authors evaluate InvGNN-WM across standard node- and graph-classification benchmarks—no new datasets are introduced, though carrier graphs are privately synthesized from existing ones:
- Node Classification: Cora, PubMed, and Amazon-Photo (tested with GCN, GraphSAGE, and SGC backbones).
- Graph Classification: PROTEINS and NCI1 (with GIN and GraphSAGE), plus the larger-scale molecular dataset OGBG-MOLHIV (tested with GIN and a global-attention GPS graph transformer).
Key Insights and Ideas
- The watermark lives in the backbone, not just the readout head. You might suspect the GNN just uses its final linear layer to cheat the invariant task. To test this, the authors froze the trained backbone and attached a brand-new readout head trained on disjoint graphs. As shown below, full joint training embeds genuine spectral awareness into the shared weights ($R^2 = 0.61$, recovering 79.2% of owner bits with a fresh head), whereas training a separate encoder or blocking gradients leaves the backbone nearly blind to the invariant.
- How you expose the model matters as much as how you train it. An auxiliary audit head is clean in theory, but if an attacker literally deletes that endpoint or extracts the model using only task labels/logits, the audit is dead in the water. Routing the watermark through ordinary task logits removes this attack surface entirely—there is no extra head to chop off.
- Statistical matching keeps carriers undercover. Without degree, clustering, and spectral filtering during rewiring, a simple classifier can spot watermark carrier graphs up to 69.8% of the time. With the full rewiring protocol, distinguishability drops to 51.3%—essentially a coin flip.
- Theoretical teeth (with honest caveats). The authors prove conditional guarantees bounding task-loss degradation and false-positive rates, and show that exact, sparse parameter-modification watermark removal is NP-complete for a restricted class of monotone separable decoders.
Key Results
Using 128 carrier queries and a pre-calibrated threshold of $\tau = 94$ matching bits (targeting a false-positive rate of $\alpha = 10^{-6}$, with zero false positives observed across $10^7$ null trials):
- High Fidelity, Minimal Tax: Clean watermark accuracy hits 98.7–99.2% on representative node benchmarks and 97.7% on NCI1–GIN (with PROTEINS–GIN lower at 89.8%), keeping task accuracy right alongside unwatermarked baselines.
- Beating Supervised Baselines: In matched 128-query comparisons against an adapted state-of-the-art method (PreGIP-adapted) on NCI1–GIN, the task-logit variant achieves a 0.97 True Positive Rate (TPR) after 100 epochs of fine-tuning and 0.82 after knowledge distillation, outperforming PreGIP-adapted (0.83 and 0.67, respectively).
- Surviving Aggressive Attacks: On PROTEINS–GIN, 300-epoch clean fine-tuning and output-only knowledge distillation defeat the auxiliary-head variant, but the task-logit variant holds strong with mean match counts of 103 and 98 (comfortably clearing the $\tau = 94$ bar).
- Scalability: On OGBG-MOLHIV with a GPS transformer, task ROC-AUC dips by just 0.4 percentage points (77.4% to 77.0%), achieving a 0.98 TPR with an audit latency of 118 ms for all 128 queries.
Limitations and Future Work
The authors are refreshingly transparent about what their method doesn't do:
- No Hard-Label Verification: Both interfaces require continuous outputs (either the scalar score or raw task logits). If a suspect API only returns discrete top-1 predicted class labels, neither deployment is validated to work.
- Task-Logit Scope: The stealthier task-logit decoder was only evaluated on graph classification; extending and testing it on node classification remains open.
- Theory vs. Practice Gaps: The NP-completeness proof applies to a restricted linear/monotone setup and does not certify end-to-end nonlinear GNNs or rule out approximate evasion (just nudging the match count below 94). Likewise, local smoothness diagnostics don't guarantee uniform behavior across all possible model edits.
- Untested Threat Models: Multi-model collusion attacks, exact carrier-graph recovery, unlimited retraining budgets, and adaptive pseudo-carrier optimization against the task-logit interface remain open territory for future work.
Summary updated