Error Functions and Martingales in Stochastic Rounding
Preprint
Abstract
The quality of numerical computations can be measured through their forward error, for which finding good error bounds is challenging in general. For several algorithms and using stochastic rounding (SR), probabilistic analysis has been shown to be an effective alternative for obtaining tight error bounds. This analysis considers the distribution of errors and evaluates the algorithm's performance on average. Using martingales and the Azuma-Hoeffding inequality, it provides error bounds that are valid with a certain probability and in $\mathcal{O}(\sqrt{n}u)$ instead of deterministic worst-case bounds in $\mathcal{O}(nu)$, where $n$ is the number of operations and $u$ is the unit roundoff.In this paper, we present a general method that automatically constructs a martingale for any computation scheme with multi-linear errors based on additions, subtractions, and multiplications. We apply this generalization to algorithms previously studied with SR, such as pairwise summation and the Horner algorithm, and prove equivalent results. We also analyze a previously unstudied algorithm, Karatsuba polynomial multiplication, which illustrates that the method can handle reused intermediate computations.
Keywords
All Related Versions
This publication has 8 references indexed in Scilit:
- Probabilistic Error Analysis of Limited-Precision Stochastic RoundingSIAM Journal on Scientific Computing, 2025
- On the convergence of the gradient descent method with stochastic fixed-point rounding errors under the Polyak–Łojasiewicz inequalityComputational Optimization and Applications, 2025
- Bounds on Nonlinear Errors for Variance Computation with Stochastic RoundingSIAM Journal on Scientific Computing, 2024
- Stochastic Rounding Variance and Probabilistic Bounds: A New ApproachSIAM Journal on Scientific Computing, 2023
- Precision-aware deterministic and probabilistic error bounds for floating point summationNumerische Mathematik, 2023
- Stochastic rounding: implementation, error analysis and applicationsRoyal Society Open Science, 2022
- Stochastic Rounding and Its Probabilistic Backward Error AnalysisSIAM Journal on Scientific Computing, 2021
- Probabilistic Error Analysis for Inner ProductsSIAM Journal on Matrix Analysis and Applications, 2020