Stochastic Rounding and its Probabilistic Backward Error Analysis - Archive ouverte HAL
Article Dans Une Revue SIAM Journal on Scientific Computing Année : 2021

Stochastic Rounding and its Probabilistic Backward Error Analysis

Résumé

Stochastic rounding rounds a real number to the next larger or smaller floating-point number with probabilities 1 minus the relative distances to those numbers. It is gaining attention in deep learning because it can increase the success of low precision computations. We compare basic properties of stochastic rounding with those for round to nearest, finding properties in common as well as significant differences. We prove that for stochastic rounding the rounding errors are mean independent random variables with zero mean. We derive a new version of our probabilistic error analysis theorem from [SIAM J. Sci. Comput., 41 (2019), pp. A2815-A2835], weakening the assumption of independence of the random variables to mean independence. These results imply that for a wide range of linear algebra computations the backward error for stochastic rounding is unconditionally bounded by a multiple of √ nu to first order, with a certain probability, where n is the problem size and u is the unit roundoff. This is the first scenario where the rule of thumb that one can replace nu by √ nu in a rounding error bound has been shown to hold without any additional assumptions on the rounding errors. We also explain how stochastic rounding avoids the phenomenon of stagnation in sums, whereby small addends are obliterated by round to nearest when they are too small relative to the sum.
Fichier principal
Vignette du fichier
paper.pdf (483.16 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-02556997 , version 1 (28-04-2020)
hal-02556997 , version 2 (10-08-2020)
hal-02556997 , version 3 (07-06-2021)

Identifiants

Citer

Michael P Connolly, Nicholas J Higham, Théo Mary. Stochastic Rounding and its Probabilistic Backward Error Analysis. SIAM Journal on Scientific Computing, 2021, 43 (1), pp.A566-A585. ⟨10.1137/20M1334796⟩. ⟨hal-02556997v3⟩
308 Consultations
818 Téléchargements

Altmetric

Partager

More