mej7.comHow AI Works

Softmax

Author: Mehdi Sadriu, independent educator. Last reviewed: 25 November 2026. How we check claims: methodology.

A function that turns a vector of real scores (logits) into a probability distribution: nonnegative numbers that sum to 1. Used in attention weights and in next-token prediction.

In one paragraph. A function that turns a vector of real scores (logits) into a probability distribution: nonnegative numbers that sum to 1. Used in attention weights and in next-token prediction.

Used in

Related terms

Full glossary