Auditing Training-Data Claims by Re-Checking the Steps Where the Weights Moved

Model developers increasingly claim things about their training data. They say that a model saw a stated mix of sources, that it excluded opted-out documents, or that it never trained on a copyrighted collection. Auditors today have two poor options for checking such claims. They can infer the data after the fact from the released artifacts, which is informative but noisy and easy to evade. Or they can demand a cryptographic proof that the entire training run was computed correctly, which is sound but far too expensive for anything larger than a toy.

This note proposes a middle route. The developer commits cryptographically to the ordered training data stream and to periodic weight snapshots. The auditor then re-runs a small random sample of training segments and checks that each one reproduces the committed weights. The sample is not uniform. It is drawn in proportion to how far the weights moved during each segment. The central question is adversarial. A dishonest trainer who wants to slip hidden data into the run will put it where it has the most effect and the least chance of being checked. We ask whether weighting the audit by weight movement defeats that strategy, and for which architectures the guarantee holds.

Core Claim

Consider a training run of $T$ steps, grouped into segments $t = 1, \dots, n$, with a committed weight snapshot $\theta_t$ at the end of each segment. Let $d_t = \|\theta_t - \theta_{t-1}\|$ be how far the weights moved in segment $t$, and let $D = \sum_t d_t$ be the total path length. Every $d_t$ is public once the snapshots are committed.

The auditor draws $k$ segments independently with probability $d_t / D$. For each drawn segment, it opens the committed data batches and re-executes the segment. Suppose the adversary tampers with a set $S$ of segments, meaning it uses undisclosed data or non-honest updates, in order to shift some audited behavior $\Delta$. Examples of such behavior are memorization of a canary document or a shift in the estimated domain mix. If that behavior changes by at most $L$ per unit of weight movement along the training path, then

$$ \Pr[\text{no tampered segment is checked}] = \Big(1 - \tfrac{\sum_{t \in S} d_t}{D}\Big)^k \le \exp\!\Big(-\frac{k\,\Delta}{L\,D}\Big). $$

The bound follows directly from the sampling distribution and from $\Delta \le L \sum_{t\in S} d_t$. It says an adversary cannot buy a large effect cheaply. Any effect must be paid for in weight movement, and weight movement is exactly what the auditor samples.

The scheme also resists a natural countermeasure. The honest segments' movements are fixed by honest computation, so the adversary cannot dilute $D$ without tampering further. Any extra movement it injects makes those tampered segments more likely to be drawn.

Uniform sampling has no such protection. An adversary can concentrate its injection into a handful of high-learning-rate or late annealing steps. It then achieves a large $\Delta$ with a tiny fraction of tampered steps, and the uniform auditor almost never looks there.

The claim has two parts, and each could fail.

The first part is the adversarial comparison. Movement-weighted sampling should dominate uniform sampling against adaptive injection schedules. This is not guaranteed. A clever adversary may spread its effect thinly enough that the two samplers converge.

The second part is the architectural caveat. The guarantee is only as good as the constant $L$, and $L$ is an architectural quantity. In networks that stay close to their linearized, kernel-like regime, changes in function track changes in weights. The residual networks of Branch Scaling Manifests as Implicit Architectural Regularization for Improving Generalization in Overparameterized ResNets, which analyzes deep residual networks whose branch outputs are scaled down with depth, are a well-behaved example. Attention layers compute products of activations with activations, and softmax can amplify small parameter changes on specific inputs. The research file flags exactly this dynamic routing as the point where MLP-derived theory breaks. We therefore predict that transformers admit low-movement, high-effect tampering directions, which are essentially small-norm backdoors. In those models, weight-norm sampling should fail. It would then need to be replaced by movement measured in function space, on a public set of probe inputs.

We treat this architectural gap as a measurable property of the audit, not as a theoretical aside.

Research Program

Commitment layer. We reuse the traceability design of Fine-Grained Traceability for Transparent ML Pipelines. FG-Trac batches training logs into Merkle trees, hash-based structures that let anyone confirm a single entry with a short proof, and anchors the roots externally. Its own stated gap is that nothing checks whether the logged gradients or influence scores were actually computed from the logged data.

We commit to three things per segment: the per-step batch identifiers with their domain labels, the weight snapshots every $m$ steps, and the optimizer state. That is enough to re-execute any segment deterministically. A segment is accepted if re-execution matches the committed snapshot within a tolerance. We calibrate that tolerance from honest reruns with deterministic GPU kernels, and we treat the tolerance itself as an attack surface.

Samplers. We compare three ways of choosing segments to re-run: uniform, weight-movement-weighted, and function-movement-weighted. The function-space variant measures movement as the change in outputs on a fixed public probe set between consecutive snapshots. It costs a handful of forward passes per snapshot.

Adversary. We build the attacker in the spirit of Online Matching with Stochastic Rewards: Provable Better Bound via Adversarial Reinforcement Learning. That paper trained an adversary agent against an algorithm agent in a zero-sum game and then extracted human-readable structure from the worst-case instances it found. Here the "algorithm" is the auditor's sampler.

The adversary controls several things: which segments to tamper, what hidden data to inject, how large each tampered step is, and whether to hide deviations inside the re-execution tolerance. It is rewarded for audited effect $\Delta$ and penalized when it is detected. Alongside the learned adversary we run hand-built nesting schedules, such as injecting only during late annealing or scattering many tiny updates. The theory literature uses such schedules to force worst cases.

Our goal is to extract the structure of the attacks that succeed, not only their success rate. The OMSR work showed this extraction is feasible. Its own limitation was that the counter-strategies it found stayed opaque.

