# The Softmax Function and Its Derivative: A Deep Dive

> Hacker News story 49928196 · language: en · submitted 2026-10-01
> Web version: https://zeli.app/story/49928196
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 41 · by [costco](<https://news.ycombinator.com/user?id=costco>) · 💬 2
[original](<https://eli.thegreenplace.net/2016/the-softmax-function-and-its-derivative/>) · [HN discussion](<https://news.ycombinator.com/item?id=49928196>)

## Summary

Softmax turns any real vector into probabilities that sum to 1, making it a staple of multiclass classification. This post derives its Jacobian from first principles using vector calculus, explains why naive exponentiation causes NaNs and how shifting by the maximum fixes it, and shows how the derivative simplifies when combined with cross-entropy loss.

## Key quote

> Intuitively, the softmax function is a "soft" version of the maximum function. Instead of just selecting one maximal element, softmax breaks the vector up into parts of a whole (1.0) with the maximal input element getting a proportionally larger chunk, but the other elements getting some of it as well.

---

## Cite

- Page: https://zeli.app/story/49928196
- Date: 2026-10-01
- Source: eli.thegreenplace.net (https://eli.thegreenplace.net/2016/the-softmax-function-and-its-derivative/)
- Hacker News: https://news.ycombinator.com/item?id=49928196

## Other languages

- zh: https://zeli.app/zh/story/49928196 · markdown: https://zeli.app/zh/story/49928196.md
- ja: https://zeli.app/ja/story/49928196 · markdown: https://zeli.app/ja/story/49928196.md
- ko: https://zeli.app/ko/story/49928196 · markdown: https://zeli.app/ko/story/49928196.md
- de: https://zeli.app/de/story/49928196 · markdown: https://zeli.app/de/story/49928196.md
- es: https://zeli.app/es/story/49928196 · markdown: https://zeli.app/es/story/49928196.md
- ru: https://zeli.app/ru/story/49928196 · markdown: https://zeli.app/ru/story/49928196.md
