M 2 XFP: A Metadata-Augmented Microscaling Data Format for Efficient Low-bit Quantization

Weiming Hu, Zihan Zhang, H. Zhang, Chen Zhang, Cong Guo, Yu Feng, Tianchi Hu, Guanglin Li, Guipeng Hu, Junsong Wang, Jingwen Leng

TL;DR

This paper introduces M²XFP, a novel data format that uses minimal metadata to significantly improve the accuracy of low-bit quantization for large language models (LLMs) without sacrificing efficiency. By intelligently augmenting existing Microscaling (MX) formats, M²XFP achieves near FP16 accuracy at effective 4.5-bit precision, leading to substantial speedups and energy savings.

What Problem Does This Paper Address?

The paper tackles the critical challenge of quantizing large language models (LLMs) to very low bitwidths (like 4-bit) to reduce memory and computational costs. While existing low-bit formats like MXFP4 offer high efficiency, they often suffer from significant accuracy degradation. This is primarily due to the limitations of using a single, coarse scaling factor per block of data, which struggles to accurately represent the wide dynamic range of values in LLMs, especially with outliers. Existing solutions either sacrifice too much accuracy, require prohibitive hardware complexity, or don't effectively address the unique needs of both static weights and dynamic activations.

Methods

M²XFP proposes a hybrid approach that leverages metadata to enhance existing Microscaling (MX) formats. The core idea is to use metadata to provide extra precision or range information without altering the main data path.

  • Metadata Augmentation: The authors explore different strategies for adding metadata, categorizing them by how they enhance precision (extra mantissa bits) or range (extra exponent bits) and whether they apply at the element or subgroup level.
  • Hybrid Strategy: Recognizing that weights (static) and activations (dynamic) have different characteristics, M²XFP applies different metadata strategies:
  • Weights: Use subgroup-level metadata with an adaptive shared scale to refine the scaling factor, allowing for offline optimization.
  • Activations: Use element-level metadata with a fixed shared scale to capture critical outliers in real-time with minimal overhead.
  • Hardware-Software Co-design: The paper details a lightweight hardware unit integrated into a systolic array architecture to efficiently handle the metadata encoding and decoding process, ensuring minimal disruption to existing pipelines. This includes a "Top-1 Decode Unit" and an "Augmented PE Tile."

Datasets

The paper evaluates M²XFP on several large language models and benchmarks:

  • LLMs: LLaMA-2 (7B), LLaMA-3 (8B, 70B), OPT (6.7B), Mistral (7B), Falcon (7B), and DeepSeek-R1-Distill-Qwen (1.5B, 7B).
  • Benchmarks: Wikitext v2, common sense QA tasks (Arc-challenge, Arc-easy, HellaSwag, PIQA, WinoGrande, BoolQ), and reasoning-oriented tasks (AIME, MATH-500, GSM8K, GPQA, LiveCodeBench).

Key Insights and Ideas

  • Metadata is the Key Lever: The authors identify metadata as the most promising, yet underexplored, dimension for improving low-bit quantization, offering a flexible way to boost accuracy without significant hardware cost.
  • Asymmetric Optimization: There's a crucial asymmetry between weights and activations. Weights benefit from more complex, adaptive metadata strategies due to their static nature, while activations require lightweight, deterministic metadata for real-time processing.
  • Element vs. Subgroup Metadata: Element-level metadata is more effective with fixed scaling factors (good for activations), while subgroup-level metadata shines with adaptive scaling factors (good for weights).
  • Minimal Metadata, Maximum Impact: The research demonstrates that a small amount of metadata (as little as 0.25 bits per element) can dramatically reduce accuracy loss.

Key Results

  • Accuracy Improvement: M²XFP achieves a 70.63% reduction in accuracy loss compared to MXFP4 and a 37.30% reduction compared to NVFP4 on LLM benchmarks. It delivers near-FP16 accuracy at an effective 4.5-bit precision.
  • Performance and Energy Efficiency: The design delivers up to 1.91× speedup and 1.75× energy savings compared to state-of-the-art MX accelerators.
  • Hardware Efficiency: The proposed hardware extensions add minimal area and power overhead (e.g., quantization engine and top-1 decode unit contribute only ~0.26% of area and ~0.36% of power overhead).
  • Robustness: M²XFP shows consistent improvements across various LLMs and reasoning tasks, and its gains are robust to different shared scale calculation strategies.

Limitations and Future Work

  • NVFP4 Extension: While M²XFP improves NVFP4, the paper suggests further exploration into more bit-efficient designs for NVFP4, as its group size of 16 leads to a higher effective bit-width when metadata is added.
  • KV Cache Integration: The paper notes that extending M²XFP to the KV cache is crucial for sustaining benefits across longer sequence lengths and different workloads, and suggests integrating it with memory management systems.
  • Further Tuning: The authors mention that combining M²XFP with other algorithmic schemes like MR-GPTQ can yield incremental gains, hinting at potential for further optimization through joint tuning.

Summary updated

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× speedup and 1.75× energy savings over state-of-the-art accelerators.
BibTeX
@inproceedings{hu2026m,
  author = {Weiming Hu and Zihan Zhang and H. Zhang and Chen Zhang and Cong Guo and Yu Feng and Tianchi Hu and Guanglin Li and Guipeng Hu and Junsong Wang and Jingwen Leng},
  title = {{M <sup>2</sup> XFP: A Metadata-Augmented Microscaling Data Format for Efficient Low-bit Quantization}},
  booktitle = {ASPLOS},
  year = {2026},
  doi = {10.1145/3779212.3790185},
}
Figure