Abstract
There are so many models in the literature that it is difficult for practitioners to decide which combinations are likely to be effective for a new task. This paper attempts to address this question by capturing relationships among checkpoints published on the web. We model the space of tasks as a Gaussian process. The covariance can be estimated from checkpoints and unlabeled probing data. With the Gaussian process, we can identify representative checkpoints by a maximum mutual information criterion. This objective is submodular. A greedy method identifies representatives that are likely to "cover" the task space. These representatives generalize to new tasks with superior performance. Empirical evidence is provided for applications from both computational linguistics as well as computer vision.
Introduction: The Paradox of Choice in the Model Zoo
We are currently living in an era of "model abundance." Repositories like Hugging Face host tens of thousands of checkpoints trained on various datasets and tasks. However, for a practitioner facing a novel task, this abundance creates a "paradox of choice": which models should you use as a starting point?
Existing methods for measuring task relevance often require access to the original training data—which is frequently proprietary—or involve expensive back-propagation. Furthermore, most existing work focuses on finding the single best source task for a target. This research asks a broader question: How can we select a small, representative "portfolio" of checkpoints that covers the entire task space, ensuring we have the right features ready for any task that might come our way?
Methodology: Tasks as Sensors
The proposed framework treats model checkpoints as "sensors" placed within a "room" (the task space). To find the best checkpoints without knowing the future task, the authors utilize a three-step approach:
- Modeling the Task Space: The universe of possible tasks is modeled as a Gaussian Process (GP). This requires a covariance function to measure similarity between tasks.
- Kernel Alignment (KA): Since original training labels are often unavailable, the authors use Kernel Alignment on feature representations. By passing a small amount of unlabeled probing data through the checkpoints, they observe how similarly different models "organize" the data. If two models produce similar feature patterns, the tasks they were trained on are likely related.
- Maximum Mutual Information (MMI) Selection: To pick the best $K$ checkpoints, the goal is to maximize the mutual information between the selected set and the remaining unselected "zoo." While this is a combinatorial problem, the objective is submodular, allowing a simple greedy algorithm to provide a high-quality solution. Each step, the algorithm picks the checkpoint that "surprises" the current set the most while remaining representative of the rest of the zoo.
As seen in Figure 1, this method effectively clusters models by architecture and training objective. Interestingly, some models like GPT and GPT-2 appear quite dissimilar, likely due to differences in tokenization strategies, highlighting the sensitivity of the probing phase.
Experimental Setup
The approach was validated across two distinct domains:
- Natural Language Processing (NLP): 34 checkpoints from Hugging Face (including BERT, RoBERTa, T5, and BART variants) were analyzed. Probing data was drawn from Wikitext-2 and the 1B-Word benchmark. Evaluation was performed on 8 tasks, including POS tagging, NER, and Semantic Tagging.
- Computer Vision: A simulated zoo was created using CIFAR-100, with 100 "seen" tasks used to train ResNet-50 checkpoints, evaluated on 20 "unseen" tasks.
Key Results and Insights
The MMI selection strategy proved robust and effective across both domains. In NLP experiments, selecting just 5 checkpoints using the MMI method outperformed a strong baseline: the best-performing layer of a bert-large-cased model. Notably, the bert-large baseline required brute-force testing every layer for each specific task, whereas the MMI selection remained fixed for all tasks.
Figure 6 demonstrates that as the number of selected checkpoints ($K$) increases, the accuracy on unseen tasks improves and quickly plateaus, significantly outperforming random selection (represented by the distribution in the violin plots). This confirms that diversity in the portfolio trumps individual model strength.
Furthermore, the authors found that estimated task similarity is remarkably stable. Even with relatively small amounts of probing data or data from a slightly different domain, the kernel alignment remains consistent, making the method highly practical for real-world deployment.
Limitations and Future Work
While powerful, the current method assumes all models in the zoo share the same input space (e.g., all images or all text), and does not yet account for multi-modal zoos. Additionally, the "stronger" model is built by concatenating features from selected models; as $K$ grows, the feature vector size increases, which may lead to higher computational costs during final task adaptation. Future research will investigate handling tokenizer mismatches and exploring more fine-grained models of the task space.
Summary updated