A Framework for Efficient Model Evaluation Through Stratification, Sampling, and Estimation

Riccardo Fogliato, Pratik Patil, Mathew Monfort, Pietro Perona

Abstract

Evaluating modern machine learning models requires high-quality "gold-standard" labels, which are often expensive and time-consuming to acquire. This paper introduces a statistical framework designed to reduce the cost of model evaluation by up to 10x. By leveraging a model's own predictions to intelligently stratify and sample data, the proposed method achieves high-precision accuracy estimates with a fraction of the manual labeling effort required by standard random sampling techniques.

Introduction

In computer vision, data labeling remains a primary bottleneck. While models can be trained on noisy "silver-standard" labels, evaluation demands high-quality annotations. As model performance improves, the size of the test set required to produce narrow confidence intervals—necessary for distinguishing between competing algorithms—grows significantly. Traditionally, practitioners rely on Simple Random Sampling (SRS), which treats every data point as equally informative. This paper addresses the fundamental inefficiency of SRS by asking how we can minimize the number of annotated samples required to precisely estimate predictive accuracy.

Methodology

The authors propose a four-stage framework: Predict, Stratify, Sample, and Estimate.

  1. Predict: Generate a proxy for the model's error, such as confidence scores or predictions from a stronger "surrogate" model.
  2. Stratify: Group unlabeled data into "strata." A key finding is that performing k-means clustering on model predictions is more efficient than clustering on raw image features.
  3. Sample: Select points to label using either Proportional Allocation (sampling based on group size) or Neyman Allocation (sampling more heavily from groups where the model is most uncertain).
  4. Estimate: Calculate final accuracy using statistical estimators. The framework compares the standard Horvitz-Thompson (HT) estimator against the Difference Estimator (DF). The DF is "model-assisted," using predictions on the entire unlabeled dataset to "correct" the estimate derived from the small labeled sample.

Experimental Results

The framework was evaluated across diverse computer vision tasks, including the LAION CLIP-Benchmark (ImageNet-1K, CIFAR-10/100, etc.) and the WILDS Benchmark for out-of-distribution testing.

Figure 1: Mean squared errors (MSEs) of estimators across sampling designs. Stratified sampling (orange/blue) dramatically reduces the error compared to simple random sampling (green) as the number of labels increases.

As illustrated in Figure 1, the efficiency gains are dataset-dependent:

  • CIFAR-10: Achieved a 10x reduction in the number of labels needed for the same precision.
  • Stanford Cars: Achieved approximately 5x savings.
  • Dmlab Frames: Showed minimal savings, indicating that the method's success depends on the model's ability to accurately predict its own performance on a specific task.

Generally, the Difference Estimator combined with Stratified Sampling proved to be the most robust method for practitioners.

Key Insights

  • Predictions vs. Embeddings: Stratifying based on predicted error is significantly more effective than using image embeddings. Knowing where a model is likely to fail allows for more strategic sampling.
  • Surrogate Models: Using a high-performing "teacher" model (e.g., ViT-L/14) to guide the evaluation of a "student" model (e.g., ViT-B/32) yields the highest efficiency gains.
  • Calibration: For advanced techniques like Neyman allocation and the Difference Estimator to succeed, the model's confidence must be well-calibrated. Overconfidence can lead to performance worse than random sampling.
  • One-Shot Efficiency: Unlike active learning, this framework works in a "one-shot" setting, making it easily integrable into existing annotation pipelines.

Conclusion and Limitations

The primary limitation of this framework is its performance on Out-of-Distribution (OOD) data. When a model encounters data significantly different from its training set, its self-predictions become unreliable, diminishing the efficiency gains of stratification. Future work will focus on extending this framework to complex tasks like object detection and developing robust strategies for OOD scenarios where model confidence is untrustworthy.

Summary updated

BibTeX
@inproceedings{fogliato2024framework,
  author = {Riccardo Fogliato and Pratik Patil and Mathew Monfort and Pietro Perona},
  title = {{A Framework for Efficient Model Evaluation Through Stratification, Sampling, and Estimation}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73223-2\_9},
}
Figure