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.
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.
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