ReplayAudit: Auditing Outsourced LLM Fine-Tuning via Sealed Records and Selective Replay
Organizations: College of Electronics and Information Engineering, Shenzhen University, Shenzhen, China.
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.
Figures & tables
| 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 |
| 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 |
| Model | Seq | S1 Det. | S2 Digest | S3 Commit | E2E |
|---|---|---|---|---|---|
| 1.5B | 512 | ||||
| 1.5B | 1024 | ||||
| 1.5B | 2048 | ||||
| 7B | 512 | ||||
| 7B | 1024 | ||||
| 7B | 2048 |
| Model | Token acc. Native DetFloat | Bitwise Replay | DetFloat Step | Peak Mem. | |
|---|---|---|---|---|---|
| Qwen2.5-7B | 0.005 pp | 900/900 (100%) | 3.47 s | 54.6 GiB | |
| Llama-3.1-8B | 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 |
Appendix figures & tables20 assets
Supplementary material from the paper’s appendix.
Appendix
| Field | Identifier | Cryptographic Binding Content |
| version_id | Protocol format version identifier | |
| Re-quotation of spec fingerprint | ||
| Step index in the execution sequence ( ) | ||
| Hash commitment to input state | ||
| Hash commitment to output state | ||
| Batch position and membership proof against |
| Attack | High-stratum capture | Direct-hit probability |
|---|---|---|
| Skip update | 0/5, 1/5, 0/5 | 5.15%, 30.45%, 5.15% |
| Learning rate | 3/5, 3/5, 3/5 | 64.02% in each run |
| 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 |
| Calibration | Wall time (s) | Change | ||
|---|---|---|---|---|
| uni / strat | ||||
| V5L: | 37 | 12 | 265.1 / 134.8 | |
| V10L: | 20 | 6 | 189.3 / 62.5 | |
| V5S: | 37 | 46 | 265.1 / 364.8 | |
| Boundary: | 20 | 32 | 189.3 / 290.6 |
| Rule | 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 |
| Trajectory | Stratified | Uniform | Full coverage |
|---|---|---|---|
| V5L | 87 | 109 | 167 |
| V10L | 50 | 83 | 113 |
| V5S | 161 | 118 | 171 |
| 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 |
| Commitment Scheme | Cost / Step | Runtime Overhead | Input Representation |
|---|---|---|---|
| A: BLAKE3 + Salt | 0.079 ms | 184–216 B v1 input | |
| B: Poseidon Field Hash | 3.846 ms | 6 field elements | |
| C: BaseFold + Merkle | 0.746 ms | GF( ) RS encoding (0.24 MB/s) |
| 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% |
| 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 |
| 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 |
| Class | 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 |
| ( ) | Replay | Integer | ||
|---|---|---|---|---|
| 5% (10) | 1 | 11 | 5.63–5.89 | 14.07–14.28 |
| 2 | 8 | 7.74–9.08 | 19.34–20.33 | |
| 3 | 6 | 12.11–12.22 | 27.11–27.18 | |
| 5 | 3 | 26.30–33.03 | 55.50–58.81 | |
| 7% (15) | 1 | 17 | 3.91–4.11 | 9.31–9.46 |
| 2 | 12 | 5.72–6.19 | 13.32–13.64 |
| 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 |
| Attack Arm | Strategy | Theory | Empirical | 95% Wilson CI | |
|---|---|---|---|---|---|
| skip_step | 1 | (Seed 42) | 0.0977 | 0.0700 | |
| single_step_poison | 1 | (Seed 42) | 0.0977 | 0.0700 | |
| uncommitted_data | 1 | (Seed 1024) | 0.0100 | 0.0140 | |
| uncommitted_data | 5 | (Seed 2048) | 0.2262 | 0.2100 | |
| alter_hparams | 1 | (Seed 42) | 0.0199 | 0.0120 |
| Attack Family | (3 Seeds) | Theoretical | Empirical Detection | Rejecting Mechanism | |
|---|---|---|---|---|---|
| skip_step (A1) | 1 | 2 / 47 / 39 | 9.8 / 93.6 / 89.2% | 7.0 † / 93.0 / 90.6% | 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_hparams (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% | 7.0 † / 93.0 / 90.6% | 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 ) |
| 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 |
| Sampling Rate | 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 | |
| 5% (Calibrated) | 10 | 205 | 2,733.3 | 348.5 | 3,081.8 | 12.0 | 14.29 MB | |
| 10% | 20 | 421 | 5,466.6 | 715.7 | 6,182.3 | 24.0 | 28.58 MB | |
| 20% | 40 | 915 | 10,933.2 | 1,555.5 | 12,488.7 | 48.0 | 57.16 MB | |
| Full-coverage model ( ) | 200 | 5,100 | 54,666.0 | 8,670.0 | 63,336.0 | 240.0 | 285.81 MB | |
| Per-step model ( ) | 200 | – | 54,666.0 | – | 54,666.0 | – | – |
| Artifact | Auditor View |
|---|---|
| Public specification and digests, without a hiding guarantee | |
| Commitment | Hiding needs fresh secret uniform salts and a random-oracle argument. BF16 uses public development salts and claims no hiding |
| Batch Witness | 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 ( target ) | Needs a complete zero-knowledge relation and public-input/leakage specification; no end-to-end backend measured |
LLM Auditing
Large language model auditing tests models and deployed systems for bias, safety, privacy, reliability, and provenance using behavioral and internal evidence.
See all 743 papers