A Closer Look at How Fine-tuning Changes BERT

Yichu Zhou, Vivek Srikumar
6/27/2021
cs.CL

Official code: utahnlp/BERT-fine-tuning-analysis (24 stars, Python, MIT, last commit 2023-04-03).

Abstract

Given the prevalence of pre-trained contextualized representations in today's NLP, there have been many efforts to understand what information they contain, and why they seem to be universally successful. The most common approach to use these representations involves fine-tuning them for an end task.

Show full abstract

Yet, how fine-tuning changes the underlying embedding space is less studied. In this work, we study the English BERT family and use two probing techniques to analyze how fine-tuning changes the space. We hypothesize that fine-tuning affects classification performance by increasing the distances between examples associated with different labels. We confirm this hypothesis with carefully designed experiments on five different NLP tasks. Via these experiments, we also discover an exception to the prevailing wisdom that "fine-tuning always improves performance". Finally, by comparing the representations before and after fine-tuning, we discover that fine-tuning does not introduce arbitrary changes to representations; instead, it adjusts the representations to downstream tasks while largely preserving the original spatial structure of the data points.

View on arXivView PDF

Code Implementations(1)

MIT

The codebase for the paper: A Closer Look at How Fine-tuning Changes BERT

243PythonMar 14, 20223 years agoMIT

Similar Papers

Cite this paper

@article{zhou2021closer,
  title  = {A Closer Look at How Fine-tuning Changes BERT},
  author = {Yichu Zhou and Vivek Srikumar},
  year   = {2021},
  eprint = {2106.14282},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.14282}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.14282.svg)](https://codeofpaper.com/paper/2106.14282)

Discussion