Stacked Generalizations: When Does It Work?

Kai Ming Ting, Ian H. WittenIJCAI 1997

Introduction

Stacked generalization, or "stacking," was introduced by David Wolpert in 1992 as a framework for combining multiple machine learning models to improve predictive accuracy. While successful in regression, its application to classification has historically been viewed as a "black art" due to a lack of standardized practices regarding meta-learner inputs and algorithm selection. This paper demystifies the process, providing a principled approach to making stacking work reliably for classification tasks.

Methodology

The researchers propose a two-level architecture consisting of Level-0 base learners and a Level-1 meta-learner.

  • Base Learners: Three diverse algorithms were employed: C4.5 (decision trees), Naive Bayes (NB), and IB1 (a variant of k-nearest neighbors).
  • Meta-Learner: Multi-response Linear Regression (MLR) was identified as the most effective candidate for the meta-learner.

The critical innovation lies in the input representation for the meta-learner. Rather than using predicted class labels, the authors utilize class probabilities. This allows the meta-learner to account for the "confidence" of each base model. To prevent overfitting, Level-1 data is generated using J-fold cross-validation, ensuring the meta-learner is trained on predictions for instances that were not part of the base models' training sets.

Experimental Setup

The methodology was evaluated across 10 diverse datasets, including both artificial and real-world examples from the UCI Repository.

Table 1: Characteristics of the 10 datasets used in the study, ranging from small real-world sets to large artificial ones.

These datasets vary significantly in size (from 368 to 20,000 samples) and complexity, providing a robust benchmark for assessing the scalability and generalizability of the stacking approach.

Key Insights

  • The Power of Probabilities: Using class probabilities instead of labels provides essential information about model certainty, allowing the MLR meta-learner to weigh base models more effectively.
  • MLR as a Meta-Learner: MLR consistently outperformed other candidates like C4.5 or NB when acting as a meta-learner, as it excels at learning optimal weighted combinations of base model outputs.
  • Interpretability via Constraints: While non-negativity constraints on MLR coefficients did not significantly boost accuracy, they greatly enhanced model interpretability. These constraints reveal which base models dominate the decision-making process for specific classes.
  • Scalability: The benefits of stacking are most pronounced on larger datasets, where cross-validation yields more stable estimates for the meta-learner.

Results

The performance of MLR-based stacking (using probabilities) was compared against BestCV (the single best base model selected via cross-validation) and simple majority voting.

Table 2: Comparison of error rates between the best individual model (BestCV) and various stacking configurations (M and M').

As shown in the results, the MLR stacking method (specifically configuration M') outperformed the best individual base model in 9 out of 10 datasets and achieved a tie in the remaining case. Compared to majority voting, MLR won in 7 cases and tied in 3, often with statistically significant margins.

Conclusion and Future Work

This study transforms stacking from an unpredictable technique into a reliable tool for classification. By using MLR with class probabilities, practitioners can consistently achieve better results than any single base model. While MLR's linear nature may have limitations in capturing highly non-linear relationships between base predictions, its success here suggests it is a powerful baseline. Future research may explore extending these principles to other ensemble methods like bagging and arcing.

Summary updated

BibTeX
@inproceedings{ting1997stacked,
  author = {Kai Ming Ting and Ian H. Witten},
  title = {{Stacked Generalizations: When Does It Work?}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1997},
}
Figure