Overfreezing Meets Overparameterization: A Double Descent Perspective on Transfer Learning of Deep Neural Networks

Yehuda Dar, Lorenzo Luzi, Richard G. BaraniukarXiv 2022 · DOI

Introduction

Transfer learning—adapting a model pre-trained on a source task to a target task—is fundamental to modern AI. However, selecting hyperparameters like the number of frozen layers or source dataset size often relies on trial and error. This paper investigates these dynamics through the lens of double descent, where test error peaks at the interpolation threshold (where training error reaches zero) before improving in the overparameterized regime.

Methodology

The researchers evaluated ResNet-18, DenseNet-121, and Vision Transformers (ViT) on benchmarks including CIFAR-10/100 and Tiny ImageNet. They systematically varied training duration, freezing levels, dataset sizes, and task similarity. To clarify the double descent peaks, label noise was frequently introduced into the target datasets.

The Impact of Dataset Scales

A key finding is that double descent in transfer learning is sensitive to the size of both target and source datasets. As shown in Figure 3, the characteristic error peak only emerges when the target dataset is sufficiently large. In few-shot learning scenarios, the model lacks the capacity to reach the interpolation threshold, resulting in a monotonic error curve.

Figure 3: The effect of target and source dataset sizes on target test errors. (a) Double descent appears only for sufficiently large target datasets. (b) Larger source datasets delay the interpolation threshold and the test error peak.

Furthermore, larger source datasets act as a form of implicit regularization, delaying the point at which the model interpolates the target data. This "braking" effect shifts the test error peak to later epochs, which can lead to counter-intuitive performance differences depending on when training is stopped.

Transfer Learning and Label Noise

While transfer learning generally improves performance over training from scratch, it does not eliminate the double descent phenomenon. Figure 4 illustrates that label noise significantly amplifies the test error peak at the interpolation threshold, making the choice of training duration and model complexity even more critical.

Figure 4: Test and train error curves for models trained from scratch vs. transfer learning under noiseless and noisy conditions.

Key Insights

  • Freezing-wise Double Descent: The number of frozen layers serves as a complexity control. Freezing too many or too few layers can inadvertently place the model at the interpolation threshold, causing a spike in test error.
  • The Similarity Paradox: Higher source-target similarity is not always beneficial at every stage of training. Because similarity shifts the timing of error peaks, a less related source task may occasionally yield better performance at specific epochs.
  • Interpolation Delay: Increasing source data provides stronger regularization, making the model more resistant to memorizing target data and thus delaying the generalization "valley."

Conclusion

Practitioners should be wary of early stopping or suboptimal freezing choices that might land a model on a double descent peak. The study suggests that the "best" model often exists on the other side of a temporary generalization dip, particularly when dealing with noisy data or large target sets.

Summary updated

BibTeX
@misc{dar2022overfreezing,
  author = {Yehuda Dar and Lorenzo Luzi and Richard G. Baraniuk},
  title = {{Overfreezing Meets Overparameterization: A Double Descent Perspective on Transfer Learning of Deep Neural Networks}},
  year = {2022},
  eprint = {2211.11074},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.11074},
}
Figure