Distributionally Robust Optimization via Generative Ambiguity Modeling

Jiaqi Wen, Jianyi Yang

Introduction: The Challenge of Distribution Shifts

Machine learning models often experience significant performance drops when deployed in the real world because the testing data differs from the training data—a phenomenon known as distribution shift. Distributionally Robust Optimization (DRO) is a fundamental framework designed to tackle this issue. It trains models to perform well on the worst-case distribution within a defined "ambiguity set," which acts as a mathematical boundary containing possible future data distributions.

However, designing an effective ambiguity set presents a classic Goldilocks problem:

  • Too restrictive ($\phi$-divergence/KL-divergence): These sets require the adversarial distribution to share the exact same support space as the training data. Consequently, they cannot model scenarios where entirely new, unseen types of data appear (support shifts).
  • Too loose and complex (Wasserstein distance): While these sets allow for support shifts, optimizing over an infinite probability space is computationally intractable. Approximations often lead to overly conservative models that perform poorly on average, nominal data.

An ideal ambiguity set must be highly expressive (allowing for support shifts), realistic (remaining consistent with the training data), and computationally tractable.

Generative Ambiguity Sets (GAS)

To resolve the tension between expressiveness and tractability, this paper proposes modeling the ambiguity set using the parameter space of likelihood-based generative models, such as Diffusion Models or Variational Autoencoders (VAEs).

Instead of defining a rigid mathematical ball around the training data, a Generative Ambiguity Set (GAS) defines the ambiguity set as all distributions generated by a model whose reconstruction loss remains below a certain budget ($\epsilon$). The authors mathematically prove that bounding this loss bounds the inclusive KL-divergence. This ensures the generated data remains consistent with the training data while allowing it to explore broader support spaces.

Overview of the Generative Ambiguity Set (GAS) framework and optimization loop.

The GAS-DRO Algorithm

DRO is formulated as a min-max game: minimizing the loss against the maximum (worst-case) distribution. The proposed GAS-DRO algorithm tackles this through a two-step process:

  1. Inner Maximization: To find the worst-case distribution, GAS-DRO updates the parameters of the generative model. Because differentiating through the generative sampling process is notoriously difficult, the authors cleverly borrow Proximal Policy Optimization (PPO) from Reinforcement Learning to update the generative model's parameters.
  2. Outer Minimization: The primary machine learning model is then updated using the adversarial dataset synthesized by this worst-case generative model.

Key Insights

  • Generative Models as the Ultimate Ambiguity Set: Generative models naturally solve the DRO tension. Their parameter space is finite, making optimization tractable, yet their output space is highly expressive. They can step outside the strict boundaries of the training data to find realistic edge cases.
  • Inclusive vs. Exclusive KL-Divergence: Traditional KL-DRO uses exclusive KL-divergence, forcing the adversary to stay strictly within the training support. GAS utilizes inclusive KL-divergence. This subtle mathematical distinction allows the generative model to create diverse, out-of-support adversarial examples without violating theoretical consistency guarantees.
  • Reinforcement Learning for Optimization: Using Policy Gradient methods like PPO to solve the inner maximization step of DRO is a highly effective strategy to bypass the non-differentiability of the generative sampling process.

Experimental Results

The authors evaluated GAS-DRO on two primary tasks, demonstrating significant improvements in Out-of-Distribution (OOD) generalization:

  • Time Series Forecasting: Using the Electricity Maps dataset to predict hourly carbon intensity, the model was trained on California data and tested on OOD data from Texas, Queensland, and the UK. GAS-DRO achieved a 63.7% performance gain over standard ML on OOD datasets, significantly outperforming traditional DRO methods (KL-DRO, W-DRO) and other generative DRO baselines.
  • Image Classification: The model was trained on MNIST and evaluated on USPS (a natural OOD dataset) with various noise corruptions (Gaussian, Perlin, and Cutout). GAS-DRO achieved the best average accuracy (71.52%) and the best worst-case accuracy (50.58%). Notably, it was the only method to maintain above 50% accuracy under the most challenging OOD conditions.
  • Robustness to Structured Noise: While baseline methods like Wasserstein-DRO handled simple Gaussian noise adequately, their performance collapsed under structured perturbations like Perlin noise and Cutouts. GAS-DRO remained highly stable across all tested noise types.

Limitations and Future Work

The primary limitation of GAS-DRO is its computational overhead. Running a diffusion model inside the inner optimization loop requires significantly more training time and GPU memory (e.g., ~12GB VRAM compared to <1GB for standard methods) than closed-form DRO solutions.

Future work will focus on improving the training efficiency of generative models to directly speed up GAS-DRO. The authors also propose exploring other types of generative models to establish new consistency bounds and investigating ways to inject prior knowledge about the testing environment directly into the generative model to further enhance robustness.

Summary updated

BibTeX
@inproceedings{wen2026distributionally,
  author = {JIAQI WEN and Jianyi Yang},
  title = {{Distributionally Robust Optimization via Generative Ambiguity Modeling}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=q67t0gFrdY},
}
Figure