Abstract
Optimal Transport (OT) is a fundamental tool in machine learning and data science, yet its computation remains challenging for large-scale datasets. Traditional linear programming and entropy-regularized methods often face scalability or bias issues. This paper introduces Orthogonal Coupling Dynamics (OCD), a novel framework that reformulates the global OT optimization problem into a local ordinary differential equation (ODE). By projecting gradient descent onto a tangent space that preserves marginal distributions, OCD provides a memory-efficient and scalable approach to computing Wasserstein distances and transport maps.
Introduction
Optimal Transport (OT) seeks the most efficient way to transform one probability distribution into another. While it is central to applications ranging from generative modeling (e.g., WGANs) to image processing, solving the classic Monge-Kantorovich problem is computationally intensive. Standard solvers like Linear Programming (LP) scale poorly ($O(N^3 \log N)$), and entropy-regularized methods (Sinkhorn) introduce a "blurring" bias. As datasets reach millions of samples, there is a critical need for methods that are both memory-efficient and capable of capturing sharp transport maps without excessive computational overhead.
Methods
The core of the proposed approach is Orthogonal Coupling Dynamics (OCD). Instead of solving a global optimization problem, OCD defines a velocity field to evolve a pair of random variables $(X, Y)$ toward an optimal coupling.
The OCD Equation
The update rule is defined by the ODE: $$\dot{X}_t = -\nabla_x c + \mathbb{E}[\nabla_x c | X_t]$$ This equation effectively projects a standard gradient descent vector $v^{gd}$ onto the tangent space $\text{Tan}_{p_t, 2}\Pi(\mu, \nu)$ of the coupling manifold, resulting in the OCD velocity $v^{ocd}$. This projection ensures that the marginal distributions $\mu$ and $\nu$ are preserved throughout the dynamics.
Implementation and Analogy
The name "Orthogonal" stems from the unresolved portion of the dynamics remaining orthogonal to the current state. The authors draw an analogy to the Hegselmann-Krause model of opinion dynamics, where agents update their states based on local averages. Numerically, OCD is implemented using a non-parametric Monte-Carlo algorithm, employing Ball Trees for efficient clustering and regression to estimate conditional expectations. This reframes OT as a series of regression problems, essentially performing Bayesian regression to find the transport map.
Results
The OCD framework was validated on synthetic distributions (Gaussians, "Swiss Roll") and real-world image color interpolation tasks.
- Computational Efficiency: OCD becomes more efficient than standard Earth Mover’s Distance (EMD) solvers for large sample sizes ($N_p > 64,000$).
- Memory Footprint: In color interpolation experiments, OCD reduced memory requirements from 2.6 GB (EMD) to just 115 MB.
- Scaling: The time complexity is approximately $O(n N_p \log N_p)$, making it highly competitive for high-dimensional data.
- Accuracy: The method successfully recovers complex, non-linear Monge maps that are often difficult for simpler linear solvers to capture.
Discussion and Limitations
While OCD offers significant advantages in scalability and memory, it faces challenges such as numerical diffusion during conditional expectation estimation, which can blur sharp features. Future work may involve using Neural Networks or Gaussian Processes to improve estimator precision. Additionally, the performance is sensitive to hyperparameters like the clustering radius $\epsilon$, which exhibits a phase transition between "frozen" and "homogenized" states. Despite these challenges, OCD represents a promising shift toward local, dynamic rules for solving global transport problems.
Summary updated