Distributionally Robust Optimization via Iterative Algorithms in Continuous Probability Spaces

Linglingzhi Zhu, Yunqin Zhu, Yao Xie

TL;DR

This paper reformulates discrepancy-based distributionally robust optimization (DRO) over continuous probability spaces by modeling worst-case distributions as optimal transport maps. By integrating a Jordan–Kinderlehrer–Otto (JKO) proximal scheme with neural network transport maps, the framework avoids the $\mathcal{O}(N^2)$ computational bottlenecks and poor out-of-sample generalization of discrete DRO solvers while providing global convergence guarantees.

What Problem Does This Paper Address?

Distributionally robust optimization (DRO) trains machine learning models to perform well even when the test distribution deviates from the training distribution within a predefined uncertainty set. Most existing discrepancy-based DRO algorithms rely on discrete reference distributions or sample-wise adversarial perturbations.

These standard formulations face two fundamental bottlenecks:

  1. Computational scalability: Finding the least favorable distribution (LFD) using dual linear programs scales quadratically ($\mathcal{O}(N^2)$) with the sample size $N$, making it intractable for large datasets.
  2. Poor generalization and inference: Because the worst-case distribution is restricted to the support of the training data, models struggle to generalize out-of-sample. Generating worst-case perturbations for newly observed test points requires re-running expensive optimization routines from scratch.

The authors address these challenges by formulating DRO as a minimax problem directly over continuous probability spaces.

Methods

The authors tackle the continuous regularized DRO formulation: $$\min_{\phi \in \Phi} \max_{Q \in \mathcal{P}_2} \mathbb{E}_{\xi \sim Q}[\ell(f_\phi, \xi)] - \lambda \mathcal{D}(Q, \mathbb{P})$$

Key methodological components include:

  • Optimal Transport (OT) Map Reformulation: By Brenier’s theorem, when $\mathbb{P}$ is continuous, the worst-case distribution $Q$ can be characterized as a pushforward measure $T_\# \mathbb{P}$ under an optimal transport map $T \in L^2(\mathbb{P})$. This converts the infinite-dimensional probability search into an unconstrained mapping problem: $$\max_{T \in L^2(\mathbb{P})} \mathbb{E}_{\xi \sim \mathbb{P}}[\ell(f_\phi, T(\xi))] - \lambda \mathcal{D}(T_\# \mathbb{P}, \mathbb{P})$$
  • Neural Transport Maps: The transport map is parameterized via a neural network (e.g., a residual network $T(\xi) = \xi + F_\theta(\xi)$). Once trained, generating worst-case samples for any new data point requires only a single forward pass.
  • JKO Alternating Optimization (Algorithm 2): Inspired by the Jordan–Kinderlehrer–Otto (JKO) variational scheme for Wasserstein gradient flows, the authors introduce a proximal step size penalty $\frac{1}{2\gamma} W_2^2(Q, Q_k)$. This stabilizes the inner maximization by preventing drastic shifts in the generated distribution.
  • Theoretical Guarantees:
  • For standard iterative updates (Algorithm 1), the authors prove that the norm of the gradient of the Moreau envelope converges at a rate of $\mathcal{O}(K^{-1/4}) + \mathcal{O}(\sqrt{\epsilon})$.
  • For the alternating JKO scheme (Algorithm 2), under geodesic strong convexity, the gradient norm converges at a faster $\mathcal{O}(K^{-1/2}) + \mathcal{O}(\epsilon')$ rate, needing $\mathcal{O}(\varepsilon^{-2})$ gradient oracle calls and inexact JKO steps to find an $\varepsilon$-approximate stationary point.

Datasets

The empirical evaluation is conducted on a synthetic 2D binary classification task:

  • Class 0 ($\mathbb{P}$): A standard 2D Gaussian distribution $\mathcal{N}(0, I_2)$.
  • Class 1 ($\mathbb{P}'$): A 25-component Gaussian mixture distribution arranged on a grid.

Note: The paper does not evaluate real-world benchmarks.

Key Insights and Ideas

  • Inference Generalization via Functions, Not Points: Traditional discrete Wasserstein DRO learns discrete weights or point perturbations tied exclusively to training instances. Parameterizing $T_\theta$ as a continuous map decouples worst-case generation from specific training points.
  • Warm-Starting the Adversary: Because the LFD is captured by network weights $\theta_k$, parameters can be warm-started across iterations. Knowledge of the adversary transfers across steps, eliminating the need to solve inner maximization from scratch at every outer iteration.
  • JKO Steps as Wasserstein Regularizers: Unconstrained neural maximization can lead to unstable oscillatory behavior in adversarial training. Constraining distribution shifts using the $W_2^2$ proximal term smooths the distribution updates and encourages gradual exploration of complex input spaces.

Key Results

Experiments compare the alternating neural scheme ($\gamma = 0.5$) against an unregularized neural scheme ($\gamma = \infty$) and particle-based L-BFGS perturbations:

  • Optimization Stability: The alternating JKO formulation ($\gamma = 0.5$) substantially stabilizes loss curves over 10,000 iterations, avoiding the volatile loss spikes observed in non-alternating variants.
  • Multimodal Exploration: When $\lambda = 0$, particle-based L-BFGS gets trapped around a small subset of the 25 Gaussian mixture modes. In contrast, the continuous neural transport map smoothly spreads across and covers all 25 modes.

Limitations and Future Work

  • Discrepancy Measure Restrictions: The explicit transport objective in Equation (4) assumes the discrepancy metric is the squared Wasserstein-2 distance ($\mathcal{D} = W_2^2$). Generalizing practical continuous solvers to arbitrary $f$-divergences or other transport costs remains open.
  • Synthetic Scope: Experiments are strictly limited to a low-dimensional 2D synthetic problem. Future work is needed to validate scalability and computational overhead on high-dimensional image or tabular benchmarks.
  • Inner Optimization Inexactness: Theoretical guarantees rely on an inexactness tolerance $\epsilon'$, but bounding this error in practice with deep neural networks is non-trivial.

Summary updated

BibTeX
@inproceedings{zhu2025distributionally,
  author = {Linglingzhi Zhu and Yunqin Zhu and Yao Xie},
  title = {{Distributionally Robust Optimization via Iterative Algorithms in Continuous Probability Spaces}},
  booktitle = {MLxOR @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=xDRGZLcuN8},
}
Figure