[Paper Review] Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distances
This paper introduces Sinkhorn distances, a differentiable, fast approximation of optimal transport distances using entropic regularization. By smoothing the optimal transport problem with an entropy term, the authors enable computation via the Sinkhorn-Knopp algorithm, achieving orders-of-magnitude speedups over traditional solvers while maintaining or improving performance on benchmark tasks like MNIST classification.
Optimal transportation distances are a fundamental family of parameterized distances for histograms. Despite their appealing theoretical properties, excellent performance in retrieval tasks and intuitive formulation, their computation involves the resolution of a linear program whose cost is prohibitive whenever the histograms' dimension exceeds a few hundreds. We propose in this work a new family of optimal transportation distances that look at transportation problems from a maximum-entropy perspective. We smooth the classical optimal transportation problem with an entropic regularization term, and show that the resulting optimum is also a distance which can be computed through Sinkhorn-Knopp's matrix scaling algorithm at a speed that is several orders of magnitude faster than that of transportation solvers. We also report improved performance over classical optimal transportation distances on the MNIST benchmark problem.
Motivation & Objective
- To address the high computational cost of optimal transport distances, which scale poorly (O(d³ log d)) for histograms of dimension d > few hundreds.
- To enable practical application of optimal transport in large-scale machine learning by drastically reducing computation time.
- To develop a differentiable, scalable alternative to the Earth Mover's Distance (EMD) that maintains theoretical properties while improving efficiency.
- To demonstrate that entropic regularization leads to a numerically stable and parallelizable algorithm suitable for GPGPU acceleration.
Proposed method
- Regularize the classical optimal transport problem with an entropic penalty term, transforming the linear program into a strictly convex optimization problem.
- Use the Sinkhorn-Knopp matrix scaling algorithm to solve the regularized problem, which converges linearly and is trivially parallelizable.
- Define the Sinkhorn distance as the solution to the regularized optimal transport problem, with the regularization parameter λ controlling the trade-off between accuracy and speed.
- Implement the algorithm using iterative scaling of row and column sums, updating dual variables until convergence to a matrix P that approximates the optimal transport plan.
- Leverage the differentiability of the Sinkhorn iteration to enable end-to-end learning in deep learning pipelines.
- Use a fixed number of iterations in practice, independent of convergence criteria, to ensure predictable and fast execution on parallel hardware.
Experimental results
Research questions
- RQ1Can entropic regularization significantly accelerate the computation of optimal transport distances without sacrificing performance?
- RQ2Does the Sinkhorn-Knopp algorithm provide a scalable and differentiable alternative to traditional optimal transport solvers?
- RQ3How does the performance of Sinkhorn distances compare to the Earth Mover’s Distance (EMD) on standard benchmarks like MNIST?
- RQ4Can Sinkhorn distances be effectively used in large-scale machine learning applications despite high-dimensional input?
- RQ5What is the impact of the regularization parameter λ on the trade-off between computational speed and approximation accuracy?
Key findings
- Sinkhorn distances achieve computation speeds several orders of magnitude faster than traditional optimal transport solvers, even without assumptions on the ground metric.
- On the MNIST benchmark, Sinkhorn distances outperform the classical Earth Mover’s Distance (EMD) in classification accuracy.
- The Sinkhorn-Knopp algorithm converges linearly and is highly parallelizable, making it suitable for GPGPU acceleration.
- The method remains robust across different ground metrics, with no need for structural assumptions or pre-processing.
- Reasonably small values of the regularization parameter λ yield better performance than larger values, suggesting a clear preference for low regularization.
- The entropic regularization leads to a differentiable distance measure, enabling integration into deep learning frameworks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.