Deterministic inference makes an AI model's outputs reproducible bit for bit, so a verifier's re-run must match exactly.
Otherwise, re-runs on the same input often differ slightly, because floating-point results depend on the order of operations, which shifts with batch size, hardware and software. This noise forces recomputation checks to accept approximate matches, which a cheating provider could exploit. Three methods remove it: kernels whose results do not depend on batch size, recording the hardware and software needed to reproduce rounding errors, or reproducible operators that fix rounding across hardware.
vLLM and SGLang offer deterministic modes, and Gensyn and Eigen Labs report verification services built on exact replay. A published emulator reproduces dense transformer blocks bit for bit on four NVIDIA GPU models. The obstacles are the throughput cost of batch-invariant kernels, gaps in the emulator's coverage, no independent security evaluation, and the provider's need to disclose its full configuration.
On this page
How it works
Floating-point arithmetic is not associative, so the same sum computed in a different order can round differently 5 8. In LLM serving, the order changes with 4:
- batch size and kernel strategy, which depend on server load;
- GPU type, CUDA version and kernel implementations;
- in mixture-of-experts models, routing that depends on other tokens in the batch.
Thinking Machines Lab argues that the main reason inference endpoints are nondeterministic is that load, and so batch size, varies while kernels are not batch-invariant 8. The bit-exact work separates true nondeterminism, caused by atomic functions, from non-invariance: deterministic computation that follows different reduction trees 1.
There are three routes to exact results:
Batch-invariant kernels fix the reduction order for each output element whatever the batch size 8. vLLM offers a batch-invariant mode, currently in beta 12, and SGLang offers a deterministic inference mode 11. DeepSeek reports end-to-end bitwise batch-invariant and deterministic kernels, built with the goal of bitwise alignment among its pre-training, post-training and inference pipelines 10. LLM-42 enforces determinism through scheduling, replaying candidate tokens under a fixed reduction schedule, and mostly reuses existing kernels unchanged 13.
Record and replay uses stock engines, which already give deterministic outputs that a verifier can reproduce bit for bit, if the verifier knows the key factors and no atomic functions are called 1. The factors are the hardware model, exact weights, parallelism layout, software versions and the batch size of each forward pass 1 3. Software emulation removes the need for identical hardware 1, and Hawkeye re-executes GPU matrix multiplications on a CPU without precision loss 9.
Reproducible operators fix the order of floating-point operations across hardware. Gensyn's RepOps uses this route so honest providers and a referee can reproduce the same result 16.
For verification, exactness turns a recomputation check into a pass/fail test 1. Zero-knowledge proofs of inference need determinism as a precondition 1, and packet-based schemes need workloads to be reproducible 6.
What it establishes
Under exact replay, the accumulated rounding errors become an auditable signature of the software and hardware used 1. The bit-exact work names three attacks that exploit the tolerance of approximate checks: steganography, unreported changes to inference software, and covert computation in unreported batch elements on engines that are not batch-invariant 1. It argues that statistical schemes can bound the covert bandwidth these leave, but cannot close it 1.
Determinism does not capture traffic or choose samples; those come from recording and sampling mechanisms such as Network taps and certifiers and Sampled inference recomputation 2 6. Batch-invariant kernels make batch size undetectable from outputs alone, so outputs no longer reveal unreported batch elements 1. They give identical results only while the model, inference implementation and device stay fixed 4.
For varied inference stacks and mixed GPU types, DiFR's authors expect statistical verification to remain necessary 4. TAO, peer-reviewed at EuroSys 2026, is a tolerance-based alternative for heterogeneous hardware 24. It accepts each operator's output if it falls within bounds derived from IEEE-754 worst-case error and empirical profiles, and settles disputes with a Merkle-anchored dispute game 24. Its authors deployed its contract layer on an Ethereum testnet 24.
Threat model
- Adversary. The bit-exact work targets covert adversaries, who comply with monitoring only when the chance of detection is high 1.
- Full disclosure. Exact replay assumes the verifier learns every factor that affects the numerics 1. A reference architecture for low-trust verification lists the same replay metadata 3. Recording the batch size is described as negligible overhead for the prover 1.
- No atomic functions. Backends must avoid atomic functions 1.
- Correct hardware model. Cross-hardware emulation assumes the hardware's rounding, subnormal handling and accumulation order have been characterized correctly 1 9.
Implementations
Batch-invariant inference kernels (Thinking Machines)
Open-source GPU kernels from Thinking Machines Lab that make language-model outputs independent of batch size, adopted in vLLM and SGLang for reproducible inference.
Research demonstration for exact recomputation of served outputs by a verifier, with a cooperating provider
Low-trust AI compute verification system overview
A reference design that existing data centres could add: network taps hash all traffic, and air-gapped, independently sourced checkers later re-run randomly chosen records.
Proposed for screening challenged records to show declared inference compute is not training
Verde and RepOps (Gensyn)
Gensyn's system for checking machine-learning jobs given to untrusted providers, which settles disputes by re-running one operation with operators Gensyn reports as bit-identical across hardware.
Operational use for reproducing declared-model inference from receipts in Gensyn's information-market service