MXNorm: Reusing MXFP block scales for efficient tensor normalisation

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: McLean, Callum, Prince, Luke Y., Payot, Alexandre, Balança, Paul, Luschi, Carlo
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866912965109743616
author McLean, Callum
Prince, Luke Y.
Payot, Alexandre
Balança, Paul
Luschi, Carlo
author_facet McLean, Callum
Prince, Luke Y.
Payot, Alexandre
Balança, Paul
Luschi, Carlo
contents Matrix multiplication performance has long been the major bottleneck to scaling deep learning workloads, which has stimulated the design of new accelerators that use increasingly low-precision number formats. However, improvements in matrix multiplication performance have far outstripped improvements in performance on reductions and elementwise computations, which are still being performed in higher precision. In this work, we propose MXNorm, a drop-in replacement for RMSNorm that estimates the RMS using only the block scales calculated as part of the MXFP8 cast and enables a 32x decrease in the size of reduction needed for normalization. We validate our approximation method on pre-training of Llama 3 models of 125M, 1B and 8B parameters, finding minimal loss of training accuracy compared to a baseline using RMSNorm with MXFP8 matmuls. We also show practical kernel speedups using only torch.compile of up to 2.4x for MXNorm over RMSNorm, corresponding to a 1.3% speedup in Llama 3 8B transformer layers in MXFP8 and a 2.6% speedup in NVFP4.
format Preprint
id arxiv_https___arxiv_org_abs_2603_13180
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle MXNorm: Reusing MXFP block scales for efficient tensor normalisation
McLean, Callum
Prince, Luke Y.
Payot, Alexandre
Balança, Paul
Luschi, Carlo
Machine Learning
Artificial Intelligence
Neural and Evolutionary Computing
Matrix multiplication performance has long been the major bottleneck to scaling deep learning workloads, which has stimulated the design of new accelerators that use increasingly low-precision number formats. However, improvements in matrix multiplication performance have far outstripped improvements in performance on reductions and elementwise computations, which are still being performed in higher precision. In this work, we propose MXNorm, a drop-in replacement for RMSNorm that estimates the RMS using only the block scales calculated as part of the MXFP8 cast and enables a 32x decrease in the size of reduction needed for normalization. We validate our approximation method on pre-training of Llama 3 models of 125M, 1B and 8B parameters, finding minimal loss of training accuracy compared to a baseline using RMSNorm with MXFP8 matmuls. We also show practical kernel speedups using only torch.compile of up to 2.4x for MXNorm over RMSNorm, corresponding to a 1.3% speedup in Llama 3 8B transformer layers in MXFP8 and a 2.6% speedup in NVFP4.
title MXNorm: Reusing MXFP block scales for efficient tensor normalisation
topic Machine Learning
Artificial Intelligence
Neural and Evolutionary Computing
url https://arxiv.org/abs/2603.13180