M2XFP: A Metadata-Augmented Microscaling Data Format for Efficient Low-bit Quantization
Weiming Hu, Zihan Zhang, Haoyan Zhang, Chen Zhang, Cong Guo, Yu Feng, Tianchi Hu, Guanglin Li, Guipeng Hu, Junsong Wang, Jingwen Leng
TL;DR
This work tackles the accuracy gap in 4-bit MX quantization for large language models by introducing M$^{\text{2}}$XFP, a metadata-augmented microscaling format that uses a hybrid allocation of element-level extra mantissa for activations and subgroup-level mantissa refinement with adaptive scales for weights. It provides an EBW-aware design-space exploration, identifies an asymmetry between weights and activations, and implements lightweight hardware support integrated into a systolic-array accelerator. Empirical results show near-FP16 fidelity at an effective 4.5-bit precision, achieving up to 70.6% reduction in accuracy loss over MXFP4 and 37.3% over NVFP4, along with up to 1.91x speedup and 1.75x energy savings. The approach demonstrates that carefully designed metadata can bridge MX efficiency with the fidelity requirements of modern LLM quantization, offering a practical path toward scalable, low-bit inference.
Abstract
Existing low-bit Microscaling (MX) formats, such as MXFP4, often suffer from substantial accuracy degradation due to the use of a shared scaling factor with the Power-of-Two format. In this work, we explore strategies that introduce minimal metadata to recover accuracy lost during quantization while maintaining high bit efficiency across a wide range of large language models. We propose a complete algorithm-hardware co-design based on flexible metadata, featuring an online quantization with simple encoding. To support the proposed method efficiently, we implement a lightweight hardware unit and integrate it into the accelerator. Evaluation results demonstrate that our method substantially narrows the accuracy gap, achieving on average a 70.63% reduction in accuracy loss compared to MXFP4 and a 37.30% reduction relative to the latest NVFP4 on LLM benchmarks. Furthermore, our design delivers up to 1.91$\times$ speedup and 1.75$\times$ energy savings over state-of-the-art accelerators. Our code is available at https://github.com/SJTU-ReArch-Group/M2XFP_ASPLOS26.
