Back to Search Start Over

Stochastic rounding: implementation, error analysis and applications

Authors :
Matteo Croci
Massimiliano Fasi
Nicholas J. Higham
Theo Mary
Mantas Mikaitis
Mary, Theo
Plateforme d'analyse pour l'arithmétique flottante - - INTERFLOP2020 - ANR-20-CE46-0009 - AAPG2020 - VALID
University of Oxford [Oxford]
Durham University
University of Manchester [Manchester]
Performance et Qualité des Algorithmes Numériques (PEQUAN)
LIP6
Sorbonne Université (SU)-Centre National de la Recherche Scientifique (CNRS)-Sorbonne Université (SU)-Centre National de la Recherche Scientifique (CNRS)
ANR-20-CE46-0009,INTERFLOP,Plateforme d'analyse pour l'arithmétique flottante(2020)
Source :
Royal Society Open Science, 2022, Vol.9(3), pp.211631 [Peer Reviewed Journal]
Publication Year :
2022
Publisher :
The Royal Society, 2022.

Abstract

Stochastic rounding (SR) randomly maps a real number x to one of the two nearest values in a finite precision number system. The probability of choosing either of these two numbers is 1 minus their relative distance to x . This rounding mode was first proposed for use in computer arithmetic in the 1950s and it is currently experiencing a resurgence of interest. If used to compute the inner product of two vectors of length n in floating-point arithmetic, it yields an error bound with constant n u with high probability, where u is the unit round-off. This is not necessarily the case for round to nearest (RN), for which the worst-case error bound has constant nu . A particular attraction of SR is that, unlike RN, it is immune to the phenomenon of stagnation, whereby a sequence of tiny updates to a relatively large quantity is lost. We survey SR by discussing its mathematical properties and probabilistic error analysis, its implementation, and its use in applications, with a focus on machine learning and the numerical solution of differential equations.

Details

Database :
OpenAIRE
Journal :
Royal Society Open Science, 2022, Vol.9(3), pp.211631 [Peer Reviewed Journal]
Accession number :
edsair.doi.dedup.....e610eb04a2e56080ddd4ce9b15aeb210