Margin distribution and structural diversity guided ensemble pruning

Yi-Xiao He, Yu-Chang Wu, Chao Qian, Zhi-Hua ZhouMachine Learning 2024

Abstract

Ensemble methods are among the state-of-the-art learning techniques, yet their performance often depends on effective pruning to manage size and improve generalization. Traditional pruning methods frequently combine evaluation criteria like diversity or margin with validation error simultaneously, which can obscure the individual impact of these metrics and lead to overfitting on validation data. This paper introduces Decoupled Ensemble Pruning (DEP), a framework that separates the optimization of margin distribution and structural diversity from validation error optimization into two distinct stages. Information-theoretic analysis demonstrates that optimizing the "combination distribution" of base learners enhances generalization. Experimental results across 30 datasets show that DEP outperforms existing state-of-the-art ensemble pruning methods.

Introduction

Ensemble learning, which combines multiple base learners like decision trees, is a cornerstone of modern machine learning. However, the "more is better" approach often hits a point of diminishing returns. Ensemble pruning seeks to identify a smaller subset of learners that maintains or even improves upon the full ensemble's performance. While criteria like diversity and margin are commonly used, they are typically applied alongside validation error in a single optimization step. This "nested" approach makes it difficult to determine if diversity truly aids generalization or if the model is simply overfitting to the validation set.

The Decoupled Ensemble Pruning (DEP) Framework

The core innovation of DEP is the decoupling of the pruning process into two sequential stages. This separation ensures that the pool of learners is first refined for quality and diversity before the final selection based on validation performance.

The two-stage Decoupled Ensemble Pruning (DEP) framework.
  1. Stage 1: Distribution Optimization. Working exclusively on the training set, DEP selects a subset (typically half) of the initial $n$ learners. This stage employs a multi-objective optimization focusing on maximizing the margin mean (the confidence of predictions) and structural diversity.
  2. Stage 2: Validation-Error-Based Pruning. The refined subset from Stage 1 is then pruned using the validation set. This stage focuses on a single objective: minimizing the validation error to produce the final pruned ensemble.

A key technical contribution within this framework is the introduction of Feature Contribution Diversity. Unlike standard behavioral diversity, which only considers model outputs, this metric examines the internal logic of decision trees—specifically, how different features contribute to predictions at each node. This allows the algorithm to distinguish between models that might produce similar outputs but rely on different underlying patterns.

Theoretical Insights

The authors utilize information theory to show that generalization performance is intrinsically linked to the "combination distribution"—the distribution of errors across all possible subsets of base learners. By optimizing for margin and structural diversity in the first stage, DEP effectively shifts this distribution, creating a "heavy tail" of high-performing combinations. This preparation makes the subsequent validation-based pruning significantly more likely to find a globally optimal subset.

Experimental Evaluation

The DEP framework was rigorously tested against seven state-of-the-art pruning methods (such as Kappa, DREP, and MDEP) across 30 UCI datasets, including 20 binary and 10 multi-class classification tasks.

  • Superior Performance: DEP achieved the best average rank across all datasets compared to existing methods.
  • Statistical Significance: Wilcoxon rank-sum tests confirmed that DEP's improvements are statistically significant compared to most competitors on the majority of datasets.
  • Ablation Success: These tests confirmed that the two-objective approach in Stage 1 (combining margin and diversity) is superior to using either metric in isolation or selecting models randomly.

Conclusion and Future Work

DEP offers a robust solution to the challenges of ensemble pruning by decoupling the optimization objectives. While the current implementation of structural diversity is tailored for decision trees, the framework itself is generalizable. Future work may involve developing structural diversity metrics for other model types, such as neural networks, and exploring adaptive methods for determining the optimal subset size in the first stage. This research also holds promise for "Learnware" ecosystems, where efficient ensemble pruning is vital for reassembling pre-trained models for new tasks.

Summary updated

BibTeX
@article{he2024margin,
  author = {Yi-Xiao He and Yu-Chang Wu and Chao Qian and Zhi-Hua Zhou},
  title = {{Margin distribution and structural diversity guided ensemble pruning}},
  journal = {Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=4v3C2kJDyu},
}
Figure