Learn AI Math

Softmax

What is Softmax?

In one sentence: Softmax is a math function that turns a list of raw scores into probabilities that add up to 100%.

It makes big scores bigger and small scores smaller, then scales everything so it sums to 1. This gives a clear chance for each option. It is used for picking the next token and inside attention to decide how much focus each word gets.

What does Softmax look like?

Softmax might turn scores [2, 1, 0] into roughly [67%, 24%, 9%].

Why does Softmax matter?

Softmax is everywhere in neural networks, especially wherever a model has to choose.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.