Review — Next-token probabilities
Back to the lesson · Learning path plan
What to remember
- Softmax exponentiates each logit and divides it by the sum of exponentials over the vocabulary. The result is a distribution conditioned on the context.
- Adding a common constant to all logits preserves the distribution. Score differences determine probability ratios.
- Temperature and top-k/top-p filters are optional decoding transformations, distinct from the base predictive distribution; their mechanisms are developed in decoding strategies.
- A normalized distribution sums to 1. With calibration, events assigned 80% probability occur about 80% of the time under a specified population and success criterion. Next-token probability alone does not measure whether an answer is factually true.
Recall from memory
Do logits (1, 2) and (11, 12) give different distributions?
Show the answer
No. Adding 10 multiplies all exponential terms by the same constant, which cancels during normalization.