LLM-42: Enabling Determinism in LLM Inference with Verified Speculation
25 Jan · Raja Gond, Aditya K Kamath, Ramachandran Ramjee +1 · arXiv:2601.17768
In LLM inference, the same prompt may yield different outputs across different runs. At the system level, this non-determinism arises from floating-point non-associativity combined with dynamic batching and GPU kernels whose reduction orders vary with batch size. A straightforward way to eliminate non-determinism is to disable dynamic batching during inference, but doing so severely degrades throughput. Another…