TL;DR
This paper introduces KITE, a novel method for estimating how well a pre-trained model will transfer to a new task. KITE leverages kernel methods to analyze both the separability of pre-trained features and their dissimilarity to random features, outperforming existing methods by a significant margin. This work offers a more reliable and efficient way to select the best pre-trained model for a given task.
What Problem Does This Paper Address?
In the era of deep learning, pre-trained models are a cornerstone for achieving good performance on various tasks without training from scratch. However, with a vast and growing library of pre-trained models, a crucial question arises: which pre-trained model is the best choice for a specific downstream task? Simply fine-tuning every available model is computationally infeasible. Existing methods for transferability estimation often fall short. Some rely solely on the pre-trained model's output, which can be insufficient, while others compare pre-trained features to a probe model trained on the target data, which is time-consuming. This paper tackles the challenge of efficiently and accurately predicting transfer learning performance.
Methods
KITE (Kernel-based Improved Transferability Estimation) offers a new perspective by considering two key aspects of pre-trained features:
- Feature Separability: How well do the pre-trained features separate different classes in the target dataset?
- Similarity to Random Features: How different are the pre-trained features from those generated by a randomly initialized network?
To quantify these aspects, KITE employs Centered Kernel Alignment (CKA), a kernel method known for its theoretical guarantees and correlation with downstream task performance. Specifically:
- Target Alignment (TA): CKA is used to measure the alignment between the pre-trained feature kernel matrix and an "ideal" target kernel matrix (derived from one-hot encoded labels). This captures feature separability.
- Random Alignment (RA): CKA is used to measure the alignment between the pre-trained feature kernel matrix and a kernel matrix derived from features of a randomly initialized network of the same architecture. This captures dissimilarity to random features.
KITE then combines these two metrics (specifically, the ratio of TA to RA) to provide a comprehensive transferability score. The method is designed to be fast, interpretable, and robust to target dataset size.
Datasets
The paper evaluates KITE on a large-scale model selection benchmark introduced in [5]. This benchmark includes:
- 8 Source Datasets: ImageNet 1k, VOC2007, Caltech101, CIFAR10, NA Birds, CUB200, Oxford Pets, and Stanford Dogs.
- 6 Target Datasets: NA Birds, Stanford Dogs, Caltech101, CIFAR10, Oxford Pets, and CUB200.
- 4 Architectures: ResNet-50, ResNet-18, GoogLeNet, and AlexNet.
This results in a total of 32 pre-trained models for evaluation.
Key Insights and Ideas
- Two Extremes of Feature Usefulness: The paper posits that pre-trained features can be useful in two main ways: either they are already highly separable for the target task (good for coarse-grained classification), or they are significantly different from random features (important for fine-grained classification where separability might be low).
- Complementary Nature of TA and RA: While high separability (TA) often implies dissimilarity to random features (RA), these two metrics offer distinct insights. TA is more indicative for coarse-grained tasks, while RA becomes more crucial for fine-grained tasks. KITE's strength lies in combining both.
- CKA as a Powerful Tool: Centered Kernel Alignment proves to be an effective and theoretically grounded method for quantifying both feature separability and similarity to random features, bridging the gap between theoretical kernel methods and practical transferability estimation.
- Random Network as a Baseline: Using a randomly initialized network as a reference point provides a crucial baseline for understanding how "meaningful" the pre-trained features are, beyond just their ability to separate classes.
Key Results
- State-of-the-Art Performance: KITE significantly outperforms existing transferability estimation methods, achieving a large margin in both Pearson Correlation (Mean PC) and weighted Kendall's T (Mean T). Specifically, KITE improves Mean PC by 11.90% over the previous best method (1-NN CV).
- Efficiency: KITE is computationally efficient, comparable to other competitive baselines, requiring only forward passes to extract features.
- Robustness: KITE demonstrates robustness to variations in target dataset size and feature dimension.
- Kernel Agnostic: KITE performs well across different kernel choices (linear, Gaussian, Laplacian), with linear kernels offering efficiency without significant performance loss.
- Task-Dependent Effectiveness: The paper shows that TA is particularly effective for coarse-grained tasks, while RA is better for fine-grained tasks, and KITE successfully leverages both.
Limitations and Future Work
- Computational Resources: The paper acknowledges that current methods, including KITE, tend to favor deeper models. A limitation is that users might not have sufficient computational resources. Future work could incorporate actual resource constraints into the estimation process.
- Downstream Tasks: KITE's current evaluation focuses on classification tasks. The authors suggest extending KITE to other downstream tasks like instance segmentation, semantic segmentation, and object detection to estimate fine-tuning performance more broadly.
- Random Initialization: While KITE is shown to be robust to different initializations of the random network, the paper notes that using a data-independent, architecture-independent random feature generation method resulted in lower performance, highlighting the importance of architecture-specific random features.
Summary updated