Second Order PAC-Bayesian Bounds for the Weighted Majority Vote

Andrés R. Masegosa, Stephan Sloth Lorenzen, Christian Igel, Yevgeny Seldin

Abstract

In ensemble learning, the weighted majority vote is a cornerstone technique, yet theoretical risk bounds often fail to guide effective optimization. This paper introduces a second-order PAC-Bayesian analysis that incorporates classifier correlations through "tandem loss." Unlike traditional first-order bounds that encourage weight concentration and degrade test performance, the proposed second-order bounds are amenable to efficient minimization while preserving ensemble diversity. We evaluate these bounds on Random Forests across 17 datasets, demonstrating superior tightness and optimization stability.

Introduction

Ensemble methods like Bagging, Boosting, and Random Forests rely on the "cancellation of errors" effect: if individual classifiers make independent errors, the majority vote is likely to be correct. However, theoretically bounding the risk of such a vote is challenging. Standard "first-order" PAC-Bayesian bounds typically relate the majority vote error to twice the error of a randomized (Gibbs) classifier.

While mathematically convenient, this approach suffers from two major flaws. First, it is overly pessimistic because it ignores the correlations between classifiers. Second, it fails during optimization; minimizing a first-order bound often leads to a "winner-take-all" scenario where all weight is placed on a few top-performing trees, destroying the ensemble's diversity and increasing actual test error.

Methodology: Second-Order Analysis

The authors propose a novel analysis based on a second-order Markov’s inequality. At the heart of this approach is the tandem loss—the probability that two hypotheses drawn independently from the ensemble will both err on the same sample.

Key technical contributions include:

  • The Oracle Bound: Proving that the expected loss of a majority vote is bounded by four times the expected tandem loss.
  • Empirical PAC-Bayesian Bounds: Converting theoretical oracle bounds into practical empirical bounds that can be calculated from data.
  • Binary Specialization (DIS Bound): For binary classification, the tandem loss can be expressed using the "disagreement" between classifiers. This version can leverage unlabeled data to produce tighter estimates, though it requires a massive amount of unlabeled data (roughly $m > n^2$) to outperform the general version.
  • Optimization Procedure: A gradient-based alternating minimization procedure is used to optimize the weights ($\rho$) and confidence parameters simultaneously.

Key Insights: Diversity and the Winner-Take-All Trap

The primary failure mode of first-order (FO) bounds is their inability to reward diversity. Because they ignore correlations, the optimizer perceives the best strategy as picking the single best tree. The second-order TND bound prevents this by recognizing the value of trees that make different errors.

Comparison of weight distributions ρ for FO and TND optimization. FO (green) concentrates weight on a few trees, while TND (blue) maintains diversity.

As shown in Figure 1, while FO optimization concentrates weight on a tiny fraction of trees, TND optimization "hedges its bets," maintaining a broad distribution of weights across the ensemble. This preservation of diversity is critical for the robustness of the final model.

Experimental Evaluation

The authors evaluated their bounds using Random Forests (100 trees) across 17 diverse datasets from the UCI and LibSVM repositories. The Tandem (TND) bound was found to be the tightest for 5 out of 16 datasets and generally outperformed previous "C-bounds" in binary cases.

Test loss ratio comparison: FO optimization (green) leads to significant performance degradation, whereas TND (blue) remains stable.

The most significant result is the "optimization safety" of the TND bound. As illustrated in Figure 6, minimizing the FO bound led to a massive degradation in test performance across almost all datasets. In contrast, minimizing the TND bound consistently maintained or slightly improved the ensemble's test performance, with the ratio of optimized loss to uniform loss remaining near or below 1.

Conclusion and Future Work

While the second-order approach offers significant advantages in tightness and optimization stability, it does come with trade-offs. Calculating the $M \times M$ matrix of empirical tandem losses is more computationally expensive than first-order methods. Additionally, for Random Forests, the TND bound requires looking at the overlap of Out-of-Bag (OOB) sets between pairs of trees, which can be small and lead to higher variance in the estimate.

Future work may explore reducing the computational complexity for larger ensembles and further investigating the utility of unlabeled data in semi-supervised settings where the ratio of unlabeled to labeled data is extremely high.

Summary updated

BibTeX
@inproceedings{masegosa2020second,
  author = {Andrés R. Masegosa and Stephan Sloth Lorenzen and Christian Igel and Yevgeny Seldin},
  title = {{Second Order PAC-Bayesian Bounds for the Weighted Majority Vote}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure