mlsanityData to 14 Oct 2026

Deep Optimizer States: Towards Scalable Training of Transformer Models Using Interleaved Offloading

arXiv 2410.21316 ↗First posted 26 Oct 2024cs.LG cs.AI cs.DCcited by 7

Not on the map. Why?

Abstract (arXiv)

Transformers and large language models~(LLMs) have seen rapid adoption in all domains. Their sizes have exploded to hundreds of billions of parameters and keep increasing. Under these circumstances, the training of transformers is very expensive and often hits a ``memory wall'', i.e., even when using 3D parallelism (pipeline, tensor, data) and aggregating the memory of many GPUs, it is still not enough to hold the necessary data structures (model parameters, optimizer state, gradients, activations) in GPU memory. To compensate, state-of-the-art approaches offload the optimizer state, at least partially, to the host memory and perform hybrid CPU-GPU computations. However, the management of the combined host-GPU memory is often suboptimal and results in poor overlapping between data movements and computations. This leads to missed opportunities to simultaneously leverage the interconnect bandwidth and computational capabilities of CPUs and GPUs. In this paper, we leverage a key observation that the interleaving of the forward, backward, and update phases generates fluctuations in the GPU memory utilization, which can be exploited to dynamically move a part of the optimizer state between the host and the GPU memory at each iteration. To this end, we design and implement Deep Optimizer States, a novel technique to split the LLM into subgroups, whose update phase is scheduled on either the CPU or the GPU based on our proposed performance model that addresses the trade-off between data movement cost, acceleration on the GPUs vs the CPUs, and competition for shared resources. We integrate our approach with DeepSpeed and demonstrate 2.5× faster iterations over state-of-the-art approaches using extensive experiments.

Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 22 of its 47 references that are in the map. First posted on arXiv 26 Oct 2024.

Builds on

22 of 47 references.

References · 22

  1. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  2. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
  3. 2023A Survey of Large Language Modelscited by 2,576
  4. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
  5. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,301
  6. 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 843
  7. 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 713
  8. 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 674
  9. 2022Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B, A Large-Scale Generative Language Modelcited by 559
  10. 2013Generating Sequences With Recurrent Neural Networkscited by 554
  11. 2022Multimodal Learning with Transformers: A Surveycited by 400
  12. 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 341
10 more
  1. 2018Horovod: fast and easy distributed deep learning in TensorFlowcited by 279
  2. 2021ZeRO-Infinity: Breaking the GPU Memory Wall for Extreme Scale Deep Learningcited by 256
  3. 2020DAPPLE: A Pipelined Data Parallel Approach for Training Large Modelscited by 101
  4. 2018SuperNeurons: Dynamic GPU Memory Management for Training Deep Neural Networkscited by 55
  5. 2024Understanding the Performance and Estimating the Cost of LLM Fine-Tuningcited by 48
  6. 2021M6-10T: A Sharing-Delinking Paradigm for Efficient Multi-Trillion Parameter Pretrainingcited by 31
  7. 2019XPipe: Efficient Pipeline Model Parallelism for Multi-GPU DNN Trainingcited by 20
  8. 2024DataStates-LLM: Lazy Asynchronous Checkpointing for Large Language Modelscited by 16
  9. 2024ScaleFold: Reducing AlphaFold Initial Training Time to 10 Hourscited by 8
  10. 2024Breaking the Memory Wall: A Study of I/O Patterns and GPU Memory Utilization for Hybrid CPU-GPU Offloaded Optimizerscited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 3; 2026: 3.

7 papers.