Nondeterministic
A nondeterministic system is not guaranteed to give the same output for the same input, which is why an AI chatbot can answer an identical question in different ways.
A deterministic system always returns the same output for a given input. A calculator is deterministic: two plus two is four every time. A nondeterministic system makes no such promise. Google's machine learning glossary notes that large language models are generally nondeterministic, since they typically give different responses to the same prompt, and that this makes them much harder to test than deterministic software.
Most of the variation is deliberate. A language model does not pick a single next word; it produces a probability for every possible next token and then samples one. A setting called temperature controls how adventurous that sampling is. Higher temperatures give more varied text; lower temperatures stick to the likeliest choices. Ask a chatbot for a poem twice and you get two poems because of this sampling.
Turning the temperature down to zero should, in principle, make the model always pick its top choice and so give the same answer every time. In practice it often does not. In September 2025 Horace He and colleagues at Thinking Machines Lab ran the prompt Tell me about Richard Feynman through the Qwen3-235B model 1,000 times at temperature zero and got 80 different completions. All matched for the first 102 tokens, then split. They traced the cause to how inference servers batch requests: the arithmetic for one user's request can come out very slightly differently depending on how many other requests are processed alongside it, and that depends on server load. With rewritten, batch-invariant calculations, all 1,000 completions were identical, at some cost in speed.
Computer science also uses the word in a narrower, theoretical sense. A nondeterministic algorithm in complexity theory is one allowed to make choices, and it counts as solving a problem if some sequence of choices succeeds. That idea, used by Robert Floyd as early as 1967, underlies the P versus NP problem. It is a different concept from a chatbot giving varied answers, though both share the core meaning of different runs behaving differently.
For anyone building with AI, nondeterminism changes how testing works. A prompt that produced a correct answer once may produce a wrong one next time, so a single successful demo proves little. Teams run the same evaluation many times, look at rates rather than single results, and keep logs of what the model actually said. Where exact repeatability matters, as in research or audits, it has to be engineered in.
Because language models sample each next word from a set of probabilities rather than always taking the single most likely one. A temperature setting controls how much variation that sampling allows. Even with variation switched off, small differences in how servers batch requests can still change the output. Not reliably. Temperature zero should make the model always choose its top token, but research published by Thinking Machines Lab in September 2025 found 80 different completions from 1,000 identical requests at temperature zero. The variation came from how inference servers group requests, and it disappeared only after the underlying calculations were rewritten. Nondeterministic simply means the same input can lead to different outputs. Randomness is one cause, as when a model samples words by probability, but there are others, such as timing and load on a server. A random process is nondeterministic, but a nondeterministic system need not be deliberately random. Run each test many times and measure how often the output is acceptable, rather than trusting one run. Use automated checks where a correct answer can be verified, record the outputs, and fix settings such as temperature where the platform allows. For high-stakes uses, add human review of a sample of outputs.Common questions
Why does an AI chatbot give different answers to the same question?
Does setting temperature to zero make an LLM deterministic?
What is the difference between nondeterministic and random?
How do you test a nondeterministic AI system?
Search for "LLM nondeterminism", "temperature zero reproducibility" or "batch invariance" to understand why outputs vary. Reliable sources include engineering write-ups from labs and inference software projects that show their measurements, provider documentation on sampling settings, and computer science references for the theoretical meaning. Be wary of claims that a setting guarantees identical outputs unless the provider documents it.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.