Active Learning

Machine Learning
Introduced by
Burr Settles
Year
2009
Type
Interactive supervised learning framework
Family
Interactive ML

What does it do?

Active learning is an iterative machine-learning paradigm in which a learning algorithm selectively queries an oracle, typically a human annotator, for labels on the unlabeled examples it judges most informative.

Its practical aim is to reach a given level of model accuracy with fewer labeled examples than passive supervised learning would need, which matters when annotation is the main cost. The framework is most often associated with Burr Settles' 2009 literature survey, cited on this page, although earlier work on selective querying predates it (see history).

The intuition behind the method

Imagine a medical student who, instead of memorizing every textbook page, asks the attending physician only about the most puzzling cases. The student learns faster by focusing on uncertainty rather than reviewing examples they already understand. Active learning works the same way: the model identifies examples it is most confused about, requests human labels for those specific instances, and updates itself — repeating this loop until performance is satisfactory.

History

Choosing which observations to collect is an older problem than the machine-learning framework. Optimal experimental design in statistics addresses the same question, which is why the method also appears under that alias. Burr Settles' 2009 technical report, cited here, is the survey used as the reference for the pool-based cycle and the query strategies the field uses. Data mining textbooks present the pool-based cycle and attribute its figure to Settles' report. Later surveys group the query strategies into uncertainty sampling, query-by-committee, greatest model change, greatest error reduction and greatest variance reduction, and they also discuss representativeness-based models. As neural networks became the dominant model class, uncertainty had to be estimated in new ways for them, and approximations such as MC Dropout, named in the pitfalls, are commonly used in that setting.

When to use it

Choose active learning when unlabeled data is plentiful, expert labels are expensive or slow, and an oracle can answer queries during the project. Typical settings include medical imaging, legal document classification and NLP annotation, as listed under applications. The method depends on the model's probability estimates being good enough to rank the pool, so poorly calibrated early models will give weak queries. Do not use it when labels are cheap enough to annotate the whole pool, when the pool is small, or when the data distribution shifts between queries so the labeled set stops representing the target. If no interactive oracle is available, semi-supervised learning, which uses unlabeled data without querying, is the relevant alternative.

Limitations and considerations

  • The labeled set is built from the model's own uncertain choices, so it is not a random sample of the data and the fitted model can be biased toward the regions it chose to query.
  • The benefit depends on the query criterion phi, and a criterion that ranks points well for one model or task may rank them poorly for another.
  • Each iteration retrains on the full labeled set L by minimizing the loss in the retraining formula, which becomes expensive for large neural networks when repeated many times.
  • The update treats each oracle label as correct. Annotator disagreement or errors enter L directly and can degrade the retrained model unless the noise is modeled.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • The query criterion in the mechanics needs only class posterior probabilities, so any classifier that outputs such probabilities can be used without changing its architecture.
  • Annotation effort is directed to the examples the current model finds least certain, which is the mechanism by which fewer labels can reach a given accuracy.
  • The loop accepts other informativeness criteria, such as query-by-committee disagreement, when the probabilities of a single model are judged unreliable.
  • Each iteration selects one example, which keeps the basic loop simple. Annotation platforms that collect labels in rounds can use a batch variant that selects several examples per round, provided the batch is chosen with a diversity rule (see pitfalls).

Applications

  • Medical image annotation (radiology, pathology) where expert labeling is costly and scarce.
  • Named-entity recognition and relation extraction in NLP, reducing hand-labeled corpus requirements.
  • Drug discovery: selecting which molecular candidates to synthesize and assay.
  • Remote sensing and satellite imagery classification with limited ground-truth labels.
  • Autonomous driving: prioritizing annotation of rare or safety-critical driving scenarios.

How it works

How it works

1

The process starts with a pool U of unlabeled examples and an empty labeled set L. The base model may be pretrained on any available labeled seed data or initialized randomly, and this initial model determines the first query scores. The split between labeled L and unlabeled U is the structural assumption of pool-based active learning.

