Numerical precision formats
Numerical precision formats are the bit layouts chips use to store numbers, such as 32-bit FP32 or 4-bit FP4; fewer bits save memory and speed up arithmetic but represent values more coarsely.
AI models are mostly floating-point arithmetic, and a floating-point number is stored in three parts: a sign bit, an exponent that sets how large or small the number can be, and a significand (or mantissa) that sets how finely it is measured. The labels in chip and model announcements describe how many bits go to each. FP32, single precision, uses 32 bits. FP16, half precision, uses 1 sign bit, 5 exponent bits and 10 stored fraction bits, and its largest value is 65,504, so very large intermediate values can overflow.
BF16, or bfloat16, was created by Google Brain for its TPU v2, released in 2017. It keeps FP32's 8 exponent bits but only 7 stored significand bits, so it covers roughly the same range as FP32 with much less precision. BF16 is now supported by NVIDIA, AMD and Intel hardware, Google's TPUs and Amazon's Trainium and Inferentia chips. Meta reported Llama 3's training efficiency in BF16.
FP8 halves the bits again. NVIDIA's Hopper architecture, described in March 2022, added FP8 in two variants: E4M3, with 4 exponent and 3 mantissa bits, favouring precision, and E5M2, with 5 and 2, favouring range. NVIDIA says FP8 halves storage and doubles throughput compared with FP16 or BF16. A September 2022 paper, FP8 Formats for Deep Learning, set out the two encodings and reported training models of up to 175 billion parameters with them.
At four bits, scaling becomes essential. FP4 in the E2M1 layout can represent only a handful of values, roughly between minus 6 and 6, so numbers are grouped into small blocks that share a scale factor. In October 2023 AMD, Arm, Intel, Meta, Microsoft, NVIDIA and Qualcomm published the Microscaling (MX) specification through the Open Compute Project, defining MXFP8, MXFP6, MXFP4 and MXINT8. MXFP4 shares a power-of-two scale across blocks of 32 values. NVIDIA's NVFP4, introduced with its Blackwell GPUs, uses blocks of 16 values with an FP8 scale plus a per-tensor FP32 scale; NVIDIA says this works out at about 4.5 bits per value and cuts memory by roughly 3.5 times compared with FP16.
This is why performance claims must be read with the format in mind. NVIDIA lists its H100 SXM at 1,979 teraFLOPS in BF16 and 3,958 teraFLOPS in FP8, both quoted with sparsity. A new chip's FP4 figure set against an older chip's FP8 figure is not a like-for-like comparison. NVIDIA pitches NVFP4 mainly for running models, and its Transformer Engine switches between FP8 and 16-bit arithmetic layer by layer during training, keeping higher precision where it is needed.
BF16, or bfloat16, is a 16-bit floating-point format created by Google Brain. It keeps the same 8-bit exponent as 32-bit FP32, so it can represent the same range of magnitudes, but stores only 7 bits of significand, so it is less precise. It is widely used for training AI models. FP8 uses 8 bits per number and FP16 uses 16. FP8 halves memory use and, on chips that support it, roughly doubles arithmetic throughput, but it represents values much more coarsely. It comes in two variants, E4M3 and E5M2, which trade precision against range. FP4 is a 4-bit floating-point format that can hold only a small set of values, so it is used with shared scale factors for small blocks of numbers. NVFP4 is NVIDIA's version for Blackwell GPUs, with 16-value blocks, while the industry MXFP4 format uses 32-value blocks. It can, because each number is stored less exactly. Block scaling and mixed precision, which keeps sensitive operations at higher precision, are designed to keep the loss small. The 2022 FP8 paper reported training models of up to 175 billion parameters in 8-bit formats.Common questions
What does BF16 mean?
What is the difference between FP8 and FP16?
What is FP4 or NVFP4?
Does lower precision make an AI model worse?
Search for "bfloat16", "FP8 training", "microscaling formats" or "NVFP4" to understand a particular format. The most reliable sources are the specifications themselves, such as the Open Compute Project's MX specification, chip makers' architecture documents, and research papers on arXiv. When comparing chips, check that the quoted figures use the same format and say whether sparsity is assumed.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.