Black-Box Watermarks for Stolen Architectures That Survive Retraining From Scratch

A network architecture found by expensive automated search is valuable on its own, separately from any trained weights. It is also easy to steal. The published graph can be copied, re-initialized, and trained from scratch on the thief's own data. That process removes every weight-level and data-level watermark. The one method that verifies ownership of an architecture itself, A Novel Watermarking Framework for Ownership Verification of DNN Architectures, fixes a secret chain of operations inside the search space. It then reads that chain back by timing the victim's math-library calls through a cache side channel, which requires running code on the same machine as the suspect model. It cannot audit a model that sits behind an ordinary HTTP prediction endpoint, which is how stolen models are usually monetized.

We propose to watermark architectures through behavior that comes from the structure itself rather than from learned weights. Strides, dilations, and pooling offsets decide which input shifts and which spatial frequencies a convolutional network can represent faithfully and which ones it aliases, meaning it folds them onto other frequencies. That pattern is largely fixed before training. Our core claim is that a search procedure can place a secret, key-derived arrangement of these sampling operations into an architecture in three ways at once. First, any model with that topology, trained from any seed on any data, shows a measurable sensitivity profile over a secret family of probe inputs. Second, independently designed architectures of similar accuracy do not show that profile. Third, the arrangement is load-bearing, so editing it out costs accuracy. Verification then needs only the outputs of a remote prediction service and a hypothesis test.

Core Claim and Hypotheses

The proposal rests on one empirical hypothesis that has not been tested and could be false. We call it H1: for convolutional architectures, the response profile to structured probes is determined more by topology than by weights or training data. The probes are sub-stride translations and periodic gratings at chosen frequencies, and the response is the change in output logits or labels. H1 predicts that the profile varies across architectures far more than it varies across seeds and datasets for a fixed architecture. If H1 holds for ordinary architectures, a skeptic can fairly argue that no embedding is needed and that architectures can simply be identified from their outputs. We treat that argument as the main threat and test it first (see Why not just…?).

The contribution beyond H1 is H2: searching with a signature objective produces architectures whose signature is (a) far more distinctive against a population of near-neighbor architectures than any naturally occurring profile, (b) stable across retraining, and (c) costly to remove, meaning that editing the carrier operations or adding low-pass pre-filters drops accuracy. Accuracy should stay close to unconstrained search.

Relation to Prior Work

The side-channel framework above supplies the threat model and the idea of a secret structural stamp. It also shows that stamps can be made load-bearing: removing a stamped operation dropped CIFAR-10 accuracy from 96.53% to 55.62%, while embedding cost only 96.53% to 96.16%. We keep the stamp idea but change two things. The stamp is optimized during search rather than hard-coded in advance, and it is read through the output space rather than through the cache.

You are caught stealing my winning lottery ticket! motivates the problem from the pruning side. It shows that a sparse mask is valuable IP that can be retrained from random weights, and it embeds QR codes into masks after the fact. Its black-box scheme, however, relies on a trigger set held in the weights. Our signature is meant to survive exactly the retraining that erases such a trigger set.

Black-box boundary methods constrain the design. ZeroMark estimates gradients at the decision boundary by Monte Carlo querying and reaches p-values between $10^{-45}$ and $10^{-67}$, but it verifies dataset backdoors and needs roughly 30 minutes per CIFAR-10 verification. The boundary-key method of Multi-bit, Black-box Watermarking is fast but lives in the weights. We borrow their statistical testing style but must keep the query budget well below ZeroMark's.

On the search side, DARTS supplies the continuous relaxation we modify, and Robust Neural Architecture Search shows that adding a perturbation-consistency term to the search objective is cheap (0.5 GPU days). Our term has the opposite goal: it rewards a specific, keyed inconsistency rather than invariance. NATS-Bench supplies the null population of architectures, and its documented skip-connect collapse is a failure mode our extra loss term could make worse.

Finally, Certified Neural Network Watermarks with Randomized Smoothing certifies weight watermarks only inside an $\ell_2$ ball of parameters. It explicitly excludes topological changes, which is the gap a structural signature addresses. We do not attempt a certificate here.

Research Program

Phase one measures H1 without any embedding. For NATS-Bench topologies and for DARTS-space cells, we train several seeds on CIFAR-10, CIFAR-100, and ImageNet-16-120. For each model we compute a probe profile: the expected change in output under each probe in a fixed family. The family contains translations by every sub-stride offset and gratings across a grid of orientations and frequencies. We measure how much of the profile's variance is explained by architecture identity versus seed and dataset. We also measure whether two architectures that differ by a single operation can be distinguished.

Phase two builds the watermark. A secret key $k$ selects a set of carrier edges and assigns them unusual sampling operations, such as non-power-of-two dilations or offset strides. These are chosen by a small analytic model that predicts the aliasing pattern each choice produces. Unlike the side-channel stamp, the carriers are soft: their mixing weights are searched along with everything else. The architecture parameters $\alpha$ minimize

$$ \mathcal{L}(\alpha) = \mathcal{L}_{\text{val}}(w^*, \alpha) \;-\; \lambda\, S_k(\alpha) \;+\; \mu\, \mathcal{L}_{\text{val}}(w^*, \alpha \setminus k), $$

where $w^*$ are weights trained under the usual bilevel scheme and $\lambda, \mu$ are weights on the two extra terms.

