HiFloat4 Format for Language Model Pre-training on Ascend NPUs

Mehran Taghian Jazi, Yunke Peng, Anandharaju Durai Raju, Xing Huang, Yao Wang, Wei Guo, Yuanyong Luo, Tianchi Hu, Junsong Wang, Xin Wang, Hu Liu, Yu Cheng, Yu Zi Wei, Hongliang Li, Mehdi Rahimifar, Lei Yan, wxuefei, Zhuang Ma, Liulei, Hui Yu, Hoang Le, Hei Yi Mak, Tanzila Rahman, Shadan GolestanNeurIPS 2026

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:

  1. A coarse 8-bit top-level scale (E6M2) for all 64 numbers.
  2. Two intermediate tiers of 1-bit micro-exponents that refine 8-way and 16-way sub-groups via simple hardware bit-shifts.
  3. 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

Figure 3: Training loss curves for OpenPangu-1B (a), Llama3-8B (b) and Qwen3-MoE-30B (c) over 50B tokens, each FP4 scheme against BF16. Top: HiF4+RHT. Middle: MXFP4+TF+SR+RHT. Bottom: NVFP4+PTS+SR+RHT. OpenPangu-1B is averaged across 4 seeds; insets show the late- training region where the gap is most visible. HiF4 tracks BF16 at least as closely as MXFP4 and NVFP4 on all three models despite using fewer stabilizers.
  • 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

Abstract

Training large foundation models at low numerical precision is one of the most promising directions for reducing the compute and memory cost of modern AI. Recent 4-bit floating-point formats such as MXFP4 and NVFP4 can be applied to linear GEMM operations in LLMs, but their limited dynamic range introduces numerical instability that prior work addresses by stacking stabilization mechanisms, typically executed at higher precision and partially eroding the efficiency gains that motivate FP4. In this work, we argue that numerical format design is itself a first-class lever for stable FP4 training, and present the first systematic study of FP4 LLM pretraining on energy-efficient Huawei Ascend NPUs. We compare HiFloat4 (HiF4) against both MXFP4 and NVFP4, holding one recipe fixed across three architectures: dense OpenPangu-1B and Llama3-8B, and Mixture-of-Experts Qwen3-MoE-30B, executing all linear and expert GEMMs in FP4. At matched storage — NVFP4 and HiF4 both spend 4.5 bits per value — the three differ far more in what they need before they will train at all than in final accuracy. HiF4 reaches a relative loss of 1.55\% with no stabilization, below fully stabilized MXFP4 (1.79\%) and below NVFP4 carrying the per-tensor scaling it cannot train without (2.00\%); a single Random Hadamard Transform (RHT) takes it under 1\% on the two larger models (0.85\%, 0.88\%). Our results suggest that stable, accurate FP4 training does not require an ever-growing stack of stabilization techniques; it requires the right numerical format.
BibTeX
@inproceedings{jazi2026hifloat,
  author = {Mehran Taghian Jazi and Yunke Peng and Anandharaju Durai Raju and Xing Huang and Yao Wang and Yaoyuan Wang and Wei Guo and Yuanyong Luo and Tianchi Hu and JUNSONG WANG and Xin Wang and Hu Liu and Yu Cheng and Yu Zi Wei and Hongliang Li and Mehdi Rahimifar and Lei YAN and wxuefei and Zhuang Ma and Liulei and Hui Yu and Hoang Le and Hei Yi Mak and Tanzila Rahman and Shadan Golestan},
  title = {{HiFloat4 Format for Language Model Pre-training on Ascend NPUs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=UhkVj158YU},
}
Figure