Architecture study. For each architecture, we estimate the effective $L$ along real training paths. We do this by searching for the smallest weight perturbation that achieves a target canary exposure. We then test whether $L$ predicts where weight-movement sampling fails. The architectures are ResNets under several branch-scaling exponents $\gamma$, including the constant-scaling regime that Yu et al. show degenerates, and small GPT-style transformers.

Baselines

Committed logs with no computation check. This is FG-Trac as published: Merkle-anchored logs that are trusted as written. It is the "do nothing beyond commitment" reference point. Any injection that keeps the logs well-formed passes with probability one, so it fixes the floor. FG-Trac reports near-zero cost on CIFAR-10: accuracy of 0.764 versus 0.762 with instrumentation, and under 2% added epoch time. Our scheme must stay close to that cost to be credible.

Uniform spot-check re-execution. This is the same commitments and the same number of re-executed segments, drawn uniformly. It is the most important competitor and doubles as the ablation that isolates our one new ingredient, the weighting. Both samplers get an identical re-execution budget, measured as a fraction of total training compute, and face the same adaptive adversary, which is retrained against each sampler separately. No reported result was found on Lacuna for uniform re-execution auditing of training runs. Beating it means a lower miss probability at equal budget against each sampler's own best-response adversary.

Post-hoc mixture inference from weights. This is WARP: Weight-Space Analysis for Recovering Training Data Portfolios, which estimates domain proportions from base and fine-tuned weights by interpolating pseudo-checkpoints and scoring how well sample gradients align with the weight displacement. It is the strongest audit that requires no cooperation from the trainer. It reports a mean absolute error of 0.046 on BERT-base and 0.104 on GPT-2-small, and a 30 to 35% error reduction over membership inference. We run WARP on the same final models and flag a claim as false when its estimate departs from the committed mixture by more than a threshold, calibrated for a matched false-positive rate on honest runs. Beating WARP means detecting injections at fractions of the data below its error floor.

Canary-based black-box detection. This is the copyright-trap approach of Copyright Traps for Large Language Models, which injects synthetic sequences into text and detects memorization of them. We give it the same canaries our adversary tries to smuggle in.

Function-movement sampling. This is our own variant, and we compare it against weight-movement sampling. The comparison tests the architectural prediction directly.

Why not just…?

Why not just prove the whole training run in zero knowledge? The file's own numbers rule this out at present. Verifiable evaluations of machine learning models using zkSNARKs compiles models into cryptographic circuits. It reports about 46 minutes and 219 GB of RAM to prove a single forward token of a 250k-parameter nanoGPT, and that covers inference only, not backpropagation. Specialized matrix provers such as Dualmatrix: conquering zkSNARK for large matrix multiplication make the matrix multiplications themselves cheap, but they do not cover softmax, normalization, or floating point. The aggregation proofs in zkFL cover only linear sums and still take about 55 minutes for ResNet50. We view such provers as a future drop-in replacement for re-executing the few sampled segments, not as a substitute for sampling.

Why not just infer the data mixture post hoc with WARP or tokenizer inversion? Data Mixture Inference Attack: BPE Tokenizers Reveal Training Data Compositions recovers mixtures from the tokenizer's merge rules, and WARP recovers them from weights. Both assume the trainer is passive. The tokenizer can be trained on different data than the model, and WARP assumes a single linear fine-tuning path that a multi-stage run breaks. Evading Data Provenance in Deep Neural Networks shows that distilling a model through unrelated data defeats 11 ownership-verification methods, at under 1% accuracy loss on CIFAR-10. Post-hoc estimators remain a real threat for large mixture lies. Our WARP comparison settles the question by measuring, at each injection fraction, which audit detects which attack.

Why not just spot-check uniformly? This is the most serious alternative. If the adaptive adversary gains nothing from concentrating its injection, perhaps because optimizer dynamics already spread influence evenly, then uniform sampling is simpler and just as good. In that case our contribution shrinks to the architectural analysis. We state in advance that if weighted and uniform sampling perform within noise of each other against their respective best-response adversaries, we drop the weighting claim.

Why not just trust data cards and logs? The 2024 Foundation Model Transparency Index documents declining disclosure. Unverified logs are exactly our zero-check baseline, which fails against any injection with certainty.

Proposed Experiments

We run three settings at increasing scale.

The first is ResNet-18 and ResNet-34 on CIFAR-10 and CIFAR-100, matching the FG-Trac and branch-scaling setups. We sweep branch scaling over constant, $\gamma = 1/2$, and $\gamma = 1$.

The second is GPT-2-small fine-tuned on the WARP mixtures of AG News and Yahoo, so that WARP runs in its reported regime.

The third is a roughly 100M-parameter transformer pretrained from scratch. The data is a committed mix of the RedPajama English splits (Wikipedia, Books, ArXiv, Code) plus FineWeb-Edu. The hidden payloads are an undisclosed domain and a set of canary documents.

The adversary's injection fraction ranges from $10^{-4}$ to $10^{-1}$ of steps. The auditor's budget ranges from 0.1% to 5% of training compute.

We report three kinds of metrics. The first is detection probability versus budget for each sampler against its best-response adversary. The second is the effect the adversary achieves, measured as canary exposure, WARP-estimated mixture shift, and change in downstream accuracy. The third is audit overhead in time and storage, compared against FG-Trac's reported 1.2 GB per 100 epochs.

Three results would be decisive.

First, weighted sampling should reduce the adversary's best achievable effect at a fixed detection rate, relative to uniform sampling, in the ResNet settings. This is where the bound should hold.

Second, the empirically estimated $L$ should rank the architectures by how badly weight-movement sampling fails. Transformers and constant-scaled ResNets should be worse. Function-movement sampling should recover the transformer case. If it does not, the architectural gap is a hard limit on this family of audits, and that is itself worth reporting.

Third, WARP and our audit should catch largely disjoint attacks. That outcome would argue for combining the two, not for replacing either.