Opening your learning space
Starting the app …
Opening your learning space
Starting the app …
Softmax transforms K class scores into nonnegative values that sum to one.
Free to browse · flashcards or a multiple-choice quiz · import from Essential
Formula
zi dimensionless scores; outputs dimensionless and sum to 1
| Symbol | Meaning | Unit |
|---|---|---|
| Score or logit for class i | dimensionless | |
| Number of classes | count | |
| Normalized output for class i | dimensionless |
\mathrm{softmax}(z)_i=\frac{e^{z_i}}{\sum_{j=1}^{K}e^{z_j}}Exponentiation makes all outputs positive; division by the sum normalizes them into a distribution along the selected axis. Adding the same constant to every score leaves the result unchanged. Very large scores require numerically stable evaluation, typically by subtracting the maximum. Softmax values are not guaranteed to be calibrated probabilities by the function alone; interpretation depends on the model and training procedure.
Exponentiation makes all outputs positive; division by the sum normalizes them into a distribution along the selected axis. Adding the same constant to every score leaves the result unchanged. Very large scores require numerically stable evaluation, typically by subtracting the maximum. Softmax values are not guaranteed to be calibrated probabilities by the function alone; interpretation depends on the model and training procedure.
Softmax transforms K class scores into nonnegative values that sum to one.
Pairwise score ratio
Softmax outputs are positive and normalized along the chosen class axis.
Use the example for Softmax function to explain which inputs determine the requested output.
The example connects concrete inputs to its result.
Softmax transforms K class scores into nonnegative values that sum to one.
The relation applies only under its stated assumptions.
Applying the relation to a different case without checking its stated assumptions.
Check the validity range before substituting values: Exponentiation makes all outputs positive; division by the sum normalizes them into a distribution along the selected axis. Adding the same constant to every score leaves the result unchanged. Very.
Formula cluster
Softmax transforms K class scores into nonnegative values that sum to one.
For two scores z=(0,ln 3), exponentials are (1,3), so softmax(z)=(0.25,0.75) and sums to 1.
Multiclass classification, neural-network output layers and normalized scores.
Here is how to work through a typical Softmax function (softmax(z)i = eᶻⁱ/Σⱼeᶻʲ) task step by step:
Task
Use the example for Softmax function to explain which inputs determine the requested output.
Solution path
The example connects concrete inputs to its result.
Softmax transforms K class scores into nonnegative values that sum to one.
The relation applies only under its stated assumptions.
Softmax exponentiates each score and divides by the sum of all exponentials. Each fraction is positive, and the fractions sum to one apart from rounding. For scores 0 and ln 3, exponentials are 1 and 3, giving 0.25 and 0.75. Normalization applies along the intended class axis. Softmax normalizes along the selected class axis. Outputs sum to one there, but are not automatically calibrated probabilities without a suitable model and calibration. Scores can be normalized correctly yet produce poorly calibrated predictions; check the class definition and axis.
If every score increases by the same constant c, each numerator gains a factor eᶜ and the denominator gains the same factor. The distribution is unchanged after cancellation. This permits stable computation by subtracting the largest score before exponentiation. Changing only some class scores alters their relative probabilities. Softmax normalizes along the selected class axis. Outputs sum to one there, but are not automatically calibrated probabilities without a suitable model and calibration. Scores can be normalized correctly yet produce poorly calibrated predictions; check the class definition and axis.
No. It is the largest modeled class probability among the candidates, not certainty. A model can be overconfident or poorly calibrated, especially outside its training distribution. Softmax only enforces positive values that sum to one. Check calibration on independent data and distinguish the top score from a reliable error probability. Softmax normalizes along the selected class axis. Outputs sum to one there, but are not automatically calibrated probabilities without a suitable model and calibration. Scores can be normalized correctly yet produce poorly calibrated predictions; check the class definition and axis.
Sigmoid maps one score to a value between zero and one; independent sigmoid outputs need not sum to one. Softmax jointly normalizes multiple class scores as competing categories, suiting single-label tasks. For multilabel tasks where several classes may apply simultaneously, independent sigmoids are often more suitable. Softmax normalizes along the selected class axis. Outputs sum to one there, but are not automatically calibrated probabilities without a suitable model and calibration. Scores can be normalized correctly yet produce poorly calibrated predictions; check the class definition and axis.
For large zi, eᶻi may exceed the numeric range. Let m=max(z) and compute eᶻi−ᵐ/Σjeᶻʲ−ᵐ; shift invariance preserves softmax while the largest exponent is at most one. Libraries use this or an equivalent stable form. For cross-entropy, log-softmax is often safer than log(softmax(z)). Softmax normalizes along the selected class axis. Outputs sum to one there, but are not automatically calibrated probabilities without a suitable model and calibration. Scores can be normalized correctly yet produce poorly calibrated predictions; check the class definition and axis.
Quanta exam set
Curated exam set for "Softmax function":
Question (front)
Which formula describes Softmax function?
Answer in your set
Question (front)
How do you rearrange Softmax function for Pairwise score ratio?
Answer in your set
Question (front)
Which common mistake happens with Softmax function?
Answer in your set
+ 7 more cards: units, variables, derivation, example, exam task
The formula set contains 10 cards. After importing, review them and start practicing; your ratings determine later review intervals.
This list names subject references and further reading. A page or section number appears when it is part of the reference; these are not verbatim quotations.
Create a curated FSRS exam set for softmax(z)i = eᶻⁱ/Σⱼeᶻʲ: formula recall, variables, derivation, rearrangement, worked example, common mistakes and exam context.
Curated formula set · LaTeX · FSRS spaced repetition · import from Essential