AI glossary
What is Softmax?
A function that turns a list of scores (logits) into probabilities that are all positive and sum to 1.
Every token a language model generates comes from a softmax over its vocabulary. Subtracting the maximum logit first keeps the computation numerically stable.