Iterative Sampling Methods for Sinkhorn Distributionally Robust Optimization

Jie Wang (王捷), Jie WangarXiv 2025 · DOI

Abstract

Distributionally Robust Optimization (DRO) provides a framework for training models that are resilient to shifts in data distribution. While Wasserstein DRO is a standard approach, it often leads to intractable optimization problems and unrealistic, discrete worst-case distributions. This paper reformulates Sinkhorn DRO—which incorporates entropy regularization—from a primal perspective as a bilevel optimization problem. We propose two iterative sampling algorithms based on Langevin dynamics: a double-loop algorithm and a more efficient single-loop mean-field version. These methods allow for the simultaneous optimization of model parameters and the generation of continuous, realistic "worst-case" distributions. We provide theoretical convergence guarantees and demonstrate the effectiveness of our approach on standard image classification benchmarks.

Introduction

In practical machine learning applications, models frequently encounter data distributions that differ from their training sets. Distributionally Robust Optimization (DRO) addresses this by optimizing performance over an ambiguity set of plausible distributions. The Wasserstein distance is commonly used to define these sets; however, it often results in mathematically intractable problems and produces "spiky" or discrete worst-case distributions that lack the smoothness of real-world data like images.

Sinkhorn DRO introduces entropy regularization to the Wasserstein distance, which not only improves mathematical tractability but also encourages the discovery of smoother, more realistic adversarial distributions. Despite these advantages, most existing solvers operate in the dual domain, making it difficult to visualize or sample the specific adversarial scenarios the model is being trained to resist. This work addresses this gap by solving Sinkhorn DRO in the primal domain, providing both a robust model and a generative mechanism for stress-testing.

Methodology

The core of our approach is the reformulation of the Sinkhorn DRO problem as an infinite-dimensional bilevel program. The upper-level problem seeks to minimize the worst-case risk to find optimal model parameters $\theta$, while the lower-level problem identifies the worst-case distribution $\mu$ that maximizes risk within the constraints of the Sinkhorn discrepancy.

Naïve Iterative Sampling

The first proposed solution is a double-loop algorithm. In this framework, for every update to the model parameters, an inner loop of Langevin Stochastic Descent is executed to sample from the lower-level worst-case distribution.

Algorithm 1: Naïve Iterative Sampling Algorithm for Sinkhorn DRO.

While this approach is theoretically sound, the nested loops make it computationally expensive for large-scale applications.

Mean-Field Single-Loop Algorithm

To improve efficiency, we introduce a single-loop algorithm that interleaves model and distribution updates. In each iteration, the algorithm performs a single step of Langevin dynamics to update sampling points and a single step of Stochastic Gradient Descent (SGD) to update the model parameters. A momentum-based gradient estimator is employed to maintain stability during these simultaneous updates. This method treats the lower-level problem as a functional optimization over probability spaces, bridging the gap between DRO and generative sampling theory.

Experimental Results

We evaluated the proposed algorithms on the MNIST and CIFAR-10 datasets, focusing on adversarial classification tasks.

Theoretical Guarantees

Our analysis shows that the double-loop algorithm achieves a complexity of $O(\varrho^{-6})$ to find a $\varrho$-stationary point. The more efficient single-loop algorithm improves this to $O(\varrho^{-4})$, matching the lower bound for general nonconvex optimization when discretization errors are minimized.

Robustness and Adversarial Generation

Numerical experiments demonstrate that Sinkhorn DRO consistently outperforms standard Wasserstein DRO (WDRO) in terms of classification accuracy under various adversarial perturbations. A key advantage of the primal approach is the ability to generate meaningful adversarial samples. Visualizations indicate that the generated "worst-case" samples represent realistic contextual shifts—such as blurring or structural deformations—rather than simple random noise. This confirms that the entropy regularization in Sinkhorn DRO leads to more plausible and informative stress-test scenarios.

Conclusion

By approaching Sinkhorn DRO from a primal perspective, we provide a framework that yields both robust models and a means to generate realistic adversarial data. The use of Langevin dynamics allows for the handling of continuous distributions, overcoming the limitations of traditional WDRO. Future work will focus on analyzing the "propagation of chaos" in finite-particle systems and extending the framework to accommodate more general transportation costs and loss functions.

Summary updated

BibTeX
@misc{2025iterative,
  author = {Jie Wang (王捷) and Jie Wang},
  title = {{Iterative Sampling Methods for Sinkhorn Distributionally Robust Optimization}},
  year = {2025},
  eprint = {2512.12550},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.12550},
}
Figure