Abstract
We introduce MODEL SELECTOR, a framework for label-efficient selection of pretrained classifiers. Given a pool of unlabeled target data, MODEL SELECTOR samples a small subset of highly informative examples for labeling, in order to efficiently identify the best pretrained model for deployment on this target dataset. Through extensive experiments, we demonstrate that MODEL SELECTOR drastically reduces the need for labeled data while consistently picking the best or near-best performing model. Across 18 model collections on 16 different datasets, comprising over 1,500 pretrained models, MODEL SELECTOR reduces the labeling cost by up to 94.15% to identify the best model compared to the cost of the strongest baseline. Our results further highlight the robustness of MODEL SELECTOR in model selection, as it reduces the labeling cost by up to 72.41% when selecting a near-best model, whose accuracy is only within 1% of the best model.
Introduction
In the current era of "model abundance," platforms like Hugging Face and PyTorch Hub host thousands of pretrained models. For developers looking to deploy a model for a specific niche task—such as medical imaging or industrial defect detection—the challenge is no longer finding a model, but selecting the best one. Traditionally, this requires labeling a large validation set to evaluate each candidate, an expensive and time-consuming process known as Active Model Selection.
Existing solutions often require access to internal model states (logits) or assume specific model families. We propose MODEL SELECTOR, a fully model-agnostic framework that identifies the top-performing classifier by strategically labeling only a tiny fraction of the target data, treating models as complete black boxes.
The MODEL SELECTOR Framework
MODEL SELECTOR operates on the principle of Information Gain. It treats every candidate model as a black box that provides only final labels, making it compatible with restricted commercial APIs.
The framework employs several key strategies:
- Single-Parameter Proxy: To maintain tractability, the relationship between the "best" model and true labels is modeled using a single error parameter, $\epsilon$, representing the probability of a mistake. This simplicity acts as a form of regularization, preventing overfitting to small labeled sets.
- Active Sampling via Mutual Information: Instead of random sampling, the system identifies unlabeled examples that, if labeled by a human "oracle," would provide the most information about which model is the winner.
- The Noisy Oracle Trick: Before requesting human labels, the system uses the consensus of all candidate models to create "noisy labels." These are used to estimate the optimal $\epsilon$, pre-tuning the selection strategy without any initial labeling cost.
Experimental Evaluation
We evaluated MODEL SELECTOR across 18 model collections and 16 datasets, involving over 1,500 models including ResNets, MobileNets, and Transformers (e.g., BERT, RoBERTa). The benchmarks spanned vision tasks (ImageNet V2, PACS, CIFAR-10) and text tasks (GLUE benchmark, EmoContext).
Key Results
MODEL SELECTOR consistently outperformed standard active learning heuristics like Uncertainty Sampling and Variance Minimization across nearly all test cases.
- Massive Label Savings: To identify the absolute best model, MODEL SELECTOR reduced labeling costs by up to 94.15% (on the SST-2 dataset) compared to the strongest baseline.
- Near-Best Selection: When the goal is to find a model within 1% accuracy of the best, labeling costs were reduced by up to 72.41%.
- Efficiency and Speed: On ImageNet, the entire selection process took only 61 minutes, compared to nearly 30 hours for traditional baselines like Variance Minimization.
- Robustness to Drift: In scenarios with significant data shift, the framework automatically adjusts its parameters to maintain performance, effectively reverting to robust sampling strategies when models disagree highly.
Conclusion
MODEL SELECTOR demonstrates that state-of-the-art model selection is possible using only "hard" predictions. This black-box approach ensures privacy and security while drastically lowering the barrier to deploying specialized AI. Future work includes extending this framework to regression tasks and generative AI models, where defining "accuracy" is more complex.
Summary updated