A Two-Phase Recall-and-Select Framework for Fast Model Selection

Jianwei Cui, Wenhang Shi, Honglin Tao, Wei Lu, Xiaoyong Du

TL;DR

This paper introduces a two-phase "Recall-and-Select" framework designed to navigate the overwhelming number of pre-trained models in public repositories. By combining offline model clustering with early-stage convergence prediction, the framework identifies the optimal model for a new task up to 3x faster than standard methods like successive halving, without sacrificing final performance.

What Problem Does This Paper Address?

The "Paradox of Choice" has hit machine learning. Public hubs like HuggingFace host thousands of pre-trained models, but finding the best one for a specific downstream task is a massive bottleneck.

Currently, researchers face a trade-off:

  1. Lightweight Proxies: Use fast mathematical scores (like LEEP) to guess which model is best. These are efficient but often pick sub-optimal models.
  2. Successive Halving (SH): Start fine-tuning all candidate models and periodically discard the bottom half. This is more accurate but still computationally expensive because every model must be loaded and trained for at least a few iterations.

As model repositories grow, even "efficient" strategies like SH become too slow. This paper aims to bridge the gap by significantly pruning the candidate pool before intensive training even begins.

Methods

The authors propose a two-phase framework:

Phase 1: Coarse-Recall (The Filter)

  • Offline Performance Matrix: Before any new task arrives, the authors fine-tune all models in their repository on a set of "benchmark" datasets and record the results.
  • Model Clustering: Models are grouped based on how similarly they perform across these benchmarks.
  • Proxy Scoring: When a new target task arrives, the system doesn't test every model. It calculates a LEEP score (a lightweight metric that doesn't require training) only for the "representative" model of each cluster.
  • Recall: It selects a small subset (e.g., the top 10) of promising candidates to move to the next phase.

Phase 2: Fine-Selection (The Tournament)

  • Successive Halving: The recalled models enter a tournament where they are fine-tuned on the target data.
  • Convergence Trend Mining: This is the "secret sauce." The authors use the offline benchmark data to identify typical "convergence trends." If a model's early training progress on the new task matches a historically "low-performing" trend, it is discarded immediately—even before the next scheduled "halving" step.

Datasets

The researchers evaluated their framework across two major domains:

  • Natural Language Processing (NLP): 40 models (including BERT, RoBERTa, and ALBERT variants) tested on benchmarks like GLUE and SuperGLUE, and target tasks like MNLI and TweetEval.
  • Computer Vision (CV): 30 models (ViT, BEiT, DeiT, etc.) tested on benchmarks like ImageNet subsets and target tasks like Food101, MedMNIST, and Oxford-Flowers.

Key Insights and Ideas

  • Performance as a Fingerprint: The core insight is that a model's performance across a variety of standard benchmarks acts as a unique signature. If two models perform similarly on GLUE, they are highly likely to perform similarly on a new, unseen NLP task.
  • Predicting the Future: By mining "convergence trends," the authors realized they don't need to wait for a model to finish training to know it's a dud. By comparing current validation curves to historical ones, they can "foresee" a model's plateau.
  • Clustering Reduces Redundancy: Many models in hubs are just slight variations of each other. Clustering allows the system to skip redundant computations by treating similar models as a single group during the initial "recall" phase.

Key Results

  • Speed: The framework is approximately 3x faster than standard successive halving and 5x to 8x faster than brute-force fine-tuning of all models.
  • Accuracy: Despite the aggressive pruning, the framework consistently identifies the optimal or near-optimal model. In many cases, the "Recall" phase successfully kept the best-performing model in the top 10 candidates.
  • Scalability: As the number of models in the repository increases, the speedup becomes even more pronounced, making it a viable solution for massive model hubs.

Limitations and Future Work

  • Benchmark Dependency: The system relies heavily on the quality and diversity of the offline benchmark datasets. If the benchmarks don't cover the domain of the target task well, the clustering might be less effective.
  • Single Proxy Score: Currently, the recall phase relies primarily on the LEEP score. The authors suggest that combining multiple different proxy tasks could make the "recall" phase even more robust.
  • Automation: Future work aims to build a fully automated data management system that continuously updates the performance matrix as new models and datasets are uploaded to public hubs.

Summary updated

BibTeX
@inproceedings{cui2024two,
  author = {Jianwei Cui and Wenhang Shi and Honglin Tao and Wei Lu and Xiaoyong Du},
  title = {{A Two-Phase Recall-and-Select Framework for Fast Model Selection}},
  booktitle = {ICDE},
  year = {2024},
  url = {https://openreview.net/forum?id=jJTsbLU8Al},
}

Loading related content...

Figure