Issues in Stacked Generalization

Kai Ming Ting, Ian H. WittenarXiv 2011 · DOI

Abstract

Stacked generalization is a general method of using a high-level model to combine lower-level models to achieve greater predictive accuracy. In this paper we address two crucial issues which have been considered to be a 'black art' in classification tasks ever since the introduction of stacked generalization in 1992 by Wolpert: the type of generalizer that is suitable to derive the higher-level model, and the kind of attributes that should be used as its input. We find that best results are obtained when the higher-level model combines the confidence (and not just the predictions) of the lower-level ones. We demonstrate the effectiveness of stacked generalization for combining three different types of learning algorithms for classification tasks. We also compare the performance of stacked generalization with majority vote and published results of arcing and bagging.

Introduction

While ensemble methods like Bagging and Boosting were gaining traction in the late 1990s, "Stacked Generalization"—introduced by David Wolpert in 1992—remained something of a "black art." Researchers understood that a second-stage model could learn to optimally combine first-stage models, but clear guidelines were lacking on two critical fronts:

  1. The Input: What information should base models pass to the meta-model? Should it be just the predicted class, or richer information like confidence scores?
  2. The Algorithm: What specific learning algorithm is best suited for the meta-model (the "Level-1 generalizer")?

This paper aims to transform stacking from a heuristic approach into a principled technique for improving classification accuracy.

Methodology

The authors evaluate a two-level architecture designed to minimize bias and variance through model combination.

The two-level architecture of stacked generalization using cross-validation to generate Level-1 training data.

Model Architecture

  • Level-0 (Base Learners): Three diverse algorithms are employed: C4.5 (decision trees), Naive Bayes (NB), and IB1 (a variant of k-Nearest Neighbors).
  • Level-1 (Meta-Learner): Four candidates are compared for the combiner role: C4.5, IB1, NB, and Multi-response Linear Regression (MLR).

Input Representations

A key innovation of this study is the distinction between two types of meta-data:

  • Model $M$: The meta-model is trained on the predicted class labels of the Level-0 models.
  • Model $M'$: The meta-model is trained on the class probability distributions (confidence scores) produced by the Level-0 models.

To prevent the meta-model from simply memorizing training data, $J$-fold cross-validation is used to generate the Level-1 training set, ensuring that the meta-learner generalizes to unseen instances.

Experimental Setup

The study utilizes 10 diverse datasets from the UCI Repository to ensure robust evaluation. These include artificial benchmarks like Led24 and Waveform, as well as real-world datasets like Horse, Credit, Vowel, and Coding. The datasets vary in size (from 368 to 20,000 instances) and attribute types (nominal, binary, and continuous).

Key Insights

The Power of Confidence

The most significant finding is that class probabilities ($M'$) are far more informative than hard labels ($M$). By passing probability distributions to the meta-learner, the system can weigh a "confident" prediction more heavily than an uncertain one.

MLR as the Optimal Combiner

Among the tested meta-learners, MLR consistently improved performance. Its design is well-suited for handling continuous inputs (probabilities) and provides a robust, linear method for pooling evidence from diverse base learners.

Interpretability and Constraints

While non-negativity constraints (forcing coefficients to be $\ge 0$) are essential in regression stacking, the authors found they do not significantly improve accuracy in classification. However, they do enhance interpretability, as positive weights clearly indicate the meta-model's "trust" in specific base learners for certain classes.

Results and Discussion

The experimental results demonstrate that stacking with MLR using class probabilities ($M'$) is a highly effective strategy.

Comparison of error rates across datasets for different Level-1 models and input types. Bold values indicate the best performance.
  • Stacking vs. Selection: Stacking with MLR ($M'$) outperformed "BestCV" (the strategy of picking the single best model via cross-validation) in 9 out of 10 datasets.
  • Stacking vs. Voting: MLR-based stacking outperformed simple Majority Voting in 8 out of 10 cases, with the most significant gains occurring when base models exhibited high variance.
  • Efficiency: MLR is computationally efficient. For the Nettalk dataset, MLR required only 2.9 seconds to train, matching the error rate of a neural network that took nearly 80 minutes to train.

Conclusion

Stacked generalization is most effective when the meta-model has access to the confidence scores of base learners and utilizes a linear combiner like MLR. While the method struggles slightly on very small datasets where cross-validation estimates are noisy, it remains a competitive and efficient alternative to Bagging and Boosting. Future work may explore more complex meta-learners, such as multinomial logit models, to further refine the combination process.

Summary updated

BibTeX
@misc{ting2011issues,
  author = {Kai Ming Ting and Ian H. Witten},
  title = {{Issues in Stacked Generalization}},
  year = {2011},
  eprint = {1105.5466},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1105.5466},
}
Figure