Model Spider: Learning to Rank Pre-Trained Models Efficiently
Authors:
Preprint
Abstract
Figuring out which Pre-Trained Model (PTM) from a model zoo fits the target task is essential to take advantage of plentiful model resources. With the availability of numerous heterogeneous PTMs from diverse fields, efficiently selecting the most suitable PTM is challenging due to the time-consuming costs of carrying out forward or backward passes over all PTMs. In this paper, we propose Model Spider, which tokenizes both PTMs and tasks by summarizing their characteristics into vectors to enable efficient PTM selection. By leveraging the approximated performance of PTMs on a separate set of training tasks, Model Spider learns to construct tokens and measure the fitness score between a model-task pair via their tokens. The ability to rank relevant PTMs higher than others generalizes to new tasks. With the top-ranked PTM candidates, we further learn to enrich task tokens with their PTM-specific semantics to re-rank the PTMs for better selection. Model Spider balances efficiency and selection ability, making PTM selection like a spider preying on a web. Model Spider demonstrates promising performance in various configurations of model zoos.Keywords
All Related Versions
This publication has 34 references indexed in Scilit:
- Newer is Not Always Better: Rethinking Transferability Metrics, Their Peculiarities, Stability and Performance2023
- PACTran: PAC-Bayesian Metrics for Estimating the Transferability of Pretrained Models to Classification Tasks2022
- Not All Models Are Equal: Predicting Model Transferability in a Self-challenging Fisher Space2022
- Duality Diagram Similarity: A Generic Framework for Initialization Selection in Task Transfer Learning2020
- Building a bird recognition app and large scale dataset with citizen scientists: The fine print in fine-grained dataset collection2015
- Describing Textures in the Wild2014
- Food-101 – Mining Discriminative Components with Random Forests2014
- SUN database: Large-scale scene recognition from abbey to zoo2010
- Learning generative visual models from few training examples: An incremental Bayesian approach tested on 101 object categoriesComputer Vision and Image Understanding, 2007
- The Copeland method I.: Relationships and the dictionaryEconomic Theory, 1996