TL;DR
This paper introduces a groundbreaking algorithm that computes an approximation of the 2-Wasserstein distance (a key metric for comparing probability distributions) in near-linear time ($\tilde{O}(n)$), a significant improvement over previous $\tilde{O}(n^{3/2})$ methods. This is achieved through a novel combination of entropic regularization, approximate Sinkhorn scaling, and low-rank approximations of Gaussian kernels, bypassing traditional geometric approaches that struggled with this problem.
What Problem Does This Paper Address?
The paper tackles the fundamental problem of computing the 2-Wasserstein distance, also known as the quadratic transportation metric or root mean square distance, between two discrete probability distributions. This metric is crucial in various fields like machine learning, statistics, and computer graphics for tasks such as comparing datasets, image processing, and shape analysis. While efficient algorithms exist for the 1-Wasserstein distance (earth mover's distance), the 2-Wasserstein distance has been notoriously difficult to approximate quickly. Previous state-of-the-art algorithms achieved $\tilde{O}(n^{3/2})$ runtime, where $n$ is the number of points in the distributions. This bottleneck stems from the fact that the quadratic cost function used in the 2-Wasserstein distance is not a metric, making it resistant to standard geometric approximation techniques like sketching and embedding. The paper aims to break this $\tilde{O}(n^{3/2})$ barrier and achieve a near-linear time algorithm.
Methods
The core of the paper's contribution lies in a novel approach that deviates from traditional geometric methods. Instead, it leverages:
- Entropic Regularization: This technique, popularized by Cuturi [21], involves solving a regularized version of the optimal transport problem. The regularized problem is defined by minimizing the transportation cost plus an entropy term, controlled by a regularization parameter $\eta$. This regularization makes the problem more amenable to computation.
- Approximate Sinkhorn Scaling: The entropic regularization leads to a matrix scaling problem. The paper employs the Sinkhorn scaling algorithm (also known as the RAS method) to solve this, which iteratively adjusts diagonal matrices to match the desired marginals of the distributions.
- Low-Rank Approximation of Gaussian Kernels: A key insight is that the cost matrix for the quadratic transportation problem, when exponentiated, forms a Gaussian kernel matrix. These matrices have a property where their eigenvalues decay exponentially, allowing them to be well-approximated by low-rank matrices. The paper uses a procedure called TAYLORGKM to obtain such low-rank approximations.
By combining these techniques, the algorithm avoids explicitly forming large $n \times n$ matrices, instead working with factored representations, which is crucial for achieving the near-linear time complexity.
Datasets
Not discussed in the paper. The paper focuses on theoretical algorithms and their complexity for general discrete distributions supported on $n$ points in $\mathbb{R}^d$.
Key Insights and Ideas
- Entropic Regularization as a Game Changer: The paper demonstrates that entropic regularization, when combined with other techniques, can circumvent the inherent difficulties of approximating the quadratic transportation metric that plague geometric approaches.
- Low-Rank Gaussian Kernels are Key: The ability to efficiently approximate Gaussian kernel matrices with low-rank structures is fundamental. This allows the Sinkhorn scaling algorithm to operate on much smaller representations, drastically reducing computational cost.
- Factored Representations are Essential: The algorithm's efficiency hinges on never explicitly forming the full $n \times n$ cost or kernel matrices. Instead, it manipulates these matrices in factored forms, enabling near-linear time operations.
- Sinkhorn Scaling's Adaptability: The paper shows that Sinkhorn scaling, while a known method, can be effectively applied to these low-rank approximations to achieve a good estimate of the optimal coupling.
Key Results
The paper's main result is a deterministic algorithm that computes an additive $\epsilon$-approximation to the 2-Wasserstein distance in near-linear time. Specifically, Theorem 2 states that the algorithm runs in:
$$O\left(n \log n \left(\frac{C}{\epsilon}\right)^{d+1} \log^2 \left(\frac{1}{\epsilon}\right)\right)$$
where $n$ is the number of points, $d$ is the dimension, and $\epsilon$ is the desired precision. This is a significant improvement over the previous $\tilde{O}(n^{3/2})$ barrier. The algorithm also returns a feasible coupling in factored form.
Limitations and Future Work
- Additive vs. Multiplicative Guarantees: The current algorithm provides an additive $\epsilon$-approximation. The authors note that obtaining a multiplicative approximation (e.g., $(1+\epsilon)W_2(p,q)$) is more challenging, especially for cases where the true 2-Wasserstein distance is very small (e.g., when $p=q$). This is because any low-rank coupling will likely incur a non-zero cost, making it difficult to achieve a multiplicative guarantee when the true cost is zero.
- High Dimensionality: While the algorithm's dependence on $n$ is near-linear, its dependence on the dimension $d$ is exponential. This is a common challenge in high-dimensional geometric problems.
- Extension to Other Metrics: The paper suggests exploring whether these techniques can be extended to approximate other types of transportation metrics beyond the quadratic one.
- Connection to Geometric Algorithms: The authors believe that further exploring the interplay between low-rank approximation and geometric algorithms could yield new insights.
Summary updated