Skip to main content

Logits and Probability Distribution

Logits and Probability Distribution

  • Core concepts
  • Stage 4 · Under the Hood
  • refs checked 2026-11-19
What problem it solves

What the model outputs at each step is not a word but a score table over the whole vocabulary. All sampling parameters act on it.

What it is
At each step the model assigns a score — a logit — to every candidate token in the vocabulary. Softmax turns the scores into a probability distribution: all candidates sum to 1. Temperature, top-k and top-p all reshape this distribution.
Why it matters

Once you get it, sampling parameters stop being mysticism: they change the shape of the distribution, not the model's 'mind'.

Sources
  • Jurafsky & Martin, Speech and Language Processing, ch. 3 ↗
  • Holtzman et al., The Curious Case of Neural Text Degeneration, §3.3 ↗
Use this term in a task

Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.

Task handbooks → · Filter three candidates →