In the race to make Large Language Models (LLMs) smaller and faster, the industry has heavily adopted "microscaling"—a technique where small blocks of numbers share a single scaling factor. The conventional wisdom is straightforward: smaller blocks lead to finer control, lower quantization error, and better accuracy. However, a new paper from IBM Research reveals a surprising "quantization anomaly" where shrinking the block size actually makes the model perform worse.
The "Perplexity Inversion" Paradox
To run LLMs efficiently on consumer hardware, developers use quantization to convert high-precision numbers (like 16-bit floats) into low-precision formats (like 4-bit floats). Microscaling, an Open Compute Project (OCP) standard, groups these elements into blocks (e.g., 32 elements) that share one common "scale factor."
Mathematically, smaller blocks should represent data more accurately. But researchers noticed a glaring exception. For certain models—such as IBM’s Granite—moving from a block size of 32 down to 16 or 8 caused the model's perplexity (a measure of how "confused" the model is) to spike dramatically.
This "perplexity inversion" challenges the fundamental assumption that finer granularity is always better, prompting a deeper investigation into the mechanics of microscaling.
Deconstructing the Error
To understand this paradox, the authors evaluated a wide range of open-weights models (including Granite-3.3-8B, Llama-3.1-8B, Llama-2-7B, and Mixtral-8x7B) across various block sizes. They developed a mathematical framework to decompose Mean Squared Error (MSE) into three distinct sources:
- Error from the elements within the block.
- Error from the maximum element (which defines the scale).
- Error from the scale factor itself being rounded to zero.
The Scale is the Bottleneck
The anomaly, it turns out, is driven by "narrow" tensor distributions—where most numbers in a block are very close to zero. In these cases, the required scale factor becomes so tiny that the standard hardware scale format (FP8 UE4M3) cannot represent it. The scale is rounded to zero, effectively destroying all the information in that block.
The Crossover Point
The theoretical framework identifies a specific threshold based on the standard deviation ($\sigma \approx 2 \cdot 10^{-2}$). Above this threshold, smaller blocks help reduce error. Below it, the quantization error of the scale factor dominates, and smaller blocks actively hurt performance.
A Hardware-Friendly Solution: UE5M3
Current hardware typically uses the UE4M3 format for scales (4 exponent bits, 3 mantissa bits). The researchers realized that for scales, dynamic range matters more than precision.
They propose a novel format: FP8 Unsigned E5M3 (UE5M3). By reallocating one bit to the exponent (5 exponent bits), the dynamic range increases significantly, allowing the scale to represent numbers as small as $2^{-17}$ instead of just $2^{-9}$.
Key Results
- Fixing the Anomaly: Using the proposed UE5M3 format completely eliminated the perplexity inversion. For the Granite-3.3-8B model at block size 8, Wiki perplexity improved from a degraded 7.43 (standard) to 5.04 (UE5M3), nearing the ideal BF16 baseline of 4.72.
- Superior to Global Scaling: UE5M3 achieved results comparable to "per-tensor scaling" (a common software workaround) but without the need for expensive global operations on weights and activations.
- Negligible Hardware Cost: The authors designed and synthesized a systolic array processing engine in a 4nm process node. The results show that implementing UE5M3 increases the hardware area by a mere 0.5% compared to standard UE4M3, with zero impact on clock frequency.
Looking Ahead
While this study primarily focuses on FP4 elements and Post-Training Quantization (PTQ), it exposes a critical vulnerability in how we compress LLMs. As the industry pushes aggressively toward 2-bit quantization and beyond, understanding the interplay between tensor distributions and scale dynamic range will be essential. The proposed UE5M3 format offers a highly efficient, hardware-ready fix to ensure that when it comes to microscaling, finer actually remains better.
Summary updated