Abstract
Fine-tuning pre-trained language models like BERT is a cornerstone of modern NLP. To understand the internal shifts during this process, researchers often employ "probing"—training simple classifiers on frozen layers to detect linguistic features. Previous studies suggested that specific tasks cause models to "forget" general linguistic knowledge. This paper demonstrates that the size of the fine-tuning dataset is a major confounding variable. Through over 600 experiments, we show that the degradation of linguistic representations in higher layers is primarily driven by the number of optimization updates rather than the task's inherent nature. When dataset sizes are equalized, the representational differences between tasks largely vanish.
Introduction
While fine-tuning is effective, it remains a "black box." Probing has been the primary tool for peering inside, leading to theories that certain tasks (e.g., sentiment analysis) are more destructive to general linguistic "common sense" than others. However, the GLUE benchmark tasks vary wildly in size, from MNLI (393,000 samples) to MRPC (3,600 samples). This study investigates whether we are measuring task-specific impact or simply the cumulative effect of extensive training on large datasets.
Methods
The researchers utilized BERT-base and conducted a systematic analysis:
- Controlled Downsampling: Large datasets (MNLI, QQP) were downsampled to 7k, 2.5k, and 1k samples to match smaller tasks like CoLA or MRPC.
- Layer-wise Probing: Probes were applied across all layers to identify where representational changes occur.
- Fixed Iteration Analysis: To decouple data diversity from optimization steps, experiments were run with a fixed number of updates regardless of dataset size.
- Recoverability: Sequential fine-tuning (Task A → Task B → Task A) was used to test if "lost" knowledge could be restored.
The Impact of Layer Depth and Task Type
Probing results indicate that linguistic knowledge in BERT's lower layers is remarkably stable. The significant shifts and "forgetting" occur almost exclusively in the final layers (11 and 12), where the model specializes for the target task.
As seen in the figure above, performance on tasks like Bigram Shift (a) and Semantic Odd Man Out (d) drops sharply in the final layers for models fine-tuned on large datasets (like MNLI or QQP), while smaller tasks (like MRPC or CoLA) remain closer to the baseline.
The "Size" Confound
The most critical finding is the "Size" Confound. When large datasets are downsampled to match the size of smaller ones, the performance gap disappears. A model trained on a small slice of MNLI retains linguistic knowledge similarly to a model trained on CoLA.
The bar charts in the figure above illustrate that as the dataset size decreases, the probing accuracy for large-scale tasks (MNLI, QQP) recovers toward the baseline level. This suggests that the "forgetting" observed in previous literature was largely an artifact of dataset scale.
Key Insights
- Updates vs. Content: The degradation is caused by the number of optimization steps, not the diversity of the data. Models trained on small datasets for many iterations show the same "forgetting" as those trained on large datasets.
- Knowledge is Recoverable: The loss of linguistic features is not permanent. Subsequent fine-tuning on a different task can "recover" these representations, suggesting they are suppressed rather than deleted.
- The CoLA Exception: CoLA (Linguistic Acceptability) appears uniquely resilient, maintaining linguistic knowledge better than other tasks even as data size increases, a phenomenon the authors leave for future study.
Conclusion
This research highlights a critical methodological flaw in probing literature: the failure to account for dataset size. By demonstrating that optimization duration is the primary driver of representational change in higher layers, the authors provide a more nuanced understanding of how fine-tuning reshapes pre-trained models. Future interpretability research must control for training volume to isolate true task-specific effects.
Summary updated