Generalized Iterative Scaling for Regularized Optimal Transport with Affine Constraints: Application Examples

Johannes von Lindheim, Gabriele SteidlarXiv 2023

Abstract

This paper explores the application of Generalized Iterative Scaling (GIS) and its rescaled block-iterative version (RBI-SMART) to solve regularized Optimal Transport (OT) problems under multiple affine constraints. By replacing exact information projections with single GIS iterations, we develop a computationally efficient framework that generalizes the Sinkhorn algorithm. We provide a convergence proof for this hybrid approach and demonstrate its effectiveness across several OT applications, including moment-constrained OT, martingale OT, and weak OT.

Introduction

Optimal Transport (OT) is a fundamental tool for comparing probability distributions by finding the most efficient way to transform one into another. To handle the computational complexity of large-scale OT, researchers frequently employ entropic regularization, which transforms the problem into a "Schrödinger problem" solvable via the Kullback–Leibler (KL) divergence.

While the Sinkhorn algorithm is the standard for simple marginal constraints, many modern problems—such as those in financial mathematics or physics—require additional linear (affine) constraints, like moment or martingale conditions. Previously, these complex constraints required slow, nested optimization loops. This work introduces a framework that solves these problems with the same simplicity and efficiency as the standard Sinkhorn algorithm.

The Generalized Iterative Scaling Approach

The core contribution is a hybrid algorithm that generalizes the Rescaled Block-Iterative SMART (RBI-SMART) technique. The algorithm relies on a "GIS Swap": instead of performing an expensive, exact projection onto a complex constraint set, it performs just one step of Generalized Iterative Scaling.

This framework allows for hybrid iterations where users can mix exact Sinkhorn-style scaling for simple marginals with GIS steps for more difficult constraints. For specific cases like moment constraints, we derive a memory-efficient dual formulation that utilizes Fast Fourier Transforms (FFT) to avoid storing full transport matrices.

Convergence and Visualization

A key theoretical result of this paper is the rigorous proof that this "one-step" approach converges to the global optimum. This is achieved by interpreting the iterations as two-step affine projections in a higher-dimensional equivalent problem.

Convergence path of the GIS algorithm on a probability simplex.

The iterative nature of the algorithm is visualized in the figure above, which shows the path of the transport plan as it converges toward the optimal solution within the constraint space defined by the affine sets.

Applications and Performance

We evaluated the algorithm on several synthetic datasets and benchmarks:

  • Martingale OT: The algorithm successfully recovered complex structures like the "curtain coupling" in only 4% of the time required by standard linear programming solvers (scipy.optimize.linprog).
  • Weak OT: Our approach terminated in approximately half the time of the specialized solvers in the Python Optimal Transport (POT) library, while achieving a lower final cost.
  • Moment Constraints: Using 1D Gaussian and Von Mises distributions, we demonstrated that the algorithm efficiently handles mean, variance, and Fourier constraints.

Conclusion

The GIS framework provides a mathematically grounded and computationally superior alternative for solving regularized OT with complex constraints. While currently proven for discrete measures, future work will focus on extending these proofs to continuous distributions and incorporating inequality constraints. This approach significantly lowers the barrier for applying OT to sophisticated problems in physics and finance where standard marginal constraints are insufficient.

Summary updated

BibTeX
@misc{lindheim2023generalized,
  author = {Johannes von Lindheim and Gabriele Steidl},
  title = {{Generalized Iterative Scaling for Regularized Optimal Transport with Affine Constraints: Application Examples}},
  year = {2023},
  eprint = {2305.07071},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.07071},
}
Figure