TL;DR
Shrinking AI math down to 4 bits per number promises massive energy and speed gains for training large language models, yet existing 4-bit formats usually crash unless propped up by an expensive scaffolding of high-precision math tricks. Researchers at Huawei show that instead of piling on algorithmic Band-Aids, designing a smarter 4-bit number format—HiFloat4—solves the stability problem at its root. With a clever three-tiered scaling system, HiFloat4 trains smoothly out of the box and matches standard 16-bit baselines with minimal intervention.
What Problem Does This Paper Address?
Training modern foundation models consumes staggering amounts of compute and memory. One of the most direct ways to cut that cost is quantization: shrinking weights, activations, and gradients from standard 16-bit numbers (like BF16) down to 8-bit, and now, 4-bit floating-point (FP4) formats.
At 4 bits, however, you only have 16 distinct buckets to represent numbers. During backpropagation, gradients often contain massive outliers. When a block of numbers shares a single scaling factor, one giant outlier forces the scale up, squashing all the smaller, subtler numbers in that block down to zero. Training derails.
To prevent this collapse in formats like MXFP4 and NVIDIA's NVFP4, researchers typically stack auxiliary "stabilizers": Stochastic Rounding (SR, adding probabilistic noise before rounding to eliminate systematic bias), Random Hadamard Transforms (RHT, mathematically rotating matrices to smear outliers evenly across dimensions), and extra scaling passes. The catch? These stabilizers run in high precision (16-bit or 32-bit) outside the fast 4-bit matrix engines, eroding the very speed and efficiency gains that motivated 4-bit training in the first place. The authors ask: can we ditch the heavy stabilization pipeline simply by designing a better 4-bit number?
Methods
The authors present the first systematic study of end-to-end FP4 pretraining targeting Huawei Ascend NPUs, pitting HiFloat4 (HiF4)—originally designed for inference—against MXFP4 and NVFP4.
While MXFP4 and NVFP4 use flat block-scaling (sharing an 8-bit scale across 32 or 16 elements, respectively), HiF4 uses a three-level hierarchical scaling scheme across blocks of 64 elements:
- A coarse 8-bit top-level scale (E6M2) for all 64 numbers.
- Two intermediate tiers of 1-bit micro-exponents that refine 8-way and 16-way sub-groups via simple hardware bit-shifts.
- Individual 4-bit elements encoded with 1 sign bit, 1 exponent bit, and 2 mantissa (precision) bits—giving each number twice the local precision of the 1-mantissa-bit E2M1 elements used in MXFP4 and NVFP4.
Importantly, both HiF4 and NVFP4 spend exactly 4.5 bits per value once metadata is amortized, making NVFP4 a strict storage-matched control. The authors hold a single training pipeline fixed across dense (OpenPangu-1B, Llama3-8B) and Mixture-of-Experts (Qwen3-MoE-30B) architectures, executing over 75% to 95% of all training compute in FP4—quantizing every linear layer uniformly except embeddings and the output head. Because native HiF4 silicon does not yet exist, all FP4 math is bit-exactly emulated inside BF16 operations on Ascend 910B3 clusters.
Datasets
The specific pretraining corpus is not named in the provided text, though all models are trained on 50 billion tokens using identical data ordering. For downstream evaluation, the authors use seven standard 5-shot accuracy benchmarks—ARC-Easy, ARC-Challenge, HellaSwag, PIQA, SciQ, BoolQ, and WinoGrande—alongside WikiText for language modeling perplexity. No new benchmarks are introduced.
Key Insights and Ideas
- Format design beats stabilizer stacking: At matched storage (4.5 bits/value), HiF4 and NVFP4 finish with nearly identical accuracy, separated by a razor-thin 0.01% to 0.14% loss margin. The real story is what it takes to get there: pure, unstabilized HiF4 trains cleanly, whereas MXFP4 needs three stabilizers and NVFP4 completely diverges without full-tensor high-precision rescaling (Per-Tensor Scaling, or PTS) because its narrow dynamic range spans only 22 powers of two (binades) compared to HiF4's 69.
- Stabilization recipes don't port across formats: Conventional wisdom says Stochastic Rounding (SR) is essential for low-bit gradients. Here, SR helps MXFP4 and NVFP4, but actively hurts HiF4 (spiking relative loss on the 1B model from 1.55% to 6.11%). Because HiF4’s extra mantissa bits and hierarchical scales already eliminate most rounding bias, SR just injects unhelpful random variance.
- A double win for Mixture-of-Experts (MoE): In Qwen3-MoE-30B, 95.9% of compute happens in linear layers, yet sparse routing activates only ~16% of parameters per step. FP4 accelerates the active experts while compressing the ~84% dormant weights sitting idle in memory.
Key Results
Training loss curves over 50B tokens comparing FP4 formats against BF16
- Zero-stabilizer competence: On OpenPangu-1B, raw HiF4 with no stabilizers hits a 1.55% relative training loss gap against BF16—beating fully stabilized MXFP4 (1.79%) and NVFP4 running PTS alone (2.00%).
- Closing the gap under 1%: Adding just a single stabilizer to HiF4—an RHT rotation on weight gradients ($dW$)—brings relative loss error down to 1.25% on OpenPangu-1B, 0.88% on Qwen3-MoE-30B, and 0.85% on Llama3-8B.
- Downstream parity: Across the seven downstream tasks, HiF4+RHT stays within 0.24 to 1.18 mean accuracy points of BF16, while tying NVFP4 on WikiText perplexity (+0.34 vs. +0.31 penalty on the 30B model, nearly half of MXFP4's +0.78 penalty).
Limitations and Future Work
The authors are refreshingly candid about what this study cannot show. First, because all FP4 arithmetic is emulated in BF16—no silicon natively supports HiF4 yet—there are no wall-clock speedup, throughput, or energy measurements. Second, runs are capped at 50B tokens; prior work warns that low-precision instabilities can lurk hundreds of billions of tokens into training. Only the 1B model was run across multiple random seeds, meaning the tiny final accuracy edge between HiF4 and NVFP4 is within run-to-run noise. Finally, the authors omitted 2D weight quantization (used in NVIDIA's native recipe) across all formats. Future work awaits native HiF4 hardware to measure real-world speedups over multi-trillion-token horizons, alongside testing FP4 in reinforcement learning fine-tuning, multimodal models, and long-context training.
Summary updated