Concept

Quantisation — where it appears

The replacement of a value by the nearest one a coarser format can represent. The error it introduces is at most half the spacing at that magnitude, which makes it an absolute step in a block or fixed-point format and a relative one in a floating-point format.

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

half a stepthe 32 values of one block, in the order they arrivestep 0.0625one scale, thirty-two valuesoctaves inside the block1.9entries rounded to zero0worst error over its bound131 levels either side of zerothe largest entry chose the step

One exponent for thirty-two numbers

Share the exponent across a block and the cost per value drops from eight bits to 6.25, and the accuracy improves — up to about three octaves of spread inside a block. Past that a single outlier deletes the thirty-one values beside it, and the 2-norm barely notices.

arithmetic · Block formats
entries rounded to zero, of 320block, as given310block, sorted by size22E4M3, either order0median entry's relative errorblock, as given1block, sorted0.00321E4M30.022the same numbers, three waysdeleted, as given310deleted, sorted22deleted, per-element08-bit significands, blocks of 32sorting is free and changes no value

A bit buys an octave

The outlier a block survives is exactly two raised to its significand width — 8 at three bits, 32 at five, 128 at seven, 512 at nine. Each extra bit doubles the range the block tolerates and halves the ordinary entry's error. Reordering the same numbers buys every octave at once and costs nothing.

arithmetic · Block formats
4681012141610⁻²10⁻¹110¹10²10³10⁴k, the tail's entries are two to the minus kerror in units of the roundoffsquares added in ordersquares added pairwisebinary32 · length 4,096 · floored at a hundredtha cliff at almost every depth

Every equal tail has a cliff

A scaled binary32 norm of one entry of size one and 4,095 entries of two to the minus twelve is wrong by 2,047 units of roundoff, and that was read as a depth: a square half a spacing below the running sum is lost. It is not a depth. An equal tail at 0.003, eight bits shallower, loses 1,965 units, and 88 per cent of all depths between four and twelve lose more than a hundred. The error is one addition's rounding repeated once per entry, so a test that counts small entries misses nearly all of it, and a spread tail does not average it away. Adding the same squares pairwise, with the same number of additions, leaves under five units on everything measured.

arithmetic · Overflow

Named alongside it

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

Block floating pointDynamic rangeFp8OutliersShared exponentSignificandBinary32Compensated summationExponent rangePairwise summationPermutationRelative error

All concepts