Flow-Based Distributionally Robust Optimization

Chen Xu, Jonghyeok Lee, Xiuyuan Cheng, Yao Xie

TL;DR

FlowDRO is a new framework that uses flow-based generative models to solve Distributionally Robust Optimization (DRO) problems. By parameterizing the "worst-case" distribution as a continuous transport map rather than a discrete set of points, it achieves superior scalability for high-dimensional data (like images) and significantly better generalization to unseen test samples.

What Problem Does This Paper Address?

Distributionally Robust Optimization (DRO) is a powerful tool for decision-making under uncertainty. Instead of optimizing for a single data distribution, DRO minimizes the expected loss over the worst-case distribution within a certain "uncertainty set" (often defined by the Wasserstein distance). This worst-case distribution is known as the Least Favorable Distribution (LFD).

However, standard Wasserstein DRO (WDRO) has two major bottlenecks:

  1. The Discrete Trap: Mathematically, the LFD in standard WDRO often turns out to be discrete, supported only on the training data points. This means the resulting "robust" model doesn't know how to handle a new test sample that doesn't exactly match a training point—it lacks generalization.
  2. Computational Complexity: Finding these discrete LFDs typically involves solving Linear Programs that scale quadratically ($O(n^2)$) or worse with the number of samples, making them unusable for large, high-dimensional datasets like MNIST or CIFAR-10.

FlowDRO aims to bridge this gap by finding continuous LFDs that scale to high dimensions and generalize to new data.

Methods

The authors propose a framework that leverages optimal transport (OT) and flow-based generative models.

  • Transport Map Parameterization: Instead of searching for a distribution directly, they search for a continuous-time invertible transport map $T$ (parameterized by a NeuralODE) that pushes the original data distribution $P$ toward the LFD $Q^*$.
  • Wasserstein Proximal Gradient Flow: They reformulate the DRO inner maximization problem into a Wasserstein proximal form. This allows them to use gradient descent to progressively "warp" the data distribution toward the worst-case scenario.
  • Block-wise Progressive Training: To handle large uncertainty sets (large Wasserstein radii), they train the flow model in a sequence of blocks. Each block learns a small part of the total transport, making the training more stable and memory-efficient.
  • Generative Sampling: Because the model learns a map, it can act as a generative sampler. By mapping Gaussian noise through a pre-trained generator and then through the FlowDRO map, one can efficiently sample new "worst-case" scenarios (see Figure 3).
Construction of the FlowDRO sampler

Datasets

The framework was evaluated on several standard benchmarks:

  • Synthetic 1D Data: Used to visualize the difference between discrete and continuous LFDs.
  • MNIST: Handwritten digits, used for robust classification and a novel data-driven differential privacy task.
  • CIFAR-10: Natural images, used to demonstrate adversarial distributional attacks against high-performance VGG-16 and ResNet classifiers.

Key Insights and Ideas

  • Continuity = Generalization: The "aha moment" is that by forcing the LFD to be the push-forward of a continuous map, the robustness "spreads" across the entire data manifold. As shown in Figure 1, while standard WDRO only moves probability mass between discrete points, FlowDRO creates a smooth, continuous shift that applies to test data.
  • Efficiency through Duality: The authors establish a theoretical equivalence between their transport-map search and the dual form of the WDRO problem involving Moreau envelopes. This provides a solid mathematical foundation for using neural networks to solve what was previously an infinite-dimensional optimization problem.
  • Meaningful Perturbations: Unlike point-wise adversarial attacks (like PGD) which often add "salt-and-pepper" noise, FlowDRO learns contextual changes. For example, it might perturb a digit '0' to look more like an '8' because that is the most "efficient" way to confuse a classifier within a Wasserstein budget.
Illustration of the FlowDRO framework pushing density toward the LFD

Key Results

  • Adversarial Attacks: On CIFAR-10, FlowDRO achieved a much more effective attack than standard PGD. For the same amount of $\ell_2$ perturbation, FlowDRO reduced a VGG-16 classifier's accuracy to 24.22%, whereas PGD only reduced it to 61.44%.
  • Robust Training: Classifiers trained using the FlowDRO iterative scheme (FRM) showed significantly lower error rates under heavy PGD attacks compared to the state-of-the-art Wasserstein Robust Method (WRM).
  • Differential Privacy (DP): The authors introduced a "Distributional Perturbation Mechanism" (DPM). Compared to standard additive noise (Gaussian or Laplacian), DPM provided much higher privacy protection (measured by type-I and type-II errors) for the same level of data utility/perturbation.

Limitations and Future Work

  • Min-Max Exchange: The authors note that the standard "strong duality" results for WDRO rely on discrete measures. Extending these proofs to the continuous LFDs used in FlowDRO is technically challenging and remains an open theoretical question.
  • DP Formalization: While the empirical results for differential privacy are strong, the authors acknowledge the need for a more rigorous theoretical formalization to prove that DPM satisfies specific DP criteria on high-dimensional queries.
  • Alternative Representations: While neural networks are great for high dimensions, the authors suggest exploring other transport map representations (like kernels) for smaller datasets where neural networks might overfit.

Summary updated

BibTeX
@article{xu2024flow,
  author = {Chen Xu and Jonghyeok Lee and Xiuyuan Cheng and Yao Xie},
  title = {{Flow-Based Distributionally Robust Optimization}},
  journal = {IEEE J. Sel. Areas Inf. Theory},
  year = {2024},
  doi = {10.1109/jsait.2024.3370699},
}
Figure