Active Learning at the ImageNet Scale

Hong-Min Chu, Ping-yeh Chiang, Zeyad Emam, Wojciech Czaja, Richard Leapman, Micah Goldblum, Tom GoldsteinOpenReview 2021

TL;DR

This paper tackles the challenge of active learning (AL) for large-scale datasets like ImageNet, where traditional AL methods often fail due to class imbalance. They introduce Balanced Selection (BASE), a novel AL algorithm that effectively balances class representation in sampled data, leading to significant performance improvements and matching state-of-the-art results with fewer labels when combined with self-supervised pretraining (SSP).

What Problem Does This Paper Address?

The core problem this paper addresses is the effectiveness of active learning (AL) algorithms when applied to massive, real-world datasets like ImageNet, especially in conjunction with self-supervised pretraining (SSP). AL aims to intelligently select the most informative data points for labeling to maximize model performance under a fixed annotation budget. While AL has shown promise on smaller datasets, its performance on large-scale, class-imbalanced datasets like ImageNet is questionable. The authors observe that popular AL methods, which are typically evaluated on smaller benchmarks (like CIFAR-10), often perform no better than random sampling on ImageNet. This failure is attributed to a critical issue: AL algorithms tend to exhibit sampling imbalance, disproportionately selecting data from dominant classes and neglecting rarer ones, which is detrimental to overall model generalization on such datasets.

Methods

The paper proposes a new active learning strategy called Balanced Selection (BASE). BASE is designed to address the class imbalance problem observed in traditional AL methods when applied to large datasets.

The core idea behind BASE is to ensure that the selected samples for annotation are not only informative but also maintain a balanced representation across all classes. It achieves this by:

  • Class-Specific Distance: Instead of a general distance to decision boundaries, BASE defines a "distance to class-specific decision boundaries" (DCSDB). This metric measures how close a sample is to the decision boundary of a specific class.
  • Balanced Sampling Strategy: For each class, BASE selects a fixed number of samples (b/C, where 'b' is the budget and 'C' is the number of classes) that have the smallest DCSDB. This ensures that an equal number of samples are queried from each class, thereby mitigating class imbalance.
  • Scalability: BASE is designed to be scalable for large datasets and batch querying, making it practical for industrial applications.

The paper also introduces a simplified variant called Margin Selection (MASE), which selects samples closest to any decision boundary, as a preliminary step.

Datasets

The paper uses the following datasets for their experiments:

  • CIFAR-10: A standard benchmark dataset for image classification.
  • Imbalanced CIFAR-10: A version of CIFAR-10 where class sample counts are exponentially decreased from the most frequent to the least frequent class.
  • ImageNet: The primary large-scale dataset used for evaluation, known for its 1000 classes, 1.2 million images, and inherent label noise.

Key Insights and Ideas

  • Small dataset performance doesn't transfer: AL algorithms that perform well on small, balanced datasets often fail to generalize to large, imbalanced datasets like ImageNet.
  • Class imbalance is the culprit: The primary reason for AL's failure on ImageNet is the tendency of AL algorithms to create sampling imbalance, heavily favoring dominant classes and neglecting rare ones.
  • SSP is powerful, but AL can enhance it: Self-supervised pretraining (SSP) provides a significant performance boost even with random sampling. However, a well-designed AL strategy can further improve upon SSP by intelligently selecting data.
  • Balancing is key for scaling: Simply ensuring balanced class representation in the queried samples is crucial for AL to be effective at scale.
  • "Cheating" baselines highlight the problem: A "cheating" balanced random sampler (which uses ground truth labels to ensure balance) significantly outperforms other AL methods on ImageNet, underscoring the importance of balanced sampling.

Key Results

  • BASE outperforms random sampling: On ImageNet, the proposed BASE algorithm consistently outperforms random sampling in both end-to-end finetuning and linear evaluation settings.
  • State-of-the-art performance with fewer labels: When combined with the state-of-the-art EsViT SSP method on ImageNet, BASE achieves the same top-1 accuracy as using all available data, but with only 71% of the labels. For top-5 accuracy, it matches the state-of-the-art with only 55% of the labels.
  • Mitigation of class imbalance: BASE demonstrably achieves a more uniform class distribution in its queried samples compared to other AL baselines, as evidenced by class distribution histograms and entropy plots.
  • Some baselines are harmful: Certain AL algorithms, like Coreset AL, can actually harm performance when used with SSP and warm-starting, suggesting that AL research needs to consider the training regime carefully.

Limitations and Future Work

  • Computational cost of AL: While BASE is designed for scalability, active learning in general remains computationally expensive, especially for large datasets and complex models.
  • Hyperparameter sensitivity: The paper notes that AL experiments are sensitive to hyperparameters, requiring thorough tuning for fair comparisons.
  • Future work: The authors suggest extending their work to more complex tasks like large-scale segmentation and detection, where the cost savings from AL can be even more dramatic. They also highlight the need for further research into the interaction of AL with different training regimes (e.g., warm-starting vs. cold-starting) in the context of SSP.

Summary updated

BibTeX
@misc{chu2021active,
  author = {Hong-Min Chu and Ping-yeh Chiang and Zeyad Emam and Wojciech Czaja and Richard Leapman and Micah Goldblum and Tom Goldstein},
  title = {{Active Learning at the ImageNet Scale}},
  year = {2021},
  eprint = {2111.12880},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.12880},
}
Figure