Fluctuations, Bias, Variance & Ensemble of Learners: Exact Asymptotics for Convex Losses in High-Dimension

Bruno Loureiro, Cedric Gerbelot, Maria Refinetti, Gabriele Sicuro, Florent Krzakala

Abstract

From the sampling of data to the initialisation of parameters, randomness is ubiquitous in modern Machine Learning practice. Understanding the statistical fluctuations engendered by the different sources of randomness in prediction is therefore key to understanding robust generalisation. In this manuscript we develop a quantitative and rigorous theory for the study of fluctuations in an ensemble of generalised linear models trained on different, but correlated, features in high-dimensions. In particular, we provide a complete description of the asymptotic joint distribution of the empirical risk minimiser for generic convex loss and regularisation in the high-dimensional limit. Our result encompasses a rich set of classification and regression tasks, such as the lazy regime of overparametrised neural networks, or equivalently the random features approximation of kernels. While allowing to study directly the mitigating effect of ensembling (or bagging) on the bias-variance decomposition of the test error, our analysis also helps disentangle the contribution of statistical fluctuations, and the singular role played by the interpolation threshold that are at the roots of the "double-descent" phenomenon.

Introduction

Randomness is a fundamental component of modern machine learning, appearing in data sampling, mini-batch selection, and parameter initialization. While practically beneficial, this randomness introduces statistical fluctuations—variance—into model predictions. A prominent manifestation of these fluctuations is the "double descent" phenomenon, where test error spikes at the interpolation threshold (where training error reaches zero) before decreasing again with further overparameterization.

Empirical evidence suggests that variance from random initialization is the primary driver of this performance degradation. However, providing a rigorous mathematical proof and quantifying this impact for generic losses (e.g., logistic or hinge loss) in high-dimensional settings has remained a significant challenge. This work addresses this gap by developing an exact theoretical framework to characterize these fluctuations and demonstrate how ensembling effectively mitigates them.

Theoretical Framework and Methodology

The study focuses on an ensemble of Generalized Linear Models (GLMs) trained independently on the same dataset but utilizing different random features. This architecture serves as a theoretical proxy for deep neural networks in the "lazy training" or Neural Tangent Kernel (NTK) regime.

Schematic representation of an ensemble of generalized linear models trained on random features.

The analysis is conducted in the proportional high-dimensional limit, where the number of samples $n$ and parameters $p$ both tend to infinity such that their ratio $\alpha = n/p$ remains constant. To overcome the limitations of standard Random Matrix Theory with non-quadratic losses, the authors employ Approximate Message Passing (AMP). Originating from statistical physics, AMP allows for tracking the exact asymptotic behavior of the system through "state evolution" equations, which describe the joint distribution of the ensemble's predictions.

Key Insights: Fluctuations and Ensembling

A central finding is that the test error can be rigorously decomposed into a "fluctuation-free" baseline and a "fluctuation" penalty. The double descent peak is shown to be entirely contained within the fluctuation penalty, confirming that it arises from overfitting to specific random initializations.

The Role of Ensembling

By averaging the predictions of $K$ learners, the variance between different initializations is suppressed. As the ensemble size $K$ increases, the double descent peak at the interpolation threshold ($p/n = 1$) gradually vanishes, eventually reaching a "kernel limit" where fluctuations are eliminated.

Test error $\epsilon_g$ as a function of the overparameterization ratio $p/n$ for different ensemble sizes $K$. The double descent peak at $p/n=1$ is suppressed as $K$ increases.

Overparameterization and Consensus

Contrary to the intuition that higher capacity might lead to greater divergence, the theory shows that overparameterization actually fosters consensus. As models become more overparameterized, independent learners are more likely to agree on their predictions. Furthermore, the authors demonstrate that averaging raw confidence scores (pre-activations) consistently outperforms hard majority voting in terms of generalization.

Experimental Validation

The theoretical predictions are validated using synthetic datasets within a "teacher-student" framework. High-dimensional Gaussian inputs are labeled by a fixed teacher function, providing a controlled environment to compare the derived state evolution equations against numerical simulations. The results show perfect agreement between theory and simulation across various losses, including ridge, logistic, and hinge losses.

Conclusion and Future Directions

This work provides a rigorous foundation for understanding the interplay between randomness, ensembling, and generalization in high dimensions. It proves that the double descent peak is a consequence of statistical fluctuations that can be systematically reduced through ensembling.

While the current analysis is restricted to convex losses and GLMs with Gaussian data, it opens several avenues for future research. Extending the AMP framework to non-convex landscapes of deep networks and more structured data distributions remains a key objective. Additionally, investigating the dynamics of jointly trained ensembles, such as those in boosting, could further bridge the gap between theory and practice.

Summary updated

BibTeX
@misc{loureiro2022fluctuations,
  author = {Bruno Loureiro and Cedric Gerbelot and Maria Refinetti and Gabriele Sicuro and Florent Krzakala},
  title = {{Fluctuations, Bias, Variance \& Ensemble of Learners: Exact Asymptotics for Convex Losses in High-Dimension}},
  year = {2022},
  eprint = {2201.13383},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.13383},
}
Figure