Grab the logits — raw scores become probabilities under your fingers
The left panel shows five logits — raw, unbounded scores (they can be negative!) the model assigns to candidate next words. The right panel is what softmax makes of them: numbers that are all positive and sum to exactly 100%. Drag any bar on the left up or down and watch the probabilities react instantly.
Softmax: pi = ezi / Σ ezj. Note what dragging never does: change the order. Softmax is monotonic — the #1 logit is always the #1 probability.
The exponential lever — +2 logits ≈ 7× the probability
Two candidate words, one number that matters: the logit gap Δ between them. Because softmax exponentiates, the probability ratio is exactly eΔ — no matter what the absolute scores are. Slide the gap and watch a linear nudge become an exponential landslide.
Temperature lives INSIDE the formula — it divides the logits
The temperature knob isn't bolted on after the fact — it's a division inside softmax: pi = ezi/T / Σ ezj/T. Dividing all logits by T shrinks or stretches every gap at once. The live table below shows each step of the computation as you slide T.
The 70/30 illusion — confident numbers from a coin-flip brain
A gap of just 0.85 logits — barely different scores — comes out of softmax as a decisive-looking 70% vs 30%. But scores that close are inside the model's own noise: rephrase the question slightly and the scores wobble by about ±1 logit. Press the button to re-ask 60 paraphrases and see how often the "70% answer" actually survives.
Each square = one paraphrase of the same question, with ±1 logit of score noise (a realistic wobble). Mustard = answer A won, grey = answer B won.
Saturation — where the megaphone jams at full volume
Crank one logit sky-high and softmax pins its probability to ~100% — and then stops responding. The sensitivity of the output, p(1−p), collapses toward zero: new evidence for a competitor barely dents the verdict, and in training, gradients through a saturated softmax vanish. Also try shifting ALL logits by +100: absolutely nothing changes, because softmax only ever sees the gaps.