Learning Stochastic Majority Votes by Minimizing a PAC-Bayes Generalization Bound

Valentina Zantedeschi, Paul Viallard, Emilie Morvant, Rémi Emonet, Amaury Habrard, Pascal Germain, Benjamin Guedj

Introduction

Ensemble methods, such as Random Forests or Boosting, are foundational to machine learning. They operate by combining many "weak" predictors (voters) into a single "strong" majority vote. While these methods are highly effective in practice, providing tight theoretical guarantees on their performance—specifically, how well they will generalize to unseen data—is notoriously difficult.

Existing frameworks, like PAC-Bayes theory, often struggle with Majority Votes. Most current approaches do not bound the risk of the majority vote directly. Instead, they rely on proxies (like the average error of a single voter) or oracle bounds that introduce loose constants, such as a "factor of two" penalty. This frequently results in "vacuous" bounds—theoretical limits that guarantee an error of less than 100%, which, while technically true, is practically useless. The core challenge is finding a bound that is both mathematically tractable to optimize and tight enough to reflect actual empirical performance.

This paper introduces a novel approach to training ensemble models by treating the weights of a Majority Vote (MV) classifier as random variables drawn from a Dirichlet distribution. By doing so, the authors derive a mathematically "clean" (differentiable and closed-form) generalization bound that can be minimized directly. This results in models that achieve state-of-the-art accuracy alongside remarkably tight, non-vacuous theoretical guarantees.

Methods: Stochastic Weighted Majority Vote

The authors propose a Stochastic Weighted Majority Vote. Instead of learning one fixed set of weights for the voters, the algorithm learns a distribution over those weights.

  1. The Dirichlet Trick: The weights are assumed to follow a Dirichlet distribution. This is the methodological "secret sauce" because Dirichlet distributions possess an aggregation property. This property allows the authors to prove that the total weight assigned to incorrect voters follows a simple Beta distribution.
  2. Closed-Form Risk: Thanks to the Beta distribution connection, the expected error of the stochastic majority vote can be expressed using the regularized incomplete beta function. Crucially, this expression is differentiable, allowing standard gradient descent to minimize it directly.
  3. Optimization: The paper provides two training methodologies:
  4. Exact: Minimizing the analytical formula derived from the Beta distribution.
  5. Monte Carlo (MC): A sampling-based approach for cases where the analytical form is computationally heavy or when using other distributions.
  6. PAC-Bayes Bound: This stochastic risk is then plugged into Seeger’s bound, one of the tightest classical PAC-Bayes bounds. The authors also extend this to work with "informed priors" (priors that have already seen some data).

Key Insights and Ideas

By moving from a deterministic to a stochastic process, the authors bypass the discontinuity of a hard majority vote, making the error function smooth and easier to optimize.

Comparison of the 0-1 loss (step function) with traditional surrogate bounds, illustrating the "factor of two" penalty.

A major theoretical victory of this approach is escaping the "Factor of Two" penalty. Traditional bounds often state that the risk of a majority vote is less than or equal to twice the risk of a randomized voter ($Risk(MV) \leq 2 \times Risk(Randomized)$). By optimizing the stochastic risk directly, this paper avoids that loose penalty. Consequently, for the first time in many of these settings, the theoretical "risk certificate" (the bound) is very close to the actual test error. The theory is finally catching up to the empirical reality of ensemble learning.

Key Results

The authors evaluated their method (STOCMV) on a wide variety of benchmarks, including synthetic datasets, binary classification tasks (UCI/LIBSVM), and multi-class classification (MNIST, Fashion-MNIST, etc.).

  • Tightness: On datasets like MNIST and Fashion-MNIST, the "Seeger's bound" produced by this method is significantly tighter than baselines like First Order, Second Order, or Binomial bounds.
  • Accuracy and Diversity: The method achieves competitive or superior test error compared to state-of-the-art PAC-Bayesian learners. The experiments show that while older PAC-Bayes methods might focus on just a few strong voters, this new approach successfully leverages the diversity of the entire ensemble.
Decision boundaries on the two-moons dataset comparing various methods. The proposed method (ours) successfully leverages a large ensemble (M=128) to create a perfect boundary.

On the synthetic "two-moons" dataset, STOCMV was uniquely able to correctly leverage a large number of weak voters ($M=128$) to create a perfect decision boundary, whereas competing methods failed to capture the complex shape. Furthermore, the "Exact" optimization is computationally efficient because its complexity depends on the number of classes, not the number of voters, making it highly scalable.

Limitations and Future Work

While groundbreaking, the approach has limitations. The current bound's complexity grows with the number of base classifiers ($M$). It does not yet account for the fact that many voters might be redundant or highly correlated; addressing this could lead to even tighter bounds. Additionally, because the method optimizes the 0-1 loss directly, the model might be sensitive to label noise in the training data, as it doesn't distinguish between "near misses" and "far misses." Future work will explore ways to foster robustness in noisy contexts and refine the bounds to better handle hypothesis space redundancy.

Summary updated

BibTeX
@inproceedings{zantedeschi2021learning,
  author = {Valentina Zantedeschi and Paul Viallard and Emilie Morvant and Rémi Emonet and Amaury Habrard and Pascal Germain and Benjamin Guedj},
  title = {{Learning Stochastic Majority Votes by Minimizing a PAC-Bayes Generalization Bound}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=2Lq5mDVwBdJ},
}
Figure