Deterministic
A deterministic system always gives the same output for the same input, so its results can be reproduced exactly; large language models, as usually served, do not guarantee this.
In computing, a deterministic algorithm is one that, given a particular input, always produces the same output, with the machine passing through the same sequence of states each time. A calculator adding two numbers is deterministic, as is a program sorting a list. Things become nondeterministic when the result depends on something other than the input: a timer, a random number, user input, data stored elsewhere, or several processors writing to the same memory in an order that varies from run to run.
Large language models are deliberately not deterministic in normal use. For each step the model calculates a probability for every possible next token, and a sampling step picks one. With the temperature setting above zero, the pick involves chance, so the same prompt can produce different answers. Computers generate that chance with pseudorandom numbers, which can be reproduced if the starting value, the seed, is fixed. Setting the temperature to zero means always taking the most likely token, which in theory should give the same answer every time.
In practice it often does not. In September 2025 Horace He and colleagues at Thinking Machines Lab sent the same prompt about Richard Feynman to the Qwen3-235B model 1,000 times at temperature zero and got 80 different completions, which matched for the first 102 tokens and then diverged. They traced the cause to batch invariance: a server groups each request with others, and the size of that batch changes the order in which some calculations add up floating-point numbers, which shifts results slightly. With kernels rewritten so that results no longer depend on batch size, all 1,000 completions were identical, at some cost in speed.
Providers acknowledge the limit. OpenAI's documentation for its seed parameter says repeated requests with the same seed and settings should mostly return the same result, not always, and that a change in its serving infrastructure, flagged by a system fingerprint, can change outputs.
Determinism matters wherever results must be checked or repeated: testing software, auditing decisions, debugging a failure or reproducing a research result. It is not the same as being right. A deterministic system can give the same wrong answer every time, and a system that varies its wording can still be reliable on the facts.
Not as normally used. They choose each token by sampling from a probability distribution, so the same prompt can produce different answers. Even with sampling randomness removed, served models can vary because the batching of requests on the server changes the order of floating-point calculations. It removes the deliberate randomness by always picking the most likely token, but it does not guarantee identical outputs. In a September 2025 test, Thinking Machines Lab got 80 different completions from 1,000 identical requests at temperature zero, a variation it traced to how servers batch requests. A deterministic system maps each input to one fixed output, as a rule-based program does. A probabilistic system works with likelihoods and can produce different outputs for the same input, as a language model sampling its next word does. Many products combine the two, wrapping a probabilistic model in deterministic rules and checks. It makes results reproducible, which matters for testing, debugging, auditing and scientific research. If a model gives a harmful or wrong answer, being able to reproduce it exactly is the first step to understanding and fixing it.Common questions
Are large language models deterministic?
Does setting temperature to 0 make an AI model deterministic?
What is the difference between deterministic and probabilistic AI?
Why does determinism matter in AI?
Search for "LLM nondeterminism temperature 0", "batch invariance inference" or "reproducible outputs seed parameter" to understand why identical prompts can give different answers. Engineering write-ups from inference teams and providers' API documentation are the most reliable sources on how serving systems behave. Be wary of claims that a single setting guarantees identical outputs, since the serving setup and hardware also play a part.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.