Computing Optimal Transport Plans via Min-Max Gradient Flows

Lauren Conger, Franca Hoffmann, Ricardo Baptista, Eric MazumdarConference for Decision and Control 2025 · DOI · OpenReview

Abstract

We pose the Kantorovich optimal transport problem as a min-max problem with a Nash equilibrium that can be obtained dynamically via a two-player game, providing a framework for approximating optimal couplings. We prove convergence of the timescale-separated gradient descent dynamics to the optimal transport plan, and implement the gradient descent algorithm with a particle method, where the marginal constraints are enforced weakly using the KL divergence, automatically selecting a dynamical adaptation of the regularizer. The numerical results highlight the different advantages of using the standard Kullback-Leibler (KL) divergence versus the reverse KL divergence with this approach, opening the door for new methodologies.

Introduction

Optimal Transport (OT) is a fundamental mathematical framework for determining the most efficient way to transform one probability distribution into another. While OT has become a cornerstone of modern machine learning—powering applications in Generative Adversarial Networks (GANs), sampling, and partial differential equations (PDEs)—solving the Kantorovich problem numerically remains a significant challenge.

The current "gold standard," the Sinkhorn algorithm, relies on entropic regularization to achieve computational efficiency. However, Sinkhorn suffers from two primary limitations: it typically operates on a fixed grid (limiting its ability to represent mass in new locations) and introduces "entropic blurring," which can obscure the precision of the resulting transport plan. This paper introduces a novel particle-based solver that reframes OT as a dynamic min-max game, offering greater expressivity and rigorous convergence guarantees.

Methodology

Min-Max Reformulation and KL Divergence

The authors reformulate the OT problem as an unconstrained min-max optimization. Rather than enforcing marginal constraints exactly, they utilize a penalty term based on the Kullback-Leibler (KL) divergence. This allows the transport plan to "play" against a regularizer weight in a Nash equilibrium framework. A key finding is the trade-off between Forward and Reverse KL: Forward KL tends to be mode-seeking, while Reverse KL excels at moment-matching, allowing practitioners to choose the divergence that best suits the geometry of their specific distributions.

Timescale Separation

To solve this min-max problem, the paper proposes a system of coupled equations using timescale separation. In this "two-speed" approach, the transport plan ($\rho$) is updated rapidly, while the penalty weight ($\Lambda$) is updated slowly. This ensures that the system finds the "best response" for the transport plan at every level of the penalty, effectively navigating the optimization landscape toward the global optimum.

Particle-Based Gradient Flow

Instead of a static grid, the method represents the distribution using particles that evolve according to a Wasserstein gradient flow. These particles dynamically drift toward configurations that minimize transport costs while satisfying marginal constraints. To maintain efficiency, the authors replace traditional Kernel Density Estimation (KDE)—which scales at $O(N^2)$—with a binning/voxel-counting estimator. This reduces complexity to $O(N_b)$, where $N_b$ is the number of bins, enabling the use of significantly larger particle sets.

Theoretical Contributions

The paper provides two major theoretical pillars for this approach:

  1. Displacement Convexity: The authors prove that their energy functional is displacement convex. This property is critical in OT, as it guarantees that the gradient flow will converge to a global optimum rather than becoming trapped in local minima.
  2. Infinite-Dimensional Danskin’s Theorem: The researchers extend the classical Danskin’s Theorem to the space of measures. This extension provides the mathematical justification for the timescale separation, proving that the gradient of the "best response" is equivalent to the gradient of the energy functional itself.

Experimental Results

The method was evaluated on both log-concave (Gaussian) and non-log-concave (ring-shaped and multi-modal) distributions.

  • Efficiency: In tests involving 20,000 particles, the proposed method reached a solution in approximately 6 seconds. In contrast, previous state-of-the-art particle methods required 134 seconds to reach a comparable solution.
  • Accuracy: On Gaussian benchmarks, the algorithm achieved a transport cost of 0.0861, remarkably close to the theoretical optimum of 0.080, with a marginal density error of just 0.006.
  • Expressivity: The particle method successfully captured complex, non-convex geometries, such as ring distributions, which often pose significant difficulties for standard regularized solvers.

Conclusion and Future Work

By combining min-max optimization with particle-based gradient flows, this research provides a flexible and efficient alternative to traditional OT solvers. While the current convergence proofs rely on log-concave assumptions, experimental evidence suggests the method is robust across a wider range of geometries. Future work will focus on developing auto-tuning mechanisms for hyperparameters like the temperature parameter ($\beta$) and exploring alternative density estimators to mitigate the curse of dimensionality in high-dimensional spaces.

Summary updated

BibTeX
@inproceedings{conger2025computing,
  author = {Lauren Conger and Franca Hoffmann and Ricardo Baptista and Eric Mazumdar},
  title = {{Computing Optimal Transport Plans via Min-Max Gradient Flows}},
  booktitle = {Conference for Decision and Control},
  year = {2025},
  doi = {10.48550/arxiv.2504.16890},
}
Figure