Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Glossary › Softmax

What is softmax?

The function that turns a list of scores into probabilities that sum to 1: pi=ezi/∑jezjp_i = e^{z_i} / \sum_j e^{z_j}pi​=ezi​/∑j​ezj​.

Where it is taught

Softmax and temperature. A network outputs raw scores of any size and sign. Softmax converts them into a proper probability distribution, and temperature controls how bold it is.

What the lesson leaves you with

  • Logits are raw scores. Softmax turns them into probabilities that sum to 1.
  • Softmax depends only on differences between logits and keeps their order.
  • Temperature divides the logits first: low is sharp and predictable, high is flat and varied.
Open the lesson

Questions

What is softmax?
The function that turns a list of scores into probabilities that sum to 1: p_i = e^{z_i} / sum_j e^{z_j}.
Where is softmax used in AI?
A network outputs raw scores of any size and sign. Softmax converts them into a proper probability distribution, and temperature controls how bold it is.
What is the key idea to remember about softmax?
Logits are raw scores. Softmax turns them into probabilities that sum to 1.
Where can I learn softmax step by step?
In the lesson “Softmax and temperature” in Gradient’s course on the maths behind AI, with interactive diagrams and questions.

Related terms

  • Bayes' rule
  • Cross-entropy
  • Entropy
  • Logit
  • Perplexity
  • Temperature