Non-Determinism in LLM Output
In this article
- Name the four links that must hold for a repeated request to get the same reply, from the pick out to the input.
- Given replies that differ, name the link that most likely changed and one thing to hold fixed or log for it.
- Explain why a temperature of 0 removes only the random draw and does not promise the same reply on every call.
- Explain why a reply that comes back the same every time can still be wrong.
- Terms defined here: non-determinism, model version, model alias.
Overview
You send a model the same request twice, with temperature at 0, and get two different replies. Temperature and Sampling said that 0 makes the pick take the top token every time, so where did the difference come from?
The newest Claude and Gemini models no longer take a custom temperature, as Temperature and Sampling showed, so set the case on Orbit Flash, an invented hosted model that does accept one. [1,2] Your program calls it through its API with the same request each time. The answer is that the pick is only the innermost of four links, and three of them sit outside the pick: at the provider, in the model behind the name, and in your own application. Those three apply to every hosted model, including the ones whose settings you cannot change.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Four sets of five replies
- The chain behind a repeat
- Scatter inside a batch: the pick and the provider
- A shift between batches: the model and the input
- Same every time is not the same as right
- Sources
- Check yourself, 5 questions