Memory-Efficient Fine-Tuning of Transformers via Token Selection
Not on the map. Why?
Abstract (arXiv)
Fine-tuning provides an effective means to specialize pre-trained models for various downstream tasks. However, fine-tuning often incurs high memory overhead, especially for large transformer-based models, such as LLMs. While existing methods may reduce certain parts of the memory required for fine-tuning, they still require caching all intermediate activations computed in the forward pass to update weights during the backward pass. In this work, we develop TokenTune, a method to reduce memory usage, specifically the memory to store intermediate activations, in the fine-tuning of transformer-based models. During the backward pass, TokenTune approximates the gradient computation by backpropagating through just a subset of input tokens. Thus, with TokenTune, only a subset of intermediate activations are cached during the forward pass. Also, TokenTune can be easily combined with existing methods like LoRA, further reducing the memory cost. We evaluate our approach on pre-trained transformer models with up to billions of parameters, considering the performance on multiple downstream tasks such as text classification and question answering in a few-shot learning setup. Overall, TokenTune achieves performance on par with full fine-tuning or representative memory-efficient fine-tuning methods, while greatly reducing the memory footprint, especially when combined with other methods with complementary memory reduction mechanisms. We hope that our approach will facilitate the fine-tuning of large transformers, in specializing them for specific domains or co-training them with other neural components from a larger system. Our code is available at https://github.com/facebookresearch/tokentune.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 50 of its 71 references that are in the map. First posted on arXiv 31 Jan 2025.
Builds on
50 of 71 references.
References · 50
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
38 more
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2019A Survey on Bias and Fairness in Machine Learningcited by 1,911
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,404
- 2021BitFit: Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-modelscited by 1,234
- 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 896
- 2021Towards a Unified View of Parameter-Efficient Transfer Learningcited by 863
- 2016Training Deep Nets with Sublinear Memory Costcited by 825
- 2020AdapterFusion: Non-Destructive Task Composition for Transfer Learningcited by 780
- 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 696
- 2020It's Not Just Size That Matters: Small Language Models Are Also Few-Shot Learnerscited by 668
- 2020Intrinsic Dimensionality Explains the Effectiveness of Language Model Fine-Tuningcited by 658
- 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Surveycited by 641
- 2024GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projectioncited by 447
- 2021Large Language Models Can Be Strong Differentially Private Learnerscited by 405
- 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 376
- 2023Orca: Progressive Learning from Complex Explanation Traces of GPT-4cited by 369
- 2020Parameter-Efficient Transfer Learning with Diff Pruningcited by 351
- 2023Fine-Tuning Language Models with Just Forward Passescited by 337
- 2022DyLoRA: Parameter Efficient Tuning of Pre-trained Models using Dynamic Search-Free Low-Rank Adaptationcited by 229
- 2022LST: Ladder Side-Tuning for Parameter and Memory Efficient Transfer Learningcited by 228
- 2021Training Neural Networks with Fixed Sparse Maskscited by 212
- 2021UniPELT: A Unified Framework for Parameter-Efficient Language Model Tuningcited by 162
- 2023Platypus: Quick, Cheap, and Powerful Refinement of LLMscited by 150
- 2023LoRA-FA: Efficient and Effective Low Rank Representation Fine-tuningcited by 132
- 2019What Would Elsa Do? Freezing Layers During Transformer Fine-Tuningcited by 87
- 2016Memory-Efficient Backpropagation Through Timecited by 78
- 2021Cross-Attention is All You Need: Adapting Pretrained Transformers for Machine Translationcited by 74
- 2023AutoPEFT: Automatic Configuration Search for Parameter-Efficient Fine-Tuningcited by 49
- 2020Distance-Based Regularisation of Deep Networks for Fine-Tuningcited by 47
- 2021Improved Regularization and Robustness for Fine-tuning in Neural Networkscited by 45
- 2021Counter-Interference Adapter for Multilingual Machine Translationcited by 39
- 2024LoRA Dropout as a Sparsity Regularizer for Overfitting Controlcited by 35
- 2023Make Pre-trained Model Reversible: From Parameter to Memory Efficient Fine-Tuningcited by 26
- 2023Unified Low-Resource Sequence Labeling by Sample-Aware Dynamic Sparse Finetuningcited by 21
Built on by
Citing papers per year: 2025: 3; 2026: 1.
4 papers.
- 2025Prompt-based Adaptation in Large-scale Vision Models: A Surveycited by 21
- 2025ssToken: Self-modulated and Semantic-aware Token Selection for LLM Fine-tuningcited by 3
- 2025Memory-Efficient Fine-Tuning via Low-Rank Activation Compressioncited by 2
- 2026TokenSeek: Memory Efficient Fine Tuning via Instance-Aware Token Ditchingcited by 0
- 2026TokenSeek: Memory Efficient Fine Tuning via Instance-Aware Token Ditching27 Jan 2026
- 2025ssToken: Self-modulated and Semantic-aware Token Selection for LLM Fine-tuning21 Oct 2025
- 2025Prompt-based Adaptation in Large-scale Vision Models: A Survey15 Oct 2025
- 2025Memory-Efficient Fine-Tuning via Low-Rank Activation Compression27 Sep 2025