- Introduced by
- Wolpert, D. H. (stacking); Settles, B. (active learning survey)
- Year
- 1992–2012
- Type
- Hybrid (active learning + stacked ensemble)
- Family
- Machine learning
What does it do?
Active Learning Stacking Ensemble couples an active learning query loop with stacked generalization.
Starting from a small labeled seed set and a pool of unlabeled data, the model repeatedly selects the unlabeled instance it is least certain about for labeling, then retrains a stack of base learners whose outputs are combined by a meta-learner. The method is aimed at settings where obtaining labels is the main cost.
The intuition behind the method
Labeling data is expensive, so the question is which unlabeled examples are worth a label. By measuring uncertainty or disagreement among the base learners of a stacking ensemble, the system can direct the human annotator to the examples where the ensemble is most confused. Each newly labeled point is fed back into the stacking pipeline, updating both the base learners and the meta-learner. The aim is to spend the labeling budget on the examples most likely to change the ensemble, rather than on a randomly chosen sample.
History
David Wolpert introduced stacked generalization in 1992, describing how diverse base learners can be combined through a meta-learner. Burr Settles' 2012 book Active Learning surveys the framework of selecting informative examples for labeling. Active query strategies were applied to stacking architectures later, and this combination does not have a single established originator.
When to use it
Choose this approach when labels are the binding constraint: the labeled set is small, labeling is expensive or slow, and a sizeable unlabeled pool is available to select candidates from. Settings where expert time is the bottleneck, such as medical annotation or legal document classification, are commonly proposed for it. It suits tabular or structured data and a set of base learners that model the data in different ways. Do not use it when labeling is cheap, since standard stacking is the simpler alternative. Whether it improves accuracy over standard stacking depends on the data, so compare the two on your own task before adopting it. Avoid it when the unlabeled pool is small, because there is little to choose from, or when predictions are needed inside the query loop, because retraining the stack after each query is computationally expensive.
Limitations and considerations
- Retraining the full stacking ensemble after each query is computationally costly for large base learner sets.
- Query strategy design is non-trivial: a poor acquisition function may select redundant or uninformative examples.
- The meta-learner requires enough labeled data to learn reliable combination weights; with very few labels, meta-features are noisy.
- Feedback latency from a human oracle can make the iterative loop slow in practice.
- Performance depends heavily on base learner diversity and the chosen meta-learner.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Candidates are chosen by the model, so labeling effort can go to examples where the current ensemble is uncertain rather than to a random sample.
- When the base learners disagree, query-by-committee scoring gives a selection signal without extra labels, because the stack already produces several predictions for each candidate.
- With a linear meta-learner, a base learner that performs poorly overall contributes less to the final prediction.
- The framework can use any base learners and meta-learner that produce predictions for the candidate instances, subject to the retraining cost noted under limitations.
- Labeling is planned in rounds with a fixed query budget, which makes the annotation cost easier to track.
Applications
- Commonly proposed application areas: medical image or clinical record classification, legal document classification, scientific data labeling, and fraud detection where labels require manual investigation.
- Any tabular prediction task in which labels are costly and a large unlabeled pool exists.
How it works
How it works
A small seed set of labeled examples is used to fit initial base learners in the stack. The remaining data remain unlabeled in a candidate pool. This seed set defines the starting point for all subsequent active queries.
An acquisition function, such as prediction uncertainty, margin sampling, or query-by-committee disagreement across base learners, scores every unlabeled candidate. The instance with the highest informativeness score is selected for labeling. Margin sampling, for example, scores a candidate by how small the gap is between its two highest predicted class probabilities, so a small gap gives a high score. Query-by-committee scores a candidate by the disagreement among the base learners' predictions for it.
The selected instance is presented to a human annotator or an automated oracle, which assigns its true label. This labeled example is added to the training set for the next training round.
With the updated labeled set, each base learner (e.g., decision tree, SVM, logistic regression) is retrained. Out-of-fold predictions from the base learners on the training set form the meta-feature matrix used to train the meta-learner.
A meta-learner (commonly logistic regression or a linear model) is trained on the meta-features produced by the base learners. A linear meta-learner learns one weight per base learner, applied across the whole input space, so it sets how much each base learner contributes to the final prediction overall. This can reduce the influence of a base learner that performs poorly on average, but it cannot by itself capture a learner's weakness within one region of the input space. How much this helps depends on the data and on how well the meta-learner is fitted.
Steps 2–5 repeat for a fixed budget of queries or until model performance on a held-out validation set plateaus. The final stacking ensemble is the model trained on all accumulated labeled data.
Common pitfalls
- Using only a single base learner — this eliminates the ensemble diversity that makes active query signals reliable.
- Querying in large batches without retraining in between, which wastes the benefit of incremental feedback.
- Evaluating only on training data after each round rather than on a held-out validation set.
- Ignoring class imbalance when selecting queries, which can cause the active loop to oversample the majority class.
- Conflating the labeled seed set performance with the final model performance.
Frequently asked questions
Which query strategy works best with a stacking ensemble?
Query-by-committee, which measures disagreement among the base learners, is a natural fit because the base learners already form a committee. Uncertainty sampling on the meta-learner's output is also common and simpler to implement.
How many labeled examples do I need to start?
The seed set needs labeled examples from every class, so that each base learner has something to fit. The appropriate size depends on the number of classes, the base learners and the data. A practical check is whether validation performance improves over the first few query rounds.
Is it better to query one example at a time or in batches?
Single-query updates maximize informativeness but require retraining after every label, which is expensive. Batch-mode active learning selects a diverse batch of queries at once and retrains once per batch, offering a practical trade-off between cost and information gain.
Can I use deep learners as base models in the stack?
Yes, but retraining deep learners after every active query round is very costly. A common compromise is to freeze or fine-tune the base learners only periodically while running the query loop more frequently with the meta-learner.
How do I know when to stop querying?
Stop when validation performance plateaus across several rounds or when the labeling budget is exhausted. Acquisition scores can also show that the remaining candidates offer little information, but no fixed score threshold applies generally and the right cut-off depends on the data.
Related methods
Sources
Wolpert, D. H. (1992). Stacked generalization. Neural Networks, 5(2), 241–259.
Open DOI referenceSettles, B. (2012). Active Learning. Synthesis Lectures on Artificial Intelligence and Machine Learning. Morgan & Claypool Publishers.
Open DOI reference