Max-Margin Works while Large Margin Fails: Generalization without Uniform Convergence

Margalit Glasgow, Colin Wei, Mary Wootters, Tengyu Ma

The Generalization Mystery

Deep learning models often generalize well even when they are large enough to memorize the entire training set. This phenomenon defies classical "Uniform Convergence" (UC) theory, which traditionally explains generalization by proving that the difference between training error and test error is small for all models in a given class.

However, recent landmark work showed that for many modern overparameterized models, UC bounds are "vacuous"—they provide a theoretical guarantee of 100% error, which tells us nothing. This paper tackles a central gap in AI theory: How do we prove a model will generalize when our most common tool (UC) is broken? The authors investigate the role of the "margin"—the distance between data points and the decision boundary—and demonstrate that pushing for the absolute maximum margin is the key to success in these challenging regimes.

Methods and Synthetic Datasets

The authors provide a rigorous mathematical analysis of two specific high-dimensional settings:

  1. Linear Classification: A setting where data has a clear "signal" direction but is buried in high-dimensional "junk" features (noise).
  2. Two-Layer Neural Networks (XOR Problem): A non-linear setting where the ground truth is a quadratic function (an XOR-like pattern), which is more representative of the complexities in deep learning.
XOR Problem Setup

As a theoretical paper, it uses synthetic data distributions designed to isolate specific mathematical properties. These datasets allow the authors to precisely control the number of dimensions ($d$) relative to the number of samples ($n$). Their core technique involves decomposing the model's weights into a Signal Component (which learns the actual pattern) and an Overfitting Component (which memorizes specific training noise).

Key Insights: Phase Transitions and Near-Max Margins

By analyzing the signal-to-noise ratio, the authors identify a "challenging middle regime" where the overfitting component is large enough to make UC fail, but the signal component is still strong enough to ensure the model works on new data.

Phase Diagram of Generalization

The authors identify three distinct regions based on the signal-to-noise ratio:

  1. Low Signal (No Generalization): No model generalizes.
  2. Medium Signal (UC Fails): Max-margin models generalize, but UC theory fails completely.
  3. High Signal (Generalization): Both max-margin works and UC theory can explain it.

Crucially, the paper's title is literal: having a "large" margin (e.g., half of the maximum possible) isn't enough to guarantee generalization. You must be near-maximal (achieving $1-\epsilon$ of the max margin). Only the max-margin solution forces the "signal" to be strong enough to overcome the "noise" the model memorized. This proves that memorization and generalization can coexist: a model can memorize training noise (breaking UC) while still generalizing because the high-dimensional noise "washes out" on random test points.

Key Results and Limitations

  • Generalization Bounds: For both linear and XOR settings, any model achieving a near-maximal margin will have a test loss that vanishes as the noise goes to zero.
  • UC and Polynomial Margin Failure: In the same regime where the max-margin model succeeds, any UC-based bound or classical polynomial margin bound is proven to be vacuous. Only their new "extremal" margin analysis captures the model's true performance.

Limitations and Future Work: The paper assumes we can find the max-margin solution. While gradient descent often converges to max-margin solutions in linear cases, it is not guaranteed for complex, non-convex neural networks. Furthermore, the proofs rely on the "junk" features being somewhat well-behaved (orthogonal to the signal), whereas real-world data noise might be more adversarial. Future work could explore if these insights hold when $d < n$ but the model remains highly complex.

Summary updated

BibTeX
@inproceedings{glasgow2023max,
  author = {Margalit Glasgow and Colin Wei and Mary Wootters and Tengyu Ma},
  title = {{Max-Margin Works while Large Margin Fails: Generalization without Uniform Convergence}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=n-hKHMzBgy},
}
Figure