Introduction
Machine learning models often struggle when test data distributions deviate from training data, a phenomenon seen in covariate shift, simulation-to-reality gaps, and adversarial attacks. Distributionally Robust Optimization (DRO) addresses this by optimizing performance against the worst-case distribution within an "ambiguity set"—a neighborhood of distributions centered on the training data.
However, traditional DRO methods are often too rigid for modern applications. They frequently require restrictive assumptions, such as affine or quadratic loss functions, or precise knowledge of the loss function's Lipschitz constant. These constraints make standard DRO difficult to apply to complex models like deep neural networks. This paper introduces Kernel DRO, a generalized framework that leverages Reproducing Kernel Hilbert Spaces (RKHS) to create flexible ambiguity sets while maintaining computational tractability.
Methodology
The authors overcome the limitations of standard DRO through three primary innovations:
- Kernel Mean Embeddings: Probability distributions are represented as points in an RKHS. The ambiguity set is defined as a convex set, such as a norm ball, around the empirical training distribution within this functional space.
- Generalized Duality Theorem: The core theoretical contribution is a duality theorem that transforms the infinite-dimensional min-max DRO problem into a single minimization problem over RKHS functions. Because universal RKHSs are dense, this formulation applies to a wide class of loss functions without requiring explicit Lipschitz constants.
- Stochastic Functional Gradient DRO (SFG-DRO): To scale the framework to large datasets and deep learning, the authors developed SFG-DRO. This algorithm uses random Fourier features to approximate RKHS functions and employs stochastic approximation for model updates, enabling robust training via standard mini-batch methods.
Theoretical Insights
The Kernel DRO framework provides a unifying perspective on robust optimization. For example, using a second-order polynomial kernel recovers classical DRO with known first and second moments, while specific function class bounds can recover Integral Probability Metric (IPM) approaches like Wasserstein-DRO.
A key insight is the role of universal kernels. If the function space is too small, DRO becomes overly conservative; if it is too large, the problem becomes trivial. Universal kernels, such as the Gaussian kernel, provide a "Goldilocks" zone—rich enough to distinguish probability measures without being overly restrictive.
Geometrically, the dual optimal solution finds a smooth function that "majorizes" (upper bounds) the loss and interpolates it at the support points of the worst-case distribution. Essentially, Kernel DRO achieves robustness by using this smooth function to "flatten" the loss curve.
Experimental Evaluation
The framework was tested on both synthetic and real-world datasets:
- Uncertain Least Squares: In regression tasks under data perturbation, Kernel DRO successfully balanced performance and robustness. While Empirical Risk Minimization (ERM) failed under perturbation and standard Robust Optimization (RO) was overly conservative, Kernel DRO navigated the middle ground effectively.
- MNIST Adversarial Robustness: On a binary MNIST classification task (digits 0 and 1) subjected to PGD adversarial attacks, SFG-DRO successfully trained a robust two-layer neural network. It outperformed ERM under attack and achieved higher nominal accuracy than standard PGD adversarial training, demonstrating its value as a less conservative defense mechanism.
Conclusion and Future Work
While Kernel DRO offers a powerful new framework, some challenges remain. Current theoretical proofs assume a compact input domain. Additionally, while ambiguity set size can be guided by kernel statistical testing in standard settings, these guarantees do not yet directly apply to explicitly adversarial perturbations. Extending statistical guarantees to these perturbed settings is a key area for future research.
Summary updated