Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M5952

Temperature Parameter

Temperature Parameter
CreatemediumInnovation Methods
Included
account_tree

Updated 2026-08-09

Loading revision record…

Summary

Temperature controls how random a model's output is: low values stay conservative and repetitive, high values diverge and invite error.

Definition

The temperature parameter scales the logits before the softmax, controlling how random a model's output distribution becomes. The core claim is that a high temperature flattens the distribution and produces varied, novel, occasionally incoherent output, while a low temperature sharpens it toward the most probable option and produces safe, repetitive results. The qualification is that the right setting is task-dependent: accuracy and exploration are traded off against each other, so the same value is not appropriate everywhere.

How to use

- Creativity Dial: Deliberately adjust your own temperature, cooling for accuracy and heating for surprise. - Task Matching: Financial reporting calls for a low setting, while brainstorming calls for a high one. - Range Awareness: Many people stay mediocre by running cold constantly, and many burn out by running hot constantly.

Mechanism

In machine learning, temperature scales the logits before the softmax. A large value flattens the output distribution, making sampling more random and creative, while a small value concentrates probability on the most likely option, making output deterministic and conservative. In physics the same quantity measures the intensity of molecular thermal motion.

Practice

In progress 0/1

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

Cases

  • Large language models are tuned to a low temperature for factual answers and a high one for creative writing.
  • The Boltzmann distribution relates the parameter to inverse temperature in statistical physics.

Common pitfalls

  • Assuming a higher temperature is always better invites incoherent output that looks creative but is wrong.
  • Confusing temperature with the learning rate mixes two parameters that control entirely different things.
  • Ignoring the fit between setting and task leaves the output either bland or unreliable.
Sources

Source support: Explicit

References currently contain only Wikipedia links; primary sources still need review.

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/Softmax_functionZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS