mlsanityData to 7 Oct 2026

Should I try multiple optimizers when fine-tuning pre-trained Transformers for NLP tasks? Should I tune their hyperparameters?

arXiv 2402.06948 ↗First posted 10 Feb 2024cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

NLP research has explored different neural model architectures and sizes, datasets, training objectives, and transfer learning techniques. However, the choice of optimizer during training has not been explored as extensively. Typically, some variant of Stochastic Gradient Descent (SGD) is employed, selected among numerous variants, using unclear criteria, often with minimal or no tuning of the optimizer's hyperparameters. Experimenting with five GLUE datasets, two models (DistilBERT and DistilRoBERTa), and seven popular optimizers (SGD, SGD with Momentum, Adam, AdaMax, Nadam, AdamW, and AdaBound), we find that when the hyperparameters of the optimizers are tuned, there is no substantial difference in test performance across the five more elaborate (adaptive) optimizers, despite differences in training loss. Furthermore, tuning just the learning rate is in most cases as good as tuning all the hyperparameters. Hence, we recommend picking any of the best-behaved adaptive optimizers (e.g., Adam) and tuning only its learning rate. When no hyperparameter can be tuned, SGD with Momentum is the best choice.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 16 of its 40 references that are in the map. First posted on arXiv 10 Feb 2024.

Builds on

16 of 40 references.

References · 16

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  5. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  6. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  7. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
  8. 2019Optuna: A Next-generation Hyperparameter Optimization Frameworkcited by 2,455
  9. 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
  10. 2018Neural Network Acceptability Judgmentscited by 952
  11. 2023Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-trainingcited by 260
  12. 2019Adaptive Gradient Methods with Dynamic Bound of Learning Ratecited by 181
4 more
  1. 2020Descending through a Crowded Valley - Benchmarking Deep Learning Optimizerscited by 118
  2. 2019On Empirical Comparisons of Optimizers for Deep Learningcited by 99
  3. 2019DeepOBS: A Deep Learning Optimizer Benchmark Suitecited by 37
  4. 2020Using a thousand optimization tasks to learn hyperparameter search strategiescited by 29

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.