Learn · 04 / 10

4 · MaxEnt — the softmax is not an assumption

Where does the exponential form come from? It can be derived, twice over.

As a variational principle. Ask: which distribution maximises expected payoff plus a bonus for keeping options open, σ=argmaxσ  Eσ[U]+1λH(σ),\sigma^* = \arg\max_\sigma \;\mathbb{E}_\sigma[U] + \tfrac{1}{\lambda}H(\sigma), with H the Shannon entropy? The answer is exactly the logit response. Slide the 1/λ dial in the Lab and watch the optimum morph from uniform (entropy dominates) to argmax (payoff dominates). Physicists will recognise free energy F = U − TS with temperature T = 1/λ; the Gibbs variational principle, verbatim, with payoff as negative energy.

As a price of information. Rational inattention (Matějka–McKay 2015) derives the same logit from first principles: an agent who must pay for information about payoffs, at a per-bit price, optimally ends up choosing with exactly these probabilities — and λ is the inverse price of information. "Noise" is then not error but economised attention.

Both derivations matter practically. The variational form gives the log-partition function ψ = log Σ e^{λU}, whose gradient is the choice distribution and whose Hessian is the choice covariance C — the exact identities (verified to 10⁻¹²) on which every instrument in this project is built: the susceptibility is λC, and everything else follows from there.

So what would you do differently?

When you genuinely do not know what they will do, the honest forecast is the most spread-out one consistent with what you do know. Anything sharper is you adding information you do not have.

See a decision where spreading out is the answer
▶ try it · the Gibbs variational principle
in-browser · goldens-checked
temperature T = 1/λ = 5.00
the optimum σ* = argmax E[U] + T·H(σ)
a
0.035
b
0.117
c
0.476
d
0.319
e
0.053
free-energy decomposition
E[U] · payoff112.50
T·H(σ) · option value6.21
objective (−free energy)118.71

Hot (T large): the entropy bonus dominates and the optimum is nearly uniform. Cold (T → 0): payoff dominates and the optimum is the argmax. The softmax is not an assumption — it is the solution of this trade-off at every temperature. Physicists: F = U − TS, verbatim, payoff as negative energy.