Wednesday, October 14, 2026
HomeData ScienceActive Learning – Query Strategies, Annotation Efficiency and Sample-Efficient ML

Active Learning – Query Strategies, Annotation Efficiency and Sample-Efficient ML

Table of Content

📋 KEY INSIGHTS

  • Active learning is the machine learning paradigm where the model selects which examples it wants to be labelled next, rather than learning from a passively collected, uniformly sampled dataset. By querying the most informative examples, active learning achieves the same model performance as passive learning with dramatically fewer labelled examples β€” often 5–20Γ— reduction in annotation cost.
  • Uncertainty sampling β€” querying the examples the current model is least confident about β€” is the simplest and most widely used active learning strategy. For binary classifiers, this means querying examples with predicted probability closest to 0.5. For multi-class models, it means querying examples with the lowest max class probability, highest prediction entropy, or smallest margin between the top two class scores.
  • Query-by-committee (QBC) runs a committee of diverse models and queries examples where the committee members disagree most. This explicitly targets the version space β€” the region of model space consistent with all labelled data so far β€” and reduces it fastest by querying where different models make different predictions.
  • Active learning is most valuable when labelling is expensive (medical annotation by expert radiologists, legal document classification, scientific measurement), when unlabelled data is abundant and cheap, and when the target distribution is skewed (rare events, long-tail classes) so that uniform random sampling would yield few informative examples.
  • Pool-based active learning β€” selecting queries from a large fixed pool of unlabelled examples β€” is the dominant paradigm in NLP and computer vision, where large unlabelled corpora exist. Stream-based active learning β€” deciding whether to label each incoming example in real time β€” is more appropriate for sensor and streaming data scenarios.
  • Core-set selection and batch mode active learning select multiple examples per iteration, which is essential for practical deployment: labelling is typically done in batches (e.g., 100 examples sent to annotators per day), not one at a time. Greedy core-set selection (maximising coverage of the unlabelled pool) is the standard approach for batch queries that balance informativeness and diversity.

Labelled training data is often the most expensive component of an ML system β€” not compute, not infrastructure, and not algorithmic development. Expert annotation for medical imaging, legal document classification, or scientific measurement can cost Β£5–50 per example, and production-quality models frequently require tens of thousands of labelled examples. Active learning addresses this bottleneck by making the model an active participant in the data collection process: rather than labelling a random sample of the available data, the model identifies which unlabelled examples would be most informative to label and requests annotation for those examples specifically. The result is the same (or better) model performance at a small fraction of the annotation cost. Active learning has become a standard practice in computational biology, clinical NLP, computer vision, and any domain where expert annotation is the rate-limiting step in ML development. This guide covers the core query strategies, practical active learning loops, the connection to semi-supervised and self-supervised learning, and the real-world considerations that determine whether active learning pays off in practice.

The Active Learning Loop and Query Strategies

The active learning loop has four steps that repeat until the annotation budget is exhausted or performance plateaus: (1) train a model on all currently labelled data; (2) use the model to score all unlabelled examples by their informativeness; (3) select the top-k examples by informativeness score and send them to the oracle (human annotator) for labelling; (4) add the newly labelled examples to the training set and return to step 1. The choice of informativeness score β€” the query strategy β€” is the central design decision.

Uncertainty sampling is the most intuitive and most widely used strategy: query the examples the current model is least certain about, because these are the examples that carry the most information about the decision boundary. For a binary classifier, uncertainty is maximised when the predicted probability is closest to 0.5 β€” the model cannot decide between the two classes. For multi-class models, three formalisations are common: (a) least confidence β€” query the example with the lowest max class probability max_c P(Ε·=c|x); (b) margin sampling β€” query the example with the smallest difference between the top two class probabilities P(Ε·=c₁|x) βˆ’ P(Ε·=cβ‚‚|x); (c) entropy sampling β€” query the example with the highest prediction entropy βˆ’Ξ£_c P(c|x) log P(c|x). Entropy sampling is the most principled but computationally equivalent for well-calibrated models β€” and model calibration matters here: uncertainty sampling only works as intended when the predicted probabilities are well-calibrated, not just discriminative. Our Bayesian statistics guide covers probability calibration in depth.

Query-by-committee (QBC) trains an ensemble of models on the current labelled set (using different algorithms, different random seeds, or bootstrap resampling β€” see our ensemble methods guide) and queries examples where committee members disagree. Vote entropy β€” the entropy of the distribution of committee predictions across classes β€” is the standard disagreement measure. QBC is theoretically more principled than uncertainty sampling because it targets the version space directly, but it is more computationally expensive (multiple models must be trained and scored at each iteration). Gradient boosting ensembles provide a natural committee for tabular data active learning; dropout-based approximate Bayesian inference (MC Dropout) provides a committee of neural networks at low overhead by running multiple forward passes with dropout enabled at inference time.

