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.
| Component | Role in the loop | Typical setting |
|---|---|---|
| Seed set | Gives the first model a starting point | 50 to 1,000 labeled items |
| Unlabeled pool | Supplies candidates for labeling | Thousands to millions of items |
| Query strategy | Ranks candidates by expected value | Uncertainty, diversity or hybrid |
| Oracle | Provides the true label | Human expert or annotation team |
| Batch size | Sets items labeled per round | 10 to several thousand |
| Stopping rule | Ends the loop | Budget, plateau or confidence threshold |
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 family | Selection signal | Main strength | Main weakness |
|---|---|---|---|
| Uncertainty sampling | Low confidence, margin or entropy | Simple and cheap | Picks outliers and redundant items |
| Query by committee | Disagreement among models | Robust uncertainty estimate | Needs several trained models |
| Diversity sampling | Coverage of the feature space | Avoids redundant batches | May ignore hard boundary cases |
| Hybrid methods | Uncertainty plus diversity | Strong batch performance | More tuning and compute |
| Expected error reduction | Simulated effect on future error | Directly targets accuracy | Very expensive at scale |
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 scenarios and related labeling methods
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.
| Approach | Who chooses items | Label source | Typical goal |
|---|---|---|---|
| Active learning | The model | Human oracle | Fewer labels for the same accuracy |
| Random labeling | Chance | Human annotators | Unbiased sample of the data |
| Human-in-the-loop labeling | Workflow designer | Humans reviewing model output | Faster, verified annotation |
| Programmatic labeling | Rules or heuristics | Labeling functions | Labels at scale without manual work |
| Semi-supervised learning | No selection | Model pseudo-labels | Use unlabeled data directly |
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.
| Situation | Recommended choice | Reason |
|---|---|---|
| Very small seed set | Start with diversity sampling | Early uncertainty estimates are unreliable |
| Large annotation team | Large batches with a hybrid strategy | Keeps annotators busy without redundancy |
| Severe class imbalance | Uncertainty plus class-aware sampling | Finds rare classes faster |
| Noisy or subjective labels | Multiple annotators per queried item | Hard items attract more disagreement |
| Expensive retraining | Fewer, larger rounds | Reduces compute per labeled item |
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.