Introduction
Optimal Transport (OT) and the resulting Wasserstein distance have emerged as powerful tools in machine learning for comparing probability distributions. Unlike simple divergence measures, the Wasserstein distance accounts for the underlying geometry of the data, making it particularly effective for tasks like generative modeling (GANs) and barycenter estimation. However, the computational cost of OT has historically limited its application to large-scale problems. This paper introduces a sublinear-time stochastic gradient descent (SGD) algorithm designed to solve regularized optimal transport problems by leveraging a novel dual formulation.
The Computational Bottleneck in Optimal Transport
The primary challenge with Wasserstein distances is their computational complexity. Standard solvers, such as the Hungarian algorithm, scale at $O(n^3)$, where $n$ is the number of samples. Even the widely adopted entropic-regularized Sinkhorn algorithm, which provides a faster approximation, scales at $O(n^2)$.
In modern machine learning workflows, the Wasserstein distance is often used as a loss function. Computing the gradient of this loss typically requires solving a full optimization problem at every training iteration, which is prohibitively slow for massive datasets. The authors address this by bridging the gap between statistical estimation (identifying the distribution) and numerical computation (solving the transport plan), performing both tasks simultaneously in a streaming or stochastic fashion.
Methodology: A Stochastic Dual Approach
The core innovation of this research is a dual formulation of the regularized OT problem that is specifically designed for stochastic optimization. The methodology consists of several key components:
- Dual Transformation: The authors transform the primal minimization problem (finding the optimal transport plan) into a maximization problem over dual variables. This shift is critical for applying stochastic methods.
- Stochastic Gradient Descent (SGD): Instead of calculating a full gradient over all $n$ points, the algorithm derives unbiased gradient estimates using only a few samples $(x_i, y_j)$ at each step.
- Sublinear Complexity: Because gradients are computed from local samples, the time complexity per iteration is $O(1)$ (or $O(K)$ for mixture models). This makes the approach independent of the total sample size $n$, effectively breaking the $O(n^2)$ barrier.
- Joint Estimation: The algorithm is unique in that it updates the estimate of the target measure $\nu$ at the same time it optimizes the transport dual variables. This "joint tasking" ensures that the model improves its understanding of the distribution and the transport plan incrementally.
- Averaged Gradient Ascent: To maintain stability and handle the noise inherent in stochastic sampling, the authors utilize an averaged gradient ascent approach, a standard but effective technique in stochastic optimization.
Statistical Significance and Convergence
Beyond computational efficiency, the paper provides a strong statistical justification for regularized OT. The authors demonstrate that regularized Wasserstein estimation is mathematically equivalent to Maximum Likelihood Estimation (MLE) for kernel deconvolution problems. This suggests that regularization is not just a computational trick to speed up convergence, but a statistically sound method for improving estimation.
Theoretical analysis proves robust convergence bounds for the Kullback-Leibler (KL) divergence between the estimated measure and the true minimizer. The authors achieve a convergence rate of $O(1/t)$ for strongly convex objectives and $O(1/\sqrt{t})$ for general convex cases. Furthermore, they introduce a heuristic for initialization based on the "logarithmic gap" between the solution and the prior, which helps mitigate the exponential overflow issues common in entropic OT.
Empirical Results
The algorithm was validated using synthetic datasets, including Gaussian vectors in $\mathbb{R}^d$ and discrete measures on grids. Key findings include:
- Rate Matching: Simulations confirmed that the gradient norm converges at a rate of $O(T^{-\delta})$ with $\delta \geq 1/2$, aligning with theoretical predictions.
- Parameter Stability: A learning rate parameter of $c_0 = 2$ was found to provide an optimal balance between numerical stability and convergence speed.
- Support Sensitivity: Interestingly, the algorithm's performance is sensitive to the support size of the target measure ($J$). A finer grid (larger $J$) was shown to improve convergence to the optimal estimator, suggesting that the algorithm scales well with increased resolution.
Limitations and Future Work
While the proposed method offers a significant leap in scalability, some challenges remain. The algorithm relies on exponentials of dual variables, which can lead to numerical sensitivity and potential overflow if the regularization parameters ($\epsilon, \eta$) are set too small. Additionally, choosing the correct learning rate and logarithmic gap currently requires heuristic tuning.
While the theoretical framework is robust, future research is needed to evaluate the algorithm on high-dimensional real-world benchmarks, such as image generation or natural language processing. Extending this approach to more complex "mixture of experts" models or non-discrete measures also remains a promising avenue for practical implementation.
Summary updated