paper-with-me

홈 › Papers

On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselines

2020-06-08 · ICLR 2021 1 · Marius Mosbach, Maksym Andriushchenko, Dietrich Klakow

Fine-tuning pre-trained transformer-based language models such as BERT has become a common practice dominating leaderboards across various NLP benchmarks. Despite the strong empirical performance of fine-tuned models, fine-tuning is an unstable process: training the same model with multiple random seeds can result in a large variance of the task performance. Previous literature (Devlin et al., 2019; Lee et al., 2020; Dodge et al., 2020) identified two potential reasons for the observed instability: catastrophic forgetting and small size of the fine-tuning datasets. In this paper, we show that both hypotheses fail to explain the fine-tuning instability. We analyze BERT, RoBERTa, and ALBERT, fine-tuned on commonly used datasets from the GLUE benchmark, and show that the observed instability is caused by optimization difficulties that lead to vanishing gradients. Additionally, we show that the remaining variance of the downstream task performance can be attributed to differences in generalization where fine-tuned models with the same training loss exhibit noticeably different test performance. Based on our analysis, we present a simple but strong baseline that makes fine-tuning BERT-based models significantly more stable than the previously proposed approaches. Code to reproduce our results is available online: https://github.com/uds-lsv/bert-stable-fine-tuning.

📄 PDF Abstract BibTeX arXiv:2006.04884

Code (2)

uds-lsv/bert-stable-fine-tuning 공식 구현 pytorch
ruanchaves/eplm

Tasks

Misconceptions

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Weight Decay 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Adam 설명 없음
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…
Linear Warmup With Linear Decay Linear Warmup With Linear Decay is a learning rate schedule in which we increase the learning rate linearly for $n$ updates and then linearly decay afterwards.

Similar Papers 제목 키워드 기반

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

2023-01-24 · Zihao Fu, Anthony Man-Cho So, Nigel Collier

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…

Revisiting Few-sample BERT Fine-tuning

2020-06-10 · ICLR 2021 1 · Tianyi Zhang, Felix Wu, Arzoo Katiyar, Kilian Q. Weinberger 외

This paper is a study of fine-tuning of BERT contextual representations, with focus on commonly observed instabilities in few-sample scenarios. We identify several factors that cause this instability: the common use of a…

Pathologies of Pre-trained Language Models in Few-shot Fine-tuning

2022-04-17 · insights (ACL) 2022 5 · Hanjie Chen, Guoqing Zheng, Ahmed Hassan Awadallah, Yangfeng Ji

Although adapting pre-trained language models with few examples has shown promising performance on text classification, there is a lack of understanding of where the performance gain comes from. In this work, we propose …

Predictiontext-classificationText Classification

WatChat: Explaining perplexing programs by debugging mental models

2024-03-08 · Kartik Chandra, Katherine M. Collins, Will Crichton, Tony Chen 외

Often, a good explanation for a program's unexpected behavior is a bug in the programmer's code. But sometimes, an even better explanation is a bug in the programmer's mental model of the language or API they are using. …

counterfactualLanguage ModellingMisconceptionsProgram Synthesis

FarExStance: Explainable Stance Detection for Farsi

2024-12-18 · Majid Zarharan, Maryam Hashemi, Malika Behroozrazegh, Sauleh Eetemadi 외

We introduce FarExStance, a new dataset for explainable stance detection in Farsi. Each instance in this dataset contains a claim, the stance of an article or social media post towards that claim, and an extractive expla…

parameter-efficient fine-tuningStance Detection