Active learning
How active learning lets a model choose which unlabeled examples to have labeled next, reaching high accuracy with far fewer expensive labels in medical imaging, chemistry, materials and text tasks.
What it is
Active learning is a machine-learning approach in which the learning algorithm chooses which data points should be labeled next, instead of receiving a fixed, randomly selected labeled set. It suits problems where unlabeled data are plentiful but labels are expensive, slow or need an expert: radiologists marking tumors, chemists running a calculation or experiment, geologists classifying samples, annotators labeling documents. The model is trained on a small labeled set, looks at the large pool of unlabeled examples, picks those it expects to be most informative, asks an oracle (a human expert, an experiment or an accurate simulation) for their labels, retrains, and repeats. A well-chosen set of 500 labels can sometimes match the performance of 5,000 random ones. Active learning is a core idea in data-efficient machine learning, human-in-the-loop systems, and in building training sets for machine-learned interatomic potentials (see machine-learned interatomic potentials).
It answers questions such as: Which samples should be labeled first to improve this model the most? When is the labeled set large enough? How can an annotation budget be spent efficiently? Where does the model need more data, which compositions, images or conditions are poorly covered? Active learning is related to, but different from, Bayesian optimization (see Bayesian optimization): active learning aims to learn the whole function well, whereas optimization aims to find its best point.
Fundamentals
Scenarios and the learning loop
There are three main settings. In pool-based active learning (the most common), a large pool of unlabeled examples exists, and the algorithm selects from it. In stream-based selective sampling, examples arrive one at a time and the algorithm decides immediately whether to request a label. In membership query synthesis, the learner creates new inputs to be labeled, which is natural for experiments or simulations where any condition can be run, but may generate unnatural inputs. The loop: (1) label a small seed set, chosen randomly or by clustering for diversity; (2) train a model; (3) score all unlabeled examples with a query strategy; (4) label the top-scoring examples (a single point or a batch of 10 to 1,000); (5) add them to the training set, retrain, evaluate and repeat until the labeling budget is spent or performance plateaus.
Query strategies
- Uncertainty sampling: query examples where the model is least sure. For classification this can be the least confident prediction (1 − maxk pk), the smallest margin between the top two classes, or the highest predictive entropy H = −Σk pk log pk. For regression it is the highest predictive variance, such as that from a Gaussian process (see Gaussian processes) or an ensemble.
- Query by committee: train several models (an ensemble or different initializations) and query points on which they disagree most, measured by vote entropy or variance. This is widely used in atomistic simulation, where disagreement among potentials flags unreliable configurations.
- Bayesian methods (BALD): choose points maximizing the mutual information between the prediction and the model parameters, which separates model (epistemic) uncertainty from inherent noise. Monte Carlo dropout and deep ensembles supply the estimates for neural networks.
- Diversity and representativeness: core-set selection and clustering-based methods choose points that cover the data distribution, avoiding redundant near-duplicates in a batch. Modern batch methods (BatchBALD, BADGE) combine uncertainty and diversity.
Practical challenges
The cold-start problem: with very few labels the model’s uncertainty is unreliable, so a diverse seed set matters. Sampling bias: actively chosen training sets are not representative of the data distribution, which can bias the model and make evaluation tricky, so a separate randomly sampled test set must be kept for honest performance estimates. Outliers and noise: uncertainty sampling can repeatedly select ambiguous, mislabeled or outlying samples, so robust strategies and label-quality checks help. Batch selection is needed in practice because labeling is usually done in rounds, and without diversity a batch may contain many similar points. Stopping: stop when the learning curve flattens, when estimated uncertainty on the pool is small, or when the budget is spent.
Evaluation and tools
Active learning is evaluated with learning curves: model performance (accuracy, F1, error) against number of labels, for each strategy, always compared with random sampling as the baseline, repeated over multiple seeds. The area under the learning curve and the number of labels needed to reach a target performance summarize the gain. Be aware that active learning does not always beat random sampling, particularly with strong data augmentation, pretrained models or very small budgets. Practical aspects include annotation interface quality, annotator disagreement, the cost of different labels (cost-sensitive querying), and combining with semi-supervised and self-supervised learning, which use unlabeled data directly (see transfer learning).
Typical applications and limits
Applications: labeling medical and microscopy images, selecting molecules or materials for costly quantum calculations or experiments, building training sets for interatomic potentials, classifying documents and remote sensing scenes, and selecting sensor locations. Limits: gains vary by task, uncertainty estimates may be poor for deep networks, sampling bias complicates evaluation, and the loop requires an available oracle with fast turnaround.
Basic operation
- Collect an unlabeled pool. Gather the data that could be labeled and set a labeling budget.
- Label a seed set. Choose a small, diverse set and have it labeled.
- Train a model. Fit it on the labeled data and keep a random test set aside.
- Score the pool. Compute uncertainty, disagreement or diversity for each unlabeled item.
- Select a batch. Pick the most informative and diverse items.
- Get labels. Have the oracle label them, and check label quality.
- Retrain and evaluate. Track the learning curve versus random sampling.
- Collect the output. You obtain a labeled data set and a trained model; query strategies and stopping rules are covered in the video.
Good practice
- Keep a random test set. Never evaluate only on actively selected data.
- Compare with random sampling. Show that the strategy helps.
- Select diverse batches. Avoid labeling near-duplicates.
- Check label quality. Ambiguous points attract queries and errors.
- Use a good seed set. Poor initial coverage misleads the loop.
- Respect annotators and data rules. Do not send sensitive data to outside labelers without approval, give experts reasonable workloads, and record how samples were chosen so that bias can be audited.
Key terms
- Oracle — the source of labels, such as an expert, an experiment or a simulation.
- Query strategy — the rule used to choose which example to label next.
- Uncertainty sampling — selecting examples the model is least sure about.
- Query by committee — selecting examples on which several models disagree.
- Pool-based learning — selecting from a fixed collection of unlabeled data.
- Learning curve — a plot of performance against the number of labels.
- Cold start — the difficulty of selecting well when almost no labels exist.
Video coming soon
About five minutes on Active learning: how it works in detail, how the data is acquired, and how it is analyzed.
More in 4.3 AI and Machine Learning
- Regularized linear models
- Decision trees and random forests
- Gradient boosting (XGBoost)
- Support vector machines
- k-NN
- k-means
- Gaussian processes
- Neural networks
- CNNs
- RNN/LSTM
- Transformers
- Autoencoders
- GANs
- Diffusion models
- Graph neural networks
- Reinforcement learning
- Transfer learning
- Federated learning
- Explainable AI (SHAP, LIME)
- Physics-informed neural networks
- Bayesian optimization
- Active learning
- Symbolic regression
- Genetic algorithms and particle swarm optimization
- Dimensionality reduction (t-SNE, UMAP)
- NLP and large language models
- Retrieval-augmented generation
- Computer vision (detection, segmentation)
- Anomaly detection
- Machine-learned interatomic potentials
- AutoML
