Effects of round-to-nearest and stochastic rounding in the numerical solution of the heat equation in low precision

10/30/2020
by   Matteo Croci, et al.
0

Motivated by the advent of machine learning, the last few years saw the return of hardware-supported low-precision computing. Computations with fewer digits are faster and more memory and energy efficient, but can be extremely susceptible to rounding errors. An application that can largely benefit from the advantages of low-precision computing is the numerical solution of partial differential equations (PDEs), but a careful implementation and rounding error analysis are required to ensure that sensible results can still be obtained. In this paper we study the accumulation of rounding errors in the solution of the heat equation, a proxy for parabolic PDEs, via Runge-Kutta finite difference methods using round-to-nearest (RtN) and stochastic rounding (SR). We demonstrate how to implement the scheme to reduce rounding errors and we derive a priori estimates for local and global rounding errors. Let u be the roundoff unit. While the worst-case local errors are O(u) with respect to the discretization parameters, the RtN and SR error behavior is substantially different. We prove that the RtN solution is discretization, initial condition and precision dependent, and always stagnates for small enough Δ t. Until stagnation, the global error grows like O(uΔ t^-1). In contrast, we show that the leading order errors introduced by SR are zero-mean, independent in space and mean-independent in time, making SR resilient to stagnation and rounding error accumulation. In fact, we prove that for SR the global rounding errors are only O(uΔ t^-1/4) in 1D and are essentially bounded (up to logarithmic factors) in higher dimensions.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/31/2020

Improved stochastic rounding

Due to the limited number of bits in floating-point or fixed-point arith...
research
07/08/2022

The Positive Effects of Stochastic Rounding in Numerical Algorithms

Recently, stochastic rounding (SR) has been implemented in specialized h...
research
10/01/2020

Error Inhibiting Schemes for Initial Boundary Value Heat Equation

In this paper, we elaborate the analysis of some of the schemes which we...
research
07/13/2020

Discretization-error-accurate mixed-precision multigrid solvers

This paper builds on the algebraic theory in the companion paper [Algebr...
research
01/07/2020

On efficient numerical solution of linear algebraic systems arising in goal-oriented error estimates

We deal with the numerical solution of linear partial differential equat...
research
08/07/2021

Optimal parameters for numerical solvers of PDEs

In this paper we introduce a procedure for identifying optimal methods i...
research
12/17/2019

Balancing truncation and round-off errors in practical FEM: one-dimensional analysis

In finite element methods (FEMs), the accuracy of the solution cannot in...

Please sign up or login with your details

Forgot password? Click here to reset