Manuscript Offprint
arXiv:2611.09607ReplayAudit: Auditing Outsourced LLM Fine-Tuning via Sealed Records and Selective Replay
ABSTRACT
Auditing outsourced LLM fine-tuning requires checking an untrusted provider's training while controlling verification cost. Uniform sampling ignores training-time signals, while checking a suspicious record can require replaying several preceding steps. We present REPLAYAUDIT, a telemetry-guided auditing system that seals training records before challenges and independently replays sampled intervals from sealed checkpoints. Loss changes and parameter-update norms guide stratified random sampling; replay determines whether the selected computation agrees with its records. We relate sampling probabilities to replay work and evaluate the system on real LoRA training. A 7B BF16 prototype rejects a false update-norm report during a random audit; targeted checks also reject false loss reports and skipped updates. We calibrate sampling budgets offline to at least a 90% probability of directly selecting an injected step. For two learning-rate deviation settings, executing these budgets on the same honest 1.5B trajectory reduces median complete-audit wall time by 49% and 67% relative to uniform sampling. When skipped updates evade the high-anomaly stratum, the corresponding audit instead costs 38% more. These results show how deviation capture and actual replay work jointly determine the cost of telemetry-guided auditing.
1 INTRODUCTION
Outsourcing large language model (LLM) fine-tuning lets a client adapt a model without operating its own GPU infrastructure. Parameter-efficient methods such as LoRA (Hu et al., 2022) reduce the trainable state, but do not resolve the client's verification problem: an untrusted provider may skip updates, alter hyperparameters, or submit fabricated training records. A delivered model and a plausible loss curve do not establish that the agreed training procedure was followed. The client therefore needs an audit that checks computation while avoiding the cost of independently repeating the entire run.
Existing systems provide several ways to obtain such evidence. Zero-knowledge training proofs, including VeriLoRA (Liao et al., 2026) and VFT (Akgul et al., 2025), verify encoded training relations while protecting private witnesses, at the cost of proof generation. Commit-then-sample systems such as VeriML (Zhao et al., 2021) reduce the computation selected for proof. Proof-of-Learning (Jia et al., 2021) and AFTUNE (Jin et al., 2026) use selective recomputation, with different numerical and trust assumptions. These approaches establish selective verification as a useful design principle. Our question is how to use training telemetry to select effective checks, and when fewer samples translate into lower audit cost.
Training already produces signals such as loss changes and parameter-update norms. These signals can help direct attention toward unusual steps, but using them for adversarial auditing introduces two coupled difficulties. First, the provider controls the records: an anomalous value is not itself a violation, and a plausible value may be fabricated. Sealing prevents later edits but does not make submitted telemetry truthful. The auditor must independently check the selected computation against the sealed state. Second, a selected step can require replaying several preceding steps to reconstruct its inputs. A smaller sample set need not be proportionally cheaper, especially when replay intervals overlap or additional predecessor checks are necessary. Selection quality and replay work must be assessed jointly.
We introduce REPLAYAUDIT, a telemetry-guided auditing system for outsourced LLM fine-tuning. Our design uses provider-reported telemetry to allocate checks, while independent replay determines whether the selected records agree with the sealed computation. The provider commits step records and periodic checkpoints, then seals the trajectory before audit randomness is revealed. The auditor ranks the sealed telemetry and combines random sampling within a high-anomaly stratum with sampling from all remaining records. For each selected target, it restores a sealed check-
College of Electronics and Information Engineering, Shenzhen University, Shenzhen, China. Correspondence to: Taotao Wang ttwang@szu.edu.cn.
Preprint.

