mlsanityData to 7 Oct 2026

Reducing Fine-Tuning Memory Overhead by Approximate and Memory-Sharing Backpropagation

arXiv 2406.16282 ↗First posted 24 Jun 2024cs.LG cs.AIcited by 5

Not on the map. Why?

Abstract (arXiv)

Fine-tuning pretrained large models to downstream tasks is an important problem, which however suffers from huge memory overhead due to large-scale parameters. This work strives to reduce memory overhead in fine-tuning from perspectives of activation function and layer normalization. To this end, we propose the Approximate Backpropagation (Approx-BP) theory, which provides the theoretical feasibility of decoupling the forward and backward passes. We apply our Approx-BP theory to backpropagation training and derive memory-efficient alternatives of GELU and SiLU activation functions, which use derivative functions of ReLUs in the backward pass while keeping their forward pass unchanged. In addition, we introduce a Memory-Sharing Backpropagation strategy, which enables the activation memory to be shared by two adjacent layers, thereby removing activation memory usage redundancy. Our method neither induces extra computation nor reduces training efficiency. We conduct extensive experiments with pretrained vision and language models, and the results demonstrate that our proposal can reduce up to ~30% of the peak memory usage. Our code is released at https://github.com/yyyyychen/LowMemoryBP.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 37 of its 62 references that are in the map. First posted on arXiv 24 Jun 2024.

Builds on

37 of 62 references.

References · 37

  1. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  5. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  6. 2016Layer Normalizationcited by 5,579
  7. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  8. 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
  9. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  10. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  11. 2020Longformer: The Long-Document Transformercited by 3,362
  12. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
25 more
  1. 2020GLU Variants Improve Transformercited by 1,724
  2. 2022Visual Prompt Tuningcited by 1,674
  3. 2020Reformer: The Efficient Transformercited by 1,658
  4. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
  5. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  6. 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
  7. 2019Root Mean Square Layer Normalizationcited by 1,425
  8. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
  9. 2021BitFit: Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-modelscited by 1,234
  10. 2016Optimization Methods for Large-Scale Machine Learningcited by 1,140
  11. 2017Mixed Precision Trainingcited by 1,135
  12. 2017Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learningcited by 935
  13. 2016Training Deep Nets with Sublinear Memory Costcited by 825
  14. 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 686
  15. 2021MetaFormer Is Actually What You Need for Visioncited by 523
  16. 2022DeiT III: Revenge of the ViTcited by 417
  17. 2022Reducing Activation Recomputation in Large Transformer Modelscited by 300
  18. 2021ZeRO-Infinity: Breaking the GPU Memory Wall for Extreme Scale Deep Learningcited by 253
  19. 2022LST: Ladder Side-Tuning for Parameter and Memory Efficient Transfer Learningcited by 228
  20. 2018Scalable Methods for 8-bit Training of Neural Networkscited by 139
  21. 2022FacT: Factor-Tuning for Lightweight Adaptation on Vision Transformercited by 133
  22. 2021ActNN: Reducing Training Memory Footprint via 2-Bit Activation Compressed Trainingcited by 61
  23. 2022GACT: Activation Compressed Training for Generic Network Architecturescited by 31
  24. 2019Backprop with Approximate Activations for Memory-efficient Network Trainingcited by 19
  25. 2021Mesa: A Memory-saving Training Framework for Transformerscited by 16

Built on by

Cited by year (2026 to 7 Oct)

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

5 papers.