Abstract
Contextual word representations (CWRs) like BERT often suffer from "representation degeneration," where embeddings are confined to a narrow, anisotropic cone. This paper explores how fine-tuning for specific tasks affects this geometry. We demonstrate that while fine-tuning improves performance, it maintains or even increases anisotropy by concentrating task-specific information into a few dominant directions. Consequently, post-processing methods that improve pre-trained models by increasing isotropy actually degrade the performance of fine-tuned models.
Introduction: The Representation Degeneration Problem
Pre-trained models like BERT and RoBERTa utilize only a fraction of their high-dimensional embedding space. Instead of a uniform (isotropic) distribution, vectors tend to occupy a narrow cone, leading to high correlations between unrelated words. While "fixing" this anisotropy through centering or principal component removal improves pre-trained model performance on tasks like Semantic Textual Similarity (STS), the impact of fine-tuning on this geometry remained largely unexplored until this study.
Methodology
The authors analyzed BERT-base and RoBERTa-base before and after fine-tuning on the STS-Benchmark (STS-B). They employed an isotropy metric based on Principal Component Analysis (PCA) and tested several post-processing techniques—such as Zero-mean centering and Cluster-based direction removal—to observe how increasing isotropy affects task performance.
Geometric Evolution during Fine-tuning
A key finding is that fine-tuning does not "open up" the embedding space; the narrow cone persists across layers. However, the internal organization of the space shifts. Pre-trained models often exhibit a "frequency bias," where words cluster based on their occurrence in the training corpus. Fine-tuning effectively "fades" these clusters, reorganizing the space to prioritize task-relevant semantic features.
The Paradox of Isotropy
The most surprising result is that isotropy is not a universal good. In pre-trained models, the dominant directions often represent "noise" or bias. Removing them increases isotropy and improves performance. However, during fine-tuning, the model learns to pack essential task-specific knowledge into these same dominant directions.
As shown in the results below, applying a "Cluster-based" isotropy fix to pre-trained BERT improves STS performance significantly. Conversely, applying the same fix to a fine-tuned model causes a drastic performance crash.
Sensitivity and Information Concentration
To further prove that knowledge is concentrated in dominant directions, the authors removed the 700 least dominant directions (out of 768). For fine-tuned BERT, performance only dropped slightly (from 84.41 to 82.93). This confirms that the vast majority of the "knowledge" gained during fine-tuning is stored in a tiny fraction of the available dimensions—the very dimensions that isotropy-boosting techniques aim to eliminate.
Conclusion and Future Work
This research highlights a fundamental difference between pre-trained and fine-tuned embedding spaces. While anisotropy is a sign of degeneration in pre-trained models, it becomes a vessel for task-specific signal after fine-tuning. Future work is needed to determine if these geometric properties hold for non-regression tasks, such as classification, and to further decode the specific linguistic features mapped to these dominant dimensions.
Summary updated