Stochastic rounding variance and probabilistic bounds: A new approach

El-Mehdi El Arar, Devan Sohier, Pablo de Oliveira Castro, Eric Petit
7/21/2022
math.NA

Official code: verificarlo/sr-variance-bounds (0 stars, Python, BSD-3-Clause, last commit 2023-04-15).

Abstract

Stochastic rounding (SR) offers an alternative to the deterministic IEEE-754 floating-point rounding modes. In some applications such as PDEs, ODEs and neural networks, SR empirically improves the numerical behavior and convergence to accurate solutions while no sound theoretical background has been provided.

Show full abstract

Recent works by Ipsen, Zhou, Higham, and Mary have computed SR probabilistic error bounds for basic linear algebra kernels. For example, the inner product SR probabilistic bound of the forward error is proportional to $\sqrt$ nu instead of nu for the default rounding mode. To compute the bounds, these works show that the errors accumulated in computation form a martingale. This paper proposes an alternative framework to characterize SR errors based on the computation of the variance. We pinpoint common error patterns in numerical algorithms and propose a lemma that bounds their variance. For each probability and through Bienaym{é}-Chebyshev inequality, this bound leads to better probabilistic error bound in several situations. Our method has the advantage of providing a tight probabilistic bound for all algorithms fitting our model. We show how the method can be applied to give SR error bounds for the inner product and Horner polynomial evaluation.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Scripts to reproduce the numerical experiments of the paper « Stochastic Rounding Variance and Probabilistic Bound: a New Approach »

00Python, CJun 13, 20223 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{arar2022stochastic,
  title  = {Stochastic rounding variance and probabilistic bounds: A new approach},
  author = {El-Mehdi El Arar and Devan Sohier and Pablo de Oliveira Castro and Eric Petit},
  year   = {2022},
  eprint = {2207.10321},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2207.10321}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2207.10321.svg)](https://codeofpaper.com/paper/2207.10321)

Discussion