Low-Shot Validation: Active Importance Sampling for Estimating Classifier Performance on Rare Categories

Fait Poms, Vishnu Sarukkai, Ravi Teja Mullapudi, Nimit Sharad Sohoni, William R. Mark, Deva Ramanan, Kayvon Fatahalian

Introduction

Modern machine learning has made significant strides in training models with minimal data through semi-supervised and few-shot learning. However, a critical bottleneck remains: validation. Estimating a classifier's performance on "rare categories"—objects that appear in less than 0.1% of a dataset—is prohibitively expensive. Standard uniform random sampling requires labeling tens of thousands of images just to find enough positive examples for a reliable F-score. This creates a scenario where validating a model can cost significantly more than training it.

The ACIS Framework

To address this, we introduce ACIS (Active Calibration and Importance Sampling). ACIS leverages Importance Sampling to over-sample points likely to be positives or near decision boundaries, then mathematically corrects for this bias to provide an unbiased performance estimate.

The primary challenge in Importance Sampling is the need for a calibrated model. Since most neural networks are poorly calibrated on rare classes, ACIS employs an iterative loop to calibrate the model during the sampling process.

The ACIS iterative loop: (1) Calibrate scores using Isotonic Regression, (2) Fit an optimal sampling distribution, (3) Sample and label new data, and (4) Estimate the F-score. The bottom panels visualize how calibration error decreases over iterations.

The process involves:

  1. Calibration: Using existing labels to train an Isotonic Regression model that maps raw scores to actual probabilities.
  2. Sampling: Defining a distribution that prioritizes informative images based on these probabilities.
  3. Estimation: Updating the F-score estimate and its variance with each new batch of human labels.

Experimental Evaluation

ACIS was evaluated using state-of-the-art models (SwAV, SimCLRv2, BYOL) across three benchmarks: ImageNet1M, ImageNet50K, and iNat100K (a long-tailed dataset of rare species).

Key Results

The experiments demonstrate that ACIS achieves a 10x improvement in labeling efficiency compared to standard baselines. It can estimate F1 scores with high precision (variance < 0.005) using as few as 100 human-labeled examples.

Performance comparison on ImageNet1M across BYOL, SwAV, and SimCLRv2 models. ACIS (red) consistently achieves lower F1 MSE and faster convergence to the ground truth (GT) F1 score compared to baselines like SAWADE and GMM.

Key insights from the results include:

  • Active Calibration: Calibrating during sampling is essential for low-sample efficiency. Isotonic Regression proved superior to Platt Scaling for rare categories.
  • Robustness: ACIS consistently outperforms GMM-based estimation and "Herding" algorithms across different model architectures.
  • Diagnostic Reliability: The derived single-trial variance estimator provides a reliable "trust gauge" for practitioners, even with very few samples.

Conclusion and Future Work

ACIS significantly reduces the cost of validating models on rare categories, making it feasible to monitor high-stakes, long-tail distributions in production. While highly effective, future work will explore handling domain shifts, accounting for noisy human labels, and extending the framework to multi-label and object detection tasks.

Summary updated

BibTeX
@misc{poms2021low,
  author = {Fait Poms and Vishnu Sarukkai and Ravi Teja Mullapudi and Nimit Sharad Sohoni and William R. Mark and Deva Ramanan and Kayvon Fatahalian},
  title = {{Low-Shot Validation: Active Importance Sampling for Estimating Classifier Performance on Rare Categories}},
  year = {2021},
  eprint = {2109.05720},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.05720},
}
Figure