Non-Determinism
“Non-determinism” in LLMs usually means the same prompt can yield different outputs across runs, but the term often bundles together several distinct causes. In practice, people use it to describe variation from sampling, floating-point and hardware effects, batching, and other implementation details rather than a single mathematical property of the model itself.
[q55qr1]
[zo5kip]
[vi95p7]
Defining and Describing Non-Determinism (in LLMs, AI)
Uses in Context
- In AI engineering, “non-determinism” often refers to run-to-run nondeterminism , where executing the same inference path twice yields different results. [q55qr1]
- In enterprise AI discussions, writers distinguish the model’s probabilistic behavior from the broader system property of non-determinism, arguing that the latter is a design and infrastructure issue, not just a model trait. [2r9nlr]
- In technical analysis, researchers and practitioners use the phrase to describe divergence that can appear even at nominal temperature (T=0), suggesting implementation-dependent variation beyond explicit sampling. [7xc14e]
History of Use
Origins
- In the LLM era, the phrase became common in practitioner writing to describe inference variability; one technical post defines it as the case where “the same kernel twice” with the same inputs gives a different result, calling this “run-to-run nondeterminism.” [q55qr1]
- Another practitioner source frames the relevant meaning as the relationship between inputs and outputs, stating that a non-deterministic system “produces different outputs when given the same inputs.” [2r9nlr]
Evolution
- 2025-10 — A research note on “background temperature” argued that even at temperature (T=0), identical inputs can still diverge, formalizing the idea that implementation-dependent perturbations can induce effective randomness. [7xc14e]
Best Real-World Examples
- Thinking Machines Lab — a technical explainer that discusses “run-to-run nondeterminism” in LLM inference. [q55qr1]
- Zenodo preprint on background temperature — documents divergence at nominal (T=0) and introduces the idea of “background temperature.” [7xc14e]
- Durgam Vahia — distinguishes system-level non-determinism from statistical or probabilistic behavior in enterprise AI. [2r9nlr]
- The Turing Machine — argues that LLMs are probabilistic rather than truly non-deterministic in the formal CS sense. [n9a6xz]
- Guild AI glossary — gives a concise systems definition: same input, different outputs across runs. [fz2zhz]
- Arctic DBA — uses the phrase “controlled stochasticity” to frame the practical engineering tradeoff. [lsit0f]
Case Studies
A key case study in the LLM literature is the distinction between sampling randomness and inference nondeterminism . Thinking Machines Lab describes run-to-run nondeterminism as the situation where “you execute the same kernel twice with exactly the same inputs and you get a different result out,” which shifts the focus from prompt wording to the execution stack itself.
[q55qr1]
This framing matters because it means stability problems may persist even when users fix prompts, seeds, or temperatures, if lower-level numerical operations still vary.
[q55qr1]
[zo5kip]
[7xc14e]
A second case study is the claim that identical inputs can diverge even at (T=0). The Zenodo preprint on background temperature reports that “even when decoding with temperature T=0, large language models (LLMs) can produce divergent outputs for identical inputs,” and proposes an “effective temperature” induced by implementation-dependent perturbations.
[7xc14e]
This shows why “deterministic settings” in user interfaces do not always guarantee exact replay at the system level.
[7xc14e]
A third case study comes from enterprise AI framing, where Durgam Vahia argues that non-determinism is not the same thing as being statistical or probabilistic, but rather concerns “the relationship between inputs and outputs” in deployed systems.
[2r9nlr]
XMPro extends that idea by splitting behavior into model-level, decision-level, and action-level determinism, which is useful in agentic workflows where the model may remain probabilistic while the surrounding control system is made auditable and reproducible.
[wey4yn]
Sources
[1v7a49] Non-Determinism: Why it is a Feature, not a Bug, in LLMs. ... [6]: Understanding Nondeterminism in AI Language Models
[vi95p7] Beyond "Non-Deterministic": Deconstructing the Illusion of ... [10]: Non Determinism in LLMs - by Yashwanth Sai [11]: What does non-deterministic mean for LLMs? | Brian Kiefel posted ...