How Many Numbers Should Share an Exponent? A Closed-Form Block-Size Rule for Block Floating Point and Microscaling Formats from the Extreme-Value Growth of the Block Maximum, with the Exact Price of a Power-of-Two Scale and Tail-Dependent Optima
Block floating point and the microscaling (MX) formats used in AI accelerators let B numbers share one power-of-two scale of e bits, so each element costs p+e/B bits. Larger blocks save exponent bits but the shared scale follows the block maximum, which grows with B. Block sizes are chosen today by sweeps (MX fixes B=32). This paper gives the trade-off in closed form for independent elements. In the uniform-noise model the quantisation noise is proportional to c E[M_B²] and falls by 6.02 dB per element bit, where M_B is the block maximum and c is the price of rounding the scale up to a power of two; averaged over the position of the tensor scale within an octave, c=3/ln 4 exactly, a loss of 3.35 dB against an ideal scale. At equal bits per element the optimum satisfies d(10 log_10E[M_B²])/dB=6.02 e/B², which gives B/ln B=2e ln 2 for Gaussian elements, B=e ln 2 ((ln B+γ)²+π²/6)/(ln B+γ) for Laplace elements and B=ν e ln 2 for power tails of index ν. With e=8 these give 41, 23 and 22 (for ν=4); exact optima computed from the distribution of the maximum are 39, 24 and 19. The optimum is flat: for Gaussian elements any B from 27 to 63 is within 0.1 dB, and B=32 loses 0.02 dB, but with e=4 it loses 0.23 dB and with Student-t_4 elements and e=4 it loses 1.4 dB. CPU numpy simulations with 2²¹ elements agree with the formula within 0.05 dB for blocks of up to 256 8-bit elements, and show two traps for benchmark sweeps: with a fixed tensor scale the measured SQNR at large blocks depends on where that scale sits between powers of two (by up to 1.3 dB at B=1024), and per-element scale variation moves the optimum down to 16. A one-bit sub-block exponent, as in shared microexponents, adds about 2 dB at equal bits in the same model. Real tensors with correlated magnitudes are not modelled. Concept and methods paper. Numerical illustrations were produced by the author on a CPU with numpy, using a simplified model with illustrative parameters; they illustrate the method and are not device measurements. Any other numerical values quoted come from the cited sources. Self-drawn figures (scripts/make_figs.py). AI-assisted drafting; the author is responsible for the content.
Authors
- I-Wei Tseng
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24782572
- Primary Topic
- Numerical Methods and Algorithms
- Type
- preprint