[Paper Review] A Closer Look at How Fine-tuning Changes BERT
This paper investigates how fine-tuning modifies BERT's representation space using probing techniques, revealing that fine-tuning enhances classification by increasing inter-class distances and clustering similar labels, while largely preserving the original geometric structure. It also identifies a rare case where fine-tuning harms performance due to increased train-test divergence.
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. 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.
Motivation & Objective
- To understand how fine-tuning changes the geometric structure of BERT representations across layers.
- To investigate whether fine-tuning universally improves performance or if exceptions exist.
- To examine how fine-tuning reconfigures the representation space to better support downstream tasks.
- To assess whether fine-tuning preserves the original spatial relationships between data points.
- To explore the role of representation geometry in fine-tuning success, particularly through cluster separation.
Proposed method
- The authors use two probing techniques: classifier-based probing with multi-layer perceptrons and DirectProbe to analyze representation geometry.
- They fine-tune BERT variants on five NLP tasks: part-of-speech tagging, dependency head prediction, preposition supersense prediction, and text classification.
- For each task, they compare representations before and after fine-tuning using probe accuracy and geometric analysis of label clusters.
- They measure changes in inter-cluster distances and spatial configuration using Euclidean distance and cluster compactness metrics.
- They conduct cross-task fine-tuning experiments to test whether fine-tuning on related tasks improves target task performance via geometric adjustment.
- They analyze layer-wise changes, focusing on higher layers, to assess whether fine-tuning alters them arbitrarily or preserves structure.
Experimental results
Research questions
- RQ1Does fine-tuning always improve downstream performance, or are there cases where it degrades generalization?
- RQ2How does fine-tuning alter the geometric structure of the representation space, particularly in terms of inter-class and intra-class distances?
- RQ3To what extent does fine-tuning preserve the original spatial configuration of data points across layers?
- RQ4Can fine-tuning on a related task improve performance on a target task by modifying cluster geometry?
- RQ5Why do higher layers change more during fine-tuning, and is this change arbitrary or structured?
Key findings
- Fine-tuning increases the distance between clusters of different labels, especially in representations where labels are not initially linearly separable, improving classifier performance.
- In cases where labels are already linearly separable, fine-tuning pushes clusters further apart, creating larger separating margins that enhance generalization.
- The authors identify one exception where fine-tuning degrades performance, which correlates with the largest divergence between training and test set representations after fine-tuning.
- Fine-tuning does not introduce arbitrary changes; instead, it reconfigures the representation space while largely preserving the relative positions of label clusters across all layers.
- Higher layers are modified more than lower layers, but the changes are structured and do not disrupt the original spatial organization of the data.
- Cross-task fine-tuning demonstrates that fine-tuning on related tasks can improve performance on a target task by adjusting inter-cluster distances, supporting the hypothesis that geometric reconfiguration drives performance gains.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.