Microscaling (MX) and block-scaled 4-bit formats
Data formats that share one scale across a small block of narrow elements (MXFP8, MXFP6, MXFP4, MXINT8, and NVIDIA's NVFP4), implemented in Blackwell tensor cores.
On this page14 sections
4-bit and 6-bit inference and training on Blackwell-class hardware depend on block-scaled formats; the OCP MX specification is the common reference for several vendors.
Number formats where small groups of values share one scale, making 4-bit and 6-bit AI math workable.
- 1Few bits cannot cover wide ranges
- 2Give each small group its own scale
- 3Hardware applies scales inside the multiply
- 4Training in 4 bits reported comparable
- 5Open recipes and kernels still needed
The problem. With a single scale factor for a whole tensor (see the FP8 entry), one large value forces a scale that pushes the small values towards zero. Going below 8 bits makes this much worse. A 4-bit float such as E2M1 (2 exponent bits, 1 mantissa bit) has only 16 bit patterns, and its non-negative values are 0, 0.5, 1, 1.5, 2, 3, 4 and 6.
Microscaling. Give each short block of numbers its own scale. The OCP Microscaling (MX) specification (v1.0, 2023) groups 32 elements into a block that shares one 8-bit scale, which is a pure power of two (format E8M0: exponent bits only). The elements themselves are stored in FP8, FP6, FP4 or INT8. A block is decoded as where is the stored narrow element and is the shared scale. In words: the block shares one exponent, and each element keeps its own tiny mantissa. The cost is one 8-bit scale per 32 elements, extra bits each, so MXFP4 averages 4.25 bits per number. Analogy: a sign saying "all prices in this aisle are in hundreds of dollars", with a single digit on each item. It breaks when one aisle mixes 2-dollar and 2000-dollar items, which is why block size matters.
NVFP4. NVIDIA's variant uses smaller blocks of 16 FP4 elements, each block with an FP8 (E4M3) scale instead of a power of two, plus one FP32 scale for the whole tensor. That costs extra bits per element and buys finer scales. NVIDIA's 2025 preprint reports pretraining a 12-billion-parameter model on 10 trillion tokens with NVFP4, with loss and downstream accuracy comparable to an FP8 baseline. Its recipe adds random Hadamard transforms (a fixed mixing of each block's values that spreads outliers out), quantises weights the same way in the forward and backward passes, uses stochastic rounding for gradients (rounding up or down at random, more often towards the nearer value, so errors average out), and keeps some layers in higher precision.
Hardware. NVIDIA's Blackwell tensor cores apply the block scales inside the matrix-multiply instruction, so the scales must sit in memory in a particular layout. CUTLASS and Transformer Engine provide kernels and recipes, and Microsoft's microxcaling library emulates the formats in software.
Open points. Quantising activations and gradients, not only weights, to 4 bits; deciding which layers must stay wider; fusing the scale computation into neighbouring kernels, since computing scales is itself memory traffic; and checking whether vendor-reported results reproduce across model sizes and architectures.
Go deeper
The full technical text.
The idea
A single scale per tensor, as in basic FP8, wastes range when different parts of a tensor have different magnitudes. Microscaling attaches one shared scale to each short block of elements. The OCP Microscaling Formats specification (v1.0, 2023) defines blocks of 32 elements with a shared 8-bit power-of-two scale (E8M0) and element types FP8 (E5M2 and E4M3), FP6 (E3M2 and E2M3), FP4 (E2M1) and INT8. The matching research paper (Rouhani et al., arXiv preprint, October 2023) reports results on over two dozen benchmarks and training of language models at sub-8-bit weights, activations and gradients with minimal accuracy loss.
NVFP4
NVIDIA's NVFP4 uses FP4 (E2M1) elements with smaller blocks of 16 and an FP8 (E4M3) scale per block, plus a second-level per-tensor FP32 scale; the shorter blocks and finer scale trade extra metadata for accuracy. The NVFP4 pretraining report (arXiv preprint, September 2025) describes a recipe of random Hadamard transforms to bound block outliers, two-dimensional weight quantisation so forward and backward passes see consistent values, stochastic rounding of gradients and keeping some layers in higher precision, and reports a 12-billion-parameter model trained on 10 trillion tokens with loss and downstream accuracy comparable to an FP8 baseline.
Hardware and kernels
Blackwell tensor cores take block-scaled operands natively: the scale factors are applied inside the matrix instruction rather than by separate scaling kernels, so a block-scaled GEMM requires a particular scale-factor memory layout. CUTLASS provides block-scaled kernels and Transformer Engine provides MXFP8 and NVFP4 recipes. Microsoft's microxcaling repository is an emulation library for the MX formats.
Open points
- Quantising activations and gradients (not only weights) to 4 bits without extra tricks.
- Rounding choices (stochastic versus round-to-nearest), outlier handling and which layers stay in higher precision.
- Efficient fused quantise-and-GEMM kernels, since computing block scales is itself memory traffic.
- How results transfer across model scale and architecture (mixture of experts, long context).
Because hardware support is new and training recipes are mostly reported by vendors, independent reproduction is valuable.
Words on this page (12)
- floating point
- The way computers store numbers with a decimal point: a few digits plus a size, like scientific notation.
- minifloat
- A floating-point number stored in very few bits, such as 8 or 4.
- quantization
- Storing numbers with fewer bits to save memory and time, at the cost of some precision.
- scale factor
- A number a whole group of values is divided by before being squeezed into few bits, then multiplied back after.
- stochastic rounding
- Rounding up or down at random, in proportion to how close the number is, so errors cancel on average.
- Blackwell
- NVIDIA GPU generation (B200) with native 4-bit and 6-bit number formats.
- tensor core
- A special unit inside the GPU that multiplies small blocks of numbers very quickly.
- rounding error
- The small mistake from storing a number with limited digits. Many small mistakes can add up.
- block floating point
- Storing a group of numbers with one shared exponent and a separate small mantissa for each, saving bits.
- Hadamard transform
- A fixed mixing of a block of numbers using only +1 and −1 weights; it spreads one large value across the whole block.
- mantissa (significand)
- The digits of a floating-point number that give its precision, as opposed to the exponent that sets its size.
- outlier
- A value far larger in size than most of the others in the same set.
New to this? Read first (3)
- Minifloat (Wikipedia)What 8-bit and smaller floating-point formats look like.
- Floating-point arithmetic (Wikipedia)Background on how computers store non-whole numbers.
- Making Deep Learning Go Brrrr From First Principles (Horace He)A readable tour of compute-bound versus memory-bound work on GPUs.
Understanding map
map of the whole wiki →What to read before Microscaling (MX) and block-scaled 4-bit formats (left), and what builds on it: entries that depend on it and its open problems (right). Every box links to its page.
- Start with
- Step 2
- Step 3
- Step 4
- Microscaling (MX) and block-scaled 4-bit formatsYou are here
- Then
- A Triton block-scaled FP4 GEMM within 10% of CUTLASS on B200Open problem · D31
- An open 4-bit pretraining recipe matching BF16 loss at 1B parametersOpen problem · D30
Open problems & questions
Progress timeline
- Jul 5, 20260.84% gap at 3B parametersRelated to: An open 4-bit pretraining recipe matching BF16 loss at 1B parameterssource
Full-Stack FP4 reports final loss 2.286 versus 2.267 for BF16 on a 3B model trained on 64B tokens (preprint).
- Sep 1, 2025NVFP4 pretraining reportsource
A 12B-parameter model on 10T tokens reported comparable to an FP8 baseline (arXiv preprint, September 2025).
- May 25, 20257B model trained mostly in FP4Related to: An open 4-bit pretraining recipe matching BF16 loss at 1B parameterssource
FP4 All the Way trains a 7B model with NVFP4 on up to 200B tokens, closing a small loss gap with a BF16 backward phase at the end (preprint).
- Oct 1, 2023MX formats papersource
Microscaling formats evaluated across inference and training benchmarks (arXiv preprint, October 2023).