Fine-Tuning can Distort Pretrained Features and Underperform Out-of-Distribution

Ananya Kumar, Aditi Raghunathan, Robbie Matthew Jones, Tengyu Ma, Percy Liang

TL;DR

While fine-tuning is the gold standard for transfer learning, this paper reveals a surprising catch: it can actually destroy high-quality pretrained features, leading to poor performance on out-of-distribution (OOD) data. The authors propose a simple, effective fix called LP-FT (Linear Probing then Fine-Tuning) that preserves feature quality while achieving superior accuracy on both in-distribution and OOD tasks.

What Problem Does This Paper Address?

In modern machine learning, we rarely train from scratch. Instead, we take a model pretrained on a massive dataset (like ImageNet) and adapt it to a specific downstream task. There are two common ways to do this:

  1. Linear Probing (LP): Freeze the model and only train a new "head" (the last layer).
  2. Fine-Tuning (FT): Update all the parameters in the network.

Conventional wisdom says fine-tuning is always better because it allows the model to adapt its features to the new task. However, the authors noticed a recurring problem: while fine-tuned models excel on data similar to their training set (In-Distribution or ID), they often crumble when faced with Out-of-Distribution (OOD) shifts—like a model trained on photos struggling with sketches.

Comparison of Fine-Tuning, Linear Probing, and LP-FT

Methods

The authors combine empirical experimentation with a rigorous theoretical analysis of gradient flows in overparameterized two-layer linear networks to understand why this performance drop occurs and how to fix it.

  • The Theory (Feature Distortion): They prove that when you fine-tune a model with a randomly initialized head, the "coupling" between the head and the feature extractor causes the features to distort. Because the head starts out "wrong," the gradient descent process aggressively changes the feature extractor to minimize error on ID data. This distortion is "ID-specific," meaning the features become less useful for OOD data.
  • The Solution (LP-FT): To prevent this distortion, the authors suggest a two-step strategy. First, perform Linear Probing to convergence. This gives the model a "good" head that already understands the pretrained features. Second, perform Full Fine-Tuning. Because the head is already well-initialized, the subsequent fine-tuning requires much smaller updates to the feature extractor, preserving its general-purpose OOD capabilities.
Toy example illustrating feature distortion in Fine-Tuning vs Linear Probing

Datasets

The study evaluates these methods across 10 diverse distribution shift benchmarks using high-quality pretrained features from MoCo-v2 and CLIP:

  • Standard Shifts: ImageNetV2, ImageNet-R (Renditions), ImageNet-A (Adversarial), and ImageNet-Sketch.
  • Sub-population Shifts: BREEDS (Living17 and Entity30).
  • Domain Adaptation: DomainNet (Sketch to Real/Clipart/Painting).
  • Others: CIFAR-10 to STL, CIFAR-10.1, and FMoW (satellite imagery across different years/geographies).

Key Insights and Ideas

  • Feature Distortion is the Culprit: Fine-tuning doesn't just "refine" features; it can actively "break" them for OOD cases. The features change significantly in directions spanned by the ID training data but remain unchanged in other directions, creating a fundamental inconsistency.
  • The "Early Stopping" Myth: You might think you can just stop fine-tuning early to save the features. The authors show this doesn't work; the distortion happens throughout the entire process. There is no point in the standard FT trajectory that matches the OOD performance of LP-FT.
  • Initialization Matters More than Architecture: The failure of fine-tuning isn't about the model's capacity, but about the starting point of the classification head. A random head forces the feature extractor to do too much "heavy lifting" early in training.

Key Results

The empirical results across the 10 datasets are striking:

  • Standard Fine-Tuning vs. Linear Probing: FT was ~2% better than LP on ID data, but a massive 7% worse on OOD data.
  • The Power of LP-FT: This two-step method consistently provided the best of both worlds. On average, LP-FT outperformed standard fine-tuning by ~1% on ID accuracy and ~10% on OOD accuracy.
  • Feature Change: The authors measured how much features moved during training. In LP-FT, features moved 10–100× less than in standard fine-tuning, confirming that the two-step process successfully protects the pretrained representations.

Limitations and Future Work

The theoretical portion of the paper focuses on linear networks, which are a simplified proxy for the deep, non-linear models used in practice. While the empirical results on ResNets and Vision Transformers (ViTs) strongly support the theory, a full non-linear theoretical proof remains an open challenge.

Additionally, while LP-FT is a powerful heuristic, the authors note it isn't necessarily a "SOTA-chasing" method but rather a principled baseline. They suggest that future work could explore even more sophisticated "lightweight" fine-tuning methods (like adapter modules or side-tuning) that might offer even better protection for pretrained features.

Summary updated

BibTeX
@inproceedings{kumar2022fine,
  author = {Ananya Kumar and Aditi Raghunathan and Robbie Matthew Jones and Tengyu Ma and Percy Liang},
  title = {{Fine-Tuning can Distort Pretrained Features and Underperform Out-of-Distribution}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=QXOf8Myda1G},
}
Figure