Adaptive Block-Scaled Data Types

Jack Cook, Hyemin S. Lee, Kathryn Le, Junxian Guo, Giovanni Traverso, Anantha P. Chandrakasan, Song HanarXiv 2026

TL;DR

The paper introduces Adaptive Block-Scaled Data Types, a new family of low-precision formats (like IF4) that dynamically switch between floating-point and integer representations for small blocks of data without adding any memory overhead. By repurposing an unused sign bit in standard scale factors, this approach significantly reduces quantization error, leading to state-of-the-art accuracy in both 4-bit LLM training and post-training quantization.

What Problem Does This Paper Address?

To make running and training Large Language Models (LLMs) faster and cheaper, researchers are pushing the boundaries of low-precision arithmetic, moving from 16-bit (BF16/FP16) down to 4-bit formats (like NVFP4). However, a 4-bit number can only represent 16 distinct values.

To preserve accuracy, modern hardware uses "block scaling," where a group of numbers (e.g., 16 values) shares a single higher-precision scale factor. Even with block scaling, standard 4-bit floating-point formats (FP4) suffer from a heavily non-uniform error distribution, introducing massive quantization errors for values near the maximum threshold of each block. Previous attempts to fix this either sacrificed representable values or shrank the model's overall dynamic range. The challenge addressed here is: How can we dynamically adapt the 4-bit format to fit varying data distributions within a model without increasing memory overhead?

Methods

The authors introduce IF4 (Int/Float 4), an adaptive data type that bridges the gap between floating-point and integer representations.

  • The "Free Bit" Trick: In standard NVFP4, each block of 16 values shares a positive FP8 scale factor. Because the scale factor is always positive, its sign bit is completely wasted. IF4 repurposes this single bit as an indicator bit to dictate the data type of the entire block.
  • Dynamic Switching: During quantization, a block of 16 values is tentatively quantized twice: once into FP4 (best for outlier-heavy distributions) and once into INT4 (best for uniform distributions). The algorithm computes the Mean Squared Error (MSE) for both and selects the format that yields the lowest error, setting the indicator bit accordingly (0 for FP4, 1 for INT4).
Figure 1: A visual explanation of the IF4 data type. Like NVFP4, individual values are scaled by an FP8 scale factor, each of which is shared by 16 values. However, since each value has its own sign bit, in NVFP4 all scale factors are positive and the scale factor’s sign bit is never used. We repurpose this bit into an indicator which reflects whether the group’s values are stored as FP4 or scaled INT4.
  • The 6/7 Scaling Method: Because the maximum representable value of FP4 is 6 and INT4 is 7, a naive switch would cause a range mismatch. IF4 pre-scales INT4 blocks by $7/6$ before quantization and de-scales them by $6/7$ during hardware matrix multiplication, ensuring both formats align perfectly to the same dynamic range.

The authors also extend this logic to design IF3 (3-bit) and IF6 (6-bit) formats.

Figure 3: IF4 quantization is done by quantizing each group to FP4 and INT4 and selecting the option with less mean squared error, resulting in less quantization error across many weight channels in Qwen3.5-35B-A3B with no storage overhead compared to NVFP4.

Datasets

The authors evaluated their approach across several configurations:

  • FineWeb-Edu: Used to pre-train 340-million-parameter dense Transformer models from scratch to test ultra-low precision training (W4A4G4—4-bit weights, activations, and gradients).
  • WikiText-2 and C4: Used to evaluate perplexity during Post-Training Quantization (PTQ).
  • Downstream Tasks: Zero-shot accuracy was measured across five standard benchmarks: ARC-Easy, ARC-Challenge, HellaSwag, LAMBADA, and PIQA using Nemotron 3 Nano (4B, 30B) and the Qwen 3.5 model family (ranging from 0.8B up to 397B parameters).

Key Insights and Ideas

  • Exploiting Latent Metadata Space: The core conceptual breakthrough is realizing that hardware-standard block-scaled formats contain redundant bits (the scale factor's sign bit) that can be harvested to store block-level architectural metadata.
  • Hadamard Transforms Harmonization: Modern quantization recipes often use mathematical rotations (like the Hadamard transform) to smooth out activation outliers. However, flattening these outliers makes standard FP4 perform poorly because it wastes precision on non-existent peaks. IF4 naturally solves this: when a block is flattened by a transform, the algorithm automatically selects INT4, which excels at uniform distributions.
  • Decoupled Hardware Scaling: To make this feasible in actual silicon, the authors designed a custom Multiply-Accumulate (MAC) unit. They showed that range-alignment scaling ($6/7$ or $36/49$) can be computed in a separate parallel path alongside the scale factors, preventing any slowdown in the main element-wise multiplication datapath.

Key Results

  • Quantized Training: In W4A4G4 training runs, IF4 consistently achieved lower training loss than standard NVFP4, tracking much closer to the high-precision BF16 baseline.
Figure 4: IF4 outperforms NVFP4 during W4A4G4 quantized training. When MS-EDEN [27] is used in the backward pass, IF4 results in an even larger improvement.
  • Post-Training Quantization: IF4 outperformed MXFP4, NVFP4, and NVINT4 across almost all model sizes. For example, on the Qwen3.5-9B model, IF4 improved average downstream task accuracy to 69.97% (compared to NVFP4's 69.34% and MXFP4's 66.30%).
  • Hardware Overhead: Synthesized in a 28nm CMOS process, an isolated IF4 MAC unit increases latency by a minor 4.7% and area by 66.6% compared to a baseline NVFP4 MAC. However, the authors note that at the full processing-element level, this area increase is negligible, and system performance remains entirely memory-bandwidth bound rather than compute-bound.

Limitations and Future Work

  • Stochastic Rounding Bias: Like other adaptive scaling methods, choosing a format based on minimum MSE introduces a slight quantization bias when paired with stochastic rounding during gradient quantization. Although the authors show this only affects about 5% of gradient magnitudes, it represents a theoretical imperfection.
  • Hardware Block Sizes: The authors noted that smaller block sizes (e.g., a block size of 8) yield an even better Pareto frontier for perplexity vs. bits-per-parameter. However, it is currently unknown if next-generation hardware accelerators can efficiently support block sizes smaller than 16.
  • Scale of Training: Due to compute constraints, training evaluations were limited to 340M parameter models; verifying these training dynamics on multi-billion parameter models remains future work.

Summary updated

BibTeX
@misc{cook2026adaptive,
  author = {Jack Cook and Hyemin S. Lee and Kathryn Le and Junxian Guo and Giovanni Traverso and Anantha P. Chandrakasan and Song Han},
  title = {{Adaptive Block-Scaled Data Types}},
  year = {2026},
  eprint = {2603.28765},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.28765},
}
Figure