Abstract
Fine-tuning from a collection of models pre-trained on different domains (a "model zoo") is emerging as a technique to improve test accuracy in the low-data regime. However, model selection—how to pre-select the right model to fine-tune from a model zoo without performing any training—remains an open topic. We use a linearized framework to approximate fine-tuning and introduce two new baselines for model selection: Label-Gradient and Label-Feature Correlation. To address the lack of unified evaluation, we introduce a comprehensive benchmark comprising a diverse model zoo and multiple target tasks. Our results highlight significant accuracy gains using a model zoo compared to standard ImageNet models and demonstrate that our selection baseline can identify optimal models with high efficiency and correlation to final fine-tuning accuracy.
The Selection Headache
In computer vision, the standard pipeline involves fine-tuning a model pre-trained on ImageNet for a target task. However, the rise of specialized datasets has led to the creation of "model zoos"—collections of models pre-trained on diverse domains like aerial imagery, medical scans, or fashion. While these specialized experts often provide better starting points, they introduce a significant computational challenge: if a zoo contains dozens of models, fine-tuning every single one to find the best performer is prohibitively expensive.
The goal of model selection is to accurately predict the best pre-trained model for a target task a priori, using minimal computation and no actual training. Brute-force fine-tuning an entire 30-model zoo is roughly 40x more expensive than fine-tuning a single model, making efficient selection critical.
Methods: A Linearized Framework
The authors propose an analytical framework based on linearization, approximating the complex fine-tuning process by examining the model's behavior in a small neighborhood around its pre-trained weights. This approach, inspired by Neural Tangent Kernel (NTK) theory, assumes that weights stay close enough to their initialization during fine-tuning for a linear approximation to be predictive.
From this framework, two novel metrics are derived:
- Label-Gradient Correlation (LGC): Measures the alignment between model gradients and target labels. If gradients for images of the same class are similar, the model is likely a good fit.
- Label-Feature Correlation (LFC): A faster approximation using internal features (activations) instead of full gradients, avoiding expensive backpropagation.
A New Benchmark for Model Selection
To evaluate these methods, the authors introduce a comprehensive benchmark:
- The Zoo: 30 models (ResNet-101 and DenseNet-169) trained on 8 large-scale source datasets (e.g., RESISC-45, Food-101, iNaturalist, and Places-365).
- Target Tasks: 12 diverse classification tasks ranging from Magnetic Tile Defects to Oxford Flowers.
- Evaluation: Testing across "Full" data, "20-shot," and "5-shot" regimes to assess performance under data scarcity.
Key Results and Insights
The study reveals that model zoos provide the most dramatic advantages in low-data regimes (5-20 images per class). As training data increases, the gap between specialized experts and general ImageNet models tends to narrow, as the model has enough signal to overcome a mediocre initialization.
Key findings include:
- Efficiency: The proposed LFC metric can identify the best model in fewer than 7 trials on average, significantly faster than brute-force methods.
- Accuracy & Correlation: LFC achieved the highest Spearman ranking correlation to actual fine-tuning accuracy among all tested baselines (including LEEP and RSA).
- Performance Gains: Using the LFC-selected expert resulted in significant accuracy improvements over ImageNet-only baselines (e.g., +1.4% on iCassava).
Limitations
While promising, the framework currently assumes similar architectures within the zoo (e.g., comparing ResNets). Extending these metrics to compare heterogeneous architectures (like CNNs vs. Transformers) or to tasks beyond classification (like object detection) remains a subject for future research. Additionally, the linearization assumption is most effective when the target task does not require a massive "re-wiring" of the network weights.
Summary updated