- Introduced by
- MacKay, D.J.C.; Houlsby, N. et al.
- Year
- 1992–2011
- Type
- Active learning with Bayesian uncertainty
- Family
- Machine learning
What does it do?
Bayesian Active Learning (BAL) pairs a probabilistic model with a query strategy that chooses which unlabeled examples to label next.
Rather than labeling at random, it asks an oracle, typically a human annotator, for the points whose labels are expected to reduce the model's uncertainty the most. It is aimed at settings where labels are costly and the model must report how uncertain it is.
The intuition behind the method
Suppose you have a large pool of unlabeled data and a limited labeling budget. Random selection spends that budget without regard to what the model still does not know. BAL instead maintains a posterior distribution over model parameters and uses it to measure how uncertain the model is about each unlabeled point. Points on which plausible parameter settings disagree, which is the epistemic part of the uncertainty, are queried first, because a label there can change the posterior. The aim is to reach a given model quality with fewer labels than passive sampling, although the size of that gain depends on the model, the pool and the starting labeled set.
History
The approach draws on information-based experimental design and on earlier pool-based strategies such as uncertainty sampling and Query-by-Committee. The BALD criterion, which uses mutual information to separate epistemic from aleatoric uncertainty, is attributed to Houlsby et al. (2011), and it is now a standard acquisition criterion in Bayesian active learning.
When to use it
Choose BAL when labels are expensive or slow to obtain, such as expert medical image review or wet-lab experiments, and when a large unlabeled pool exists alongside a tight labeling budget. It is most relevant where each query has a real cost and the model can be given a Bayesian or approximately Bayesian treatment. Do not use it when labels are cheap enough that random sampling is adequate, when the model cannot represent calibrated uncertainty (for example a standard neural network whose softmax outputs are read as uncertainty), when the unlabeled pool is too small to benefit from selective querying, or when an oracle cannot answer within the query loop, for instance because annotation is delayed or interrupted.
Limitations and considerations
- Its benefit depends on calibrated uncertainty; a misspecified prior or an overconfident approximate posterior produces a poor query order.
- Each round requires posterior inference and scoring of every unlabeled candidate, which can be costly for large pools and complex models.
- If point-by-point BALD scores are used to fill a batch, the selected points tend to cluster unless a batch-aware criterion is used.
- The advantage over random sampling can shrink or disappear when the initial labeled set is very small or the model class is poorly suited to the data.
- The loop assumes an oracle answers each round; delayed or interrupted annotation breaks the cycle.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Can reduce the number of labels needed to reach a given accuracy, because each query targets the points expected to shrink parameter uncertainty the most.
- Provides uncertainty estimates alongside predictions, which matter when decisions depend on how confident the model is.
- The BALD criterion is based on mutual information, which separates the uncertainty that labels can reduce from the inherent noise in the data, instead of relying on a heuristic such as least-confidence sampling.
- Applies to any model that yields a posterior or a reasonable approximation, including Gaussian processes, Bayesian neural networks, and approximations such as MC Dropout and deep ensembles.
- Batch-aware variants of the BALD score reduce the redundancy that a point-by-point score would produce when labels are gathered in parallel.
Applications
- Medical image annotation: selecting the most informative scans for expert radiologist labeling.
- Drug discovery: querying which compounds to synthesize and test next based on molecular property uncertainty.
- Natural language processing: efficient annotation of text corpora for named entity recognition or sentiment analysis.
- Materials science: experimental design for material property prediction with minimal lab trials.
- Robotics and reinforcement learning: selecting informative interactions to explore in costly real-world environments.
- Remote sensing: prioritizing which satellite image tiles require expert ground-truth labeling.
How it works
How it works
Start with a Bayesian probabilistic model, such as a Bayesian neural network, a Gaussian process or Bayesian logistic regression, with a prior over its parameters. Fit it to the small initial labeled set to obtain a posterior. The model must provide uncertainty estimates, not only point predictions.
After each batch of new labels, update the posterior with Bayes' rule, p(theta | D) proportional to p(D | theta) p(theta). The posterior concentrates on parameter values consistent with the labels so far and stays spread where the data are ambiguous. This running posterior is what the query strategy uses.
Formula
p(\theta \mid \mathcal{D}) \propto p(\mathcal{D} \mid \theta)\,p(\theta)Score each unlabeled candidate with the BALD criterion, which is the mutual information between the predicted label y and the parameters theta, given the input x and the labeled data D. In the formula, the expected entropy of the prediction under each parameter setting is subtracted from the entropy of the averaged prediction. A high score means the averaged prediction is uncertain while each individual parameter setting is comparatively confident, so the disagreement comes from parameters that a new label can constrain. In practice both terms are estimated by Monte Carlo: draw several posterior samples, average the predicted class probabilities across them to obtain the averaged prediction, and compare the entropy of that average with the mean entropy of the individual sample predictions. The number of samples must be large enough that the ranking of candidates is stable across repeated runs.
Formula
\text{BALD}(x) = H[y \mid x, \mathcal{D}] - \mathbb{E}_{\theta}[H[y \mid x, \theta]]Select the highest-scoring unlabeled example and send it to the oracle. When several labels will be obtained in parallel, a batch-aware variant of the BALD score selects a batch by considering candidates jointly, so that the chosen batch is not redundant. Scoring each point independently can select near-duplicate points.
Add the new labels to the training set, update or refit the posterior, and repeat the scoring loop until the labeling budget is used up or a target performance is reached. Each round recomputes the scores, because labels already acquired change where the remaining uncertainty lies.
Common pitfalls
- Treating the softmax output of a non-Bayesian network as its uncertainty. Such scores are often overconfident and do not capture the parameter uncertainty that BALD targets.
- Querying one point at a time when several labels will be obtained in parallel, which produces redundant batches.
- Ignoring distribution shift: if the unlabeled pool differs from the deployment distribution, BAL may concentrate queries on hard cases that are unrepresentative of deployment.
- Not recomputing the scores after each labeling round; stale scores ignore what the new labels have already resolved.
- Confusing aleatoric with epistemic uncertainty. The expected-entropy term in BALD removes the aleatoric part, so labels are expected to help mainly where the parameters disagree.
Frequently asked questions
What is the difference between standard active learning and Bayesian active learning?
Standard active learning uses heuristic uncertainty measures such as least-confidence or margin sampling from a point-estimate model. Bayesian active learning grounds the query strategy in a full posterior distribution over model parameters, enabling principled information-theoretic acquisition functions and calibrated uncertainty that distinguish irreducible from learnable uncertainty.
Can I use Bayesian active learning with deep neural networks?
Yes, through approximate Bayesian inference. MC Dropout, which keeps dropout active at test time to draw approximate posterior samples, is a common practical choice, and deep ensembles are another option. Its uncertainty quality depends on the dropout rate and the training setup, so check it with calibration metrics before relying on it. Full Bayesian neural networks, trained with variational inference or MCMC, can be more faithful to the posterior but are more demanding to compute.
How many queries per round should I select?
Single-point greedy selection follows the criterion most directly but is slow when annotators can work in parallel. Batch-aware selection chooses a diverse batch to avoid redundancy. The right batch size depends on annotation throughput and the cost of retraining, and should be set from those practical constraints rather than a fixed rule.
Is Bayesian active learning always better than random labeling?
Not always. When the labeling budget is very large relative to the dataset, or when the model class is poorly calibrated, random sampling can match or beat BAL. The benefit is most pronounced in the low-label regime with a well-calibrated model and a large unlabeled pool.
What evaluation metrics should I use?
Plot learning curves, such as accuracy, F1 or AUC, against the number of labeled examples, comparing BAL with random sampling from the same starting set. Also report expected calibration error (ECE) to check that the uncertainty estimates are meaningful. Report the seed set size and the number of posterior samples used, and repeat the run over several random seeds, since the seed set and sampling noise can change the curves. Checking several budget points shows where the advantage over random sampling is largest.
Related methods
Sources
Houlsby, N., Huszár, F., Ghahramani, Z., & Lengyel, M. (2011). Bayesian Active Learning for Classification and Preference Learning. arXiv preprint arXiv:1112.5745.
Open publication referenceSettles, B. (2012). Active Learning. Synthesis Lectures on Artificial Intelligence and Machine Learning, 6(1), 1–114. Morgan & Claypool.
Open DOI reference