Floating Point
Adding up ten million numbers
Recursive summation in single precision loses four digits over ten million terms. Pairwise and compensated summation keep them for little extra work.
A note on log-sum-exp
Subtracting the maximum turns an overflow into an exact identity. The same shift makes softmax safe.