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