Formula
\mathcal{U} = \{\mathbf{x}_1, \mathbf{x}_2, \ldots, \mathbf{x}_n\}, \quad \mathcal{L} = \emptyset
2

At each iteration the learner scores every unlabeled example with phi, which here is the least-confidence measure 1 minus the largest class posterior. It selects the example with the highest score, that is, the one whose most likely class the model is least sure of. The formula selects a single example per iteration. Other informativeness criteria, such as query-by-committee disagreement or expected model change, can replace phi.

Formula
\mathbf{x}^* = \arg\max_{\mathbf{x} \in \mathcal{U}} \phi(\mathbf{x}; \theta), \quad \phi(\mathbf{x}) = 1 - \max_{y} P_\theta(y \mid \mathbf{x})
3

The selected instance x* is sent to an oracle (a human expert, a crowdsourcing platform, or an automated annotator), which returns a label y*. The pair is moved from U to L. The equation does not model labeling cost: each query counts as one labeling event, and any query budget is tracked outside the formula.

Formula
y^* = \mathcal{O}(\mathbf{x}^*), \quad \mathcal{L} \leftarrow \mathcal{L} \cup \{(\mathbf{x}^*, y^*)\}, \quad \mathcal{U} \leftarrow \mathcal{U} \setminus \{\mathbf{x}^*\}
4

The parameters are re-estimated on the current labeled set L by minimizing the average loss over L, an empirical risk. The model then re-scores the remaining pool, and the select, label and retrain cycle repeats until the budget is spent or a target performance is reached. The formula does not specify whether retraining is a full refit or a fine-tuning step.

Formula
\theta^* = \arg\min_\theta \frac{1}{|\mathcal{L}|} \sum_{(\mathbf{x},y) \in \mathcal{L}} \mathcal{L}_{\text{loss}}(f_\theta(\mathbf{x}), y)

Common pitfalls

  • Cold start: phi is computed from parameters estimated on the initial labeled set, so when L is very small the posterior estimates that drive the first queries are unreliable.
  • The formula picks one point per iteration. Running it in batches without a diversity rule can select many near-duplicate examples that carry the same information.
  • Uncertainty from dropout-based approximations such as MC Dropout in deep networks may be underestimated for inputs far from the training data, so queries can miss out-of-distribution regions.
  • Strategies should be compared over several random initial labeled sets and reported as learning curves with their variability, since a single run can rank strategies differently from repeated runs.

Frequently asked questions

How is active learning different from semi-supervised learning?

Semi-supervised learning exploits the structure of unlabeled data (e.g., clustering, manifold assumptions) without querying an oracle, updating the model using pseudo-labels or consistency regularization. Active learning explicitly requests true labels from an oracle for selected examples. The two approaches are complementary and can be combined.

Which query strategy should I use in practice?

Uncertainty sampling, the least-confidence rule given in the mechanics, is the simplest baseline and applies to binary and multi-class classifiers that output probabilities. Query-by-committee suits cases where an ensemble is already trained, because disagreement among its members is available without training additional models. Expected model change and BALD (Bayesian Active Learning by Disagreement) are more demanding to compute. Whether they help on a given task is an empirical question, so compare them with uncertainty sampling on held-out labeled data.

Can active learning be applied to regression tasks?

Yes. A regression model has no class posterior, so informativeness is usually measured by predictive variance, for example from a Gaussian process or an ensemble, and the learner queries the point where variance is highest. This differs from the least-confidence rule in the mechanics, which needs class probabilities. The approach is common in Bayesian optimization and surrogate-model-based experimental design.

Related methods

Sources

  1. Settles, B. (2009). Active learning literature survey. University of Wisconsin-Madison Computer Sciences Technical Report 1648.

    Open publication reference
  2. 09-Classification Advanced, p. 43

  3. 2015_Book_DataMining, p. 386