ELMO: Efficiency via Low-precision and Peak Memory Optimization in Large Output Spaces

Jinbin Zhang, Nasib Ullah, Erik Schultheis, Rohit Babbar
10/1/2025

No official code found. Best implementation: xmc-aalto/elmo (4 stars, MIT, last commit 2026-02-27).

Abstract

Large output spaces, also referred to as Extreme multilabel classification (XMC), is a setting that arises, e.g., in large-scale tagging and product-to-product recommendation, and is characterized by the number of labels ranging from hundreds of thousands to millions. This means that the linear classification head, usually only a tiny fraction of the overall model, turns into the main driver for compute and memory demand. Current state-of-the-art XMC methods predominantly rely on FP16-FP32 mixed-precision training, which we show can be unstable, and inefficient in terms of memory usage and computational overhead. Meanwhile, existing low-precision methods typically retain higher precision for the classification layer. In this work, we propose ELMO, a pure low-precision training framework for XMC models using BFloat16 and Float8 data types. By leveraging Kahan summation and stochastic rounding, we demonstrate that XMC models can be effectively trained entirely in Float8, without relying on single-precision master weights or tensor scaling. Low-precision training, combined with our proposed memory optimizations -- gradient fusion and chunking -- enables significant reductions in GPU memory usage. For example, we train a 3-million-label XMC model with only 6.6 GiB of GPU memory, compared to the 39.7 GiB required by the optimized SOTA method, Renee without compromising accuracy.

View on arXivView PDF

Code Implementations(1)

xmc-aalto/elmoCommunity60%
MIT

Official Code for the paper ELMO : Efficiency via Low-precision and Peak Memory Optimization in Large Output Spaces (in ICML 2025)

41Shell, PythonMay 26, 20257 months agoMIT
chunkingextreme-classificationfloat8gradient-fusionlarge-output-space+3 more

Cite this paper

@article{zhang2025elmo,
  title  = {ELMO: Efficiency via Low-precision and Peak Memory Optimization in Large Output Spaces},
  author = {Jinbin Zhang and Nasib Ullah and Erik Schultheis and Rohit Babbar},
  year   = {2025},
  eprint = {2510.11168},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2510.11168},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.11168.svg)](https://codeofpaper.com/paper/2510.11168)

Discussion