arrow
Return

SIMULATING LOW PRECISION FLOATING-POINT ARITHMETIC

delete2019-01-01
delete48
delete
OA
AI
N
Nicholas J. Higham *
S
Srikara Pranesh
DOI:10.1137/19M1251308delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
The half-precision (fp16) floating-point format, defined in the 2008 revision of the IEEE standard for floating-point arithmetic, and a more recently proposed half-precision format bfloatl6, are increasingly available in GPUs and other accelerators. While the support for low precision arithmetic is mainly motivated by machine learning applications, general purpose numerical algorithms can benefit from it, too, gaining in speed, energy usage, and reduced communication costs. Since the appropriate hardware is not always available, and one may wish to experiment with new arithmetics not yet implemented in hardware, software simulations of low precision arithmetic are needed. We discuss how to simulate low precision arithmetic using arithmetic of higher precision. We examine the correctness of such simulations and explain via rounding error analysis why a natural method of simulation can provide results that are more accurate than actual computations at low precision. We provide a MATLAB function, chop, that can be used to efficiently simulate fp16, bfloatl6, and other low precision arithmetics, with or without the representation of subnormal numbers and with the options of round to nearest, directed rounding, stochastic rounding, and random bit flips in the significand. We demonstrate the advantages of this approach over defining a new MATLAB class and overloading operators.
Keywords:
floating-point arithmetic
half precision
low precision
IEEE arithmetic
fp16
bfloat 16
subnormal numbers
mixed precision
simulation
rounding error analysis
round to nearest
directed rounding
stochastic rounding
bit flips
MATLAB
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

SIAM Journal on Scientific Computing cover
SIAM Journal on Scientific Computing
IF:
2.6
Papers:
5.1K
Citations:
1.8W

Organization

U
University of Manchester
Scholars:
5.7W
Papers: 5.2W
Citations: 7.4W