mlsanityData to 14 Oct 2026

Tempo: Accelerating Transformer-Based Model Training through Memory Footprint Reduction

arXiv 2210.10246 ↗First posted 19 Oct 2022cs.LG cs.PFcited by 4

Not on the map. Why?

Abstract (arXiv)

Training deep learning models can be computationally expensive. Prior works have shown that increasing the batch size can potentially lead to better overall throughput. However, the batch size is frequently limited by the accelerator memory capacity due to the activations/feature maps stored for the training backward pass, as larger batch sizes require larger feature maps to be stored. Transformer-based models, which have recently seen a surge in popularity due to their good performance and applicability to a variety of tasks, have a similar problem. To remedy this issue, we propose Tempo, a new approach to efficiently use accelerator (e.g., GPU) memory resources for training Transformer-based models. Our approach provides drop-in replacements for the GELU, LayerNorm, and Attention layers, reducing the memory usage and ultimately leading to more efficient training. We implement Tempo and evaluate the throughput, memory usage, and accuracy/loss on the BERT Large pre-training task. We demonstrate that Tempo enables up to 2x higher batch sizes and 16% higher training throughput over the state-of-the-art baseline. We also evaluate Tempo on GPT2 and RoBERTa models, showing 19% and 26% speedup over the baseline.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 37 of its 89 references that are in the map. First posted on arXiv 19 Oct 2022.

Builds on

37 of 89 references.

References · 37

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  6. 2015Distilling the Knowledge in a Neural Networkcited by 10,324
  7. 2016Layer Normalizationcited by 5,669
  8. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  9. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  10. 2020Longformer: The Long-Document Transformercited by 3,413
  11. 2016Pointer Sentinel Mixture Modelscited by 3,096
  12. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
25 more
  1. 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,329
  2. 2020Big Bird: Transformers for Longer Sequencescited by 1,684
  3. 2020Rethinking Attention with Performerscited by 1,601
  4. 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,492
  5. 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,488
  6. 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,254
  7. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,167
  8. 2017Mixed Precision Trainingcited by 1,156
  9. 2016Training Deep Nets with Sublinear Memory Costcited by 848
  10. 2020Efficient Transformers: A Surveycited by 790
  11. 2017In-Datacenter Performance Analysis of a Tensor Processing Unitcited by 618
  12. 2018SWAG: A Large-Scale Adversarial Dataset for Grounded Commonsense Inferencecited by 333
  13. 2016EIE: Efficient Inference Engine on Compressed Deep Neural Networkcited by 295
  14. 2021ZeRO-Infinity: Breaking the GPU Memory Wall for Extreme Scale Deep Learningcited by 256
  15. 2015MXNet: A Flexible and Efficient Machine Learning Library for Heterogeneous Distributed Systemscited by 195
  16. 2017SCNN: An Accelerator for Compressed-sparse Convolutional Neural Networkscited by 135
  17. 2020Data Movement Is All You Need: A Case Study on Optimizing Transformerscited by 108
  18. 2020The Cost of Training NLP Models: A Concise Overviewcited by 98
  19. 2019Checkmate: Breaking the Memory Wall with Optimal Tensor Rematerializationcited by 91
  20. 2017In-Place Activated BatchNorm for Memory-Optimized Training of DNNscited by 81
  21. 2021ActNN: Reducing Training Memory Footprint via 2-Bit Activation Compressed Trainingcited by 61
  22. 2018SuperNeurons: Dynamic GPU Memory Management for Training Deep Neural Networkscited by 55
  23. 2020Dynamic Tensor Rematerializationcited by 46
  24. 2018Echo: Compiler-based GPU Memory Footprint Reduction for LSTM RNN Trainingcited by 10
  25. 2020Skyline: Interactive In-Editor Computational Performance Profiling for Deep Neural Network Trainingcited by 3

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 1; 2025: 2.

4 papers.