Quick-Tune: Quickly Learning Which Pretrained Model to Finetune and How

Sebastian Pineda Arango, Fabio Ferreira, Arlind Kadra, Frank Hutter, Josif Grabocka

Executive Summary

Quick-Tune is a novel meta-learning framework designed to solve the "paradox of choice" in transfer learning. By jointly selecting the best pretrained model and its optimal finetuning hyperparameters, it eliminates the guesswork of model deployment. Leveraging a massive new meta-dataset of over 20,000 training runs, Quick-Tune uses cost-aware, gray-box Bayesian optimization to find top-performing AI pipelines significantly faster than standard trial-and-error or state-of-the-art tuning methods.

The Problem: The Paradox of Choice

In modern deep learning, practitioners rarely train models from scratch. Instead, they download a pretrained model from a hub (like Hugging Face or timm) and finetune it for their specific task. However, this introduces two grueling questions:

  1. Which of the hundreds of available models should I pick?
  2. How should I set the hyperparameters (learning rate, weight decay, etc.) to finetune it?

The authors demonstrate that there is no "silver bullet" model. A network architecture that dominates on one dataset might fail entirely on another. As shown in the performance heatmap below, the ranks of 24 popular models fluctuate wildly depending on the dataset they are applied to.

Model ranks vary significantly across different datasets, proving that model selection is not a one-size-fits-all problem.

Currently, most practitioners either stick to a single favorite model or rely on time-consuming trial-and-error. Quick-Tune introduces a way to automate this Combined Algorithm Selection and Hyperparameter Optimization (CASH) problem efficiently.

How Quick-Tune Works

Quick-Tune treats model selection and hyperparameter tuning as a single, unified search problem. Its efficiency relies on three technical pillars:

  1. Gray-Box Optimization: Instead of waiting for a model to finish training completely (a "black-box" approach), Quick-Tune observes partial learning curves. If a model looks promising after just a few epochs, the system invests more time; if it underperforms early on, it cuts its losses and moves to the next candidate.
  2. Meta-Learning: The system is "warm-started" using knowledge from thousands of previous experiments on other datasets. It uses a deep-kernel Gaussian Process to predict how a specific model and hyperparameter combination will perform based on the characteristics (meta-features) of the new dataset.
  3. Cost-Awareness: Not all models are created equal in terms of compute. Quick-Tune’s acquisition function explicitly weighs the potential for performance improvement against the "wall-clock" time cost of running those extra epochs, prioritizing efficient exploration.

The Meta-Dataset

To power their meta-learner, the authors generated a massive meta-dataset to map out the performance landscape:

  • Source: 87 diverse image classification datasets from the Meta-Album benchmark.
  • Scale: Over 20,000 hyperparameter configurations were evaluated.
  • Models: 24 pretrained models selected from the timm library. These were specifically chosen to sit on the "Pareto front"—meaning they offer the best available trade-offs between accuracy and model size.

Key Insights

  • The Value of "Cheap" Information: One of the most clever aspects of Quick-Tune is that it often starts by exploring smaller, "cheaper" models. The information gained from how hyperparameters interact with these smaller models helps the predictor make much better guesses when it eventually evaluates expensive, giant models.
  • Joint Search Beats Two-Stage Search: Common practice is to pick a model using a simple proxy metric (like LogME) and then tune it. The authors show that searching for both simultaneously yields much better results because hyperparameters and model architectures interact in complex, unpredictable ways.
  • Diversity Wins: Having a hub of 24 diverse models consistently outperformed the strategy of just trying to tune one massive, state-of-the-art model (like Dinov2). As the dataset size grows, the benefit of having a larger "model zoo" to choose from becomes even more pronounced.

Empirical Results

Quick-Tune consistently reached lower error rates (normalized regret) faster than any other method tested. In comparisons against popular optimizers like ASHA, BOHB, and DEHB, Quick-Tune showed superior "anytime" performance. This means that no matter when you stop the clock, Quick-Tune has likely found a better model pipeline than the competition.

Quick-Tune (blue line) reaches lower regret faster than state-of-the-art HPO methods across different dataset scales.

Specifically, the framework outperformed:

  • Default Settings: Simply using "standard" hyperparameters for top models proved to be significantly sub-optimal.
  • Massive Models: Quick-Tune found better pipelines than specialized finetuning of 1-billion-parameter models using LoRA or linear probing, often doing so at a fraction of the computational cost.

Limitations and Future Directions

While highly effective, the current iteration of Quick-Tune has a few boundaries:

  • Domain Specificity: The current meta-dataset is focused entirely on image classification. While the underlying method is generalizable, the meta-knowledge would need to be rebuilt from scratch for tasks like object detection or natural language processing.
  • Discrete Search Space: The search space for models is currently a discrete list of 24 options. Future iterations could potentially incorporate Neural Architecture Search (NAS) to navigate a continuous space of model designs.
  • Parameter-Efficient Finetuning: While the authors compared against LoRA (Low-Rank Adaptation) baselines, future work could directly integrate parameter-efficient finetuning methods into the hyperparameter search space itself.

Summary updated

BibTeX
@inproceedings{arango2024quick,
  author = {Sebastian Pineda Arango and Fabio Ferreira and Arlind Kadra and Frank Hutter and Josif Grabocka},
  title = {{Quick-Tune: Quickly Learning Which Pretrained Model to Finetune and How}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=tqh1zdXIra},
}
Figure