mlsanityData to 7 Oct 2026

A Stability Analysis of Fine-Tuning a Pre-Trained Model

arXiv 2301.09820 ↗First posted 24 Jan 2023cs.LG cs.AI cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

Fine-tuning a pre-trained model (such as BERT, ALBERT, RoBERTa, T5, GPT, etc.) has proven to be one of the most promising paradigms in recent NLP research. However, numerous recent works indicate that fine-tuning suffers from the instability problem, i.e., tuning the same model under the same setting results in significantly different performance. Many recent works have proposed different methods to solve this problem, but there is no theoretical understanding of why and how these methods work. In this paper, we propose a novel theoretical stability analysis of fine-tuning that focuses on two commonly used settings, namely, full fine-tuning and head tuning. We define the stability under each setting and prove the corresponding stability bounds. The theoretical bounds explain why and how several existing methods can stabilize the fine-tuning procedure. In addition to being able to explain most of the observed empirical discoveries, our proposed theoretical analysis framework can also help in the design of effective and provable methods. Based on our theory, we propose three novel strategies to stabilize the fine-tuning procedure, namely, Maximal Margin Regularizer (MMR), Multi-Head Loss (MHLoss), and Self Unsupervised Re-Training (SURT). We extensively evaluate our proposed approaches on 11 widely used real-world benchmark datasets, as well as hundreds of synthetic classification datasets. The experiment results show that our proposed methods significantly stabilize the fine-tuning procedure and also corroborate our theoretical analysis.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 59 of its 82 references that are in the map. First posted on arXiv 24 Jan 2023.

Builds on

59 of 82 references.

References · 59

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  5. 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
  6. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  7. 2021Convex optimizationcited by 2,479
  8. 2018Deep contextualized word representationscited by 2,285
  9. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
  10. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
  11. 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,610
  12. 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
38 more
  1. 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,404
  2. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
  3. 2021BitFit: Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-modelscited by 1,234
  4. 2018Neural Network Acceptability Judgmentscited by 952
  5. 2018Reconciling modern machine learning practice and the bias-variance trade-offcited by 919
  6. 2022Fine-Tuning can Distort Pretrained Features and Underperform Out-of-Distributioncited by 722
  7. 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 686
  8. 2019Deep Double Descent: Where Bigger Models and More Data Hurtcited by 667
  9. 2017The Implicit Bias of Gradient Descent on Separable Datacited by 649
  10. 2015Train faster, generalize better: Stability of stochastic gradient descentcited by 547
  11. 2021Sparsity in Deep Learning: Pruning and growth for efficient inference and training in neural networkscited by 521
  12. 2020Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stoppingcited by 377
  13. 2019Using Pre-Training Can Improve Model Robustness and Uncertaintycited by 373
  14. 2018WiC: the Word-in-Context Dataset for Evaluating Context-Sensitive Meaning Representationscited by 370
  15. 2018Stronger generalization bounds for deep nets via a compression approachcited by 306
  16. 2019FreeLB: Enhanced Adversarial Training for Natural Language Understandingcited by 261
  17. 2020On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselinescited by 254
  18. 2020Revisiting Few-sample BERT Fine-tuningcited by 237
  19. 2018Sentence Encoders on STILTs: Supplementary Training on Intermediate Labeled-data Taskscited by 214
  20. 2021Training Neural Networks with Fixed Sparse Maskscited by 212
  21. 2021Muppet: Massive Multi-task Representations with Pre-Finetuningcited by 192
  22. 2021On the Origin of Implicit Regularization in Stochastic Gradient Descentcited by 183
  23. 2019To Tune or Not to Tune? Adapting Pretrained Representations to Diverse Taskscited by 167
  24. 2017Towards Robust Neural Networks via Random Self-ensemblecited by 158
  25. 2020Better Fine-Tuning by Reducing Representational Collapsecited by 156
  26. 2021On the Effectiveness of Adapter-based Tuning for Pretrained Language Model Adaptationcited by 147
  27. 2020Implicit Gradient Regularizationcited by 145
  28. 2021Raise a Child in Large Language Model: Towards Effective and Generalizable Fine-tuningcited by 145
  29. 2019Mixout: Effective Regularization to Finetune Large-scale Pretrained Language Modelscited by 141
  30. 2022On the Effectiveness of Parameter-Efficient Fine-Tuningcited by 140
  31. 2020Intermediate-Task Transfer Learning with Pretrained Models for Natural Language Understanding: When and Why Does It Work?cited by 127
  32. 2020Fine-Grained Analysis of Stability and Generalization for Stochastic Gradient Descentcited by 118
  33. 2017Stability and Generalization of Learning Algorithms that Converge to Global Optimacited by 100
  34. 2017Data-Dependent Stability of Stochastic Gradient Descentcited by 90
  35. 2021Why Do Pretrained Language Models Help in Downstream Tasks? An Analysis of Head and Prompt Tuningcited by 82
  36. 2022How Does Sharpness-Aware Minimization Minimize Sharpness?cited by 64
  37. 2017Sub-sampled Cubic Regularization for Non-convex Optimizationcited by 63
  38. 2020Do We Need Zero Training Loss After Achieving Zero Training Error?cited by 61

50 most cited of 59 All 59 (JSON)

Built on by

Cited by year

Citing papers per year: 2024: 1.

1 paper.