Softmax on Two Scores

Softmax assigns probabilities proportional to exponentiated scores. The common denominator normalizes them across the chosen class axis.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace equal and unequal results
  2. Shift safely

Trace equal and unequal results

Scores zero and zero yield \(1/2,1/2\). Scores zero and \(\log 3\) have exponentials one and three, so the probabilities are \(1/4,3/4\). The second remains the preferred class under maximum-score selection. See logits and ordering.

Shift safely

Subtracting a common constant preserves the ratios because the same positive factor cancels. Stable softmax shows how to avoid very large intermediate exponentials.[1]

References

  1. Ian Goodfellow, Yoshua Bengio and Aaron Courville, Deep Learning ↩