mlsanityData to 7 Oct 2026

SlimFit: Memory-Efficient Fine-Tuning of Transformer-based Models Using Training Dynamics

arXiv 2305.18513 ↗First posted 29 May 2023cs.CLcited by 4

Not on the map. Why?

Abstract (arXiv)

Transformer-based models, such as BERT and ViT, have achieved state-of-the-art results across different natural language processing (NLP) and computer vision (CV) tasks. However, these models are extremely memory intensive during their fine-tuning process, making them difficult to deploy on GPUs with limited memory resources. To address this issue, we introduce a new tool called SlimFit that reduces the memory requirements of these models by dynamically analyzing their training dynamics and freezing less-contributory layers during fine-tuning. The layers to freeze are chosen using a runtime inter-layer scheduling algorithm. SlimFit adopts quantization and pruning for particular layers to balance the load of dynamic activations and to minimize the memory footprint of static activations, where static activations refer to those that cannot be discarded regardless of freezing. This allows SlimFit to freeze up to 95% of layers and reduce the overall on-device GPU memory usage of transformer-based models such as ViT and BERT by an average of 2.2x, across different NLP and CV benchmarks/datasets such as GLUE, SQuAD 2.0, CIFAR-10, CIFAR-100 and ImageNet with an average degradation of 0.2% in accuracy. For such NLP and CV tasks, SlimFit can reduce up to 3.1x the total on-device memory usage with an accuracy degradation of only up to 0.4%. As a result, while fine-tuning of ViT on ImageNet and BERT on SQuAD 2.0 with a batch size of 128 requires 3 and 2 32GB GPUs respectively, SlimFit enables their fine-tuning on a single 32GB GPU without any significant accuracy degradation.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 29 of its 42 references that are in the map. First posted on arXiv 29 May 2023.

Builds on

29 of 42 references.

References · 29

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  5. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  6. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  7. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  8. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
  9. 2017Mixed Precision Trainingcited by 1,135
  10. 2018Neural Network Acceptability Judgmentscited by 952
  11. 2016Training Deep Nets with Sublinear Memory Costcited by 825
  12. 2020Dataset Cartography: Mapping and Diagnosing Datasets with Training Dynamicscited by 423
17 more
  1. 2019Q8BERT: Quantized 8Bit BERTcited by 296
  2. 2022Surgical Fine-Tuning Improves Adaptation to Distribution Shiftscited by 205
  3. 2018Training Deep Neural Networks with 8-bit Floating Point Numberscited by 163
  4. 2020Anatomy of Catastrophic Forgetting: Hidden Representations and Task Semanticscited by 158
  5. 2021Self-attention Does Not Need O(n2) Memorycited by 152
  6. 2018Scalable Methods for 8-bit Training of Neural Networkscited by 139
  7. 2020What Happens To BERT Embeddings During Fine-tuning?cited by 113
  8. 2019Checkmate: Breaking the Memory Wall with Optimal Tensor Rematerializationcited by 90
  9. 2018Training and Inference with Integers in Deep Neural Networkscited by 84
  10. 2021Partial Is Better Than All: Revisiting Fine-tuning Strategy for Few-shot Learningcited by 72
  11. 2021ActNN: Reducing Training Memory Footprint via 2-Bit Activation Compressed Trainingcited by 61
  12. 2021AutoFreeze: Automatically Freezing Model Blocks to Accelerate Fine-tuningcited by 48
  13. 2020Dynamic Tensor Rematerializationcited by 45
  14. 2022GACT: Activation Compressed Training for Generic Network Architecturescited by 31
  15. 2019Backprop with Approximate Activations for Memory-efficient Network Trainingcited by 19
  16. 2022Layer Freezing & Data Sieving: Missing Pieces of a Generic Framework for Sparse Trainingcited by 11
  17. 2022DropIT: Dropping Intermediate Tensors for Memory-Efficient DNN Trainingcited by 9

Built on by

Cited by year (2026 to 7 Oct)

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

4 papers.