Stochastic rounding: implementation, error analysis and applications

Matteo Croci1, Massimiliano Fasi2, Nicholas J Higham3

  • 1Oden Institute, University of Texas at Austin, Austin, TX, 78712, USA.

Summary

Stochastic rounding (SR) offers improved accuracy in floating-point computations by randomly selecting the nearest representable number. This method enhances numerical stability, particularly in machine learning and differential equation solving.

Related Concept Videos

Propagation of Uncertainty from Random Error00:59

Propagation of Uncertainty from Random Error

An experiment often consists of more than a single step. In this case, measurements at each step give rise to uncertainty. Because the measurements occur in successive steps, the uncertainty in one step necessarily contributes to that in the subsequent step. As we perform statistical analysis on these types of experiments, we must learn to account for the propagation of uncertainty from one step to the next. The propagation of uncertainty depends on the type of arithmetic operation performed on...
1.2K
Significant Figures in Calculations00:58

Significant Figures in Calculations

Uncertainty in measurements can be avoided by reporting the results of a calculation with the correct number of significant figures. This can be determined by the following rules for rounding numbers:
14.5K
Uncertainty in Measurement: Significant Figures03:34

Uncertainty in Measurement: Significant Figures

All the digits in a measurement, including the uncertain last digit, are called significant figures or significant digits. Note that zero may be a measured value; for example, if a scale that shows weight to the nearest pound reads “140,” then the 1 (hundreds), 4 (tens), and 0 (ones) are all significant (measured) values.
75.7K
Random Error01:04

Random Error

Random or indeterminate errors originate from various uncontrollable variables, such as variations in environmental conditions, instrument imperfections, or the inherent variability of the phenomena being measured. Usually, these errors cannot be predicted, estimated, or characterized because their direction and magnitude often vary in magnitude and direction even during consecutive measurements. As a result, they are difficult to eliminate. However, the aggregate effect of these errors can be...
2.6K
Random and Systematic Errors01:20

Random and Systematic Errors

Scientists always try their best to record measurements with the utmost accuracy and precision. However, sometimes errors do occur. These errors can be random or systematic. Random errors are observed due to the inconsistency or fluctuation in the measurement process, or variations in the quantity itself that is being measured. Such errors fluctuate from being greater than or less than the true value in repeated measurements. Consider a scientist measuring the length of an earthworm using a...
13.0K
Propagation of Uncertainty from Systematic Error01:10

Propagation of Uncertainty from Systematic Error

The atomic mass of an element varies due to the relative ratio of its isotopes. A sample's relative proportion of oxygen isotopes influences its average atomic mass. For instance, if we were to measure the atomic mass of oxygen from a sample, the mass would be a weighted average of the isotopic masses of oxygen in that sample. Since a single sample is not likely to perfectly reflect the true atomic mass of oxygen for all the molecules of oxygen on Earth, the mass we obtain from this...
961