Figure 1. REPLAYAUDIT connects training-time recording to post-seal audit decisions. Telemetry guides target selection; checkpoint-anchored replay checks the selected computation and records. The public beacon and dataset root belong to the reference protocol; the BF16 prototype uses local post-seal randomness and batch hashes. The integer checker is an auxiliary component path.
point and replays the required interval, comparing states and telemetry with their recorded values. Figure 1 illustrates how these stages connect training-time recording to post-training verification.
To characterize this design, we relate the number of injected deviations in the high-anomaly stratum to direct-hit probability and then measure the cost of executing the resulting audit budgets. In real 200-step 7B traces, the high stratum captures 9 of 15 learning-rate deviations across three seeds, but only 1 of 15 skipped updates. This difference matters in practice: on a sealed 1.5B trajectory, budgets calibrated off-line to a 90% direct-hit target reduce median audit time by 49% and 67% for two learning-rate deviation settings. With no high-stratum capture, the five-deviation setting instead costs 38% more than uniform sampling. These comparisons use known attack labels for budget calibration and measure complete audits of the same honest trajectory, separating selection effects from early rejection.
The system verifies selected intervals using disclosed states and batches with deterministic BF16 replay. A 7B integrated run demonstrates sealing, random challenges, independent replay, and rejection; separate experiments reproduce 2,100 steps bit-exactly across 7B–14B models. Together, these results connect the sampling analysis to an implemented audit and establish the numerical basis for checking the selected computation.
In summary, we make three contributions:
- An integrated audit path for sealed training records. We integrate post-seal challenges, complete-state restora-
tion, and independent interval replay to check selected state transitions and their reported telemetry (Section 4).
-
Telemetry-guided sampling with replay-cost analysis. We combine anomaly-stratified and baseline random sampling, characterize their conditional hit probabilities, and account for the replay work needed to execute the checks (Section 3).
-
Measured audit savings and their conditions. Real fine-tuning experiments establish integrated 7B auditing and 49%/67% wall-time savings on 1.5B under offline-calibrated budgets. The skipped-update result identifies when preferential sampling increases cost; component measurements explain replay fidelity and recording overhead (Section 5).
2.1 Selective Training Verification
VeriML (Zhao et al., 2021) combines iteration commitments with proofs of randomly selected training computations. zkMLaaS (Huang et al., 2022) uses challenge-response protocols over weight updates, while PoL-BFL (Wei et al., 2026) combines sampled verification with a federated ledger. These systems precede our use of commit-then-sample veri-
Table 1. Training-verification mechanisms, selection strategies, and trust assumptions.
| Approach | Selection and verification | Relevant scope or trust assumption |
|---|---|---|
| Per-step ZK (Liao et al., 2026; Akgul et al., 2025) | Proofs of encoded training relations | Witness privacy; soundness depends on the complete encoded relation |
| VeriML (Zhao et al., 2021) | Commit iterations, prove random selections | Sampled cryptographic verification |
| Proof-of-Learning (Jia et al., 2021) | Prioritize large updates, replay intervals | Recorded training states; numerical comparison |
| AFTUNE (Jin et al., 2026) | TEE-assisted sampled checking and sparse-checkpoint replay | Enclave trust; targeted selection is also considered |
| REPLAYAUDIT | Telemetry-stratified targets, independent interval replay | Opened states and batches; conditional sampling and replay costs |
fication. Proof-of-Learning (Jia et al., 2021) records intermediate states and prioritizes large parameter updates for recomputation, establishing a direct precedent for signal-guided replay. Its subsequent security analysis (Fang et al., 2023) also motivates care about what replay evidence actually establishes. REPLAYAUDIT develops this direction through sealed step telemetry, stratified random sampling, and measured replay costs at conditional hit budgets.
2.2 Hardware-Assisted Auditing and Replay
AFTUNE (Jin et al., 2026) combines TEE-assisted verification with sampled recomputation, including sparse checkpoints, reconstruction from preceding checkpoints, and targeted sampling. Building on selective replay, we study how sealed loss and update-norm rankings affect the budgets and executed replay costs of disclosed-state fine-tuning audits. Verde (Arun et al., 2025), OVT (Srivastava et al., 2024), and OPEN-1B (Donaghy et al., 2026) develop deterministic execution and optimistic verification under their respective arbitration assumptions. Hawkeye (Badash et al., 2026) reproduces NVIDIA GPU matrix multiplications exactly on a CPU, addressing a numerical building block of heterogeneous verification. We use deterministic replay as a numerical substrate for checking selected training intervals.
2.3 Private Training Proofs
VeriLoRA (Liao et al., 2026) and VFT (Akgul et al., 2025) construct proofs for LoRA fine-tuning, addressing private verification of encoded training computation. zkLLM-PoT (Liang et al., 2026) studies final-checkpoint properties. REPLAYAUDIT instead studies disclosed-state audits with probabilistic coverage of selected intervals. Extending this audit to private verification requires a complete interval relation and sealed bindings; Appendix M discusses the corresponding proof obligations and possible backend techniques.
2.4 Selective Inference Verification
SLP (Lim & Yong, 2026) commits chunk-boundary activations before challenges and proves selected chunks with input/output anchors. NanoZK (Wang, 2026) links layer-wise proofs and uses Fisher information for audit-budget triage, while full soundness requires every layer. Such work shares the use of selective computation checking. Training additionally carries optimizer, scheduler, and RNG state across steps; the audit must reconstruct these dependencies before it can check a selected transition.
3 AUDIT MODEL AND SAMPLING ANALYSIS
3.1 Outsourced Fine-Tuning Setting and Participant Roles
A client supplies dataset and training specification ; an untrusted provider performs fine-tuning; and an auditor, either the client or its delegate, checks selected computation against sealed records. The provider has the plaintext data and states. The auditor is permitted to inspect the model, checkpoints, and batches needed for independent replay, together with commitments, telemetry, and challenge evidence. We study this disclosed-state audit relationship; requirements for a future private-proof backend are discussed in Appendix M.
We use LoRA fine-tuning (Hu et al., 2022), with frozen base weights and adapted weights , where and with rank . Training advances across discrete steps. Let denote the complete training state at step : LoRA weights , AdamW first and second moments (Loshchilov & Hutter, 2019), pseudo-random number generator (RNG) state , scheduler state, optimizer step counters, and data cursor. Each checkpoint stores this complete state. Each step executes a transition
where is the mini-batch from committed dataset . Under the committed specification, Eq. (1) makes the replay boundary explicit: and are the inputs, and is the expected output. A model-only snapshot is insufficient.
Omitting optimizer moments, scheduler position, RNG state, or the data cursor can change the executed trajectory even when its visible weights appear plausible. We therefore treat each checkpoint as a recoverable execution state rather than merely a saved model. Auditing a selected step restores the nearest preceding sealed checkpoint and replays the ordered transitions through that step, checking both the target record and the state from which it was produced.
3.2 Adversarial Attack Space
Threat Model. The provider is computationally bounded and malicious, controlling execution end-to-end. It may attempt seven attack families: A1 Step skipping; A2 Compute reduction (shrinking batches or substituting a cheaper base model); A3 Artifact forgery; A4 Transition tampering (injecting targeted gradient perturbations or backdoors); A5 Randomness manipulation; A6 Specification falsification (altering learning rates or injecting uncommitted data); and A7 Seal-integrity violation (rewriting training history post-hoc). The provider cannot break the hash binding or predict the post-seal challenge randomness. The reference public-beacon protocol additionally relies on the beacon's threshold trust assumptions. These attack families define the threat space; they are not all demonstrated in live LLM runs. Out of scope: committed-but-harmful data poisoning (measured as a negative control in Section 5.8), provider-auditor collusion, and side-channel leakage.
Verifier-Relative Violation Sets. A corrupted state can propagate numerically without invalidating later local transitions, because each later step may be computed correctly from the altered predecessor. We therefore define the violation set relative to the verification predicate: interval replay rejects any sample whose replay path crosses an invalid transition, whereas a local-step verifier rejects only the invalid transition itself and must not be credited with the larger set. Consequently, the number of injected steps need not equal .
3.3 Boundary Record Commitment Structure
During step , the provider samples a salt and emits the commitment
Table 5 in Appendix A gives the reference binding schema and its telemetry extension. Hash links fix record order; state, specification, batch, and final-weight digests bind the corresponding openings. Their consistency must still be checked by replay: a valid hash alone does not certify execution or the history before a checkpoint. The telemetry extension binds reported loss, parameter-update norm, and learning rate. The BF16 prototype implements this exten-
sion and binds full optimizer/RNG state. It checks batch hashes and positions; Section 4 distinguishes this implementation from the reference membership relation.
3.4 Detection Probability Model
Proposition 1 (Uniform sampling). Let be the number of sealed steps and with the fixed set of units rejected by the declared audit predicate. With fixed before independent post-seal randomness is drawn, uniform sampling of steps without replacement yields the exact rejection probability
or, under Bernoulli sampling with step inclusion rate ,
At and , Eq. (3) gives rejection probabilities of 5.00%, 22.83%, and 40.85% for . To analyze direct hits, we instead take the marked set to be the injected steps and substitute for ; we denote that event's probability by . Direct hits, interval coverage, and actual rejection can differ because replay may check preceding steps. Appendix J gives statistical calibration and the separate conditional-deterrence model.
3.5 Telemetry Scoring and Stratified Sampling
We rank sealed records using reported losses and parameter-update norms. Let be the reported step loss and the reported norm of the parameter update. The loss-change feature is for , with . For each feature vector , we compute its median and scale , then score
If the scale is zero, we use the feature range; constant features contribute zero. The real-telemetry analysis uses these two equally weighted features. The BF16 audit also includes data-position increments, using the same normalization; Appendix B specifies their initialization and missing-feature handling. We sort by decreasing , breaking ties by increasing step index. This deterministic ranking selects where to check; the scores themselves do not determine acceptance.
With and , the auditor splits the budget into two draws: the top- fraction of steps forms a high-anomaly stratum receiving samples, while the remaining samples are drawn uniformly from all records not selected in the first draw, including unselected members of . For a fixed marked set of size , let count its members in . The probability of selecting at least one marked step is
In the telemetry experiments, the marked set comprises the injected steps, so . Taking the marked set to be V instead gives . The second factor conditions on the first draw missing every marked step; if that draw must hit, the probability is one without evaluating the second factor. At , the rule recovers uniform sampling. Sealing fixes the ranking before the draw but cannot prevent deliberately smoothed reports. When , only the baseline draw can hit; rounding can even make at small budgets. Thus preferential sampling benefits from measured capture, not from a presumed positive coverage floor.
3.6 From Sample Budgets to Replay Cost
For fixed and , we enumerate to find the smallest budget meeting the direct-hit target in Eq. (6). These counts require labeled deviations and are unknown in deployment. Each target requires replay from checkpoint , possibly with additional predecessor intervals for telemetry checks. A serial cost model uses startup cost , total restore time , actual replay count , step cost , and residual checking cost :
Here includes repeated work and predecessor checks, and includes their additional restores. Deduplicating intervals can undercount a verifier's work when it checks targets separately. We therefore report complete wall times alongside cost projections, distinguishing complete honest audits from runs that stop at the first rejection.
4 REPLAYAUDIT DESIGN
REPLAYAUDIT coordinates outsourced LLM fine-tuning across five ordered phases: pre-commit, train-and-commit, seal, challenge, and recompute-and-verify, as illustrated in Figure 1. The design separates continuous recording from selective verification, with asynchronous I/O within the recording phase. We describe the reference protocol using a public beacon and dataset Merkle root. The evaluated BF16 implementation follows the same seal-sample-replay flow using local post-seal CSPRNG randomness and batch hashes/positions; it does not implement public-beacon timing or dataset membership proofs. An auxiliary integer checker evaluates a separate computation relation.
4.1 Commit-Seal-Sample-Verify Protocol
Phase 1: Pre-Commitment. Prior to execution, the client and provider bind the global specification
where commits to the frozen base weights and hp denotes the hyperparameters; the fingerprint is embedded into every step's boundary record. The client commits dataset D via a Merkle root , and the public metadata is signed and published. The provider stores the complete initial checkpoint and binds its digest to the first record.
Phase 2: Train-and-Commit (Always-On). During step , the provider computes under deterministic floating-point rules (Section 4.3) and emits a salted BLAKE3 commitment per Eq. (2). Every steps, the full state is cached as a sealed checkpoint. A pinned-memory double buffer and dedicated writer thread overlap serialization with execution, reducing measured checkpoint stalls (Section 5.6). Setting reduces the interval predicate to single-step predecessor checking , which we treat as a special case of the protocol rather than an external baseline.
Phase 3: Seal. Upon completing step N, the provider exports an atomic seal record
Here and . The descriptor strat binds the scoring rule, feature weights, , , and budget ; bcn identifies the beacon and round-selection rule. These parameters are registered before training. The auditor validates the chain and acknowledges the seal (seal_ack), freezing timestamp . Once sealed, any modification of steps alters or , which fixes the violation set before the challenge is revealed.
Phase 4: Post-Seal Public Challenge. Following seal_ack, the auditor fetches the beacon value of the earliest drand quicknet round emitted at and derives the challenge seed
It then draws the challenge set under the seeded two-stratum sampling rule of Eq. (6): the top-q anomaly stratum , ranked by sealed step telemetry, contributes samples via PRF( “high”), and the remaining samples are drawn uniformly from all records not already selected via PRF( “base”); recovers uniform sampling exactly. Coupling threshold beacon randomness to binds the challenge to the acknowledged seal, provided the provider cannot choose among multiple seals or beacon rounds after observing their randomness.
Phase 5: Recompute-and-Verify. Each challenged step , together with its replay interval from checkpoint , forms an audit unit. The provider opens the checkpoint, required batches, and sealed interval records. The auditor checks the checkpoint digest, restores its complete state, and independently re-executes the steps, comparing state and telemetry bindings at each transition. To validate a target's loss change, it also verifies the preceding loss; when , this requires replaying the previous interval. Missing openings and mismatches produce explicit rejection evidence. The BF16 cost measurements include the auditor's loading, restoration, replay, and checks. Provider-side proving and parallel scheduling belong to the separate component workload in Appendix L. Algorithm 1 in Appendix B specifies the reference flow and its failure conditions.
4.2 Independent Replay and Auxiliary Checking
The BF16 replay backend checks audit units on a matching accelerator type and software stack. BoundaryUnit v2 binds reported loss and parameter-update norms, batches, and complete checkpoints; the verifier recomputes these values with each transition. Separate 7B-14B experiments establish bit-exact interval replay in the tested environments (Section 5.7).
The auxiliary integer checker, nfzk, opens state and batch values, independently replays the encoded step, and checks exact GEMM, quantization, AdamW, and binding constraints. Its tiny- fixture has two layers, width 64, sequence length 32, batch 2, LoRA rank 8, and 424,014 scalar constraints. Separate Freivalds microbenchmarks check integer product claims across CPU/GPU hardware (Appendix K). The component analysis uses a replay-only model and an integer-checker model, labeled Replay and Integer in tables. These price separate workloads. Appendix M specifies the obligations of a future private backend.
4.3 Deterministic Bit-Exact Numerics
Heuristic tolerance comparators define a metric ball of acceptable outputs, allowing adversaries to accumulate stealthy model shifts (Fang et al., 2023). REPLAYAUDIT instead enforces bit-exact execution between training and recomputation. Integer fixed-point arithmetic supports reproducibility across CPU and GPU hardware, but our retained probes expose overflow and dynamic-range problems in
transformer execution (Section 5.7). REPLAYAUDIT therefore uses deterministic floating-point execution, following the replay principle explored by prior systems (Arun et al., 2025; Donaghy et al., 2026). Deterministic kernel settings, restored RNG state, and complete optimizer and scheduler checkpoints enable bit-exact recomputation in the tested matching environments. The measured scope and overhead appear in Sections 5.6 and 5.7.
5 EMPIRICAL EVALUATION
We first evaluate whether sealed training records support independent audit decisions, then examine when telemetry improves sampling. We then compare measured audit costs at offline-calibrated direct-hit targets. Component measurements establish replay fidelity and online overhead. We distinguish cost projections at additional operating points from complete system runs.
5.1 Setup and Provenance
Workload. The primary workload fine-tunes Qwen2.5-1.5B (Qwen et al., 2024) via LoRA (Hu et al., 2022) () on Databricks dolly-15k (revision bdd27f4) (Conover et al., 2023): micro-batch 8, 4-step gradient accumulation (effective batch 32), sequence length 512, AdamW (, cosine decay) (Loshchilov & Hutter, 2019), deterministic 90/10 split, seeds {42, 1024, 2048}. Scale and model-family coverage comes from 300-step 3-seed runs on Qwen2.5-7B and Llama-3.1-8B-Instruct (Grattafori et al., 2024), plus a Qwen2.5-14B capacity probe. We compare native BF16 kernels (Native) against our deterministic floating-point configuration (DetFloat; Section 4.3).
Hardware Infrastructure. End-to-end training runs execute on NVIDIA RTX-6000D GPUs (PyTorch 2.13.0-cu130, Transformers 5.12.1); prover micro-benchmarks and the multi-GPU component workload run on NVIDIA A100-40GB PCIe hosts. The 1.5B cost comparison uses five A100 GPUs for concurrent one-GPU jobs; shared CPU and I/O resources can affect wall time.
Measurement scope. Table 2 distinguishes integrated audits, telemetry analysis, and supporting component measurements. We report measured wall time for complete BF16 audits and label calculations based on component timings as cost models. Appendices H and L specify the inputs to those models.
5.2 Independent Auditing on a Sealed 7B Trajectory
We fine-tune Qwen2.5-7B with BF16 LoRA for 100 steps and checkpoint every five steps. Before training, we fix a false loss report at step 19, a false update-norm report at step 35, and a skipped optimizer update at step 51. The skipped


Figure 2. Telemetry rankings concentrate learning-rate deviations more consistently than skipped updates. Each curve uses one real 7B trajectory (, five injected steps). We rank all steps by sealed loss/update-norm scores and report the fraction of injected steps within each ranked prefix. The shaded region is the top 15% used by the sampler; the dotted diagonal is the expectation under random ordering.
Table 2. Evidence paths and reported quantities.
| Evidence | Measured object or calculation |
|---|---|
| 7B BF16 audit | One 100-step sealed trajectory; independent sampled replay and rejection |
| 1.5B audit costs | 29 complete honest audits and nine attack-rejection runs; offline budget calibration |
| Real telemetry | 48 runs at and six at ; ranking measured, hit probabilities calculated |
| 7B–14B replay | 2,100 bit-exact replayed steps |
| Integer checker | Tiny- relation; separate product microbenchmark |
| Sampling/ledger | Simulated telemetry and component-priced costs; separate two-layer GPU scaling |
update retains forward/backward computation; we do not measure a provider cost saving. BoundaryUnit v2 commits reported telemetry and complete state. After sealing, local cryptographic randomness seeds the original sampler with , , and ; a separately launched verifier checks the resulting intervals.
The random challenge contains ten targets. The verifier accepts the first seven and rejects target 35, whose reported update norm is zero while recomputation gives approximately 0.085163. It stops at that rejection after visiting eight targets and replaying 34 steps, including repeated and necessary predecessor intervals. Separate fixed-target diagnostics reject the loss report at step 19 and the skipped update at step 51; the random run does not reach step 51. An honest control passes. Appendix C records the challenge and individual outcomes.
Training takes 363.4 s within the training phase; the verifier takes about 145.0 s internally, with an externally sampled
wall-time upper estimate of 147.7 s including loading and checks. These times describe this run on an RTX 6000D, with another service resident on the GPU. We evaluate matched direct-hit budgets separately in Section 5.4.
5.3 Real Telemetry and Conditional Sampling Costs
We measure loss and actual parameter-update norms in 48 real 100-step runs: 1.5B/7B models, skipped updates or learning rate multiplied by four, , and three seeds. Six 7B runs at , repeat the two attacks across the same seeds. The sampler uses and throughout. Figure 2 presents the six 200-step rankings. The top 15% captures 60% of learning-rate deviations in every seed, versus 0%, 20%, and 0% of skipped updates. The ranking therefore concentrates the former deviations more consistently.
For these 200-step trajectories, the conditional budget for 90% direct-hit probability is 19 versus 74 uniform samples for learning-rate deviations in all three seeds. For skipped updates it is 92, 33, and 92, so stratification is worse in two runs. The injection positions are fixed across seeds, and these budgets use labels unavailable during deployment. Interval coverage is a different event: at , , skip-update coverage is 15.05%, 54.89%, and 37.71%, versus 55.00% for uniform. These calculations do not model the BF16 verifier's extra predecessor checks or stopping policy. Table 6 in Appendix C gives exact capture and hit probabilities, alongside ranking quality and the telemetry-smoothing stress test.

