The Observation Theory EncyclopediaFrom TSKAboutBy kindBy chapterBy Lean fileLedgerProvenance

softmax concept

DefinitionThe function that exponentiates a list of numbers and divides by their sum, so that they are positive and add to one. Equation 0.23.
ExampleScores 2, 1, and 0 give weights 0.665, 0.245, and 0.090, which sum to one.
BookData Mining as Observation, draft 0.2, commit f3914f0; entry id softmax, kind concept.
Statusrefutes or corrects [refuted] ×2. Corrections: 2 item(s), see below.
Defining equation

Book equation 0.23.

Assumptions and scope
  • The softmax exponentiates a list of scores and divides by the sum, so the weights are positive and add to one. Adding the same constant to every score leaves it unchanged, and a larger score gets a larger weight.
  • As a consumer it reads the scores through their differences, which is why the two proxies for softmax-KL in the ledger, the variance ratio and the projected-variance trace, were refuted.
Prior artnone recorded
Evidencegeometric-observation/claims/LEDGER.md:101, geometric-observation/claims/LEDGER.md:102, turboquant-pro/docs/KV_KEYS_FINDING.md:1-49, lean/DataMiningAsObservation/Softmax.lean
Reviewednot yet reviewed; generated 2026-09-10 from records at the commits on the provenance page.
querykey 1key 2key 3key 4key 5key 6key 7key 8softmax weights, sum to one
Exponentials normalized to sum to one.

Equation

Book equation 0.23.

\[\operatorname{softmax}(z)_i=\frac{e^{z_i}}{\sum_j e^{z_j}},\qquad \text{output}=\sum_i\operatorname{softmax}\!\Big(\frac{q\cdot k_i}{\sqrt{d}}\Big)_{\!i}\,v_i.\]

Conditions

Conditions are curated in entries.toml rather than read from a record.

Ledger

First stated

Chapter 0 section 0.11 of Data Mining as Observation, with the program’s softmax reader in turboquant-pro/docs/KV_KEYS_FINDING.md:1-49.

Measurements

Where the book states it Numbers, as the book’s sources table records them Source
chapter 2 section 2.5 cosine 0.995 and the softmax reader turboquant-pro/docs/KV_KEYS_FINDING.md:1-49

Failures and corrections

Invariance envelope

none declared

Machine checked

lean/DataMiningAsObservation/Softmax.lean, theorems denom_pos, softmax_pos, softmax_sum, softmax_shift, softmax_lt_iff, at observation-data-mining f3914f0; what the check covers is stated in the book’s appendix C.

Used in

Data Mining as Observation chapters 0, 2, 3, 4, 8, 11.

Related

attention; KL divergence; perplexity; consumer.

See also

Book equations stated beside the entry’s terms, not defining it: 0.24.

Sources-table rows that share a record with the entry without naming it: chapter 1 section 1.4, chapter 3 section 3.2, chapter 8 section 8.2, chapter 11 section 11.1, chapter 11 section 11.2.

Status

Generated 2026-09-10 by encyclopedia/generate.py; book at observation-data-mining f3914f0; the commit of every record is listed in the encyclopedia’s provenance.

← skewnesssources table →