M2XFP: 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 · DOI

TL;DR

M2XFP is a novel "Microscaling" data format that bridges the accuracy gap between 4-bit and 16-bit precision for Large Language Models (LLMs). By adding just 0.25 bits of metadata per element to a standard 4-bit format, it reduces quantization accuracy loss by over 70% while delivering significant speedups and energy savings on specialized hardware.

What Problem Does This Paper Address?

As LLMs grow to hundreds of billions of parameters, running them requires massive memory and energy. Industry has moved toward Microscaling (MX) formats (like MXFP4, supported by NVIDIA’s Blackwell GPUs), which group numbers together to share a single scaling factor.

However, 4-bit MX formats often suffer from a "resolution" problem. Because a whole block of numbers (e.g., 32 elements) shares one scale, a single large "outlier" value can force the scale to be so large that the other numbers in the block lose all their precision. This leads to significant accuracy degradation in complex reasoning tasks. While researchers have tried creating custom data types or finer-grained scaling, these often come with prohibitive hardware costs or don't work well for "activations" (the data flowing through the model during a live request).

Methods

The authors propose M2XFP, an algorithm-hardware co-design that treats metadata as a flexible lever to recover lost precision. Their core contribution is a hybrid metadata strategy that treats weights and activations differently:

  1. For Activations (Elem-EM): Since activations are generated in real-time, the hardware needs a simple, fast solution. M2XFP identifies the "Top-1" (largest) value in a subgroup of 8 elements and uses 2 bits of metadata to give that specific element extra mantissa bits (precision).
  2. For Weights (Sg-EM): Weights are static and can be optimized offline. M2XFP uses 2 bits of metadata per subgroup to refine the scaling factor itself, allowing for a more "adaptive" fit to the weight distribution.

To make this work in silicon, they designed a Top-1 Decode Unit to identify outliers and an Augmented PE (Processing Element) Tile. Instead of building massive new multipliers, they use the distributive property of math ($A \times (B + \Delta B)$) to treat the extra metadata bits as a small "correction term" added to the baseline 4-bit result.

Datasets

The researchers evaluated M2XFP across a wide range of state-of-the-art LLMs and benchmarks:

  • Models: LLaMA-2 (7B), LLaMA-3 (8B, 70B), Mistral (7B), Falcon (7B), and the reasoning-focused DeepSeek-R1-Distill-Qwen (1.5B, 7B).
  • Benchmarks:
    • Perplexity: Wikitext v2 (measuring how well the model predicts text).
  • Zero-shot QA: Arc-Challenge, Arc-Easy, HellaSwag, PIQA, Winogrande, and BoolQ.
  • Reasoning: AIME, MATH-500, GSM8K, and LiveCodeBench.

Key Insights and Ideas

  • The Metadata Asymmetry: The "aha moment" was realizing that a one-size-fits-all approach to metadata is inefficient. Weights benefit most from better scaling (subgroup-level), while activations benefit most from protecting individual outliers (element-level).
  • The "Top-1" Sufficiency: You don't need to add bits to every number. In a subgroup of 8, just fixing the single most dominant value (the Top-1) recovers the vast majority of the accuracy lost to quantization.
  • Hardware Efficiency: By treating metadata as a "correction term," the authors integrated M2XFP into a systolic array with only 0.26% area overhead and 0.36% power overhead. It is essentially a "near-free" upgrade to existing MX hardware.

Key Results

  • Accuracy Recovery: M2XFP achieved a 70.63% reduction in accuracy loss compared to the standard MXFP4 and a 37.30% reduction relative to NVIDIA’s latest NVFP4.
  • Reasoning Performance: On the DeepSeek-R1-Distill-Qwen (1.5B) model, M2XFP recovered average accuracy from 36.91% (MXFP4) back up to 44.44% (closer to the 49.03% FP16 baseline).
  • Hardware Gains: The design delivered up to 1.91× speedup and 1.75× energy savings over state-of-the-art accelerators like MicroScopiQ, primarily because M2XFP allows the model to stay in 4-bit mode where other methods are forced to fall back to 8-bit to maintain accuracy.

Limitations and Future Work

  • KV Cache: While the paper focuses on linear layers, the authors note that extending this to the Key-Value (KV) cache is crucial for long-context applications, though they provide a roadmap for how to do so.
  • Memory Layout: The format requires managing three separate memory streams (elements, scales, and metadata), which adds some complexity to the data orchestration logic.
  • Extreme Quantization: The current work focuses on 4-bit; exploring whether this metadata-augmented approach can make 2-bit quantization viable for LLMs remains an open question.

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$\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.
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 = {{M2XFP: A Metadata-Augmented Microscaling Data Format for Efficient Low-bit Quantization}},
  booktitle = {ASPLOS},
  year = {2026},
  doi = {10.1145/3779212.3790185},
}
Figure