How many classifiers do we need?

Hyunsuk Kim, Liam Hodgkinson, Ryan Theisen, Michael W. Mahoney

Introduction

In the era of "scaling laws," we’ve learned that bigger models and more data lead to better results—until they don't. As we hit diminishing returns in raw scaling, ensembling (combining multiple models) has become a go-to strategy for squeezing out extra accuracy. However, training multiple large models is expensive. Researchers and engineers face a practical dilemma: How many classifiers do we actually need? Is the jump from 5 models to 10 worth the compute?

Historically, theoretical bounds on "majority vote" error rates have been far too loose to be useful in the real world. This paper aims to close that gap by providing a quantitative framework to predict ensemble gains before spending valuable GPU credits. It introduces a new metric called polarization to explain why ensembling works, exactly how much benefit it provides, and proposes a "Neural Polarization Law" to accurately predict the performance of a large ensemble using only three individual models.

Moving Beyond Disagreement: The Concept of Polarization

To understand how an ensemble scales, the authors move beyond simple "disagreement" metrics by introducing Polarization ($\eta_\rho$). Polarization measures the higher-order dispersity of error rates across data points. Essentially, it quantifies how "bunched up" the models are when they make mistakes.

Through theoretical derivation and extensive testing, the authors propose the Neural Polarization Law. They conjecture that for "interpolating" models (those that achieve ~100% training accuracy), polarization is a nearly constant value: 4/3 (or roughly 1.33).

Polarization across various architectures on CIFAR-10, demonstrating the 4/3 law.

One of the most surprising findings is that polarization ($\eta_\rho$) remains remarkably stable for a specific dataset, regardless of the model architecture or hyperparameters used. As seen in the experiments across ResNet, VGG, and DenseNet architectures, it acts as a signature of the data's difficulty rather than the model's design.

Key Insights and Tighter Bounds

The authors validated their findings across several standard image classification benchmarks, including CIFAR-10, CIFAR-10.1 (out-of-distribution), MNIST, Fashion-MNIST, and Kuzushiji-MNIST.

By leveraging the 4/3 constant and the theory of U-statistics, the paper demonstrates that the error rate of a majority vote ensemble is linearly correlated with the disagreement between models. Because the behavior of disagreement is mathematically well-behaved (asymptotically hyperbolic) as the number of models ($N$) increases, you don't need to train 50 models to know how a 50-model ensemble will perform. You can "sample" the trend with just three models and extrapolate.

Comparison of upper bounds for majority vote error rate, showing the proposed bound is significantly tighter than the C-bound.

Crucially, the new bounds proposed in this paper are significantly tighter than previous state-of-the-art theoretical bounds, such as the C-bound. In many cases, older bounds were 2-3x higher than the actual error, while the new ones track the real error rate closely. Furthermore, the "Neural Polarization Law" holds up even on out-of-distribution data (like CIFAR-10.1), suggesting that these relationships are robust to distribution shifts.

Limitations and Future Work

While this framework provides a powerful tool for predicting ensemble performance, it has a few limitations:

  • Majority Vote Only: The study focuses specifically on majority vote strategies. While common, many practitioners use "soft" voting (averaging probabilities or logits), which this paper does not explicitly cover.
  • The Interpolation Requirement: The "4/3 Law" is a conjecture specifically for interpolating models. If a model is underfitting or heavily regularized such that it doesn't hit near 0% training error, the polarization might deviate from 4/3.
  • Theoretical Proof of the Law: While the authors provide a "law" based on strong empirical evidence and concentration inequalities, a formal, first-principles proof of why 4/3 is the magic number for neural networks remains an open challenge for the community.

Summary updated

BibTeX
@inproceedings{kim2024how,
  author = {Hyunsuk Kim and Liam Hodgkinson and Ryan Theisen and Michael W. Mahoney},
  title = {{How many classifiers do we need?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=m5dyKArVn8},
}
Figure