Probabilistic Error Analysis of Limited-Precision Stochastic Rounding
- 13 October 2025
- journal article
- Published by Society for Industrial & Applied Mathematics (SIAM) in SIAM Journal on Scientific Computing
- Vol. 47 (5) , B1227-B1249
Abstract
Classical probabilistic rounding error analysis is particularly well suited to stochastic rounding (SR), and it yields strong results when dealing with floating-point algorithms that rely heavily on summation. For many numerical linear algebra algorithms, one can prove probabilistic error bounds that grow as [Formula: see text], where [Formula: see text] is the problem size and [Formula: see text] is the unit roundoff. These probabilistic bounds are asymptotically tighter than the worst-case ones, which grow as [Formula: see text]. For certain classes of algorithms, SR has been shown to be unbiased. However, all these results were derived under the assumption that SR is implemented exactly, which typically requires too many random bits to be suitable for practical implementations. We investigate the effect of the number of random bits on the probabilistic rounding error analysis of SR. To this end, we introduce a new rounding mode, limited-precision SR. By taking into account the number [Formula: see text] of random bits used, this new rounding mode matches hardware implementations accurately, unlike the ideal SR operator generally used in the literature. We show that this new rounding mode is biased and that the bias is a function of [Formula: see text]. As [Formula: see text] approaches infinity, however, the bias disappears, and limited-precision SR converges to the ideal, unbiased SR operator. We develop a novel model for probabilistic error analysis of algorithms employing SR. Several numerical examples corroborate our theoretical findings. Reproducibility of computational results. This paper has been awarded the “SIAM Reproducibility Badge: Code and data available” as a recognition that the authors have followed reproducibility principles valued by SISC and the scientific computing community. Code and data that allow readers to reproduce the results in this paper are available at https://github.com/mptorch/mptorch and in the supplementary materials ( mptorch-main.zip [69.0KB]). [Formula: see text]Keywords
Funding Information
- Agence Nationale de la Recherche (ANR-23-PEIA-0010)
This publication has 21 references indexed in Scilit:
- Effects of round-to-nearest and stochastic rounding in the numerical solution of the heat equation in low precisionIMA Journal of Numerical Analysis, 2022
- Stochastic rounding: implementation, error analysis and applicationsRoyal Society Open Science, 2022
- Stochastic rounding and reduced-precision fixed-point arithmetic for solving neural ordinary differential equationsPhilosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, 2020
- Numerical validation of compensated algorithms with stochastic arithmeticApplied Mathematics and Computation, 2018
- Handbook of Floating-Point Arithmetic2018
- Numerical Validation of Compensated Summation Algorithms with Stochastic ArithmeticElectronic Notes in Theoretical Computer Science, 2015
- Probability and Computing2005
- Discrete Stochastic Arithmetic for Validating Results of Numerical SoftwareNumerical Algorithms, 2004
- Probabilistic rounding in neural network learning with limited precisionNeurocomputing, 1992
- The November meeting in PasadenaBulletin of the American Mathematical Society, 1950