Query StrategyInformativeness ScoreStrengthsWeaknessesBest For
Least confidence1 βˆ’ max_c P(c|x)Simple, fastIgnores runner-up classesBinary classification
Margin samplingP(c₁|x) βˆ’ P(cβ‚‚|x)Considers top-2Misses tail uncertaintyMulti-class (few classes)
Entropy samplingβˆ’Ξ£ P(c|x) log P(c|x)Full distribution; principledNeeds calibrated probsMulti-class (many classes)
Query-by-committeeVote entropy across ensembleVersion-space principledExpensive (multiple models)When diversity signal available
Core-set selectionMax coverage of unlabelled poolBatch-mode; diverse queriesIgnores label informationLarge unlabelled pools, batch labelling
BADGEK-means++ on gradient embeddingsCombines uncertainty + diversityNeeds gradient accessDeep learning, NLP, CV

Active Learning for NLP and Computer Vision

man using silver iPad
Photo by stem.T4L on Unsplash

Active learning has seen its highest-impact applications in NLP and computer vision, where unlabelled data is abundant and cheap, but expert annotation is expensive and slow. In NLP classification tasks β€” sentiment analysis, intent detection, entity recognition β€” active learning typically reaches 90% of full-dataset performance with 20–30% of the labelled examples, substantially reducing annotation cost. The standard approach uses a fine-tuned language model (BERT, RoBERTa β€” see our Transformers guide) as the base classifier, with entropy sampling or BADGE (Batch Active learning by Diverse Gradient Embeddings) as the query strategy.

For computer vision tasks, active learning is particularly valuable for medical imaging (where radiologist annotation costs Β£20–100 per image), satellite imagery (where labels require expert geographic knowledge), and industrial inspection (where labelling requires physical domain expertise). Core-set selection and transfer learning combine naturally: a pre-trained ResNet backbone produces informative feature representations of unlabelled images; core-set selection on these features identifies a maximally diverse set of images to annotate; the labelled subset is then used to fine-tune the backbone. This combination achieves near-full-dataset performance with 5–10% of the annotations in many benchmark tasks.

The practical workflow matters as much as the query strategy. Active learning loop latency β€” the time between annotation batches β€” affects how quickly the model improves. Tools like Label Studio (annotation interface), Prodigy (annotation with active learning built in), and Scale AI (crowdsourced annotation) integrate with active learning frameworks. The annotation pipeline is a software engineering challenge as much as a statistical one, and our MLOps guide covers the infrastructure for managing annotation queues, tracking annotator agreement, and versioning labelled datasets as first-class ML artefacts.

Connections to Semi-Supervised and Self-Supervised Learning

Active learning does not exist in isolation β€” it is most powerful when combined with techniques that extract value from unlabelled data alongside targeted annotation. Semi-supervised learning methods (label propagation, pseudo-labelling, consistency regularisation) train on both labelled and unlabelled data simultaneously, using the unlabelled data to regularise the model and fill in the representation space between labelled examples. Combining active learning (selecting which examples to label) with semi-supervised learning (using unlabelled examples to improve the model between labelling rounds) produces state-of-the-art sample efficiency on benchmark tasks.

Self-supervised learning β€” pre-training on unlabelled data using self-generated supervision signals (masked language modelling for text, contrastive learning for images) β€” is perhaps the most powerful complement to active learning. A self-supervised pre-trained model (BERT, SimCLR, DINO) already extracts rich, semantically meaningful representations before seeing any labelled data. Active learning on top of such a backbone requires far fewer labelled examples to reach a given performance level, because the backbone already encodes much of the structure needed for the task. Our word embeddings guide covers the self-supervised pre-training objectives that produce the representations used in NLP active learning, and our transfer learning guide covers how pre-trained representations are fine-tuned efficiently on small labelled datasets β€” the exact scenario active learning targets.

The synthetic data generation perspective on data efficiency is complementary: active learning reduces the number of real labelled examples needed, while synthetic data augmentation increases the effective size of the labelled set. Used together β€” generating synthetic training examples near the decision boundary identified by active learning β€” they can further improve sample efficiency, particularly for rare classes and tail distributions. Our feature engineering guide covers the data preprocessing and transformation steps that precede active learning in a typical ML pipeline.

✦ SUMMARIZE THIS ARTICLE WITH AI

Model calibration β€” essential for uncertainty-based query strategies β€” is covered in our Model Evaluation guide. Ensemble methods for query-by-committee β€” random forests, gradient boosting, stacking β€” are in our Ensemble Methods guide and Gradient Boosting guide. Transfer learning and fine-tuning pre-trained models that serve as active learning backbones are in our Transfer Learning guide. Transformers (BERT, RoBERTa) used as base classifiers in NLP active learning are in our Transformers guide. Synthetic data augmentation as a complement to active learning is in our Synthetic Data Generation guide.

Leave feedback about this

  • Rating

Durgesh Kekare
Durgesh Kekarehttps://www.dataexpertise.in
Durgesh Kekare is a data science educator and founder of DataExpertise.in. With expertise in Python, machine learning, and analytics, he helps 10,000+ learners break into data careers.

Latest Posts

List of Categories