Microscaling Data Formats for Deep Learning
About
Narrow bit-width data formats are key to reducing the computational and storage costs of modern deep learning applications. This paper evaluates Microscaling (MX) data formats that combine a per-block scaling factor with narrow floating-point and integer types for individual elements. MX formats balance the competing needs of hardware efficiency, model accuracy, and user friction. Empirical results on over two dozen benchmarks demonstrate practicality of MX data formats as a drop-in replacement for baseline FP32 for AI inference and training with low user friction. We also show the first instance of training generative language models at sub-8-bit weights, activations, and gradients with minimal accuracy loss and no modifications to the training recipe.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Language Understanding | MMLU | Accuracy66.16 | 756 | |
| Language Modeling | WikiText | PPL9.75 | 479 | |
| Language Modeling | C4 | Perplexity15.49 | 321 | |
| Long-context language modeling | LongBench | Single-Document QA42.77 | 44 | |
| Language Modeling | WikiText-103 | PPL3.69 | 42 | |
| Zero-shot Language Modeling | LM Evaluation Harness 0-shot | WG76.32 | 30 | |
| Chat Fine-tuning | LLaMA Chat 1B | vNMSE0.0032 | 6 | |
| Chat Fine-tuning | Gemma 1B Chat | vNMSE0.0031 | 6 | |
| Masked Language Modeling | BERT large | vNMSE0.0059 | 6 | |
| Massive Multitask Language Understanding | MMLU LLaMA 1B | vNMSE0.003 | 6 |