Microscaling Data Formats for Deep Learning

Bita Darvish Rouhani, Ritchie Zhao, Ankit More, Mathew Hall, Alireza Khodamoradi, Summer Deng, Dhruv Choudhary, Marius Cornea, Eric Dellinger, Kristof Denolf, Dusan Stosic, Venmugil Elango, Maximilian Golub, Alexander Heinecke, Phil James-Roxby, Dharmesh Jani, Gaurav Kolhe, Martin Langhammer, Ada Li, Levi Melnick, Maral Mesmakhosroshahi, Andres Rodriguez, Michael Schulte, Rasoul Shafipour, Lei Shao, Michael Y. Siu, Pradeep Dubey, Paulius Micikevicius, Maxim Naumov, Colin Verilli, Ralph Wittig, Doug Burger, Eric S. ChungarXiv 2023 · DOI

Introduction

As deep learning models scale toward hundreds of billions of parameters, the computational and memory costs of standard high-precision formats—such as 32-bit (FP32) or 16-bit (BF16/FP16)—have become a significant bottleneck. While 8-bit formats (INT8/FP8) are increasingly common, they often require complex "per-tensor" scaling or specialized calibration to maintain accuracy. Moving below 8 bits typically introduces severe "user friction," requiring quantization-aware training or hyperparameter tuning.

This paper, a collaboration between industry leaders Microsoft, NVIDIA, Intel, and Meta, introduces the Microscaling (MX) data format. MX is an open standard designed to enable sub-8-bit efficiency (6-bit and 4-bit) as a "drop-in" replacement for high-precision formats, maintaining accuracy without modifying training recipes.

The Microscaling (MX) Specification

The core innovation of the MX format is the MX Block. Unlike traditional methods that apply a single scaling factor to an entire tensor, MX employs fine-grained, block-based scaling.

The MX Block structure: a shared 8-bit scale factor X for k scalar elements.

In an MX block, elements are grouped into small sets (typically $k=32$). Each block consists of one shared 8-bit scale factor ($X$) and $k$ narrow-width elements ($P_i$). The real value is represented as $v_i = X \cdot P_i$. By using an 8-bit exponent (E8M0) for the shared scale, MX ensures a massive dynamic range that exceeds even FP32, allowing it to capture the diverse values present in deep neural networks.

The standard defines several concrete formats: MXFP8, MXFP6, MXFP4, and MXINT8. During training, expensive operations like Matrix Multiplications (MatMuls) are executed in MX format, while sensitive vector operations (e.g., LayerNorm, Softmax) remain in higher precision (BF16/FP32) to ensure numerical stability.

Experimental Results

The authors validated the MX framework across a wide range of tasks, including image classification (ImageNet), speech recognition (LibriSpeech), and large-scale language modeling.

The 6-Bit Training Milestone

A key finding of the study is the "6-bit sweet spot." For the first time, the authors demonstrate that MXFP6 is sufficient to train large-scale generative models to parity with FP32 baselines.

Training loss curves for GPT models, showing MXFP6 parity with FP32.

As shown in the training curves, GPT-like models ranging from 20M to 1.5B parameters achieved identical loss trajectories when trained with MXFP6 compared to FP32, without any changes to hyperparameters. This "zero-friction" adoption extends to inference as well; models like GPT3-175B can be directly cast to MXINT8 or MXFP8 with negligible accuracy loss.

Ultra-Low Precision Training

The researchers also explored MXFP4 for weights. While 4-bit training typically incurs a small penalty in model loss, it represents a significant breakthrough for ultra-low-power training scenarios, providing a path toward even greater hardware efficiency.

Hardware-Software Co-design

By standardizing block sizes and scale formats, the MX specification provides a roadmap for future hardware (GPUs and TPUs) to implement these formats directly in silicon. This promises massive improvements in TFLOPS per Watt. One technical nuance noted by the authors is the "non-commutative transpose": because scaling is block-based, transposing a matrix changes the scaling axis. Hardware must therefore treat a matrix and its transpose as distinct entities, though they do not need to reside in memory simultaneously.

Conclusion and Future Work

Microscaling (MX) represents a major step toward standardizing efficient deep learning. By enabling 6-bit training parity and low-friction 8-bit inference, it addresses the "memory wall" while minimizing developer overhead. Future work will focus on realizing the full throughput potential of MX in native hardware and exploring even more extreme quantization regimes (e.g., 2-bit) using similar block-based principles.

Summary updated

BibTeX
@misc{rouhani2023microscaling,
  author = {Bita Darvish Rouhani and Ritchie Zhao and Ankit More and Mathew Hall and Alireza Khodamoradi and Summer Deng and Dhruv Choudhary and Marius Cornea and Eric Dellinger and Kristof Denolf and Dusan Stosic and Venmugil Elango and Maximilian Golub and Alexander Heinecke and Phil James-Roxby and Dharmesh Jani and Gaurav Kolhe and Martin Langhammer and Ada Li and Levi Melnick and Maral Mesmakhosroshahi and Andres Rodriguez and Michael Schulte and Rasoul Shafipour and Lei Shao and Michael Y. Siu and Pradeep Dubey and Paulius Micikevicius and Maxim Naumov and Colin Verilli and Ralph Wittig and Doug Burger and Eric S. Chung},
  title = {{Microscaling Data Formats for Deep Learning}},
  year = {2023},
  eprint = {2310.10537},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.10537},
}
Figure