(a) Offline-calibrated budget

(b) Complete audit wall time
Figure 3. Offline-calibrated budgets and measured complete-audit costs. We calibrate budgets to at least 90% direct-hit probability using labeled learning-rate deviations (LR ×4) or skipped updates, then execute them on the same honest 1.5B trajectory. Dots show individual timings and horizontal marks show medians: three runs per arm, except six for stratified k=5 skipped updates. Both k=5 comparisons reuse the same uniform runs.

Figure 4. Interval replay time grows approximately linearly with replay depth on 7B. Points are 13 successful native-g=5 and 18 successful virtual-g=10 intervals; lines are ordinary least-squares fits. The virtual stride uses existing checkpoints from the same g=5 trajectory. Two rejected intervals are excluded. Timings omit outer-verifier validation and extra predecessor replay; this is a primitive measurement, not a complete stride sweep.
5.4 Measured Audit Cost at Matched Direct-Hit Targets
We next test whether reduced budgets save wall time in the implemented verifier. We train Qwen2.5-1.5B for N=100 steps with g=5 and training seed 42, retaining an honest trajectory and three deviation trajectories: learning rate multiplied by four at five or ten block-ending steps (V5L/V10L), and five skipped updates (V5S). Their high-stratum captures are respectively 2/5, 5/10, and 0/5. Using these labels offline, we choose the smallest budgets reaching at least 90% direct-
hit probability under Eq. (6). We then measure complete audits at those budgets on the same sealed honest trajectory, avoiding differences caused by early rejection. Each run uses one A100-40GB GPU; concurrent jobs share host resources.
Figure 3 presents the budgets calibrated from the attack rankings and their complete-audit costs on the honest trajectory. For learning-rate deviations, stratified budgets of 12 and 6 replace uniform budgets of 37 and 20, reducing median wall time by 49% and 67%. For five skipped updates, zero high-stratum capture increases the budget from 37 to 46 and median time by 38%. Individual timings show run variability; both five-deviation comparisons share the same uniform baseline. These savings concern audit time under offline-calibrated budgets: k and are unknown in deployment, and the honest trajectory supplies its own ranking.
Across the full cost matrix, all 29 honest-trajectory audits verify. Separately, stratified, uniform, and full-coverage audits each reject all three deviation trajectories, giving nine rejection runs with one challenge seed per arm. The actual verifier can also reject through additional predecessor checks, so the calibrated direct-hit target is not its complete interval-detection probability. Appendix D gives the exact budgets and medians in Table 8, including the hypothetical zero-capture boundary, plus timing variability and rejection costs.
5.5 What Determines Replay Cost?
Figure 4 shows interval timings on a retained 7B trajectory. Successful intervals give fitted replay costs of 3.53–3.64 s per step, while six hot-cache checkpoint restores have a
Table 3. Marginal step-time cost of each pipeline stage (median p50 delta vs. previous stage; S1 deterministic kernels, S2 state digest, S3 salted commit and async checkpoint; E2E = total vs. native BF16). Deterministic kernels dominate; each additional audit-specific stage contributes at most 0.74%.
| Model | Seq | S1 Det. | S2 Digest | S3 Commit | E2E |
|---|---|---|---|---|---|
| 1.5B | 512 | +17.3% | +0.74% | +0.20% | +18.4% |
| 1.5B | 1024 | +36.6% | +0.59% | +0.13% | +37.6% |
| 1.5B | 2048 | +77.4% | +0.64% | +0.02% | +78.6% |
| 7B | 512 | +13.2% | +0.35% | -0.15% | +13.4% |
| 7B | 1024 | +25.3% | +0.42% | +0.11% | +25.9% |
| 7B | 2048 | +49.5% | +0.26% | +0.02% | +49.9% |
median of 0.106 s. Replay therefore dominates the measured intervals. The longer intervals use virtual checkpoints selected from an existing trajectory; these primitive measurements omit the outer verifier's additional checks. Appendix D records their scope.
Together, Figures 3 and 4 connect target allocation to executed work: reducing the number of targets helps only to the extent that their replay and checking costs also fall. Overlapping intervals and predecessor checks can repeat work, so sample counts alone cannot determine wall time. Appendix H isolates these effects in controlled sampling and checkpoint models, and Figure 5 presents their direct-hit-cost frontier. The separate component-priced proving ledger is documented in Appendix L.
5.6 Always-On Runtime Overhead: Four-Stage Breakdown
We decompose the DetFloat pipeline into four cumulative stages: S0 native BF16 kernels; S1 deterministic kernels; S2 plus the per-step state digest ; and S3 plus the BLAKE3 commitment and checkpoint I/O, either synchronous or asynchronous. We measure 30 cells (2 models 3 sequence lengths 5 stage variants), each repeated 3 times, and Table 3 reports the results. Three findings emerge. First, recording costs are small: state digests add at most 0.74% and the commit/checkpoint stage at most 0.20% marginal step time, and Scheme A (salted BLAKE3, 0.079 ms/step at 7B) remains the selected committer (Appendix F). Second, asynchronous double-buffering reduces checkpoint stalls: per-checkpoint spikes collapse from about 184 ms to about 5.5 ms (stall ratio versus the 2% bound). Third, determinism dominates: deterministic kernels add +13.2% to +77.4% (end-to-end +13.4–25.9% at 7B for sequence lengths 512–1024 and +49.9% at 2048), a provider-side cost independent of audit budget .
5.7 Bit-Exactness Across Model Scale
Deterministic replay reproduces all 2,100 evaluated steps bit-exactly across the tested 7B–14B configurations. Table 4 summarizes replay fidelity and agreement with native-BF16 held-out next-token top-1 accuracy. On Qwen2.5-7B and Llama-3.1-8B-Instruct, full 300-step 3-seed DetFloat runs match native-BF16 accuracy within pp, and all 1,800 replayed steps reproduce sealed weights, checkpoints, and commitment channels bit-exactly (max ). A 14B capacity probe (Qwen2.5-14B) sustains deterministic training at 5.48 s/step within 64.1 GiB and replays all 300 steps across 60 checkpoint intervals bit-exactly. In these runs, DetFloat step time carries a +9–11% determinism premium at sequence length 512, while the 3-rep stage benchmark of Table 3 measures +13.2% at 7B. Appendix E gives the 1.5B validation results and numerical probes motivating deterministic floating-point execution.
5.8 Supplementary Enforcement and Calibration Checks
We additionally evaluate a simulated 1,260-configuration injection grid spanning six of the seven attack families (A1–A4, A6, A7) plus a committed-poison negative control, across 10 sampling strategies, 3 random seeds, and 500 trials per cell. Table 20 in Appendix J reports the calibrated simulation (), whose state-modifying generator assigns cascading violation sets ; these are simulation predicates rather than a proof that every self-consistent state corruption invalidates subsequent transitions. Reference probabilities use exact formulas in 1,134 cells and Monte Carlo estimates in 126 (Appendix J). They fall within the empirical 95% Wilson intervals in 98.7% of cases (1,243/1,260); the 17 uncovered cases have absolute gaps at most 0.03. An independent 20,000-trial calibration agrees closely (0.3957 vs. 0.3950 theoretical). On clean traces, the false-positive rate is exactly 0 / 15,000, and all simulated audit-rejection cases trigger.
Verifier-Scope Probe. A CPU fixture fixes on a 20-step lineage with a fabricated update at step 7 and checkpoint stride 5. On the canonical verifier, the interval predicate rejects both forgery forms on the contaminated units 8 and 10: a witness omitting the interval opening fails PROOF_INVALID (the legacy code for invalid evidence; 2/2), and a forged witness carrying a real interval fails BINDING_MISMATCH under auditor-side replay (2/2); all five honest controls verify. A prior verifier revision without the predicate accepted the same two forged witnesses, which motivates defining relative to the verifier (Section 3.2). Auditor-side interval replay costs 0.25 CPUs/step on this fixture; the probe checks enforcement and does not estimate detection rates.
Table 4. Multi-model next-token accuracy and bitwise replay (300 steps × 3 seeds, dolly-15k). DetFloat runs match native BF16 accuracy within 0.011 pp and replay every step bit-exactly. †Qwen2.5-14B is a single-seed capacity probe (60 checkpoint intervals fully replayed).
| Model | Token acc. Native→DetFloat | |Δ_acc| | Bitwise Replay | DetFloat Step | Peak Mem. |
|---|---|---|---|---|---|
| Qwen2.5-7B | 63.16→63.16% | 0.005 pp | 900/900 (100%) | 3.47 s | 54.6 GiB |
| Llama-3.1-8B | 62.53→62.54% | 0.011 pp | 900/900 (100%) | 3.80 s | 58.6 GiB |
| Qwen2.5-14B† | probe | — | 300/300 (100%) | 5.48 s | 64.1 GiB |
Integer-Checker Attack and Rejection Evidence. In a 20-unit run (), an adversary sealed a fabricated step-7 update without backpropagation. A drand quick-net beacon (round 2,398,884, BLS12-381-verified) drew : units 6 and 13 verified bit-exactly (424,014 opened-witness constraints, about 2.1 MB of evidence per unit), step 7 was intercepted via BINDING_MISMATCH on , and the run emitted a rejection certificate. This exercises evidence generation, not deployed escrow or settlement. Binding ablations expose three failures: omitting permits undetected base-model swaps, omitting admits uncommitted batches, and omitting checkpoint binding admits last-block checkpoint forgery.
6 DISCUSSION AND LIMITATIONS
Selection quality and executed work jointly determine savings. REPLAYAUDIT connects low-cost training records to independently checkable audit units. The learning-rate experiments show that concentrating deviations in the high stratum can reduce both the required budget and complete-audit wall time. The skipped-update results explain the opposite outcome: preferential allocation spends checks on an uninformative stratum. This leads to two practical evaluation criteria—how many deviations a ranking captures, and how much replay the resulting targets require. Reporting both exposes costs that a sample-count comparison would miss.
Audit scope and deployment assumptions. A successful audit establishes consistency of the checked intervals with sealed records, not correctness of the entire training history, provider compute expenditure, or final model quality. The auditor obtains the required states and batches, and the BF16 path requires matching hardware and software. Its local post-seal randomness does not supply a public beacon or independently attested seal time, and batch hashes do not replace dataset membership proofs. The reference protocol describes these additional mechanisms separately. Economic deterrence further requires enforceable penalties; no escrow deployment is evaluated.
Evaluation scope and extensions. The principal cost comparison uses one honest 1.5B, 100-step trajectory, with budgets calibrated from labeled attacks; repeated challenges do not supply independent training seeds or an online guarantee. The 7B evidence comprises an integrated audit and primitive measurements, not an equivalent cost matrix. Deterministic recording adds a measured 13.4–49.9% total runtime premium at 7B across tested sequence lengths. Extending the results requires label-free budget calibration, longer trajectories, and evaluation under adaptive telemetry manipulation. Shared replay could reduce repeated interval work. A private backend would additionally need to prove the interval computation, bindings, and membership relations together; Appendix M states these obligations, and Table 23 summarizes current disclosure.
7 CONCLUSION
REPLAYAUDIT connects telemetry-guided selection to independently verifiable training intervals for outsourced LLM fine-tuning. Sealed loss and update-norm signals allocate checks, while replay supplies the evidence for acceptance or rejection. The 7B prototype establishes the integrated audit path. On the same honest 1.5B trajectory, budgets calibrated offline to a common direct-hit target reduce median audit wall time by 49% and 67% for learning-rate deviations, but increase it by 38% when skipped updates evade the high stratum. The results establish that selective-audit efficiency depends on both where checks are allocated and how much computation those checks require.
REFERENCES
Akgul, H., Borg, D., Berisha, A., Rahimova, A., Novak, A., and Petrov, M. Verifiable Fine-Tuning for LLMs: Zero-Knowledge Training Proofs Bound to Data Provenance and Policy. arXiv preprint arXiv:2510.16830, 2025. URL https://arxiv.org/abs/2510.16830.
Arun, A., St. Arnaud, A., Titov, A., Wilcox, B., Kolobarić, V., Brinkmann, M., Ersoy, O., Fielding, B., and Bonneau, J. Verde: Verification via refereed delegation for machine learning programs. arXiv:2502.19405, 2025. Refereed delegation with RepOps bitwise-reproducible operators.
Badash, E., Boneh, D., Komargodski, I., and Srivastava, M. Hawkeye: Reproducing gpu-level non-determinism. In Proceedings of Machine Learning and Systems, volume 8, 2026. URL https://proceedings.mlsys.or g/paper_files/paper/2026/hash/e217c271a57c365a246b0ad39e668ba8-Abstract-Conference.html.
Conover, M., Hayes, M., Mathur, A., Xie, J., Wan, J., Shah, S., Ghodsi, A., Wendell, P., Zaharia, M., and Xin, R. Free dolly: Introducing the world's first truly open instruction-tuned LLM. Databricks Blog, 2023. Databricks blog.
Donaghy, J., Wilcox, B., Ersoy, O., Rastogi, S., Arnaud, A. S., Titov, A., Greenberg, J., Fielding, B., and Grieve, H. OPEN-1B: A Fully Auditable Training Run. arXiv preprint arXiv:2609.17380, 2026. URL https://arxiv.org/abs/2609.17380.
Fang, C., Jia, H., Thudi, A., Yaghini, M., Choquette-Choo, C. A., Dullerud, N., Chandrasekaran, V., and Papernot, N. Proof-of-learning is currently more broken than you think. In IEEE European Symposium on Security and Privacy (EuroS&P), pp. 797–816, 2023.
Golovnev, A., Lee, J., Setty, S., Thaler, J., and Wahby, R. S. Brakedown: Linear-time and field-agnostic SNARKs for R1CS. In Advances in Cryptology – CRYPTO, 2023. IACR ePrint 2021/1043.
Grattafori, A., Dubey, A., Jauhri, A., Pandey, A., Kadian, A., Al-Dahle, A., Letman, A., Mathur, A., Schelten, A., Vaughan, A., Yang, A., Fan, A., Goyal, A., Hartshorn, A., Yang, A., Mitra, A., Sravankumar, A., Korenev, A., Hinsvark, A., Rao, A., Zhang, A., Rodriguez, A., Gregerson, A., Spataru, A., Roziere, B., Biron, B., Tang, B., Chern, B., Caucheteux, C., Nayak, C., Bi, C., Marra, C., McConnell, C., Keller, C., Touret, C., Wu, C., Wong, C., Ferrer, C. C., Nikolaidis, C., Allonsius, D., Song, D., Pintz, D., Livshits, D., Wyatt, D., Esiobu, D., Choudhary, D., Mahajan, D., Garcia-Olano, D., Perino, D., Hupkes, D., Lakomkin, E., AlBadawy, E., Lobanova, E., Dinan, E., Smith, E. M., Radenovic, F., Guzmán, F., Zhang, F., Synnaeve, G., Lee, G., Anderson, G. L., Thattai, G., Nail, G., Mialon, G., Pang, G., Cucurell, G., Nguyen, H., Korevaar, H., Xu, H., Touvron, H., Zarov, I., Ibarra, I. A., Kloumann, I., Misra, I., Evtimov, I., Zhang, J., Copet, J., Lee, J., Geffert, J., Vranes, J., Park, J., Mahadeokar, J., Shah, J., van der Linde, J., Billock, J., Hong, J., Lee, J., Fu, J., Chi, J., Huang, J., Liu, J., Wang, J., Yu, J., Bitton, J., Spisak, J., Park, J., Rocca, J., Johnstun, J., Saxe, J., Jia, J., Alwala, K. V., Prasad, K., Upasani, K., Plawiak, K., Li, K., Heafield, K., Stone, K., El-Arini, K., Iyer, K., Malik, K., Chiu, K., Bhalla, K., Lakhotia, K., Rantala-Yearly, L., van der Maaten, L., Chen, L., Tan, L., Jenkins, L., Martin, L., Madaan, L., Malo, L., Blecher, L., Landzaat, L., de Oliveira, L., Muzzi, M., Pasupuleti, M., Singh, M., Paluri, M., Kardas, M., Tsimpoukelli, M., Oldham, M., Rita, M., Pavlova, M., Kambadur, M., Lewis, M., Si, M., Singh, M. K., Hassan, M., Goyal, N., Torabi, N.,
Bashlykov, N., Bogoychev, N., Chatterji, N., Zhang, N., Duchenne, O., Çelebi, O., Alrassy, P., Zhang, P., Li, P., Vasic, P., Weng, P., Bhargava, P., Dubal, P., Krishnan, P., Koura, P. S., Xu, P., He, Q., Dong, Q., Srinivasan, R., Ganapathy, R., Calderer, R., Cabral, R. S., Stojnic, R., Raileanu, R., Maheswari, R., Girdhar, R., Patel, R., Sauvestre, R., Polidoro, R., Sumbaly, R., Taylor, R., Silva, R., Hou, R., Wang, R., Hosseini, S., Chennabasappa, S., Singh, S., Bell, S., Kim, S. S., Edunov, S., Nie, S., Narang, S., Raparthy, S., Shen, S., Wan, S., Bhosale, S., Zhang, S., Vandenhende, S., Batra, S., Whitman, S., Sootla, S., Collot, S., Gururangan, S., Borodinsky, S., Herman, T., Fowler, T., Sheasha, T., Georgiou, T., Scialom, T., Speckbacher, T., Mihaylov, T., Xiao, T., Karn, U., Goswami, V., Gupta, V., Ramanathan, V., Kerkez, V., Gonguet, V., Do, V., Vogeti, V., Albiero, V., Petrovic, V., Chu, W., Xiong, W., Fu, W., Meers, W., Martinet, X., Wang, X., Wang, X., Tan, X. E., Xia, X., Xie, X., Jia, X., Wang, X., Goldschlag, Y., Gaur, Y., Babaei, Y., Wen, Y., Song, Y., Zhang, Y., Li, Y., Mao, Y., Coudert, Z. D., Yan, Z., Chen, Z., Papakipos, Z., Singh, A., Srivastava, A., Jain, A., Kelsey, A., Shajinfeld, A., Gangidi, A., Victoria, A., Goldstand, A., Menon, A., Sharma, A., Boesenberg, A., Baevski, A., Feinstein, A., Kallet, A., Sangani, A., Teo, A., Yunus, A., Lupu, A., Alvarado, A., Caples, A., Gu, A., Ho, A., Poulton, A., Ryan, A., Ramchandani, A., Dong, A., Franco, A., Goyal, A., Saraf, A., Chowdhury, A., Gabriel, A., Bharambe, A., Eisenman, A., Yazdan, A., James, B., Maurer, B., Leonhardi, B., Huang, B., Loyd, B., Paola, B. D., Paranjape, B., Liu, B., Wu, B., Ni, B., Hancock, B., Wasti, B., Spence, B., Stojkovic, B., Gamido, B., Montalvo, B., Parker, C., Burton, C., Mejia, C., Liu, C., Wang, C., Kim, C., Zhou, C., Hu, C., Chu, C.-H., Cai, C., Tindal, C., Feichtenhofer, C., Gao, C., Civin, D., Beaty, D., Kreymer, D., Li, D., Adkins, D., Xu, D., Testuggine, D., David, D., Parikh, D., Liskovich, D., Foss, D., Wang, D., Le, D., Holland, D., Dowling, E., Jamil, E., Montgomery, E., Presani, E., Hahn, E., Wood, E., Le, E.-T., Brinkman, E., Arcaute, E., Dunbar, E., Smothers, E., Sun, F., Kreuk, F., Tian, F., Kokkinos, F., Ozgenel, F., Caggioni, F., Kanayet, F., Seide, F., Florez, G. M., Schwarz, G., Badeer, G., Swee, G., Halpern, G., Herman, G., Sizov, G., Zhang, G. J., Lakshminarayanan, G., Inan, H., Shojanazeri, H., Zou, H., Wang, H., Zha, H., Habeeb, H., Rudolph, H., Suk, H., Aspegren, H., Goldman, H., Zhan, H., Damlaj, I., Molybog, I., Tufanov, I., Leontiadis, I., Veliche, I.-E., Gat, I., Weissman, J., Geboski, J., Kohli, J., Lam, J., Asher, J., Gaya, J.-B., Marcus, J., Tang, J., Chan, J., Zhen, J., Reizenstein, J., Teboul, J., Zhong, J., Jin, J., Yang, J., Cummings, J., Carvill, J., Shepard, J., McPhie, J., Torres, J., Ginsburg, J., Wang, J., Wu, K., U, K. H., Saxena, K., Khandelwal, K., Zand, K., Matosich, K., Veeraraghavan, K., Michelena, K., Li, K., Jagadeesh, K., Huang, K., Chawla, K., Huang, K., Chen, L., Garg,
L, A, L., Silva, L., Bell, L., Zhang, L., Guo, L., Yu, L., Moshkovich, L., Wehrstedt, L., Khabsa, M., Avalani, M., Bhatt, M., Mankus, M., Hasson, M., Lennie, M., Reso, M., Groshev, M., Naumov, M., Lathi, M., Keneally, M., Liu, M., Seltzer, M. L., Valko, M., Restrepo, M., Patel, M., Vyatskov, M., Samvelyan, M., Clark, M., Macey, M., Wang, M., Hermoso, M. J., Metanat, M., Rastegari, M., Bansal, M., Santhanam, N., Parks, N., White, N., Bawa, N., Singhal, N., Egebo, N., Usunier, N., Mehta, N., Laptev, N. P., Dong, N., Cheng, N., Chernoguz, O., Hart, O., Salpekar, O., Kalinli, O., Kent, P., Parekh, P., Saab, P., Balaji, P., Rittner, P., Bontrager, P., Roux, P., Dollar, P., Zvyagina, P., Ratanchandani, P., Yuvraj, P., Liang, Q., Alao, R., Rodriguez, R., Ayub, R., Murthy, R., Nayani, R., Mitra, R., Parthasarathy, R., Li, R., Hogan, R., Battey, R., Wang, R., Howes, R., Rinott, R., Mehta, S., Siby, S., Bondu, S. J., Datta, S., Chugh, S., Hunt, S., Dhillon, S., Sidorov, S., Pan, S., Mahajan, S., Verma, S., Yamamoto, S., Ramaswamy, S., Lindsay, S., Lindsay, S., Feng, S., Lin, S., Zha, S. C., Patil, S., Shankar, S., Zhang, S., Zhang, S., Wang, S., Agarwal, S., Sajuyigbe, S., Chintala, S., Max, S., Chen, S., Kehoe, S., Satterfield, S., Govindaprasad, S., Gupta, S., Deng, S., Cho, S., Virk, S., Subramanian, S., Choudhury, S., Goldman, S., Remez, T., Glaser, T., Best, T., Koehler, T., Robinson, T., Li, T., Zhang, T., Matthews, T., Chou, T., Shaked, T., Vontimitta, V., Ajayi, V., Montanez, V., Mohan, V., Kumar, V. S., Mangla, V., Ionescu, V., Poenaru, V., Mihailescu, V. T., Ivanov, V., Li, W., Wang, W., Jiang, W., Bouaziz, W., Constable, W., Tang, X., Wu, X., Wang, X., Wu, X., Gao, X., Kleinman, Y., Chen, Y., Hu, Y., Jia, Y., Qi, Y., Li, Y., Zhang, Y., Zhang, Y., Adi, Y., Nam, Y., Wang, Y. S., Zhao, Y., Hao, Y., Qian, Y., Li, Y., He, Y., Rait, Z., DeVito, Z., Rosnbrick, Z., Wen, Z., Yang, Z., Zhao, Z., and Ma, Z. The llama 3 herd of models. arXiv:2407.21783, 2024.
Hu, E. J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., and Chen, W. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations (ICLR), 2022.
Huang, C., Wang, J., Chen, H., Si, S., Huang, Z., and Xiao, J. zkMLaaS: a verifiable scheme for machine learning as a service. In IEEE Global Communications Conference (GLOBECOM), pp. 5475–5480, 2022.
Jia, H., Yaghini, M., Choquette-Choo, C. A., Dullerud, N., Thudi, A., Chandrasekaran, V., and Papernot, N. Proof-of-learning: Definitions and practice. In IEEE Symposium on Security and Privacy (S&P), pp. 1039–1056, 2021.
Jin, H., Zhang, C., Yu, H., Shi, S., Zhang, N., Hou, Y. T., and Lou, W. Trusting What You Cannot See: Auditable Fine-Tuning and Inference for Proprietary AI. arXiv preprint arXiv:2603.07466, 2026. URL https://arxiv.org/abs/2603.07466.
Liang, J., Guo, Z., Wu, P., Shen, Q., Zhang, J., Wu, Z., Xue, H., and Zhai, S. zkLLMPoT: Efficient Zero Knowledge Proof of Training for Large Language Models. arXiv preprint arXiv:2610.08258, 2026. URL https://arxiv.org/abs/2610.08258.
Liao, G., Wang, T., Zhang, S., Zhang, J., Shi, L., and Tao, D. VeriLoRA: Fine-tuning large language models with verifiable security via zero-knowledge proofs. In Network and Distributed System Security Symposium (NDSS), 2026. arXiv:2508.21393; per-step ZK proving for LoRA fine-tuning, 122–249 s/step (self-reported).
Lim, Y. and Yong, S. Seal, Then Sample: Sampled Layerwise Proofs for Verifiable LLM Inference from GPT-2 to 70B. arXiv preprint arXiv:2609.27367, 2026. URL https://arxiv.org/abs/2609.27367.
Loshchilov, I. and Hutter, F. Decoupled weight decay regularization. In International Conference on Learning Representations (ICLR), 2019.
Lu, T., Chen, Y., Wang, Z., Wang, X., Chen, W., and Zhang, J. BatchZK: A Fully Pipelined GPU-Accelerated System for Batch Generation of Zero-Knowledge Proofs. In ACM International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS), 2025. URL https://eprint.iacr.org/2024/1862.
Qwen, Yang, A., Yang, B., Zhang, B., Hui, B., Zheng, B., Yu, B., Li, C., Liu, D., Huang, F., Wei, H., Lin, H., Yang, J., Tu, J., Zhang, J., Yang, J., Yang, J., Zhou, J., Lin, J., Dang, K., Lu, K., Bao, K., Yang, K., Yu, L., Li, M., Xue, M., Zhang, P., Zhu, Q., Men, R., Lin, R., Li, T., Tang, T., Xia, T., Ren, X., Ren, X., Fan, Y., Su, Y., Zhang, Y., Wan, Y., Liu, Y., Cui, Z., Zhang, Z., and Qiu, Z. Qwen2.5 technical report. arXiv:2412.15115, 2024.
Setty, S. Spartan: Efficient and general-purpose zkSNARKs without trusted setup. In Advances in Cryptology – CRYPTO, 2020.
Srivastava, M., Arora, S., and Boneh, D. Optimistic verifiable training by controlling hardware nondeterminism. In Advances in Neural Information Processing Systems (NeurIPS), 2024. arXiv:2403.09603.
Sun, H., Li, J., and Zhang, H. zkLLM: Zero knowledge proofs for large language models. In ACM SIGSAC Conference on Computer and Communications Security (CCS), 2024.
Wang, Z. NanoZK: Privacy-Preserving Verifiable Inference for Large Language Models via Layerwise Zero-Knowledge Proofs. arXiv preprint arXiv:2603.18046, 2026. URL https://arxiv.org/abs/2603.18046. Version 2.
Wei, X., Chen, Y., Hu, J., Sun, Z., Wang, T., and Niu, B. PoL-BFL: Towards trustworthy federated learning with zero-knowledge proofs and verifiable incentives. In ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD), 2026. DOI: 10.1145/3770855.3817739.
Wilson, E. B. Probable inference, the law of succession, and statistical inference. Journal of the American Statistical Association, 22(158):209–212, 1927.
Zeilberger, H., Chen, B., and Fisch, B. BaseFold: Efficient field-agnostic polynomial commitment schemes from foldable codes. In Advances in Cryptology – CRYPTO, 2024. IACR ePrint 2023/1705.
Zhao, L., Wang, Q., Wang, C., Li, Q., Shen, C., and Feng, B. VeriML: Enabling integrity assurances and fair payments for machine learning as a service. IEEE Transactions on Parallel and Distributed Systems, 32(10):2524–2540, 2021.
AI USAGE DISCLOSURE
AI-assisted coding and writing tools supported research code development, experiment execution, evidence checks, figure preparation, and manuscript drafting and language polishing. The authors are responsible for the content, results, and claims.
A BOUNDARY RECORD FIELD SCHEMA
Table 5 lists the base binding fields and the telemetry extension used by the audit in Section 3.3. BoundaryUnit v2 serializes the reported loss, parameter-update norm, and learning rate in field f10; data position is bound in f6, and state digests cover the complete checkpoint. The BF16 implementation checks positions and actual batches, without the reference Merkle-membership relation. Its public development salts do not instantiate the private-salt assumption below.
Table 5. Field-level schema of boundary record . Base fields and the telemetry extension bind the specification, states, batch, record order, and supplied telemetry; the verifier must check the corresponding invariants.
| Field | Identifier | Cryptographic Binding Content |
|---|---|---|
| f1 | version_id | Protocol format version identifier |
| f2 | Re-quotation of spec fingerprint | |
| f3 | Step index in the execution sequence () | |
| f4 | bind_in | Hash commitment to input state |
| f5 | bind_out | Hash commitment to output state |
| f6 | bind_xi | Batch position and membership proof against |
| f7 | link_i | Hash link ; for , binds |
| f8 | flags | Checkpoint indicator, boundary flags (is_ckpt, is_last) |
| f9† | bind_final | Final weight digest ; populated only at |
| f10 | telemetry | Presence flag and reported loss, parameter-update norm, and learning rate (v2 extension) |
: 256-bit private uniform salt; †optional field instantiated on final unit.
B END-TO-END PROTOCOL ALGORITHM
Algorithm 1 specifies the reference protocol, including public randomness and dataset membership. The BF16 implementation replaces these with local post-seal CSPRNG challenges and batch hash/position checks. It checks targets in increasing order and stops at the first rejection. A verifier execution fault produces an inconclusive outcome rather than evidence of a provider violation.
B.1 Scoring Rule and Feature Availability
The implementation in zkspot/challenge/stratified.py constructs loss-change, update-norm, and data-position-increment features. Loss change is zero at step
Table 6. Real 7B telemetry at , . Entries follow seeds 42/1024/2048. Hit probabilities are calculated from measured rankings and known injection labels for ; uniform gives 22.83% in every run. They are not verifier detection rates.
| Attack | High-stratum capture | Direct-hit probability |
|---|---|---|
| Skip update | 0/5, 1/5, 0/5 | 5.15%, 30.45%, 5.15% |
| Learning rate ×4 | 3/5, 3/5, 3/5 | 64.02% in each run |
1; otherwise it requires both adjacent losses. The position increment uses the most recent available position, initialized to zero. Each feature is normalized as in Eq. (5), using only available values to compute its median and MAD; a zero MAD falls back to the range. Missing entries, absent features, and constant features contribute zero. Nonnegative feature weights default to one, giving
where denotes the position-increment vector. Ranking uses the key , so ties favor the earlier step. The scoring rule, weights, , and are fixed before challenge randomness; the plan binds the scores and stratum membership.
The real-telemetry analysis supplies loss and update norm, leaving position absent. The BF16 audit supplies all three fields through its boundary-record view. Its data cursor starts at zero: for a fixed batch advance, the position-increment vector begins with zero and then contains the repeated advance. The MAD is zero, so range normalization adds one to the first step's score and zero thereafter. We preserve this initialization when describing the evaluated implementation; its score is not identical to the two-feature analysis at step 1. Replay compares the recorded loss, update norm, learning rate, batch, and complete state with recomputed values. At a checkpoint boundary, it also replays the predecessor's interval and checks that loss against its sealed record, validating both inputs to the target's loss difference.
C REAL-TELEMETRY AND BF16 AUDIT EVIDENCE
The 100-step matrix has 48 trajectories: Qwen2.5-1.5B/7B, two deviations (skipped optimizer update or learning rate multiplied by four), , and seeds 42/1024/2048. Six 200-step 7B runs repeat both deviations at across those seeds. They measure actual losses and parameter-update norms; rank quality, direct-hit probabilities, and oracle budgets are calculated offline from known injection labels. The larger matrix is not a set of complete BF16 verifier runs.
At , skip-update ranking AUC is 0.598, 0.665, and
Algorithm 1 The REPLAYAUDIT Spot-Check Auditing Protocol
Require: Specification (including ), dataset root , budget , stride , scoring rule and weights, , , beacon descriptor bcn.
Ensure: VERIFIED, a rejection code, or INCONCLUSIVE on verifier execution faults.
1: On a verifier execution fault, return INCONCLUSIVE; missing provider openings follow the rejection checks below.
2: Phase 1 (Pre-Commit): Register , , and sampling parameters; store and bind its digest;
3: Phase 2 (Train-and-Commit):
4: for to do
5: Compute bit-exact state ;
6: Form with the telemetry extension in Table 5, binding supplied values and their presence flag; sample \omega_i \xleftarrow{\} ;
7: Emit ;
8: if then
9: Store sealed checkpoint (async double-buffered write);
10: end if
11: end for
12: Phase 3 (Seal): Provider publishes Seal; Auditor freezes upon seal_ack;
13: Phase 4 (Public Challenge):
14: Wait for drand beacon value emitted at ;
15: Derive challenge seed ;
16: Compute via Eq. (11); sort by and form the top- stratum ;
17: Draw , via );
18: Draw uniformly from , via ); set ;
19: Phase 5 (Recompute-and-Verify):
20: for all in increasing order do
21: Locate checkpoint ;
22: Provider opens , batches with Merkle paths, and all interval records with salts ;
23: if any interval opening is missing then
24: return PROOF_INVALID;
25: end if
26: if differs from the sealed checkpoint digest then
27: return CHECKPOINT_MISMATCH;
28: end if
29: Auditor independently replays under the declared numerical specification;
30: for to do
31: if state, telemetry, batch membership, or record opening disagrees with sealed , then
32: return BINDING_MISMATCH;
33: end if
34: end for
35: if and then
36: Replay the interval ending at with the same opening, state, and telemetry checks;
37: if any predecessor check fails then
38: return the corresponding rejection code;
39: end if
40: end if
41: Both losses underlying the target's loss difference have now been checked (step 1 uses zero difference);
42: end for
43: return VERIFIED;
Table 7. BF16 audit outcomes on the 100-step 7B trajectory. Fixed-target runs diagnose individual deviations; only one challenge was drawn randomly.
| Audit | Observed outcome |
|---|---|
| Honest target 1 | Passes |
| Random challenge | Stops at 35: update norm 0 reported versus 0.085163 recomputed |
| Fixed target 19 | Rejects loss 1.567494 versus 1.317494 recomputed |
| Fixed target 35 | Rejects false update norm |
| Fixed target 51 | Rejects skipped update: norm 0 versus 0.061800 recomputed |
0.421; learning-rate deviation AUC is 0.823, 0.767, and 0.729. A label-informed counterfactual replaces telemetry at the injected steps with smoothed values and re-seals the records: high-stratum capture becomes zero, and the conditional 90% direct-hit budget is 92 versus uniform's 74. This stress test demonstrates how provider-authored telemetry can defeat ranking; it is not an online adaptive-attack experiment.
For skip-update interval coverage, we enumerate the interval predicate under the frozen rankings, obtaining 15.05%, 54.89%, and 37.71% at ; uniform yields 55.00%. The calculation assumes that covering an injected step causes rejection. It omits extra predecessor checks and early stopping in the BF16 verifier and therefore is neither a measured detection rate nor an audit-time estimate.
C.1 Integrated 7B Audit
The independent BF16 implementation uses Qwen2.5-7B revision d149729, Dolly-15k revision bdd27f4, LoRA rank 8 with q/k/v/o projections, sequence length 512, micro-batch 8, accumulation 4, AdamW, and a cosine schedule. Complete checkpoints bind trainable parameters, Adam moments and step counters, scheduler, CPU/CUDA RNG, and data cursor. BoundaryUnit v2 binds reported loss, parameter-update norm, learning rate, and batch hashes. A separately supplied seal root fixes the verifier's input trajectory; a local cryptographically secure pseudorandom generator (CSPRNG) supplies one draw after sealing.
The resulting challenge is
The verifier stops at target 35 after seven successful targets, with 34 total replayed steps including repeated intervals and predecessor checks. Target 51 was selected by the uniform draw but was not visited. Independent fixed-target diagnostics establish its rejection, as Table 7 reports. Replaying the supplied random value reproduces the same ; that reproduction is a diagnostic, not another fresh random trial.
Training-phase wall time is 363.413 s and the process-internal total is 382.115 s, excluding interpreter startup. The final random verifier records about 145.0 s internally; one-second external polling gives an upper wall-time estimate of 147.7 s. Model loading, data checks, checkpoint reads, and replay are included. Training peak tensor allocation is about 54.6 GiB; verifier process residency sampled with nvidia-smi peaks near 71.9 GiB. These are different memory measures, and neither isolates committer overhead. Another service occupies about 11 GiB. No GPU-compute-time or same-goal speedup is inferred from these wall times.
C.2 Negative Cases and Component Timing
At 1.5B, actual false loss/update reports, skipped updates, and a batch swap are rejected. Separately constructed copies of an honest trajectory modify predecessor loss, Adam first moments, or data position before recomputing the seal; predecessor replay, state comparison, and cursor checks reject them. They are constructed counterexamples, not additional training runs. Post-seal edits, missing/wrong checkpoints, and missing records also fail the relevant checks. These tests exercise enforcement paths; they do not prove the protocol.
Five tiny canonical-verifier units were timed with one warmup and three measurements each. Their median total CPU costs range from 1.96 to 3.16 s, including binding, independent step/interval replay, nfxk, and input derivation. Component timers overlap within this total and must not be summed. JSON parsing, constructor, training, network, and external proving are excluded. This timing boundary differs from the 3.32 CPU-s residual calibration and the 1.2 CPU-s binding-check assumption used in the component models.
The archive identifies the source snapshot for each verdict. The main implementation reports 59 regression tests passed and one skipped; a separate worker implementation reports 288 passed and five skipped. These counts describe different snapshots and are not pooled. Source-version details and final-output retests are recorded with the artifact.
D MEASURED AUDIT-COST AND REPLAY-PRIMITIVE DETAILS
The 1.5B comparison uses sequence length 512, micro-batch 8, four accumulation steps, LoRA rank 8, AdamW at , a cosine schedule, , , and training seed 42. Learning-rate deviations multiply the rate by four at steps 20/40/60/80/100 (V5L) or every tenth step (V10L); V5S skips the five block-ending updates. We fix and . Attack labels calibrate budgets offline, while complete-audit costs are measured on the same honest store. Table 9 gives the resulting direct-hit probabilities. The implementation can replay preceding blocks to check loss differences, so these probabilities do not exhaust its rejection
Table 8. Measured complete-audit wall time on the same honest 1.5B trajectory. Budgets reach at least 90% direct-hit probability under offline calibration; comes from the indicated attack ranking. Medians use three runs, except six for the five-deviation zero-capture arm. †Hypothetical zero-capture boundary, without a corresponding ten-skip trajectory.
| Calibration | Wall time (s) uni / strat | Change | ||
|---|---|---|---|---|
| V5L: 2/5 | 37 | 12 | 265.1 / 134.8 | -49% |
| V10L: 5/10 | 20 | 6 | 189.3 / 62.5 | -67% |
| V5S: 0/5 | 37 | 46 | 265.1 / 364.8 | +38% |
| Boundary: 0/10† | 20 | 32 | 189.3 / 290.6 | +54% |
Table 9. Offline budget calibration for the measured 1.5B audit. The zero-capture row is a hypothetical boundary.
| Rule | k | s | Direct-hit probability | |
|---|---|---|---|---|
| Uniform | 5 | - | 37 | 0.906640 |
| Stratified (V5L) | 5 | 2 | 12 | 0.915106 |
| Stratified (V5S) | 5 | 0 | 46 | 0.903587 |
| Uniform | 10 | - | 20 | 0.904884 |
| Stratified (V10L) | 10 | 5 | 6 | 0.924917 |
| Stratified boundary | 10 | 0 | 32 | 0.907083 |
predicate.
Most groups contain three challenge-seed runs; the group contains six timings. These repetitions share one trained trajectory, not independent training seeds. Two full-coverage runs have a median of 766.116 s and each replay 395 steps because the implementation checks targets separately, including predecessor intervals. This is neither an optimized single sequential replay nor an equal-guarantee comparator for sampled auditing.
Additional best-capture calibration arms assume all violations lie in the high stratum, requiring six samples for and two for . They are sensitivity cases, not observed attack rankings. In the arm, wall times are 44.8, 245.2, and 250.3 s (median 245.217 s); concurrent CPU/I/O contention makes reporting only the fastest run misleading. GPU residency is not GPU compute time. These cases and full-coverage runs complete the 29-run cost matrix.
Table 10 reports the separate rejection runs. They stop after 7/7/20 visited targets for V5L (stratified/uniform/full), 3/4/10 for V10L, and 20/9/20 for V5S. These stopping times differ from the complete honest audits in Table 8.
The 7B primitive scan uses a retained trajectory on an RTX 6000D. It records 13 successful native- intervals and 18 successful virtual- intervals, plus two rejected virtual intervals excluded from the successful-replay fit. Fitted slopes are 3.5258 and 3.6404 s per replayed step. Six restores of a 60,648,342-byte checkpoint have a median of 0.106387 s under a warm OS page cache. The scan omits
Table 10. Time to first rejection on three deviation trajectories (seconds, rounded). Each cell is one challenge-seed run. All nine runs reject on recomputed update-norm inconsistency; the table does not estimate detection rates.
| Trajectory | Stratified | Uniform | Full coverage |
|---|---|---|---|
| V5L | 87 | 109 | 167 |
| V10L | 50 | 83 | 113 |
| V5S | 161 | 118 | 171 |
outer environment validation and predecessor checks. It does not establish cold-storage performance or an end-to-end stride optimum; exploratory values are estimates.
E NUMERIC FORMAT ABLATION
Table 11 summarizes numerical probes and retained validation measurements. The 300-step 1.5B experiment evaluates 1,502 examples over three seeds using held-out next-token top-1 accuracy, with mean 0.6010994 and population standard deviation 0.0001435. Fixed-point probes document overflow and dynamic-range failures. Their matched pre-training BF16 reference log is unavailable, so they support numerical diagnostics rather than accuracy comparisons.
Table 11. Numerical evidence and its scope. Multi-model accuracy and bitwise replay are reported separately in Table 4.
| Experiment | Retained evidence |
|---|---|
| Fixed-point probes | Overflow and dynamic-range failures; matched BF16 accuracy differences omitted |
| Exact-rsqrt probe | Counterfactual numerical diagnostic, distinct from the ordinary fixed-point path |
| 1.5B BF16, 300 steps | Top-1 token accuracy over three seeds |
| 7B/8B DetFloat | Native-BF16 agreement within 0.011 pp in the matched runs |
F COMMITMENT SCHEME MICROBENCHMARK
We evaluate three candidate commitment schemes on a 7B-parameter LoRA workload over 3 repetitions, and Table 12 reports the results. Scheme A (BLAKE3 with a uniform 256-bit salt) requires only 0.079 ms per step, about 0.002% of a 3.47 s 7B step; its measured wall-clock delta of +0.04% is within run-to-run noise, as Scheme C's shows. Scheme A has the lowest per-step cost, below Poseidon and below BaseFold, and its 184–216 byte inputs use the benchmarked v1 record format, excluding the later v2 telemetry extension. These measurements motivate its use as the committee; they do not establish private-circuit cost.
Table 12. Commitment scheme comparison on 7B LoRA workload. Scheme A (BLAKE3 with salt) achieves microsecond latency with v1 record inputs; sizes exclude the v2 telemetry extension. Runtime overhead is the wall-clock delta (3 reps), noise-dominated below .
| Commitment Scheme | Cost / Step | Runtime Overhead | Input Representation |
|---|---|---|---|
| A: BLAKE3 + Salt | 0.079 ms | +0.04% | 184–216 B v1 input |
| B: Poseidon Field Hash | 3.846 ms | +4.13% | 6 field elements |
| C: BaseFold + Merkle | 0.746 ms | –0.63% | GF(2^8) RS encoding (0.24 MB/s) |
G CHECKPOINT STORAGE VERSUS RECOMPUTATION PARETO FRONT
Table 13 reproduces the retained storage/recomputation model. Each checkpoint is 39,223,360 bytes; file counts include the initial state. Mean replay distance includes the target step. Recomputation share is recomputation divided by proving plus recomputation, not a fraction of training time. The evaluated strides are .
Table 13. Checkpoint storage and recomputation model (). Storage is derived from state size; replay uses measured step-time inputs. The initial checkpoint is included.
| Files | Storage (GiB) | Replay steps | Recomp. share | |
|---|---|---|---|---|
| 10 | 21 | 0.76712 | 5.5 | 3.31% |
| 50 | 5 | 0.18265 | 25.5 | 13.69% |
| 100 | 3 | 0.10959 | 50.5 | 23.90% |
| 500 | 1 | 0.03653 | 100.5 | 38.46% |
H CONTROLLED SAMPLING AND CHECKPOINT COST MODELS
To isolate the cost mechanism, we also simulate telemetry under controlled separability. Uniform sampling needs 180 of 200 units to directly hit one invalid unit with 90% probability. With and per-sample replay charged without deduplication, the calibration ledger costs direct per-step proving; at with deduplicated replay, its modeled advantage approaches parity. We then simulate three anomaly responses and a traceless control, pricing deduplicated replay as
where is the non-replay cost per selected target and accounts for provider and auditor replay. The replay-only model sets , with step-time inputs of 3.46/3.81/5.80 s for 7B/8B/14B. The integer-checker model uses CPU-s and CPU-s, a residual obtained by subtracting replay rather than independently timing a checker. Table 14 presents the batch_poison slice. Modeled gains require anomaly separation, which often fails for real skipped updates.
Under the simulated separable telemetry, budgets fall 5.5–7.0× over tested . At , cost advantages over the full-audit model range from 9.43 to 10.40 for the replay-only model and 22.57 to 23.25 for the integer-checker model across the three attack classes. The traceless control instead spends budget on an uninformative high stratum and can be worse than uniform. Figure 5 and Table 18 in Appendix I show the simulated direct-hit-cost frontier and quantile sensitivity. These characterize conditional operating points, not measured full-system speedups.
Checkpoint-Interval Pareto. We sweep , pricing the online sealed checkpoint-write share (measured 365 MB/s write bandwidth) against the expected deduplicated offline replay at reference budget ; Table 15 reports the results, and Appendix G adds a storage-only sweep over . keeps the online share below 2% (0.96% at 7B, 1.51% at 14B) with about 28 expected replayed steps per audit; violates the 2% online bound, and nearly doubles the offline burden. This model motivates for the BF16 prototype; it is not a full-system timing sweep at each .
I TELEMETRY-STRATIFIED SAMPLING: FULL GRID AND SENSITIVITY
This appendix extends the simulated-telemetry model in Table 14 to three anomaly-response classes, a traceless control, , and quantile sensitivity. These are sampler calculations with injected telemetry, not additional real training runs; the measured rankings are reported in Appendix C. All cells use , , , 24 injection seeds at (12 at ); uses the exact two-stratum hypergeometric accounting of Eq. (6) (the conservative specification bound differs by at most 2 steps, e.g., 26 vs. 24 at ). Direct-hit probability at is 0.900–0.971 analytically, agreeing with -trial process-level Monte-Carlo within 0.31% and with the real StratifiedBeaconSampler (10,000 trials, fresh simulated challenge randomness per trial) within 0.50%.
I.1 Per-Class Budgets and Modeled Cost Ratios ()
The simulated anomaly responses place nearly every injected step in the high stratum, yielding the same tabulated budgets. Cost ratios still differ across classes. This controlled separability does not hold for all real deviations. The traceless control leaves no informative telemetry signature, so the high stratum does not reliably concentrate marked steps. The tabulated budgets exceed uniform's because
preferential allocation spends checks on this uninformative stratum.
I.2 Replication
At (, 12 seeds, batch_poison), stratified sampling retains its budget advantage over uniform: (–17%) versus uniform 900/684/536/369/205/108, giving modeled cost ratios of 2.48–19.30× in the replay-only model and 5.03–44.57× in the integer-checker model; the traceless arm requires , approximately 1.7–58.0% higher than uniform.
I.3 High-Stratum Quantile Sensitivity
The budget floor depends on the frozen quantile. An exploratory single-seed probe first injected 20 anomalies and then evaluated a prefix of the labels; its case therefore differs from a run with only five injections. This probe gives and at (), i.e., the small- replay-only cost-ratio ceiling scales with the stratum size, not with a sampling-theory limit.
We separately run the full 24-seed simulation with the actual requested injected anomalies at . At , , this gives rather than the exploratory probe's 8 because high-stratum capture differs (5 versus 2). Floating-point rounding in the implementation makes the nominal arm use 15 of 200 records. The sweep spans the three simulated anomaly classes, and Table 17 reports the results. Smaller high strata reduce the budget when they retain the marked steps: at , the integer-checker model gives ratios of 9.3–28.8× for , and gives at least 14×. In the replay-only model, the budget scales approximately with . For several marked steps, the discrete budget can fall sharply once , because a high-stratum miss becomes impossible. These gains rely on capture being preserved as the stratum shrinks. The simulation agrees in direction, while the traceless control still requires more samples than uniform. We retain the fixed configuration for the main experiments.
I.4 Direct-Hit Probability Frontier ( Sweep)
We sweep the direct-hit target on the protocol of Table 14 (, , , minimum observed over 24 injection seeds, batch_poison as the representative class); Figure 5 and Table 18 present the results. lazy_skip and lr_tamper share batch_poison's in all but two combinations. At , , , batch_poison needs 4/6 samples where the other classes need 3/4; at , , , it needs 3/4/6 where they need
Table 14. Conditional sampling-cost model with simulated telemetry (, , batch_poison). targets 90% direct-hit probability; is deduplicated replay volume over 24 injection seeds. Ratios price a full -step audit against sampled work; they are not wall-time measurements. The replay-only model uses ; the integer-checker model adds the tiny- residual cost. Figure 5 presents the target-probability sweep.
| k | uniform | strat. | reduction | strat. | uniform | Replay cost ratio | Integer cost ratio |
|---|---|---|---|---|---|---|---|
| 1 | 180 | 33 | 80 | 195 | |||
| 2 | 137 | 24 | 57 | 182 | |||
| 3 | 107 | 19 | 48 | 166 | |||
| 5 | 74 | 13 | 33 | 139 | |||
| 10 | 41 | 7 | 19 | 95 | |||
| 20 | 21 | 3 | 7 | 55 |
Table 15. Checkpoint-interval cost model (, ). Online share and replay times use measured bandwidth and step-time inputs. comes from the sampler; parentheses give the uniform-target reference , not a bound for nonuniform targets.
| g | Online share 7B / 14B | Replay 7B | Replay 14B | |
|---|---|---|---|---|
| 1 | 4.79% / 7.55% | 10.0 (10) | 34.6 s | 58.0 s |
| 2 | 2.39% / 3.77% | 15.6 (15) | 53.9 s | 90.5 s |
| 5 | 0.96% / 1.51% | 27.7 (30) | 95.8 s | 160.7 s |
| 10 | 0.48% / 0.75% | 47.2 (55) | 163.2 s | 273.8 s |
| 20 | 0.24% / 0.38% | 85.7 (105) | 296.5 s | 497.2 s |
Table 16. Simulated-telemetry budgets and modeled cost ratios by tamper class. Uniform is class-independent (180/137/107/74/41/21 for ); traceless is 183/146/121/92/65/48. The replay-only modeled cost ratio is (identical across 7B/8B/14B); the integer-checker model prices the 3.32 CPU-s nfzk unit check. The 3.32 CPU-s input is a residual calibration, not standalone checker timing.
| Class | k | med | Replay / Integer × | |
|---|---|---|---|---|
| batch_poison | 1/2/3/5/10/20 | 33/24/19/13/7/3 | 2.51–26.77 / 5.11–55.77 | |
| lazy_skip | 1/2/3/5/10/20 | 33/24/19/13/7/3 | 2.52–26.11 / 5.12–55.39 | |
| lr_tamper | 1/2/3/5/10/20 | 33/24/19/13/7/3 | 2.42–24.23 / 5.06–54.21 | |
| traceless | 1/2/3/5/10/20 | 0–3 | 183/146/121/92/65/48 | 1.02–1.91 / 1.08–3.61 |
Table 17. Modeled cost advantages vs. stratum quantile (, , , , 24 injection seeds per cell). The minimum observed capture across the 24 seeds is ; is class-independent; modeled cost-ratio ranges span batch_poison, lazy_skip, and lr_tamper. The pre-registered arm is Table 14.
| k | Replay | Integer | ||
|---|---|---|---|---|
| 5% (10) | 1 | 11 | ||
| 2 | 8 | |||
| 3 | 6 | |||
| 5 | 3 | |||
| 7% (15) | 1 | 17 | ||
| 2 | 12 | |||
| 3 | 9 | |||
| 5 | 6 |
2/3/4. The plotted frontier is therefore conservative. In every cell of both stratified arms the budget sits strictly below uniform (panel a: three separated bands); the frontier lies below the frontier throughout (typically lower ). The edge steepens at : once a miss inside is impossible, so stratified nearly stops growing (, : 18 at both 95% and 99%; : at every target) while uniform keeps climbing toward . The traceless floor marks the boundary of the mechanism: its exceeds uniform in every cell (replay-only model ratio at or below parity throughout, worst at , , ), because the high-stratum budget samples an anomaly-free layer. The penalty narrows as , reaching parity at with a residual at . The traceless floor is never worse than (residual at ). Analytic across all 192 frontier cells agrees with -trial process-level Monte-Carlo within and with the real StratifiedBeaconSampler (10,000 trials on boundary cells) within .
J SIMULATED INJECTION GRID AND STATISTICAL CALIBRATION
J.1 Experimental Parameter Space
The experimental grid evaluates seven injection families (six attacks covering A1–A4, A6, and A7, plus a negative control; RNG state is included in the bound checkpoint, but A5 is not injected) across the following dimensions:
-
Attack Families (7): skip_step (A1), swap_base (A2), alter_hparams (A6), single_step_poison (A4), forge_checkpoint (A3/A7), uncommitted_data (A6), and committed_poison (Negative Control).
-
Binding Configurations (2): Full binding vs. ablated one-binding-off (testing failures exposed by the selected binding removals).
-
Perturbation Intensity (): injected violating units.


