LLM-42: Enabling Determinism in LLM Inference with Verified Speculation

Read full text
Authors: Raja Gond, Aditya K. Kamath, Ramachandran Ramjee, Ashish Panwar
Cited by: 0

Abstract

In LLM inference, the same prompt often returns different outputs across different runs. At the system level, this non-determinism arises from floating-point non-associativity interacting with dynamic batching and GPU kernels whose reduction orders vary with batch size. A straightforward way to eliminate nondeterminism is to disable dynamic batching, but doing so severely degrades throughput. Another approach is to make the kernels batch-invariant; however, this tightly couples determinism to kernel design, requires new implementations, and imposes fixed overheads regardless of how much of the workload actually requires determinism.

Fields of Study & Subjects

Parallel Computing and Optimization Techniques Numerical Methods and Algorithms Distributed systems and fault tolerance

Publication details

Journal / source
ACM SIGOPS Symposium on Operating Systems Principles (SOSP)
Pages
916–931
Publication date
28 September 2026