Consensus-Driven Active Model Selection

Justin Kay, Grant Van Horn, Subhransu Maji, Daniel Sheldon, Sara Beery

TL;DR

This paper introduces CODA, a novel method for "active model selection" that significantly reduces the need for human-labeled data when choosing the best pre-trained machine learning model for a task. By leveraging the consensus and disagreement among candidate models, CODA achieves state-of-the-art performance, often requiring over 70% fewer labels than previous methods.

What Problem Does This Paper Address?

The explosion of readily available pre-trained machine learning models presents a significant challenge: how do you efficiently pick the best model for your specific task? Traditionally, this involves creating a labeled validation dataset, which is time-consuming and expensive. While active learning focuses on reducing labeling effort for training models, efficiently selecting the best pre-trained model at test time has been less explored. Existing methods for this "active model selection" are often inefficient, requiring hundreds or thousands of labels, partly because they treat models and categories independently, missing valuable information from model agreement and disagreement. This is particularly problematic in areas like unsupervised domain adaptation, where model selection is crucial but difficult without labeled data.

Methods

CODA tackles this by modeling the relationships between classifiers, categories, and data points within a probabilistic framework. Inspired by the Dawid-Skene model for annotator agreement, CODA represents each candidate model with a confusion matrix that captures its per-category performance. The core of CODA involves:

  1. Initializing Beliefs: Using the consensus of all candidate models' predictions on unlabeled data to form initial "confusion matrices" and derive prior distributions for each model's performance.
  2. Estimating PBest: Calculating the probability that each candidate model is the "true best" model, based on the current beliefs and a probabilistic model that accounts for uncertainty and correlations in model errors.
  3. Selecting Data Points to Label: Intelligently querying for ground-truth labels on data points that are expected to provide the most information for refining the PBest distribution. This is achieved by calculating the "expected information gain" for each unlabeled data point.
  4. Labeling and Updating: Obtaining the true label for the selected data point and using it to update the confusion matrices and PBest distribution via Bayesian inference.

This iterative process allows CODA to efficiently narrow down the best model with minimal labeling.

Datasets

The authors curated a benchmarking suite of 26 diverse model selection tasks, representing a significant contribution to the field. This suite includes:

  • ModelSelector: Tasks sourced from online repositories, covering image and text classification (CIFAR10, PACS, GLUE).
  • WILDS: Tasks from the "in-the-wild distribution shifts" benchmark, focusing on domain generalization scenarios (iWildCam, FMoW, CivilComments, Camelyon17).
  • DomainNet126: Tasks adapted from the unsupervised domain adaptation benchmark, involving 126-way classification across various domains.

They also mention using pre-trained models from HuggingFace and PyTorch hubs, and in some cases, training models themselves.

Key Insights and Ideas

  • Leveraging Consensus is Key: The paper strongly argues that ignoring the agreement and disagreement between models is a major limitation of prior work. CODA's success hinges on using this "wisdom of the crowd" of classifiers.
  • Probabilistic Modeling for Uncertainty: By using a probabilistic framework (specifically, Dirichlet priors for confusion matrices), CODA can better account for uncertainty in model performance, leading to more robust decisions.
  • Active Selection for Model Choice: The core idea of actively querying labels specifically to differentiate between models, rather than just for general model evaluation, is a powerful concept for reducing annotation costs.
  • Data Imbalance and Model Bias are Challenges: The paper acknowledges that CODA can struggle in cases of extreme data imbalance or highly biased models, highlighting areas for future improvement.

Key Results

  • State-of-the-Art Performance: CODA outperforms existing active model selection methods on 18 out of 26 benchmark tasks.
  • Significant Label Efficiency: CODA reduces the annotation effort required to find the best or near-best model by upwards of 70% compared to the previous state-of-the-art. It often identifies a near-optimal model with fewer than 25 labeled examples.
  • Unsupervised Model Selection: CODA's initialization routine also shows strong performance in unsupervised model selection, matching or exceeding prior state-of-the-art on 20 out of 26 tasks.

Limitations and Future Work

The authors identify limitations in CODA's performance on specific datasets (CivilComments and CoLA) due to a combination of data imbalance and model bias. They suggest future work could address these by:

  • Developing better methods for constructing and utilizing informative priors.
  • Extending the framework to more tasks and target metrics beyond classification accuracy.
  • Exploring more sophisticated probabilistic models that can better capture predictive quantities like model confidence.
  • Investigating the integration of active learning, active testing, and active model selection to efficiently allocate effort across these related tasks.

Summary updated

BibTeX
@inproceedings{kay2025consensus,
  author = {Justin Kay and Grant Van Horn and Subhransu Maji and Daniel Sheldon and Sara Beery},
  title = {{Consensus-Driven Active Model Selection}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure