Abstract: Fine-tuning contextualized representations learned by pre-trained language models remains a prevalent practice in NLP. However, fine-tuning can lead to representation degradation (also known as representation collapse), which may result in instability, sub-optimal performance, and weak generalization. In this paper, we propose Representation Projection Invariance (REPINA), a novel regularization method to maintain the information content of representation and reduce representation collapse during fine-tuning by discouraging undesirable changes in the representations. We study the empirical behavior of the proposed regularization in comparison to 5 comparable baselines across 13 language understanding tasks (GLUE benchmark and six additional datasets). When evaluating in-domain performance, REPINA consistently outperforms other baselines on most tasks (10 out of 13). Additionally, REPINA improves out-of-distribution performance. We also demonstrate its effectiveness in few-shot settings and robustness to label perturbation. As a by-product, we extend previous studies of representation collapse and propose several metrics to quantify it. Our empirical findings show that our approach is significantly more effective at mitigating representation collapse.
The Challenge of Representation Collapse
Pre-trained language models (PLMs) like BERT or RoBERTa are powerful because they capture a vast array of linguistic features during pre-training. However, the standard practice of fine-tuning these models on specific downstream tasks is a double-edged sword. While it adapts the model to the task, it often leads to representation collapse (or degradation).
In this state, the model becomes "tunnel-visioned," distorting its internal feature space so much that it loses the general knowledge it once possessed. This results in three major issues: training instability where performance depends heavily on random seeds, poor generalization to out-of-distribution (OOD) data, and an increased hunger for labeled data as the model "forgets" how to use its pre-trained features efficiently.
Introducing REPINA
To address these issues, the authors propose REPINA (Representation Projection Invariance). Standard regularization methods typically try to "anchor" fine-tuned representations ($f_{fin}$) directly to pre-trained ones ($f_{pre}$) by minimizing the distance between them. However, this can be too restrictive, preventing the model from learning task-specific nuances.
REPINA instead minimizes the distance between the pre-trained representation and a tunable projection of the fine-tuned representation: $$\mathcal{R} = \min_{\phi \in \Phi} \|f_{pre}(x) - \phi(f_{fin}(x))\|^2$$
By introducing this projection function ($\phi$), the model is allowed to shift, scale, or rotate its representations during fine-tuning, provided that the original information content remains recoverable. The authors experimented with two versions: $REPINA_I$ (using an identity function) and $REPINA_{MLP}$ (using a small Multi-Layer Perceptron for more flexible, non-linear transformations).
Geometric Diversity and Stability
A key insight of this work is that representation collapse is a geometric phenomenon. In standard fine-tuning, representations often collapse into a low-dimensional "pancake" or "line," losing their expressive power. REPINA keeps the representations "spread out" in high-dimensional space.
Beyond preserving diversity, REPINA acts as a stabilizer, significantly reducing the variance between training runs. Theoretically, the method is equivalent to fine-tuning on the main task while simultaneously performing an infinite number of "pseudo-tasks" that preserve pre-trained knowledge.
Key Results
The researchers evaluated REPINA across 13 diverse tasks, including the GLUE benchmark and specialized domains like biomedical relation extraction (CHEMPROT). Key findings include:
- Broad Superiority: REPINA outperformed five major baselines on 10 out of 13 tasks.
- Few-Shot Performance: In 250-sample settings, $REPINA_I$ was the most effective method, showing that preserving pre-trained features is vital when data is scarce.
- Robustness: When 30% of training labels were intentionally flipped, REPINA maintained much higher accuracy than standard fine-tuning.
- OOD Generalization: Models trained with REPINA showed steady improvements when tested on datasets they hadn't seen during training (e.g., training on IMDB and testing on SST-2).
Conclusion
REPINA provides a flexible "knob" for researchers to control feature invariance. By allowing for recoverable transformations rather than strict anchoring, it mitigates representation collapse while enabling effective task adaptation. Future work will look toward applying these principles to larger decoder-only architectures and exploring more sophisticated projection functions.
Summary updated