Optimal Transport (OT) has become a cornerstone of modern machine learning, powering applications from generative models to domain adaptation. However, calculating the "Wasserstein distance" between large datasets is computationally intensive. While the Sinkhorn algorithm is the current standard, it often requires a trade-off between efficiency and accuracy due to its reliance on entropy regularization.
In a paper presented at AAAI-22, researchers Dongsheng An and colleagues propose a novel approach to overcome these limitations. By applying Nesterov’s smoothing technique to the dual formulation of the OT problem, they developed an algorithm that is theoretically faster and more accurate than the classic Sinkhorn approach while maintaining a manageable $O(n^2)$ space complexity.
Methodology: Smoothing the Dual Problem
The authors pivot from the standard primal problem to the Kantorovich dual problem. The core challenge in the dual formulation is the presence of non-smooth components, specifically the "c-transform" which utilizes a max function.
- Nesterov’s Smoothing: The researchers replace the
maxfunction with a Log-Sum-Exp approximation. This "smooths" the optimization landscape, making it amenable to gradient-based methods. - FISTA Optimization: Once smoothed, the problem is solved using the Fast Iterative Shrinkage Thresholding Algorithm (FISTA). FISTA is an accelerated gradient method that employs a momentum term to significantly speed up convergence compared to standard gradient descent.
- Numerical Stability: To prevent numerical overflow from the exponential functions in the Log-Sum-Exp term, the authors implement a "translation trick," centering the cost matrix around its median.
Performance and Convergence
The proposed method was evaluated on synthetic distributions, spherical data, and the MNIST dataset. A key finding is the algorithm's sensitivity to the step size parameter ($\eta$). As shown in the convergence plots, increasing $\eta$ generally leads to faster stabilization of both the transport cost and the marginal error across different distance metrics.
Comparison with the Sinkhorn Algorithm
In head-to-head tests, the proposed method consistently outperformed Sinkhorn and its variants. The method achieves a computational complexity of $O(n^{2.5} \sqrt{\log n} / \epsilon)$ and avoids the $O(n^3)$ space complexity that plagues other accelerated primal-dual methods.
Key results include:
- Speed: On Squared Euclidean Distance tasks, the method was roughly 2x to 4x faster than standard Sinkhorn to reach the same stopping criteria.
- Accuracy: The proposed method demonstrated significantly higher precision. In some benchmarks, the error relative to the ground truth was 8x lower than Sinkhorn's.
- Convergence Rate: Visual analysis confirms that the proposed method reaches the ground truth plateau much earlier than Sinkhorn.
As illustrated in the Spherical Distance comparison (Figure 6), the proposed method (red dashed line) converges to the ground truth (green solid line) significantly faster than the Sinkhorn baseline (blue dash-dot line), which requires nearly 100 iterations to reach the same level of accuracy.
Conclusion and Future Work
By leveraging Nesterov’s smoothing and FISTA, this new algorithm provides a faster, more accurate path to solving Optimal Transport problems without increasing memory requirements. While the method shows clear advantages, future research could explore its application to continuous measures and its performance in the extremely high-dimensional latent spaces characteristic of modern large language models.
Summary updated