An Empirical Study on Hyperparameter Optimization for Fine-Tuning Pre-trained Language Models
Not on the map. Why?
Abstract (arXiv)
The performance of fine-tuning pre-trained language models largely depends on the hyperparameter configuration. In this paper, we investigate the performance of modern hyperparameter optimization methods (HPO) on fine-tuning pre-trained language models. First, we study and report three HPO algorithms' performances on fine-tuning two state-of-the-art language models on the GLUE dataset. We find that using the same time budget, HPO often fails to outperform grid search due to two reasons: insufficient time budget and overfitting. We propose two general strategies and an experimental procedure to systematically troubleshoot HPO's failure cases. By applying the procedure, we observe that HPO can succeed with more appropriate settings in the search space and time budget; however, in certain cases overfitting remains. Finally, we make suggestions for future work. Our implementation can be found in https://github.com/microsoft/FLAML/tree/main/flaml/nlp/.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 22 of its 36 references that are in the map. First posted on arXiv 17 Jun 2021.
Builds on
22 of 36 references.
References · 22
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2019Optuna: A Next-generation Hyperparameter Optimization Frameworkcited by 2,455
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
- 2017Decoupled Weight Decay Regularizationcited by 1,722
- 2016Hyperband: A Novel Bandit-Based Approach to Hyperparameter Optimizationcited by 688
- 2018Tune: A Research Platform for Distributed Model Selection and Trainingcited by 395
- 2020Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stoppingcited by 377
- 2017Population Based Training of Neural Networkscited by 351
- 2017Don't Decay the Learning Rate, Increase the Batch Sizecited by 313
10 more
- 2019SMART: Robust and Efficient Fine-Tuning for Pre-trained Natural Language Models through Principled Regularized Optimizationcited by 253
- 2020Revisiting Few-sample BERT Fine-tuningcited by 237
- 2018Sentence Encoders on STILTs: Supplementary Training on Intermediate Labeled-data Taskscited by 214
- 2018A System for Massively Parallel Hyperparameter Tuningcited by 201
- 2014Recurrent Neural Network Regularizationcited by 189
- 2019Understanding and Robustifying Differentiable Architecture Searchcited by 176
- 2019To Tune or Not to Tune? Adapting Pretrained Representations to Diverse Taskscited by 167
- 2019Show Your Work: Improved Reporting of Experimental Resultscited by 164
- 2020Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processingcited by 161
- 2017A Bayesian Perspective on Generalization and Stochastic Gradient Descentcited by 134
Built on by
Citing papers per year: 2022: 4; 2023: 3; 2024: 2; 2025: 2; 2026: 1.
12 papers.
- 2022Efficient Methods for Natural Language Processing: A Surveycited by 78
- 2023Cost-Effective Hyperparameter Optimization for Large Language Model Generation Inferencecited by 40
- 2022Exploring Mode Connectivity for Pre-trained Language Modelscited by 26
- 2025Alignment and Safety in Large Language Models: Safety Mechanisms, Training Paradigms, and Emerging Challengescited by 14
- 2022BudgetLongformer: Can we Cheaply Pretrain a SotA Legal Language Model From Scratch?cited by 13
- 2024AutoRAG-HP: Automatic Online Hyper-Parameter Tuning for Retrieval-Augmented Generationcited by 13
- 2025Characterizing LLM-driven Social Network: The Chirper.ai Casecited by 9
- 2023How Many Validation Labels Do You Need? Exploring the Design Space of Label-Efficient Model Rankingcited by 8
- 2024Stay Tuned: An Empirical Study of the Impact of Hyperparameters on LLM Tuning in Real-World Applicationscited by 6
- 2022Embarrassingly Simple Performance Prediction for Abductive Natural Language Inferencecited by 5
- 2023Legal-HNet: Mixing Legal Long-Context Tokens with Hartley Transformcited by 0
- 2026LLM-guided Semi-Supervised Approaches for Social Media Crisis Data Classificationcited by 0
- 2026LLM-guided Semi-Supervised Approaches for Social Media Crisis Data Classification8 May 2026
- 2025Alignment and Safety in Large Language Models: Safety Mechanisms, Training Paradigms, and Emerging Challenges25 Jul 2025
- 2025Characterizing LLM-driven Social Network: The Chirper.ai Case14 Apr 2025
- 2024Stay Tuned: An Empirical Study of the Impact of Hyperparameters on LLM Tuning in Real-World Applications25 Jul 2024
- 2024AutoRAG-HP: Automatic Online Hyper-Parameter Tuning for Retrieval-Augmented Generation27 Jun 2024
- 2023How Many Validation Labels Do You Need? Exploring the Design Space of Label-Efficient Model Ranking4 Dec 2023
- 2023Legal-HNet: Mixing Legal Long-Context Tokens with Hartley Transform9 Nov 2023
- 2023Cost-Effective Hyperparameter Optimization for Large Language Model Generation Inference8 Mar 2023
- 2022BudgetLongformer: Can we Cheaply Pretrain a SotA Legal Language Model From Scratch?30 Nov 2022
- 2022Exploring Mode Connectivity for Pre-trained Language Models25 Oct 2022
- 2022Efficient Methods for Natural Language Processing: A Survey31 Aug 2022
- 2022Embarrassingly Simple Performance Prediction for Abductive Natural Language Inference21 Feb 2022