Generalization Bounds with Minimal Dependency on Hypothesis Class via Distributionally Robust Optimization

Yibo Zeng, Henry Lam

Abstract

This paper introduces a novel approach to calculating generalization bounds using Distributionally Robust Optimization (DRO) instead of standard Empirical Risk Minimization (ERM). Remarkably, these new bounds depend almost entirely on the complexity of the true loss function rather than the entire hypothesis class. This provides tight mathematical guarantees even when the model's hypothesis class is massive or infinitely complex, opening new doors for understanding DRO's benefits in machine learning.

The Problem with Empirical Risk Minimization

In statistical learning theory, generalization bounds guarantee how well a model trained on empirical data will perform on unseen test data. Traditionally, these bounds are derived for Empirical Risk Minimization (ERM)—the standard practice of minimizing average training loss.

The fundamental problem is that ERM bounds rely heavily on the functional complexity of the entire hypothesis class, typically measured via metrics like VC dimension or Rademacher complexity. If your hypothesis class is extremely rich (e.g., deep neural networks or infinite-dimensional kernel spaces), these standard bounds often explode, becoming too loose to be practically useful. The authors ask a critical question: Can we formulate generalization bounds that bypass the need to measure the complexity of the entire hypothesis class, and instead depend only on the specific, optimal function we are actually trying to learn?

Methods: A Shift to Distributionally Robust Optimization

To escape the trap of hypothesis class complexity, the authors shift the training paradigm from ERM to Distributionally Robust Optimization (DRO). Instead of minimizing the average loss over the training data, DRO minimizes the worst-case expected loss over an "ambiguity set"—a neighborhood of probability distributions centered around the empirical training data.

The authors mathematically decouple the generalization error from the hypothesis class by defining this ambiguity set using statistical distances. Their primary focus is on Maximum Mean Discrepancy (MMD), though they also explore Wasserstein distance and $\chi^2$-divergences.

For MMD DRO, they leverage Kernel Mean Embeddings (KME) in a Reproducing Kernel Hilbert Space (RKHS). The clever theoretical trick is that the worst-case nature of DRO naturally absorbs the "uniformity requirement" that usually plagues ERM proofs. The resulting bound depends on the RKHS norm of the true optimal loss function, completely ignoring the other candidate functions in the hypothesis class. They also provide an extension using Sobolev spaces for scenarios where the true loss function doesn't perfectly fit inside the chosen RKHS.

Key Insights and Theoretical Results

Bypassing Hypothesis Complexity

DRO effectively "transfers" the uniformity requirement from the hypothesis class to geometric requirements on the true loss function. If the true underlying phenomenon is simple, the generalization bound is tight, regardless of how overly complex the chosen model class might be.

Geometric representation of the true loss function relative to the RKHS norm ball.

A New Explanation for DRO's Success

While DRO is typically praised for risk aversion and robustness to adversarial distribution shifts, this paper proves it can also act as a powerful regularizer for average-case generalization, sometimes vastly outperforming ERM.

Theoretical Bounds

  • MMD DRO Bound: The authors proved an excess risk bound of $\mathcal{O}(1/\sqrt{n})$ that scales linearly with the RKHS norm of the true loss function $\|\ell(f^*, \cdot)\|_{\mathcal{H}}$, completely independent of the hypothesis class complexity.
  • Wasserstein & $\chi^2$ Bounds: The authors derived similar class-independent bounds for 1-Wasserstein and $\chi^2$-divergence DRO. However, the Wasserstein variant suffers from a slower convergence rate of $\mathcal{O}(n^{-1/\max\{d,2\}})$ due to the curse of dimensionality in covering the true distribution.

Empirical Validation

The paper focuses heavily on theoretical bounds and uses synthetic simulated data to validate its claims rather than standard real-world benchmark datasets.

They simulate a quadratic loss problem with linear perturbations ($z \sim \text{Unif}[-B, B]^d$) to explicitly compare the excess risk of ERM versus MMD DRO as sample sizes and ambiguity set sizes vary. The theory predicts an "L-shape" Risk Phenomenon: once the ambiguity set size $\eta$ is just large enough to contain the true distribution, the excess risk drops sharply to near zero.

In their synthetic experiment (with $n=200$ samples and dimension $d=5$), this exact behavior was perfectly replicated. The expected loss of the DRO solution plummeted to $< 10^{-20}$ (essentially machine zero), while the ERM solution's loss remained stuck around $10^1$.

Limitations and Future Work

  • Slow rates for Wasserstein DRO: Because it takes a larger ambiguity ball to confidently cover the true distribution in high dimensions using the Wasserstein metric, the resulting generalization bounds converge much slower than standard ERM rates.
  • Discrete restriction for $\phi$-divergence: The $\chi^2$-divergence bounds are currently limited to discrete distributions. Continuous empirical distributions cannot be directly bounded by $\phi$-divergences without applying a smoothing technique, which introduces new approximation errors.

Future Work: The authors suggest exploring "fast rates" (e.g., $\mathcal{O}(n^{-1})$) by incorporating curvature conditions of the loss function. They also plan to extend the $\phi$-divergence framework to continuous distributions by utilizing kernel density estimation to center the ambiguity sets.

Summary updated

BibTeX
@inproceedings{zeng2022generalization,
  author = {Yibo Zeng and Henry Lam},
  title = {{Generalization Bounds with Minimal Dependency on Hypothesis Class via Distributionally Robust Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=2bE4He5a9eQ},
}
Figure