Bayesian active learning for production, a systematic study and a reusable library

Parmida Atighehchian, Frédéric Branchaud-Charron, Alexandre LacostearXiv 2020

Active Learning (AL) promises to achieve high model performance while labeling only a fraction of available data. By iteratively querying an oracle for the most informative labels, AL aims to bypass the need for massive, redundant datasets. However, the transition from academic research to production environments reveals significant "pathologies"—such as labeling noise, class imbalance, and computational bottlenecks—that often degrade performance. This paper systematically investigates these challenges and introduces BaaL, an open-source library designed to facilitate practical Bayesian active learning.

The Production Gap in Active Learning

Standard AL research typically assumes a "perfect" environment: balanced datasets, accurate labels, and full model convergence at every iteration. In production, several factors complicate this process:

  1. Computational Latency: Training deep learning models and running inference on large unlabeled pools is time-consuming.
  2. Data Quality: Real-world labels are often noisy, particularly when sourced via crowdsourcing.
  3. Model Convergence: Hyperparameter tuning is often static across the AL loop, leading to potential underfitting.

Methodology: Bayesian Active Learning

The authors utilize Bayesian Active Learning, leveraging MC-Dropout to estimate epistemic uncertainty. They evaluate two primary acquisition functions:

  • Entropy: Measures the spread of the model's predictive distribution.
  • BALD (Bayesian Active Learning by Disagreement): Identifies samples where different stochastic passes of the model disagree most significantly.

To address production constraints, the study proposes Pool Subsetting—running inference on a random subset (e.g., 25%) of the unlabeled data—and increasing Query Sizes to reduce the frequency of retraining.

Systematic Study of AL Pathologies

The Impact of Underfitting

A critical finding is the sensitivity of AL to model convergence. If a model is underfitted (e.g., trained for too few epochs), its uncertainty estimates become unreliable. In such cases, active learning strategies can exhibit negative "active gain," performing worse than simple random sampling.

Figure 4: Underfitted models (blue line) show negative active gain, indicating performance inferior to random selection.

Handling Class Imbalance

In highly imbalanced datasets, AL naturally prioritizes rare classes because the model is inherently more uncertain about underrepresented data. This makes AL an effective tool for correcting dataset imbalance during the annotation phase.

Experimental Results

The study utilizes the Mio-TCD dataset, a massive real-world vehicle classification benchmark with 500,000 images. The dataset is characterized by extreme imbalance, with common classes like "cars" overshadowing rare classes like "bicycles."

Figure 3: BALD (blue) significantly outperforms random selection (green) on rare classes in the Mio-TCD dataset.

Key results include:

  • Robustness: AL consistently outperforms random sampling even with up to 10% label noise.
  • Efficiency: Pool subsetting can speed up the uncertainty estimation phase by a factor of 3 with negligible impact on performance.
  • Rare Class Discovery: On Mio-TCD, BALD showed substantial gains in F1 scores for rare classes compared to random labeling.

Conclusion

By quantifying the impact of real-world data pathologies, the authors provide a roadmap for deploying active learning in production. The released BaaL library offers a flexible, scalable framework for the community to implement these strategies. Future work will focus on integrating model calibration and semi-supervised learning to further enhance production robustness.

Summary updated

BibTeX
@misc{atighehchian2020bayesian,
  author = {Parmida Atighehchian and Frédéric Branchaud-Charron and Alexandre Lacoste},
  title = {{Bayesian active learning for production, a systematic study and a reusable library}},
  year = {2020},
  eprint = {2006.09916},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.09916},
}
Figure