NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Batch Active Learning at Scale

Gui Citovsky, Giulia DeSalvo, Claudio Gentile, Lazaros Karydas, Anand Rajagopalan, Afshin Rostamizadeh, Sanjiv Kumar

Overview

Active learning reduces labeling costs by selectively querying the most informative data. However, standard batch methods fail to scale to the massive batch sizes (100K–1M) required for modern deep learning pipelines. This paper introduces Cluster-Margin, a highly scalable active learning algorithm that clusters data representations just once and iteratively samples uncertain, diverse examples. This approach achieves up to a 60% reduction in required labels on datasets with millions of images.

The Challenge of Scale

Training highly effective deep neural networks requires massive amounts of labeled data, which is expensive and time-consuming to acquire. Active learning addresses this by adaptively querying a labeling oracle for only the most informative examples. Because retraining large models frequently is computationally expensive, practitioners use batch active learning, where thousands of labels are requested at once.

As datasets grow to millions of examples (e.g., Open Images, ImageNet), batch sizes must scale up to 100K or even 1M. At this scale, two major problems emerge:

  1. Redundancy: Without frequent model updates, a large batch is highly likely to contain redundant examples, wasting the labeling budget.
  2. Computational Bottlenecks: State-of-the-art batch active learning algorithms (like BADGE or CoreSet) recalculate diversity metrics or re-cluster data at every sampling iteration. Their computational complexity scales linearly with the batch size ($O(k \cdot n)$), making them practically infeasible for massive batches.

The Cluster-Margin Algorithm

To address these bottlenecks, the authors propose Cluster-Margin, an algorithm designed specifically for the large-batch regime. It balances uncertainty (finding hard examples) with diversity (avoiding redundant examples) while keeping computational overhead low.

Illustration of the clustering and round-robin sampling process.

The algorithm operates through three key steps:

  • One-Time Preprocessing (Diversity): The algorithm embeds the entire unlabeled data pool using a pre-trained model's penultimate layer. It then runs Hierarchical Agglomerative Clustering (HAC) on these embeddings only once. This decouples the diversity calculation from the iterative sampling, dropping the per-iteration complexity from $O(k \cdot n)$ to $O(n \log n)$.
  • Margin Scoring (Uncertainty): At each active learning iteration, the model scores unlabeled examples using a "margin" metric (the difference between the model's top two predicted class probabilities). It filters the pool down to a subset of the most uncertain examples.
  • Round-Robin Sampling: The algorithm maps these highly uncertain examples to their pre-computed HAC clusters. It sorts the clusters by size in ascending order and uses a round-robin scheme to sample one example per cluster until the target batch size is reached. By starting with the smallest clusters, it naturally prioritizes the sparsest regions, capturing diverse, outlier-like hard examples.

Key Results

The primary benchmark for large-scale evaluation was Open Images v6, a multi-label dataset containing ~10M images and 20K classes. The algorithm was also tested on standard small-scale datasets (CIFAR10, CIFAR100, and SVHN) to verify its general robustness.

Performance of Cluster-Margin vs baselines on Open Images with 100K and 1M batch sizes.
  • Massive Label Savings at 1M Batch Size: On the Open Images dataset using a batch size of 1M, Cluster-Margin required 60% fewer labels than the next best method to reach the target Average Precision (AP). It achieved the same performance using only ~37-40% of the labels required by BADGE, CoreSet, or standard Margin sampling.
  • Strong Performance at 100K Batch Size: With a 100K batch size, Cluster-Margin reached a pooled AP of 0.76 using ~920K examples—a 29% reduction in labels compared to the next best baseline.
  • Small-Scale Competitiveness: Despite being designed for massive scales, Cluster-Margin outperformed all baselines on CIFAR10 and CIFAR100, and tied for best on SVHN, proving it is a robust general-purpose active learning strategy.

Limitations and Future Work

While the empirical results are strong, the authors note a gap between theory and practice. The theoretical guarantees provided in the paper apply to a simplified version of the algorithm ("Cluster-MarginV") and assume specific, stylized data distributions (e.g., uniform distributions in 1D spaces). Extending this theoretical analysis to equate volume-based samplers with the practical Cluster-Margin algorithm in more general, real-world settings remains an important open direction.

Summary updated

BibTeX
@inproceedings{citovsky2021batch,
  author = {Gui Citovsky and Giulia DeSalvo and Claudio Gentile and Lazaros Karydas and Anand Rajagopalan and Afshin Rostamizadeh and Sanjiv Kumar},
  title = {{Batch Active Learning at Scale}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
}
Figure