scholarly journals Rounding Error Analysis of Finite Settling Time Control with Floating Point Arithmetic

Author(s):  
Keiji HASHIMOTO ◽  
Hidenori KIMURA
Author(s):  
Pierre Blanchard ◽  
Desmond J Higham ◽  
Nicholas J Higham

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 and shifting can introduce subtractive cancellation. 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, so can safely be used, but that a division-free variant of softmax can suffer from loss of accuracy.


2018 ◽  
Vol 40 (1) ◽  
pp. 587-605
Author(s):  
Tomasz Hrycak ◽  
Sebastian Schmutzhard

Abstract We prove new error estimates for a three-term recurrence that is used to compute Legendre polynomials. To this end we derive a bilinear representation of the cross-product of Legendre functions and demonstrate estimates of the cross-product that are needed in the error analysis of the recurrence.


Sign in / Sign up

Export Citation Format

Share Document