Pith. sign in

REVIEW 1 cited by

Accurate Computation of the Log-Sum-Exp and Softmax Functions

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 1909.03469 v1 pith:YAVTNROR submitted 2019-09-08 math.NA cs.NA

classification math.NAcs.NA
keywords functionssoftmaxaccuratealgorithmsarithmeticerrorevaluationformulas
verification ladder T0 review T1 audit T2 compute T3 formal

Signed reviews

No signed human review yet.

0 comments
read the original abstract

Evaluating the log-sum-exp function or the softmax function is a key step in many modern data science algorithms, notably in inference and classification. Because of the exponentials that these functions contain, the evaluation is prone to overflow and underflow, especially in low precision arithmetic. Software implementations commonly use alternative formulas that avoid overflow and reduce the chance of harmful underflow, employing a shift or another rewriting. Although mathematically equivalent, these variants behave differently in floating-point arithmetic. We give rounding error analyses of different evaluation algorithms and interpret the error bounds using condition numbers for the functions. We conclude, based on the analysis and numerical experiments, that the shifted formulas are of similar accuracy to the unshifted ones and that the shifted softmax formula is typically more accurate than a division-free variant.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Equilibrium thermometry in the multilevel quantum Rabi model

    quant-ph 2026-02 conditional novelty 6.0 of 10

    A closed-form quantum Fisher information for the multilevel quantum Rabi model in the adiabatic regime shows dark-manifold saturation approaches the ideal thermometer limit and bright-manifold saturation gives broadba...

Pith tools