The first term is ordinary validation loss. The second term, $S_k$, is the separation between the model's response to the keyed probes and the mean response of a reference population of architectures. To reward stability rather than weight-specific quirks, $S_k$ is computed on supernet copies that are re-initialized and briefly retrained on disjoint data shards. The third term is a margin on the validation loss of the network with the carriers replaced by standard operations. Its purpose is to push the search toward cells whose accuracy depends on the carriers.

Phase three is verification. The defender sends the keyed probe set and a matched control set to the suspect prediction service. We use a paired test on the response difference. We calibrate the false-positive rate empirically against the full population of independently trained NATS-Bench and DARTS-space models rather than relying on a parametric null.

Baselines

The naive reference point is no architecture watermark at all. Here the defender tests whether a suspect's probe profile matches the victim architecture's profile more closely than chance, with no embedding. This is also the phase-one experiment. It is the honest floor: if naturally occurring profiles already identify architectures at a low false-positive rate, the search objective adds nothing. The comparison uses the same probe budget, the same retrained suspects, and the same null population. Beating it means a higher true-positive rate at a false-positive rate of $10^{-3}$ against near-neighbor architectures, specifically those one or two operations away. This is the regime where we expect natural profiles to fail.

The strongest existing structural method is the side-channel stamp of A Novel Watermarking Framework for Ownership Verification of DNN Architectures. It reports 100% survival under fine-tuning and pruning, with accuracy 96.53% to 96.16% on CIFAR-10 and 73.97% to 72.73% on ImageNet. It cannot run in our black-box setting, so we compare in two ways. First, on accuracy cost, against its reported numbers using the same CIFAR-10 training protocol. Second, we attach our probe test to its stamped architectures, which asks whether a hard-coded stamp is already visible from outside. We found no reported result on Lacuna for black-box verification of this method.

The strongest black-box method is a weight-level trigger watermark: the trigger-set scheme V3 of the lottery-ticket paper, which reports over 90% trigger accuracy, and the multi-bit boundary keys of Leroux et al. We will embed each in the same searched architecture with its authors' settings. We then evaluate each after the thief retrains from scratch. The file's summary of the lottery-ticket work records that parameter watermarks do not survive scratch retraining. We will reproduce this rather than assume it. Here beating the baseline simply means detection above chance where the baseline is at chance.

The key ablation is a random stamp with the same carriers. The keyed operations are fixed as in the side-channel method, and the rest of the cell is found by plain DARTS without $S_k$ or the removal-margin term. This isolates whether the gains come from the search objective or merely from having unusual sampling operations present. We will also ablate each extra term separately. All searched variants get equal search budgets, matched to the roughly 0.5 GPU days reported for RNAS, and the same training schedule. Accuracy is reported against unconstrained DARTS: 2.76% CIFAR-10 test error as reported, and our own rerun.

Why not just…?

Why not just identify the architecture from its outputs without embedding anything? This is the most serious alternative, and phase one tests it directly. If architectures are already distinguishable through black-box probes across seeds and datasets, the paper's contribution shrinks. It would become a measurement paper plus a calibrated test, and we would report it that way. We expect natural profiles to fail at two things: separating close neighbors, and giving a controlled false-positive rate against an owner-chosen secret. An unkeyed fingerprint also lets an honest independent designer who converged on a similar cell be falsely accused. The keyed search objective is meant to fix both problems. The near-neighbor test settles which case we are in.

Why not just use the side-channel stamp and give up on remote audits? Co-location is unavailable for most commercial theft. The cited paper's own limitation is that it requires cache access to BLAS calls. Our ablation also checks whether its stamps happen to be externally visible. If they are, the simpler story wins and our search objective should be judged only on the margin it adds.

Why not just watermark the training data or the weights? Dataset watermarks such as UBW and ZeroMark protect data, not topology. A thief who trains the copied architecture on their own data inherits nothing. Weight triggers are erased by scratch retraining. Our trigger baselines show this on identical suspects.

Why not just defeat the scheme by adding a blur before downsampling, or by randomly shifting inputs at the API? This is a real threat, not a rhetorical one. Anti-aliasing filters are known not to hurt accuracy much, so they could flatten the signature cheaply. We will run these adaptive attacks, including pre-filters, random-crop preprocessing at the endpoint, and inserted identity layers, and report accuracy against detection curves. The removal-margin term is our proposed answer: it places carriers in mid-frequency bands the task needs. Whether it succeeds is an empirical question. A cheap removal would be reported as a negative result that bounds what output-space architecture watermarks can do.

Decisive Checks

The first check is phase one's variance decomposition on NATS-Bench across three datasets. It decides whether embedding is needed at all. The second is the detection curve after scratch retraining on disjoint data: CIFAR-10 victims against suspects retrained on CIFAR-100 subsets or ImageNet-16-120, at a false-positive rate of $10^{-3}$ against the full null population. It must hold within a query budget of a few thousand calls, with wall-clock time reported next to ZeroMark's 30 minutes. The third is the adaptive-attack curve: accuracy retained by the thief against detection rate as they insert low-pass filters or swap carrier operations. Success means the thief must give up several points of accuracy, in the spirit of the 96.53% to 55.62% collapse of the side-channel stamp, to push detection below chance. The final check is the accuracy cost against unconstrained search on CIFAR-10 and ImageNet-16-120, which should be comparable to the side-channel method's reported degradation. We also check that distilling the victim into an unrelated architecture is not flagged, because the architecture was not stolen in that case.