A Probabilistic Approach to Floating Point Arithmetic

12/02/2019
by   Fredrik Dahlqvist, et al.
0

Finite-precision floating point arithmetic unavoidably introduces rounding errors which are traditionally bounded using a worst-case analysis. However, worst-case analysis might be overly conservative because worst-case errors can be extremely rare events in practice. Here we develop a probabilistic model of rounding errors with which it becomes possible to estimate the likelihood that the rounding error of an algorithm lies within a given interval. Given an input distribution, we show how to compute the distribution of rounding errors. We do this exactly for low precision arithmetic, for high precision arithmetic we derive a simple approximation. The model is then entirely compositional: given a numerical program written in a simple imperative programming language we can recursively compute the distribution of rounding errors at each step of the computation and propagate it through each program instruction. This is done by applying a formalism originally developed by Kozen to formalize the semantics of probabilistic programs. We then discuss an implementation of the model and use it to perform probabilistic range analyses on some benchmarks.

READ FULL TEXT
research
05/27/2021

Rigorous Roundoff Error Analysis of Probabilistic Floating-Point Computations

We present a detailed study of roundoff errors in probabilistic floating...
research
03/11/2019

Correct Approximation of IEEE 754 Floating-Point Arithmetic for Program Verification

Verification of programs using floating-point arithmetic is challenging ...
research
01/07/2020

Automatic generation and verification of test-stable floating-point code

Test instability in a floating-point program occurs when the control flo...
research
07/07/2017

On Sound Relative Error Bounds for Floating-Point Arithmetic

State-of-the-art static analysis tools for verifying finite-precision co...
research
08/27/2023

Accurate complex Jacobi rotations

This note shows how to compute, to high relative accuracy under mild ass...
research
07/12/2021

An Interval Arithmetic for Robust Error Estimation

Interval arithmetic is a simple way to compute a mathematical expression...
research
04/15/2020

On the Complexity of the Plantinga-Vegter Algorithm

We introduce a general toolbox for precision control and complexity anal...

Please sign up or login with your details

Forgot password? Click here to reset