# Generation temperature

Understand how temperature affects output variation and why a less random response does not automatically become factually correct.

Canonical URL: https://thecompanybrain.com.br/en/glossary/generation-temperature
Authors: Luiz Gardelin
Updated: 2026-11-14T18:37:33.243Z

Generation temperature is a control parameter that influences randomness in a model's output selection. According to Google's glossary, higher temperatures produce more randomness, while lower temperatures produce less. The appropriate choice depends on the application. This describes variation during generation, rather than measuring knowledge or factual accuracy. [Source: Google, temperature](https://developers.google.com/machine-learning/glossary#temperature).

## What the control changes

Language model generation uses probabilities. At a relatively low temperature, selection favors higher-probability outputs. At a relatively high temperature, lower-probability outputs can be selected more often. This mechanism helps explain why the same request can produce formulations with more or less variation. [Source: Google, probabilistic](https://developers.google.com/machine-learning/glossary#probabilistic).

Temperature also differs from the parameters learned during [training](/en/glossary/model-training), such as a model's weights and biases. Those values result from training; temperature is a configuration supplied to guide generation. Changing it is not equivalent to retraining the model or supplying new facts. [Source: Google, parameter](https://developers.google.com/machine-learning/glossary#parameter).

## Hypothetical configuration choice

A training team wants to create alternative wordings for an exercise. It could compare temperature settings while keeping the task the same and examine the variety and suitability of the alternatives. Review would need to check whether each wording still respects the content being taught.

For another activity, such as turning a request into record fields, the team may prefer greater consistency. It must still verify that the fields correspond to the input. Repeated or predictable wording does not establish that the information is correct.

The most important confusion is treating low temperature as sufficient protection against [hallucinations](/en/glossary/ai-hallucination). Plausible but factually incorrect output needs to be assessed through its content and supporting evidence, not just a generation setting. [Source: Google, hallucination](https://developers.google.com/machine-learning/glossary#hallucination).

Before selecting a value, the organization should check which controls the model and interface allow and test the configuration on the actual task. The choice should balance the variation desired with the criteria of the work, rather than treat a numerical recipe as a universal rule for every request or system.

## Sources

- [Machine Learning Glossary: Temperature](https://developers.google.com/machine-learning/glossary#temperature): No universal numerical setting, reproducibility guarantee, or rule that low temperature prevents hallucination is asserted.
- [Machine Learning Glossary: Probabilistic](https://developers.google.com/machine-learning/glossary#probabilistic)
- [Machine Learning Glossary: Parameter](https://developers.google.com/machine-learning/glossary#parameter)
- [Machine Learning Glossary: Hallucination](https://developers.google.com/machine-learning/glossary#hallucination)

## Related reading

- [Prompt engineering](/en/glossary/prompt-engineering)
- [AI hallucination](/en/glossary/ai-hallucination)
- [Model inference](/en/glossary/model-inference)
- [AI prompt](/en/glossary/ai-prompt)
- [Algorithmic bias](/en/glossary/algorithmic-bias)
- [Artificial intelligence](/en/glossary/artificial-intelligence)
