Skip to content
Science, DecodedContext Jamming

Equation Inspector

Softmax with temperature

EstablishedAI / MLMathematics
pi=ezi/T∑jezj/T\htmlClass{sjt-p}{p_i} = \frac{\htmlClass{sjt-num}{e^{z_i / T}}}{\htmlClass{sjt-den}{\sum_{j} e^{z_j / T}}}

Tap a symbol above, or choose one here:

pip_iProbability of option i

Meaning

For a language model, the probability of token i being next.

Its job in this equation

Output: a proper distribution (non-negative, sums to 1).

Picture it

The share of the vote option i gets.

Read it, progressively

1. Gist

Turn a list of arbitrary scores into probabilities, with a dial (temperature) for how decisive to be.

What it does not establish

Softmax probabilities are not calibrated confidence by default. A model can be "99% sure" and wrong. Temperature changes sampling, not knowledge.

Play with it

Loading interactive…