Mechanism · Cryptographic & computational
Sampled inference recomputation
A verifier re-runs a random sample of an AI provider's logged queries on a trusted copy of the declared model and checks the outputs match.
Also called Inference recomputation; Recomputation-based inference verification; Partial recomputation
Summary
Sampled inference recomputation is a check that an AI provider's recorded outputs came from the model and settings it declared. The provider logs each query and response. A verifier's server re-runs a random sample on a trusted copy of the model. It flags outputs that differ by more than benign numerical noise allows. Checking costs less than generating because the verifier processes each sequence in one pass. Two schemes, TOPLOC and DiFR, have public code. DiFR has reproducible results on A100 and H200 GPUs with models of 8 to 30 billion parameters. TOPLOC's developer uses it to accept or reject work from untrusted computers. No independent red-team of the check has been published. Deployment needs full traffic capture and a secure verifier server inside the provider's facility. Unrecorded work is never checked. The noise tolerance also leaves a covert channel. An adversary who controls the prompts can widen it.
R2. Public code and reproducible results exist, but no one has independently evaluated the check. Assessed for checking that recorded outputs came from the declared model and settings (The declared model is the one being served).
Rubric assessment
- R1 met: the design, the claim it verifies and its trust assumptions are published. They include a formal security game for steganographic weight exfiltration 1.
- R2 met through DiFR and TOPLOC, both assessed R2. DiFR has MIT-licensed code with a vLLM integration 10. It has reproducible results on A100 and H200 GPUs with models of 8 to 30 billion parameters 2. TOPLOC is an installable package 8 with peer-reviewed results 7. Rinberg et al. evaluate the method against a stated adversary who controls the inference server 1.
- R3 not met. Criterion (a), reliance by another party or production-grade availability, is arguable. TOPLOC is publicly available, and its developer uses it to accept or reject work from untrusted nodes 8 9. No other party is documented relying on sampled recomputation for a verification decision. Criterion (b), an independent evaluation, fails. As of September 2026 no independent audit, red-team or peer-reviewed security analysis of the consistency check has been published. Amodo lists recomputation red-teaming as not started 13. The one independent attack study targets the weight-exfiltration bound built on this mechanism 14. That bound is a supporting use, assessed under Bounding unexplained information in outputs.
- An independent audit, red-team or peer-reviewed security analysis of a recomputation consistency check against an adaptive adversary.
- Reliance by a party other than the developer on sampled recomputation for a verification decision, or a production-grade deployment for the high-stakes use.
How it works
The provider records its inference traffic, and a verifier re-runs a random sample of it. The provider's serving system logs each request and response with the exact model release, code version and random seed used 1. Proposals for verifying international agreements use passive network taps on the front-end network to copy all input and output traffic to a recomputation server 6. A verification server then re-runs a random subset of the logged inferences with a trusted copy of the model and code 1.
Checking is cheaper than generating 1. The verifier feeds the prompt and the claimed output through the model as one sequence. This gives the model's predictions for every position at once 2. Generation must produce tokens one at a time, which typically uses hardware 3–5 times less efficiently than the single pass 1.
The comparison must tolerate numerical noise. Re-running the same inference often gives slightly different results, because floating-point arithmetic is not associative 2 3. Published schemes handle this in three ways:
- TOPLOC compares activation fingerprints. The provider records a compact encoding of the largest last-layer activations. The verifier accepts if its recomputed values differ by less than preset thresholds 7 3.
- Token-DiFR, part of DiFR, checks tokens under a shared sampling seed. The verifier scores how far each claimed token departs from the token the reference model would have chosen 2.
- Exact replay needs no tolerance. Recomputation can match bit for bit if the verifier knows the hardware model, deployed weights, parallelism layout, software versions and batch size 4 5.
A modest random sample gives statistical assurance about the whole recorded stream 4 6. For example, if 0.1% of outputs are false, checking 3,000 random samples finds at least one with 95.03% probability 4.
What it establishes
Sampled recomputation can establish two things:
- It can show that recorded outputs are consistent with the declared model and settings. In DiFR's experiments, recomputation detected 4-bit quantization, a quantized key-value cache, a wrong temperature, a wrong seed and simulated sampling bugs 2. TOPLOC detected changes to the model, the prompt and the numerical precision 7.
- It can limit how much information a compromised server can hide in its responses 1.
It cannot establish three things:
- It checks only recorded workloads, so it cannot show that no other workloads ran unrecorded 3. Rinberg et al. say their weight-exfiltration scheme cannot be a defence on its own 1.
- Schemes that tolerate small differences can bound an adversary's covert bandwidth but cannot close it 5.
- Checks based only on activations cannot verify that tokens were sampled correctly 2.
Threat model
The adversary controls the inference server 1. Rinberg et al.'s exfiltration study makes these trust assumptions, among others 1:
- There are no side channels.
- The verification code is trusted.
- The log is secure and append-only.
- Input and output messages are paired.
- The adversary can neither see nor manipulate the sample selection.
The study's published bound assumes benign prompt traffic, and an adversary who controls the prompts can widen it 14. The verification server's isolation can range up to a full air gap 1.
The prover must cooperate. It must let the verifier install a recomputation server in its data centre 3. The verifier must hold the model weights and know the provider's sampling procedure 2. Tolerance thresholds come from calibration runs on trusted hardware 2. One low-trust system design treats physical security of the installed devices as a prerequisite 4.
Evidence
- DiFR detected 4-bit quantization with an AUC above 0.999 within 300 output tokens in its authors' tests 2. They tested Llama 3.1 8B, Qwen3-8B and Qwen3-30B-A3B on A100 and H200 GPUs, with and without tensor parallelism 2. The code is public 10.
- TOPLOC had no false positives or negatives in the evaluations reported in its peer-reviewed paper. The hardware tests used A100 and RTX 4090 GPUs 7. Prime Intellect reports using TOPLOC to verify work from untrusted inference workers in a decentralized training run. It evicted nodes whose work failed the checks 9.
- Rinberg et al. tested weight-exfiltration detection on open-weight models of 3 to 30 billion parameters 1. On a 30-billion-parameter mixture-of-experts model under benign prompt traffic, they report that their detector cut exfiltratable information to under 0.5% at a false-positive rate below 0.01%. That slows an adversary more than 200-fold 1. An independent study found that choosing the prompts roughly doubles the leakage per token and cuts the slowdown to 60–118 times 14.
- Amodo re-implemented DiFR with a traffic-capturing proxy and a ledger on Kubernetes 11 12. It tested models of 1.5 to 120 billion parameters on H100 and H200 GPUs and reported a 2–8 times performance advantage for the verifier 11. Of 14,891 events, 13,489 passed and 1,402 failed. Amodo's note does not give the cause of the failures 11. Amodo also reports that TOPLOC and DiFR are well described and are now being tested on relevant hardware and models 13.
Limitations
- Tolerance margins leave a small covert channel 5 1. An adversary who controls the prompts can widen it 14.
- Benign differences between A100 and H200 deployments made the smallest tested deviation harder to detect 2.
- DiFR's authors show that tuning the sampling temperature fools a naive cross-entropy check. Token-DiFR still detects the change 2.
- TOPLOC's authors state it cannot detect speculative decoding with a cheaper model 7. Amodo expects recomputation algorithms to need updating as model architectures and inference techniques change 13.
- TOPLOC's authors name spoofed last-layer activations and deliberately "unstable" prompts as possible attacks, which remain untested 7.
- A mismatch does not reveal whether evasion, a hardware fault or an evaluation error caused it 4.
- Amodo rates recomputation red-teaming as not started, and security of the recomputation server as not on track 13.
Zero-knowledge proofs of inference are an alternative. They need deterministic computation as a precondition 5.
Known flaws
Published flaws, with their severity, kind and status. How flaws are rated.
Tolerance for numerical noise leaves a covert channel
Schemes that accept approximate matches can put an upper bound on an adversary's covert bandwidth, but they cannot close the channel 5. The weight-exfiltration detector cut exfiltratable information to under 0.5%, not to zero, on a 30-billion-parameter mixture-of-experts model under benign prompt traffic 1. An independent study showed that an adversary who controls the prompts roughly doubles the bits leaked per token. That cuts the slowdown from over 200 times to 60–118 times 14. The attack widens the exfiltration bound. It does not target the check that outputs match the declared model 14.
Only recorded traffic is checked
Some inference optimizations are not covered
TOPLOC's authors state that it cannot detect speculative decoding in which a cheaper model does the decoding. They did not test whether it distinguishes types of key-value (KV) cache compression 7. DiFR was evaluated only on sampling from a single model. Its authors sketch an extension to one speculative-decoding algorithm but do not test it 2.
Mixed hardware widens the honest baseline
When honest reference runs span different GPU types, the spread of benign scores grows. In DiFR's tests on Qwen3-30B-A3B, mixing A100 and H200 runs made the smallest deviation tested harder to separate from honest behaviour. That deviation was a temperature raised by 0.1 2.
Blockers
Recording all inference traffic needs network taps and recomputation servers that can ingest it, in the worst case one recomputation-server network interface per inference front-end interface.
The recomputation server must sit inside the prover's data centre, possibly under the prover's physical control, and still be protected from a compromised provider, which Amodo rates 'not on track'.
No independent red-team of a recomputation consistency check has been published (the one independent attack study targets the weight-exfiltration bound), and Amodo rates recomputation red-teaming 'not started'.
Tolerance-based checks need calibration on trusted hardware and exact knowledge of the provider's sampling procedure, and in one prototype a sampling-implementation mismatch produced large spurious differences.
The verifier needs the model weights, so checking a closed-weights model requires a confidential recomputation environment inside the prover's facility.
Technical detail
Show technical detail
The reference protocol has five steps 1:
- The serving stack writes every request and response to an append-only log, with the model release, code version and sampling seed 1.
- An isolated verification server draws a private random sample of logged pairs. Its isolation can range from access controls and containers to a full air gap 1.
- The server runs one prefill pass over the prompt and claimed output with the trusted model and code. This gives the next-token distribution at every position 1 2.
- The server scores how far the claimed output diverges from the reference. Token-DiFR uses the clipped Gumbel-Max logit margin under a shared seed. Activation-DiFR uses the distance between random projections of activations 2. TOPLOC counts exponent and mantissa mismatches in the top-128 last-layer activations 7.
- Scores beyond a threshold calibrated on trusted hardware are escalated for review 1 2.
Verification is cheap because it needs only the prefill pass. Decoding typically runs at 3–5 times lower hardware utilization than prefill 1. Amodo's prototype measured a 2–8 times performance advantage for the verifier with models of 1.5 to 120 billion parameters on H100 and H200 GPUs 11.
The number of samples sets the chance of detection. For a false-output rate p, the chance of catching at least one false output in k independent samples is 1 − (1 − p)^k 5. With 3,000 samples, a 0.1% rate is caught with 95.03% probability 4.
Recomputation can also match bit for bit, which makes the check pass/fail. This exact variant needs a known hardware model, deployed weights, parallelism topology, software versions and per-pass batch size, and no atomic operations 4 5.
Sources
- BR. Rinberg et al. (2025). Verifying LLM Inference to Detect Model Weight Exfiltration. arXiv. Source recordSupports: reference architecture; trust assumptions; prefill-only cost; exfiltration results; stand-alone limitation · abstract; §4.2; §5; §6.1; §8; Fig. 7
- BA. Karvonen et al. (2025). DiFR: Inference Verification Despite Nondeterminism. arXiv. Source recordSupports: Token-DiFR and Activation-DiFR; benign nondeterminism; detection results; weights and sampling requirements; limitations and speculative-decoding sketch · abstract; §3.3; §5; §5.1; §7.2; §7.4; Appendix F
- CAmodo Design (2026). Example Schemes for Verifying High-Stakes AI Agreements. Amodo Design. Source recordSupports: TOPLOC and Token-DiFR as example schemes; recomputation server in prover's data centre; correctness vs completeness · introduction; inference schemes
- BN. Cankaya (2026). A System Overview for Near-Term, Low-Trust AI Compute Verification. Machine Intelligence Research Institute. Source recordSupports: bit-exact replay metadata; evaluation in auditing environment; sampling statistics; attribution problem · §2b; §3.2.2; §5.2.2; Appendix A1
- BN. Cankaya (2026). Bit-Exact AI Inference Verification Without Performance Tradeoffs. ICML 2026 Workshop on Technical AI Governance Research. Source recordSupports: statistical schemes bound but do not close covert bandwidth; detection probability; bit-exact pass/fail · abstract; §1
- CR. Dean (2026). Verification Plan. AI 2040. Source recordSupports: network taps feeding a recomputation server; partial recomputation of random samples · Concrete inference-only retrofitting proposal
- AJ. M. Ong et al. (2025). TOPLOC: A Locality Sensitive Hashing Scheme for Trustless Verifiable Inference. Proceedings of the 42nd International Conference on Machine Learning (PMLR 267), pp. 47196-47211. Source recordSupports: TOPLOC mechanism, results and stated limitations, including untested KV-cache compression · abstract; §4; §5; §6.1-6.4
- BPrime Intellect (2025). PrimeIntellect-ai/toploc (GitHub repository). GitHub. Source recordSupports: public TOPLOC implementation · README; release v0.1.6
- BPrime Intellect Team et al. (2025). INTELLECT-2: A Reasoning Model Trained Through Globally Decentralized Reinforcement Learning. arXiv. Source recordSupports: developer use of TOPLOC to validate untrusted workers · §2.3; §2.4.2
- BA. Karvonen (2025). adamkarvonen/difr (GitHub repository). GitHub. Source recordSupports: public DiFR implementation with vLLM integration · README
- CAmodo Design (2026). Scaling Recomputation Inference Verification. Amodo Design. Source recordSupports: prototype architecture, scale, verifier advantage and pass/fail counts · whole note; Fig. 3
- BAmodo Design (2026). Amodo-Design/Inference-Recomputation-Prototype (GitHub repository). GitHub. Source recordSupports: prototype code and workflow · README
- CAmodo Design (2026). AI 2040 Plan A — Verification SITREP. Amodo Design. Source recordSupports: status of recomputation algorithms, capture, server security and red-teaming · status items
- BN. Kezins (2026). Adversarial Entropy Inflation Against Gumbel-Based Inference Verification. arXiv. Source recordSupports: independent prompt-control attack on the weight-exfiltration detector; scope limited to the exfiltration bound · abstract; results