Figure 5. Simulated direct-hit-cost frontier (, , , batch_poison, minimum observed over 24 seeds). a Minimum audit budget vs. tampered steps ; each band spans . The stratified bands sit strictly below the uniform band in every cell—the frontier shifts down—while the traceless floor (dashed) rides just above uniform. b Modeled replay-only cost advantage relative to uniform (uniform cost divided by arm cost) (envelope over ): the stratified arms clear parity by everywhere, and the traceless floor stays below it (worst ), converging to at .
Table 18. Minimum audit budget across the direct-hit frontier (, , , batch_poison, minimum observed over 24 seeds). Uniform is class-independent; lazy_skip and lr_tamper differ in two combinations (see text). The traceless floor is the degradation boundary: its exceeds uniform everywhere, yet its replay-only cost ratio approaches parity as for ( residual at ).
| Arm | 2 | 3 | 5 | 10 | 20 | ||
|---|---|---|---|---|---|---|---|
| uniform | 80% | 160 | 111 | 83 | 55 | 30 | 15 |
| 90% | 180 | 137 | 107 | 74 | 41 | 21 | |
| 95% | 190 | 155 | 126 | 90 | 51 | 27 | |
| 99% | 198 | 180 | 157 | 120 | 73 | 40 | |
| stratified | 80% | 29 | 21 | 14 | 9 | 4 | 2 |
| 90% | 33 | 24 | 19 | 13 | 7 | 3 | |
| 95% | 36 | 28 | 23 | 16 | 8 | 4 | |
| 99% | 37 | 33 | 28 | 21 | 12 | 6 | |
| stratified | 80% | 14 | 9 | 7 | 4 | 2 | 1 |
| 90% | 17 | 12 | 9 | 6 | 3 | 1 | |
| 95% | 18 | 14 | 11 | 7 | 4 | 1 | |
| 99% | 18 | 16 | 13 | 9 | 6 | 1 | |
| traceless | 80% | 166 | 124 | 101 | 77 | 55 | 43 |
| 90% | 183 | 146 | 121 | 92 | 65 | 48 | |
| 95% | 192 | 162 | 137 | 106 | 73 | 53 | |
| 99% | 199 | 183 | 163 | 132 | 92 | 63 |
-
Sampling Strategies (10): Uniform-fixed-s (), Bernoulli sampling (), block-stratified sampling, and input-aware probability-proportional-to-size sampling without replacement (PPS; ).
-
Random Seeds and Repetitions: Seeds evaluated over 500 trials per cell (630,000 total simulated audit trials).
J.2 Wilson Interval Coverage Analysis
For detections in trials, let . We use the 95% Wilson score interval (Wilson, 1927),
For each configuration, we compare with a reference probability. The 1,134 exact references use Eq. (3) for uniform-fixed-s, Eq. (4) for Bernoulli sampling, or the independent-inclusion formula for the block-stratified arm:
where is the registered inclusion probability of step ( in the four 50-step blocks). The remaining 126 input-aware PPS references are estimates from 2,000 Monte Carlo trials per cell. The empirical Wilson intervals cover 1,118/1,134 exact references and 125/126 Monte Carlo estimates, totaling .
For the latter cells, this comparison does not account for uncertainty in the reference estimate. Table 19 shows five calibration examples: the first two theoretical probabilities fall outside their Wilson intervals, and the other three are covered, so the table illustrates boundary behavior rather than listing outliers. Coverage alone does not establish absence of bias.
Table 19. Calibration examples from the 1,260-cell grid. The first two theory values lie outside the displayed intervals; the remaining three lie inside.
| Attack Arm | Strategy | Theory | Empirical | 95% Wilson CI | |
|---|---|---|---|---|---|
| skip_step | 1 | s=10 (Seed 42) | 0.0977 | 0.0700 | [0.0508, 0.0958] |
| single_step_poisson | 1 | s=10 (Seed 42) | 0.0977 | 0.0700 | [0.0508, 0.0958] |
| uncommitted_data | 1 | s=2 (Seed 1024) | 0.0100 | 0.0140 | [0.0068, 0.0286] |
| uncommitted_data | 5 | (Seed 2048) | 0.2262 | 0.2100 | [0.1766, 0.2478] |
| alter_hparams | 1 | s=2 (Seed 42) | 0.0199 | 0.0120 | [0.0055, 0.0259] |
J.3 Calibrated Detection Slice
J.4 Conditional Economic Deterrence
In a risk-neutral, single-deviation model, let be the gain received only upon nondetection and the enforceable loss upon detection. The expected payoff is negative when
At and , the uniform probabilities for require ratios above 19, 3.38, and 1.45, respectively. This model assumes enforceable settlement and excludes repeated-game and risk-preference effects. The experiments produce rejection evidence but do not deploy escrow or measure deterrence.
K AUXILIARY CROSS-ARCHITECTURE ALGEBRAIC CHECKS
The auxiliary nfzk checker evaluates exact-integer relations across CPU and GPU hardware. Our tested BF16 GPU/CPU paths, by comparison, use different reduction orders: cuBLAS and oneDNN results mismatch on 0.042–0.195% of GEMM elements at (an existence result, not a convergence claim). The integer-domain witness carries no ordering ambiguity: at the 7B layer dimension (LoRA ), a GPU-generated exact-integer product witness is bitwise equal to CPU recomputation mismatches), and batched Freivalds verification costs 50 ms against 47.9 s of exact-integer recomputation, a reduction ( against the fp64-exact path). A single-element claim tamper is caught in 12/12 trials at rounds, and an AdamW-chain check over the 2rd-element LoRA surface costs 331 ms per projection, which extrapolates to about 65 s over 28 layers and seven projections per layer at . This is a shape-based extrapolation, not a full-step measurement of the main , q/k/v/o training workload. Table 21 summarizes operator timings.
L COMPONENT-PRICED RESOURCE LEDGER AND PARALLEL SCALING
This appendix reports a component-priced operating-point model. Its 273.33 GPU-s/unit proving input comes from an external small-model pilot that completed 15 of 17 components; two attention components failed and the coverage matrix records further semantic gaps. It does not price a completed private step relation. The 1.2 CPU-s binding cost is an assumption. Cross-goal ratios compare different detection guarantees and must not be used as same-goal experimental speedups.
100-Step Training Measurement and Audit Cost Model. We combine a measured 100-step 1.5B run with a protocol-priced audit ledger. The baseline finishes in 87.53 s and train-and-commit in 89.03 s (+1.73%; boundary records +1.15%, commit calls +0.0016%). Both arms share kernels, so the determinism premium of Section 5.6 is excluded. After sealing, the ledger prices the audit samples derived from a fixed all-zero development beacon value and the sealed chain root at 1,483.8 GPU-s of modeled proving and recomputation, giving a full-audit/sample cost ratio of against the 29,562.6 GPU-s ledger. Under a serial accounting assumption, adding training wall time and CPU-s of binding checks gives a 1,578.8 s time proxy. Applying the per-step component price and CPU-check allowance to every step gives 27,540.5 s, a ratio of . These proxies add GPU work, CPU work, and training time without overlap; they are not measured elapsed times. The proving input covers an incomplete relation, and the ratios compare different verification goals. Section 5.4 reports measured audits at matched direct-hit targets.
Calibrated Ledger Evaluation. At the pre-registered benchmark (, i.e., ), Table 22 gives the full ledger: the model assigns 3,081.8 GPUs (2,733.3 proving plus 348.5 recomputation across dist=205 re-executed steps) and 12.0 CPU-s verification, versus 63,336.0 GPU-s for the full-audit ledger (, ) and 54,666.0 GPU-s for direct per-step proving (, ). These cross-goal ratios are dominated by the sampling fraction (): the sampling calculation gives the goal (, ) under Eq. (3) with the enforced interval predicate, whereas both baseline ledgers price checks of every step under their component relation. Booking verifier-side interval replay re-prices the 5% ratios to against the original full-audit ledger, or when that baseline also includes replay; these are different
Table 20. Adversarial attack detection at , across 500 trials per seed (seeds 42/1024/2048). denotes violation sets assigned by the sampling simulator. Cascading sets require an interval-check predicate and do not establish the coverage of a local-step verifier. Denotes borderline Wilson CI boundary cells.
| Attack Family | (3 Seeds) | Theoretical | Empirical Detection | Rejecting Mechanism | |
|---|---|---|---|---|---|
| skip_step (A1) | 1 | 2 / 47 / 39 | 9.8 / 93.6 / 89.2% | Chain adjacency link failure () | |
| skip_step (A1) | 5 | 67 / 91 / 77 | 98.5 / 99.8 / 99.3% | 99.4 / 99.8 / 99.4% | Step index mismatch () |
| skip_step (A1) | 10 | 141 / 138 / 154 | 100% | Intermediate chain discontinuity | |
| swap_base (A2) / alter_params (A6) | 5 | 67 / 91 / 77 | 98.5 / 99.8 / 99.3% | 99.4 / 99.8 / 99.4% | Spec fingerprint mismatch () |
| single_step_poison (A4) | 1 | 2 / 47 / 39 | 9.8 / 93.6 / 89.2% | Output boundary mismatch () | |
| forge_checkpoint (A3/A7) | 1 | 50 / 51 / 1 | 94.8 / 95.1 / 5.0% | 94.6 / 94.0 / 5.6% | State anchor rejection (CHECKPOINT_MISMATCH) |
| forge_checkpoint (A3/A7) | 5 | 200 / 200 / 200 | 100% | 100% | State anchor rejection (CHECKPOINT_MISMATCH) |
| uncommitted_data (A6) | 1 / 5 / 10 | 5.00 / 22.83 / 40.85% | 3.2–5.2 / 21.8–22.0 / 39.6–42.2% | Dataset membership proof fails against | |
| committed_poison (Neg. Ctrl) | any | 0 | 0% | 0% | Outside the simulated violation predicate |
Table 21. Auxiliary nfzk Freivalds microbenchmark (CPU, min-of-reps). is exact-integer recomputation; FV is batched -round verification of the opened integer product claim, evaluated in fp64. Detection uses int64 and independent binary challenges; the 99/100 outcomes include one all-zero challenge row that misses the changed element. The fp64 timings are a separate path. fp64-FV versus fp64-exact recomputation; the fp64 path is a constant-overhead regime (excluded).
| d | i64 | FV fp64 | Speedup vs. i64 | Detect |
|---|---|---|---|---|
| 64 | 0.2 ms | 0.07 ms | 99/100 | |
| 1024 | 703 ms | 40 ms | 99/100 | |
| 2048 | 5,957 ms | 46 ms | 30/30 | |
| 4096 | 47,910 ms | 50 ms | 12/12 |
denominators, not a statistical interval. The ratio is against ; the full-coverage comparator explicitly sets and costs more than direct per-step proving under this ledger. Full coverage differs from merely guaranteeing one hit: for a known marked count , uniform sampling reaches hit probability one at . The worst case requires samples. The component-derived storage estimate falls from 285.8 MB to 14.3 MB at 5% sampling; it is not a full-size private-proof measurement.
Parallel Audit Scaling. Because audit units carry estimated work weights , the jobs can run independently across provider GPUs. The measured workload restores intervals, constructs opened witnesses, and checks the integer relation; the code retains its historical prove/verify API names. On a 4-GPU A100-40GB host with the two-layer model (, ), median wall-clock falls from 1,040.1 s (1 GPU) to 576.2 s (2 GPUs, ) and 313.2 s (4 GPUs, , 83.0% efficiency), and all 120 audited runs verify bit-exactly. LPT binning shrinks straggler tails from 62.2 s to 30.0 s, bringing this two-layer audit workload to about 5 minutes on four GPUs.
M REQUIREMENTS FOR A FUTURE PRIVATE AUDIT BACKEND
The current audit discloses the states and batches required for replay. A private backend would replace those openings with a proof of the same computation and bindings. The following obligations describe this extension; neither the opened-witness checker nor the external component pilot implements a complete private relation.
M.1 Computation, Binding, and Privacy Obligations
A private audit-unit proof would need to establish:
-
The required interval computation. The relation must cover forward and backward operations, the specified LoRA update, and complete optimizer semantics, including AdamW bias correction, weight decay, scheduling, and RNG dependencies. Numerical encoding and rounding must match the committed specification. Proving only a selected local transition leaves its predecessor unverified; the required interval and any predecessor-telemetry computation must also be covered.
-
Sealed state and record bindings. The proof must bind its starting checkpoint, intervening records, and final state to the acknowledged seal, including the specification fingerprint and telemetry values used by the audit. A proof of unrelated arithmetic does not establish these links.
-
Data membership and disclosure. The relation must establish the prescribed batch positions and membership against . A complete privacy argument must state which commitments, telemetry, selections, and outcomes remain public and establish zero knowledge for the remaining witnesses. Hash preimage resistance alone does not provide this guarantee.
Potential backend techniques include Spartan (Setty, 2020), zkLLM (Sun et al., 2024), and polynomial-commitment systems (Zeilberger et al., 2024; Golovnev et al., 2023; Lu et al., 2025). Constraint counts, proving cost, and privacy
Table 22. Modeled audit resource ledger across sampling rate s/N at N=200, g=50. Proving is priced at the measured 273.33 GPUs/unit and recomputation at 1.70 GPU-s/step. Modeled cost ratios compare different verification goals (probabilistic and |V|-dependent for sampled rows, deterministic for full rows). †Assumed 1.2 CPU-s/unit binding-level check, not a measurement. The tabulated totals exclude verifier-side interval replay of Σdist steps (0.25 CPU-s/step on the tiny-σ fixture).
| Sampling Rate | s | Σdist | Proving model (GPU-s) | Replay model (GPU-s) | GPU total model (GPU-s) | CPU check model (CPU-s)† | Size estimate | Full / arm cost |
|---|---|---|---|---|---|---|---|---|
| 1% | 2 | 16 | 546.7 | 27.2 | 573.9 | 2.4 | 2.86 MB | 110.4× |
| 5% (Calibrated) | 10 | 205 | 2,733.3 | 348.5 | 3,081.8 | 12.0 | 14.29 MB | 20.55× |
| 10% | 20 | 421 | 5,466.6 | 715.7 | 6,182.3 | 24.0 | 28.58 MB | 10.24× |
| 20% | 40 | 915 | 10,933.2 | 1,555.5 | 12,488.7 | 48.0 | 57.16 MB | 5.07× |
| Full-coverage model (B_Full) | 200 | 5,100 | 54,666.0 | 8,670.0 | 63,336.0 | 240.0 | 285.81 MB | 1.00× |
| Per-step model (B_Step) | 200 | — | 54,666.0 | — | 54,666.0 | — | — | 1.16× |
Table 23. Auditor leakage surface. The current opened-witness audit discloses replay inputs; the target row describes a future private-proof backend satisfying Appendix M.
| Artifact | Auditor View |
|---|---|
| σ, σ_id,R_D, C_base | Public specification and digests, without a hiding guarantee |
| Commitment c_i | Hiding needs fresh secret uniform salts and a random-oracle argument. BF16 uses public development salts and claims no hiding |
| Batch Witness bind_{x_i} | Batches are opened. The reference protocol checks Merkle membership; BF16 checks hashes and positions |
| Reported Telemetry | All reported losses, update norms, and available position features used for ranking; fixed by sealing and checked in replayed intervals |
| Replay Inputs | Both checkers receive required checkpoints and interval states |
| Private proof π_i (target) | Needs a complete zero-knowledge relation and public-input/leakage specification; no end-to-end backend measured |
| Challenge Set Q | Reference: public beacon; BF16: local randomness. Selection may reveal rankings |
| Delivered Model W_final | Bound by h(W_final). Replay can open unselected steps, including predecessor intervals |
composition require the complete implemented relation; hash input length and integer-checker microbenchmarks do not determine them.
N AUDITOR LEAKAGE SURFACE
Table 23 summarizes the auditor's view. The implemented paths disclose replay inputs; hiding them requires the additional proof obligations in Appendix M.
O ARTIFACT AVAILABILITY AND REPRODUCIBILITY CHECKLIST
The retained evidence package contains implementation snapshots, configurations, commitment records, challenges, verdicts, logs, and analysis outputs. The supplementary evaluation archive includes 1,689 source files; 172 large checkpoint/state tensor paths are listed with their source locations and digests but are not bundled. Consequently, the package supports inspection of recorded decisions and recomputation of reported summaries, not independent execution of every opened-witness audit.
The record-checking entry point is check_experiment_s_20261030.py in the artifact directory. It checks stored evidence and recomputes the associated calculations. Re-executing the BF16 audits additionally requires the omitted tensors, matching model/data revisions, and a compatible GPU/software environment. A complete anonymous executable package still requires assembly and verification.
P ETHICAL CONSIDERATIONS
This paper investigates independent auditing of outsourced model adaptation. All empirical evaluations were performed using publicly accessible, open-license datasets (Databricks Dolly-15k (Conover et al., 2023)) and open-weights models (Qwen2.5-1.5B, Qwen2.5-7B, Qwen2.5-14B, and Llama-3.1-8B-Instruct). Attacks were injected into controlled training and audit runs using public data. Another service remained resident on the GPU during the 7B prototype run; its latency was not measured, so service continuity does not establish absence of performance impact. No private client data or human-subject experiments were used. The proposed auditing framework promotes algorithmic accountability and verifiable execution in outsourced machine learning services. The current audit discloses the checkpoints, states, and batches needed for interval replay; avoiding disclosure of proprietary weights or private client data is the goal of the target private-proof interface.