Active learning · machine learning

On this page 7

Active learning is a machine learning strategy in which the model itself selects the most informative unlabeled examples and sends them to a human annotator, so that a labeling budget produces the largest possible gain in accuracy. In the field of training data for artificial intelligence, it replaces random sampling of items to label with an iterative query loop driven by the model’s own uncertainty or by the structure of the data.

The method matters wherever labels are expensive: medical images that need a radiologist, legal documents that need a lawyer, or rare defects that appear once in thousands of frames. A well-designed active learning loop often reaches a target accuracy with a fraction of the labels that random selection would need, although the size of the saving depends heavily on the task, the model and the quality of the initial data.

How the active learning loop works

Active learning works as a repeated cycle of training, querying and labeling. A model is trained on a small seed set of labeled data, it scores every item in a large unlabeled pool, a query strategy picks the items whose labels would help most, and human annotators label them before the model is retrained.

The cycle continues until the labeling budget is spent or until validation accuracy stops improving. Each pass through the cycle is called a round or an acquisition step, and the number of items labeled per round is the batch size.

The table below lists the components of a typical pool-based loop and what each one controls.

ComponentRole in the loopTypical setting
Seed setGives the first model a starting point50 to 1,000 labeled items
Unlabeled poolSupplies candidates for labelingThousands to millions of items
Query strategyRanks candidates by expected valueUncertainty, diversity or hybrid
OracleProvides the true labelHuman expert or annotation team
Batch sizeSets items labeled per round10 to several thousand
Stopping ruleEnds the loopBudget, plateau or confidence threshold
Components of a pool-based active learning loop

Query strategies for choosing examples

A query strategy is the rule that decides which unlabeled example is worth a label. Strategies fall into a few families, and practical systems frequently combine uncertainty with diversity so that a batch does not consist of near-duplicate hard cases.

Uncertainty sampling chooses items on which the model is least confident, measured by the lowest top-class probability, the smallest margin between the two best classes, or the highest predictive entropy. Query by committee trains several models and picks items on which they disagree most. Expected model change and expected error reduction estimate how much a label would alter the model, but they are computationally costly.

The following table compares the main strategy families and their typical trade-offs.

Strategy familySelection signalMain strengthMain weakness
Uncertainty samplingLow confidence, margin or entropySimple and cheapPicks outliers and redundant items
Query by committeeDisagreement among modelsRobust uncertainty estimateNeeds several trained models
Diversity samplingCoverage of the feature spaceAvoids redundant batchesMay ignore hard boundary cases
Hybrid methodsUncertainty plus diversityStrong batch performanceMore tuning and compute
Expected error reductionSimulated effect on future errorDirectly targets accuracyVery expensive at scale
Main families of query strategies

For deep networks, core-set selection and BADGE, which clusters gradient embeddings, are widely used hybrid approaches. Bayesian methods such as BALD use dropout or ensembles to separate model uncertainty from irreducible noise in the data.

Active learning appears in three classic scenarios. In pool-based sampling, the most common setting, the model ranks a fixed collection of unlabeled data. In stream-based selective sampling, each arriving item is accepted or rejected for labeling in real time. In membership query synthesis, the model generates new inputs to be labeled, which is rarely practical for images or text.

Active learning is often confused with neighboring approaches to labeled data. The comparison below separates them by who chooses the items and where the labels come from.

ApproachWho chooses itemsLabel sourceTypical goal
Active learningThe modelHuman oracleFewer labels for the same accuracy
Random labelingChanceHuman annotatorsUnbiased sample of the data
Human-in-the-loop labelingWorkflow designerHumans reviewing model outputFaster, verified annotation
Programmatic labelingRules or heuristicsLabeling functionsLabels at scale without manual work
Semi-supervised learningNo selectionModel pseudo-labelsUse unlabeled data directly
Active learning compared with related approaches

These methods are complementary rather than competing. A team may use programmatic labeling for easy cases, apply active learning to route the ambiguous remainder to experts, and train with pseudo-labels on everything else.

Designing an active learning project

A successful project begins with a reliable evaluation set labeled at random, because a test set built from actively selected items is biased toward hard cases and gives misleading accuracy. Clear annotation guidelines are equally important, since the examples chosen by the model are, by design, the ones annotators find hardest.

The decision table below summarizes common situations and the recommended configuration.

SituationRecommended choiceReason
Very small seed setStart with diversity samplingEarly uncertainty estimates are unreliable
Large annotation teamLarge batches with a hybrid strategyKeeps annotators busy without redundancy
Severe class imbalanceUncertainty plus class-aware samplingFinds rare classes faster
Noisy or subjective labelsMultiple annotators per queried itemHard items attract more disagreement
Expensive retrainingFewer, larger roundsReduces compute per labeled item
Choosing an active learning configuration

Batch size is a central engineering trade-off. Small batches let the model adapt quickly, while large batches suit annotation teams and reduce retraining cost; libraries such as modAL, small-text and Baal implement most standard strategies.

Limitations and common mistakes

Active learning does not always beat random sampling. Several benchmark studies on deep networks report that well-tuned random selection with strong data augmentation is a surprisingly hard baseline, especially once the labeled set grows large.

  • Sampling bias: the labeled set over-represents boundary cases, so class priors and calibration can drift.
  • Model dependence: data selected for one architecture may help a different model less.
  • Outlier attraction: pure uncertainty sampling can repeatedly select corrupted or irrelevant items.
  • Cold start: with very few labels, the model’s uncertainty is a poor guide to value.
  • Hidden cost: hard items take annotators longer, so savings in item count may not equal savings in hours.

Practitioners therefore measure cost in annotator time, keep a random control arm when possible, and monitor label noise on queried items, which is typically higher than on randomly drawn ones.

Stripped to the essentials

Labeling data by hand is slow and costly. Active learning lets the model help decide what to label next. It looks at the unlabeled items and points to the ones that confuse it most.

Think of a student preparing for an exam. Rereading easy chapters adds little. Asking a teacher about the hardest questions helps far more. Active learning works the same way. The key takeaway is simple: label the right examples, not more examples, and the model learns faster for the same budget.

Where it is applied

A hospital imaging group wants a model that flags suspicious lung nodules in chest CT scans. It holds 40,000 unlabeled scans, and each radiologist review takes several minutes, so labeling everything is out of reach. The team labels a random seed set of 500 scans and a separate random test set of 1,000 scans.

Each week, the current model scores the remaining pool, and a hybrid strategy selects 200 uncertain but diverse scans for review. After twelve rounds, about 2,900 labeled scans in total, the model matches the sensitivity that an earlier randomly sampled project reached with roughly twice as many labels. The outcome is a shorter review schedule for the radiologists, along with a documented record of which hard cases shaped the model.