Generalization error in high-dimensional perceptrons: Approaching Bayes error with convex optimization

Benjamin Aubin, Florent Krzakala, Yue M. Lu, Lenka Zdeborová

This paper bridges the gap between the heuristic "replica method" of statistical physics and rigorous machine learning theory. It explores how standard, easy-to-use convex optimization tools—like logistic regression—perform in high-dimensional settings compared to the absolute theoretical limit of what is possible.

The High-Dimensional Challenge

In modern machine learning, models frequently operate in a "high-dimensional" regime where the number of features ($d$) and the number of samples ($n$) are both very large, but their ratio ($\alpha = n/d$) remains finite.

Classical statistical learning theory, relying on tools like VC-dimension or Rademacher complexity, often provides "worst-case" bounds on generalization error. However, these bounds are frequently vacuous in practice. They predict much worse performance than what is empirically observed, typically suggesting that error decreases at a slow rate of $1/\sqrt{\alpha}$, whereas experiments show a much faster $1/\alpha$ decay.

This research addresses two core questions:

  1. Can we precisely calculate the generalization error for standard classifiers in this high-dimensional regime?
  2. How close do common methods like Logistic Regression or Support Vector Machines (SVMs) get to the "Bayes-optimal" error—the absolute best possible error any algorithm could achieve?

Theoretical Framework

The researchers utilize a teacher-student framework on synthetic datasets. A "teacher" perceptron generates labels for random Gaussian inputs using a sign-activation function ($y = \text{sign}(\frac{1}{\sqrt{d}} Xw^*)$). A "student" model then attempts to learn these labels using Empirical Risk Minimization (ERM) with a convex loss function (such as square, logistic, or hinge loss) and $\ell_2$ regularization.

To rigorously analyze this setup, the authors employ Gordon’s Gaussian Min-max Inequalities, a sophisticated mathematical tool used to prove that the high-dimensional optimization problem "concentrates" around a set of simpler scalar equations. Through this, they rigorously prove results that were previously only known through the heuristic replica method from statistical physics, comparing the ERM results against the information-theoretic Bayes-optimal baseline.

Key Findings

The Power of Logistic Regression

One of the most surprising insights is that logistic regression, when its regularization strength ($\lambda$) is tuned correctly, performs almost identically to the Bayes-optimal estimator.

Generalization error of logistic regression compared to the Bayes-optimal limit. The inset highlights the minuscule difference ($10^{-5}$) between optimized logistic regression and the theoretical limit.

The difference in generalization error between optimized logistic regression and the theoretical limit is so small (roughly $10^{-5}$) that it is barely visible on a standard graph. Furthermore, as regularization vanishes ($\lambda \to 0$), both logistic and hinge regression converge to the "max-margin" solution, which proves highly effective in high dimensions.

The Failure of Classical Bounds

The authors demonstrate that standard Rademacher complexity bounds predict a $1/\sqrt{\alpha}$ error rate. However, they rigorously prove that for max-margin and optimized logistic regression, the error actually scales as $0.500\alpha^{-1}$. This matches the decay rate of the Bayes-optimal error ($0.4417\alpha^{-1}$), differing only by a small constant. This finding explains why classical theory often feels overly pessimistic to practitioners.

Ridge Regression and Double Descent

While logistic and hinge regression excel, Ridge regression (using square loss) performs poorly in classification tasks within this regime.

Generalization error for Ridge regression (square loss), exhibiting a clear "double descent" peak at $\alpha=1$ where the number of samples equals the number of dimensions.

It exhibits a pronounced "double descent" peak, where the generalization error actually spikes and increases when the number of samples is roughly equal to the number of dimensions ($n \approx d$, or $\alpha=1$).

Designing the "Perfect" Loss

Beyond analyzing existing methods, the authors show that if the distribution of the data is known, it is possible to design a custom (non-convex) loss function and regularizer that provably hits the Bayes-optimal limit exactly.

Limitations and Future Work

The proofs in this paper rely heavily on the input data being Gaussian. While the authors note this can be relaxed to non-isotropic Gaussians, the behavior on real-world, highly structured data (like images) remains an open question. Additionally, the primary focus is on the "noiseless" case where a linear boundary perfectly separates the classes; tests on non-linearly separable data showed significant performance drops for logistic regression.

Finally, the authors note they do not yet have a general rule to predict exactly when a model will achieve the fast $1/\alpha$ rate versus the slower $1/\sqrt{\alpha}$ rate, marking a clear path for future theoretical research.

Summary updated

BibTeX
@inproceedings{aubin2020generalization,
  author = {Benjamin Aubin and Florent Krzakala and Yue M. Lu and Lenka Zdeborová},
  title = {{Generalization error in high-dimensional perceptrons: Approaching Bayes error with convex optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=CG8h42yHh1A},
}
Figure