[Paper Review] Effects of round-to-nearest and stochastic rounding in the numerical solution of the heat equation in low precision
This paper analyzes rounding error accumulation in low-precision numerical solutions of the heat equation using round-to-nearest (RtN) and stochastic rounding (SR). It demonstrates that SR prevents stagnation and yields global rounding errors of O(u∆t⁻¹ᐟ⁴) in 1D and essentially bounded in higher dimensions, while RtN suffers from O(u∆t⁻¹) error growth and eventual stagnation, making SR far more resilient in reduced precision computing.
Motivated by the advent of machine learning, the last few years have seen 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. As shown by recent studies into reduced-precision climate simulations, an application that can largely benefit from the advantages of low-precision computing is the numerical solution of partial differential equations (PDEs). However, 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 \emph{a priori} estimates for local and global rounding errors. Let $u$ be the unit roundoff. While the worst-case local errors are $O(u)$ with respect to the discretization parameters (mesh size and timestep), the RtN and SR error behavior is substantially different. In fact, the RtN solution always stagnates for small enough $\Delta t$, and until stagnation the global error grows like $O(u\Delta 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\Delta t^{-1/4})$ in 1D and are essentially bounded (up to logarithmic factors) in higher dimensions.
Motivation & Objective
- To analyze how rounding errors accumulate in low-precision numerical solutions of the heat equation.
- To compare the behavior of round-to-nearest (RtN) and stochastic rounding (SR) in finite difference schemes.
- To demonstrate that SR prevents stagnation and enables more accurate solutions in reduced precision.
- To derive a priori error bounds for local and global rounding errors under both rounding modes.
- To show that higher-order Runge-Kutta methods do not provide significant benefits in low-precision settings due to error saturation or blow-up.
Proposed method
- Uses a second-order finite difference scheme in space and arbitrary Runge-Kutta methods in time.
- Implements the timestepping scheme in delta form to minimize rounding error accumulation.
- Analyzes local and global rounding errors using probabilistic and deterministic error bounds.
- Derives a priori estimates for rounding errors under RtN and SR, showing that SR errors are zero-mean and uncorrelated.
- Employs theoretical analysis to prove that SR global errors grow as O(u∆t⁻¹ᐟ⁴) in 1D and are bounded up to logarithmic factors in higher dimensions.
- Validates results with numerical experiments in 1D, 2D, and 3D using various RK methods and timesteps.
Experimental results
Research questions
- RQ1How do round-to-nearest and stochastic rounding affect global rounding error growth in low-precision solution of the heat equation?
- RQ2Why does stochastic rounding prevent stagnation where round-to-nearest fails?
- RQ3What are the theoretical bounds on local and global rounding errors for both rounding modes?
- RQ4Does the order of the Runge-Kutta method provide any advantage in low-precision settings?
- RQ5How does the conditioning of the linear system affect global error in implicit time integration?
Key findings
- Stochastic rounding prevents stagnation by ensuring that small additions are not lost, unlike round-to-nearest.
- With stochastic rounding, global rounding errors grow as O(u∆t⁻¹ᐟ⁴) in 1D and are essentially bounded in higher dimensions.
- Round-to-nearest exhibits O(u∆t⁻¹) global error growth until stagnation occurs, after which the solution converges to the initial condition.
- Numerical experiments confirm that SR errors are dominated by the εn term and remain close to the theoretical lower bound.
- The global error in implicit methods like backward Euler increases dramatically when the condition number of the linear system exceeds u⁻¹, limiting the benefit of large timesteps.
- Higher-order Runge-Kutta methods do not improve accuracy in low precision due to error saturation or blow-up, suggesting limited benefit over first-order methods.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.