Lune

ICML2025顶会

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

Jinbin Zhang, Nasib Ullah, Erik Schultheis, Rohit Babbar

摘要

Large output spaces, also referred to as Extreme multilabel classification (XMC), is a setting that arises, e.g., in large-scale tagging and productto-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 (Jain et al., 2023) without compromising accuracy. Code available at https://github.com/xmc-aalto/elmo.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • 8-bit Optimizers via Block-wise Quantization 引用了 Language Models are Few-Shot Learners
  • GLM-130B: An Open Bilingual Pre-trained Model 引用了 8-bit Optimizers via Block-wise Quantization
  • GLM-130B: An Open Bilingual Pre-trained Model 引用了 Language Models are Few-Shot Learners
  • GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projection 引用了 8-bit Optimizers via Block-wise Quantization
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper14

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. 8-bit Optimizers via Block-wise QuantizationTim Dettmers, Mike Lewis, Sam Shleifer, Luke ZettlemoyerICLR 2022 · 457 次引用
  3. GaLore: Memory-Efficient LLM Training by Gradient Low-Rank ProjectionJiawei Zhao, Zhenyu Zhang, Beidi Chen, Zhangyang Wang 等ICML 2024 · 433 次引用
  4. GLM-130B: An Open Bilingual Pre-trained ModelAohan Zeng, Xiao Liu, Zhengxiao Du, Zihan Wang 等ICLR 2023 · 295 次引用
  5. Fast Multi-Resolution Transformer Fine-tuning for Extreme Multi-label Text ClassificationJiong Zhang, Wei-Cheng Chang, Hsiang-Fu Yu, Inderjit S. DhillonNeurIPS 2021 · 147 次引用

相关 Paper

  1. ELIAS: End-to-End Learning to Index and Search in Large Output SpacesNilesh Gupta, Patrick H. Chen, Hsiang-Fu Yu, Cho-Jui Hsieh 等NeurIPS 2022 · 19 次引用
  2. ENMC: Extreme Near-Memory Classification via Approximate ScreeningLiu Liu, Jilan Lin, Zheng Qu, Yufei Ding 等MICRO 2021 · 13 次引用
  3. Deep Encoders with Auxiliary Parameters for Extreme ClassificationKunal Dahiya, Sachin Yadav, Sushant Sondhi, Deepak Saini 等KDD 2023 · 6 次引用
  4. LoKA: Low-Precision Kernel Applications for Recommendation Models at ScaleLiang Luo, Yinbin Ma, Quanyu Zhu, Vasiliy Kuznetsov 等ISCA 2026 · 1 次引用
  5. QUEST: Efficient Extreme Multi-Label Text Classification with Large Language Models on Commodity HardwareChuang Zhou, Junnan Dong, Xiao Huang, Zirui Liu 等EMNLP Findings 2024 · 5 次引用
黄昏的海面,两侧是细线勾勒的悬崖