Adaptive Transfer Learning: a simple but effective transfer learning

Jung H. Lee, Henry J. Kvinge, Scott Howland, Zachary New, John Buckheit, Lauren A. Phillips, Elliott Skomski, Jessica Hibler, Courtney D. Corley, Nathan O. HodasarXiv 2021

Abstract

Standard transfer learning typically relies on fine-tuning only the final layer of a pre-trained model. This paper introduces Adaptive Transfer Learning (ATL), a method that dynamically selects the most relevant feature maps from across a network's hidden layers. By employing statistical tests to identify discriminative features, ATL significantly improves performance in few-shot learning scenarios without increasing computational complexity.

Introduction

In conventional Transfer Learning (TL), a "teacher" model pre-trained on a large-scale dataset like ImageNet is repurposed for a "student" task. The standard practice treats the teacher as a fixed feature extractor, utilizing only the outputs of the penultimate layer to train a new classifier. However, this approach assumes that the most relevant features for any new task are always located at the end of the network.

If a target task differs significantly from the source task, high-level semantic features (e.g., complex object parts) may be less useful than mid-level features (e.g., textures or geometric patterns) found in earlier layers. Identifying and extracting these optimal features from the "hidden" depths of a deep neural network remains a critical challenge for effective knowledge transfer.

Methods: Adaptive Transfer Learning (ATL)

The authors propose ATL to move beyond the "last-layer-only" constraint. The process involves three main stages:

  1. Layer Relevance Evaluation: Each layer's activations are represented as a "Reduced Activation Vector" (LAV) via global max-pooling. The relevance of a layer is determined by measuring how well these activations cluster by class, specifically using the minimum distance between class centroids.
  2. Feature Map Selection: Within the most relevant layers, a t-test is applied to individual feature maps. Only maps that act as statistically significant discriminators (p-value below a threshold) for specific classes are retained.
  3. Final Classification: These selected feature maps are concatenated to form the input for a simple linear Final Classification Layer (FCL).
Comparison of Conventional FT/TL and Adaptive Transfer Learning (ATL).

This adaptive mechanism allows the model to "cherry-pick" features based on the specific requirements of the target dataset.

Experimental Setup

The researchers evaluated ATL using a ResNet50 teacher model across five diverse benchmark datasets: CUB_200_2011 (birds), FGVC-Aircraft, CIFAR100 (general objects), Fruits_360, and Omniglot (handwritten characters). Testing focused on "few-shot" settings (3, 5, and 10 examples per class) with varying numbers of classes (5 to 30).

Results and Discussion

Empirical results demonstrate that ATL consistently outperforms standard fine-tuning on 4 out of 5 datasets. The performance gap is particularly pronounced as tasks become more difficult (fewer training examples and more classes).

Class separation distance across layers for different datasets.

Key insights from the study include:

  • Layer Utility: The penultimate layer is not always the most effective. Often, layers immediately preceding it show superior class separation.
  • ResNet Dynamics: The success of ATL supports the view of ResNets as ensembles of shallow networks, where useful features can be found throughout the architecture due to skip connections.
  • Efficiency: ATL maintains efficiency; the number of selected features is often comparable to the standard 2048-unit penultimate layer of ResNet50.
  • Classifier Simplicity: Simple linear classifiers outperformed complex Multi-Layer Perceptrons, which tended to overfit on the selected features.

Conclusion

Adaptive Transfer Learning provides a robust framework for improving few-shot learning by leveraging the full depth of pre-trained models. While ATL shows slight performance degradation on very "easy" tasks (like Fruits_360) where baselines are already near-perfect, its benefits in data-scarce and complex scenarios are significant. Future research will explore the applicability of ATL to other architectures like VGG or DenseNet and the potential for aggregating features from multiple teacher models.

Summary updated

BibTeX
@misc{lee2021adaptive,
  author = {Jung H. Lee and Henry J. Kvinge and Scott Howland and Zachary New and John Buckheit and Lauren A. Phillips and Elliott Skomski and Jessica Hibler and Courtney D. Corley and Nathan O. Hodas},
  title = {{Adaptive Transfer Learning: a simple but effective transfer learning}},
  year = {2021},
  eprint = {2111.10937},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.10937},
}
Figure