log Σ exp(zᵢ): a smooth maximum, and the normalizer of a softmax in log space.
In ML papers
LSE(z)=log∑iezi is a smooth maximum: it is at least maxizi and at most maxizi+logn, and close to the max when one entry dominates.
It is the log of the softmax denominator, so logsoftmax(z)i=zi−LSE(z), and the cross-entropy loss is LSE(z)−zy. Code computes it as m+log∑iezi−m with m=maxizi, to avoid overflow. Its gradient is the softmax.
How to type it
LaTeX
Shows
\operatorname{logsumexp}(\mathbf{z})
logsumexp(z)
\operatorname{LSE}(\mathbf{z})
LSE(z)
\log \sum_i e^{z_i}written out
log∑iezi
A worked example
LSE(1,2,3)=log(e1+e2+e3)≈log30.19≈3.41
Slightly above the max, 3.
Common confusions
It is not ∑ilogezi, which would just be ∑izi: the log is taken after summing.