HiFloat4 Format for Language Model Pre-training on Ascend NPUs

Mehran Taghian, Yunke Peng, Xing Huang, Yao Wang, Yaoyuan Wang +20 more
4/9/2026
cs.LGcs.AIcs.CL
moe

No confident code implementation found for this paper.

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.

Show full abstract

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 the recently proposed HiFloat4 (HiF4) format against both MXFP4 and NVFP4, holding one recipe fixed across all three formats across dense (OpenPangu-1B, Llama3-8B) and Mixture-of-Experts (Qwen3-MoE-30B) architectures and executing all linear and expert GEMMs in FP4. At matched storage --- NVFP4 and HiF4 both spend 4.5 bits per value --- the three formats differ far more in what they require 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\%); NVFP4 diverges under every combination of stochastic rounding and Hadamard transform we tried. Our results suggest that stable, accurate FP4 training does not require an ever-growing stack of stabilization techniques; it requires the right numerical format.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{taghian2026hifloat,
  title  = {HiFloat4 Format for Language Model Pre-training on Ascend NPUs},
  author = {Mehran Taghian and Yunke Peng 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 Ziwei Yu and Hongliang Li and Mehdi Rahimifar and Lei Yan and Xuefei Wang and Zhuang Ma and Lei Liu and Hui Yu and Anandharaju Durai Raju and Hoang Le and Hei Yi Mak and Tanzila Rahman and Shadan Golestan},
  year   = {2026},
  eprint = {2604.08826},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.08826v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.08826.svg)](https://codeofpaper.com/paper/2604.08826)

Discussion