NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Distributionally Robust Optimization and Generalization in Kernel Methods

Matthew Staib, Stefanie Jegelka

Introduction

In machine learning, models are typically trained to minimize empirical risk—the average loss on the training data. However, the ultimate goal is to minimize population risk, or how well the model performs on unseen data from the true distribution. Distributionally Robust Optimization (DRO) tackles this by optimizing against an adversary capable of perturbing the training distribution within a defined "uncertainty set." If a model performs well against this adversary, it is more likely to generalize robustly.

Historically, defining this uncertainty set has relied on two main distance metrics:

  1. $\phi$-divergences (e.g., KL divergence): Mathematically convenient but restricted, as the adversary can only reweight existing training points rather than moving mass to unseen regions.
  2. Wasserstein distance: Allows for continuous perturbations but is computationally expensive, suffers from the "curse of dimensionality," and requires complex assumptions about the loss function.

To overcome these limitations, this paper introduces a novel DRO framework using Maximum Mean Discrepancy (MMD). MMD, a kernel-based distance metric, allows the adversary to consider distributions outside the training support while remaining mathematically tractable and avoiding the dimensionality curse (converging at a rate of $O(n^{-1/2})$ regardless of dimension).

Theoretical Foundations: MMD DRO

The core of the proposed framework is the MMD DRO objective: $$ \inf_f \sup_{Q: d_{MMD}(Q, \hat{\mathbb{P}}_n) \le \epsilon} \mathbb{E}_{x \sim Q} [\ell_f(x)] $$

The authors provide several key technical contributions to make this objective solvable and interpretable:

  • Hilbert Norm Equivalence: They prove that the inner maximization (the adversary's problem) is essentially equivalent to adding a penalty term proportional to the Reproducing Kernel Hilbert Space (RKHS) norm of the loss function: $\mathbb{E}_{x \sim \hat{\mathbb{P}}_n} [\ell_f(x)] + \epsilon \|\ell_f\|_{\mathcal{H}}$. This establishes a deep connection between robust distribution shifts and standard regularization.
  • Product Norm Bounds: Applying this to squared error loss (common in ridge regression) requires bounding the norm of a product of functions. The authors prove a powerful result specifically for Gaussian kernels: $\|fg\|_{\sigma/\sqrt{2}} \le \|f\|_\sigma \|g\|_\sigma$.
  • Support-Constrained Approximation: For general problems where the full Hilbert norm is intractable, they derive a closed-form approximation by restricting the adversary to the training support, yielding a regularizer akin to kernelized variance regularization.

A New Regularizer for Kernel Ridge Regression

One of the most practical takeaways from the MMD DRO perspective is a new approach to Gaussian kernel ridge regression. Standard ridge regression penalizes the norm of the function itself ($\|f\|^2_\sigma$). However, the DRO framework reveals that because the loss is the square of the model's prediction, the regularization should account for this.

The authors propose a modified regularizer: $\|f^2\|_{\sigma/\sqrt{2}}$. This bandwidth-shifted penalty directly emerges from their product norm bounds and provides a more theoretically sound defense against distribution shifts.

Empirical Results and Stability

The authors validated their findings using a synthetic dataset designed for kernel ridge regression, sampling $10^4$ points from a 1D Gaussian distribution and testing on subsampled regimes with added noise.

Population RMSE vs Regularizer Strength

As shown in the results, the proposed regularizer ($\|f^2\|_{\sigma/\sqrt{2}}$) consistently outperforms standard ridge regression ($\|f\|^2_\sigma$). Beyond achieving a lower Population RMSE, the new regularizer demonstrates remarkable stability. It is significantly less sensitive to the choice of the regularization parameter $\lambda$; even when $\lambda$ is set sub-optimally low, the MMD-inspired regularizer maintains a wider basin of strong performance compared to the standard penalty.

Limitations and Future Directions

While MMD DRO offers a powerful new lens for generalization, there are current limitations:

  • Kernel Specificity: The specific algorithmic derivations, particularly the $\sigma/\sqrt{2}$ bandwidth shift, are currently specialized for Gaussian kernels. Extending these exact bounds to other kernel types remains an open problem.
  • Computational Complexity: Although the support-constrained approximation helps, computing the full MMD DRO objective for arbitrary loss functions can still be challenging.
  • Bound Tightness: The derived upper bounds are theoretically sound but may be loose in practice, suggesting room for future work to develop tighter, computationally efficient reformulations.

Summary updated

BibTeX
@inproceedings{staib2019distributionally,
  author = {Matthew Staib and Stefanie Jegelka},
  title = {{Distributionally Robust Optimization and Generalization in Kernel Methods}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=2Dx479xCI13},
}
Figure