Concept

Fp16 — where it appears

The 16-bit floating-point format, with 11 significant bits and a largest number of 65,504. Its small range is what makes it instructive: a squared entry leaves it long before the entry itself does, and a repair that a wider format can ignore becomes necessary.

Named by 2 essays across one field — each of them below, with the objects they name alongside it.

02468101201change of units, by exponent10⁰10¹10²10³10⁴10⁶10¹⁰10¹⁶10¹⁹10²⁰10⁴⁰10¹⁵⁰as writtenafter scalinga range questionlargest finite value3.4·10³⁸predicted boundary γ1.8·10¹⁹last γ that forms10¹⁹stops where scaling fails0not a poor answerno answer at all

The units that overflow before the answer does

A change of variable that is exact in the algebra requires γ² times a matrix to be a number the format can hold. In binary64 that is a bound nobody meets by accident. In binary32 it arrives at 10¹⁹ and in fp16 at 256, and past it there is no answer rather than a poor one.

arithmetic · Overflow
units of the roundoffat k = 110.002at k = 122047compensated at 120.620481216202410⁻³10⁻²10⁻¹110¹10²10³10⁴k, the small entries are two to the minus kerror in units of the roundoffeither scale, largest firstsum compensatedbinary32 · length 4,096 · floored at 10⁻³a square half an ulp below the running sum

The division the norm did not need

Dividing by the largest entry is the standard repair for a Euclidean norm that overflows, and it was said to make about the same rounding errors as the expression it replaces. It is about a third worse on short vectors, up to 1.74 times, and it misses 801 of 4,518 integer norms the plain expression returns exactly, because a power of two buys the same range with no rounding at all. But the scale was never the main liability. One entry of size one and 4,095 entries of two to the minus twelve lose 2,047 units of roundoff in every route alike, from a sum that throws each small square away on arrival.

arithmetic · Overflow

Named alongside it

The objects these essays reach for when they reach for this one.

Binary32hypotOverflowCompensated summationExponent rangeMatrix polynomialQuadratic eigenvalue problemScaled normScalingUnit roundoff

All concepts