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