Optimal Transport (OT) has emerged as a fundamental tool in machine learning for comparing probability distributions. From generative modeling (GANs) to domain adaptation and computer vision, the Earth Mover’s Distance (EMD)—also known as the Wasserstein-1 distance—provides a robust metric that accounts for the underlying geometry of the data space. However, a significant barrier remains: computing EMD for large, high-dimensional datasets is computationally intensive. Standard algorithms often face a quadratic bottleneck, $O(n^2)$, making them impractical for modern "big data" scales.
In their COLT 2023 paper, Moses Charikar and colleagues from Stanford, CMU, and UPenn introduce a novel relaxation of the OT problem. By shifting the objective from a linear cost to an $\ell_\rho$-norm, they unlock the first sub-quadratic time algorithms capable of high-accuracy approximations in high-dimensional Euclidean spaces.
The Computational Gap in Optimal Transport
The challenge of computing EMD lies in the optimization over all possible couplings between two distributions. Existing approaches generally fall into two categories, neither of which perfectly solves the high-dimensional scaling problem:
- Graph-based methods: These utilize spanners or hierarchical decompositions. While they can achieve near-linear time, they often suffer from approximation errors that grow with the dimensionality of the space.
- Entropy-regularized OT (Sinkhorn Distances): This popular approach provides accurate additive approximations. However, it requires the explicit calculation of the $n \times m$ distance matrix, leading to an $O(n^2)$ complexity that is prohibitive for large $n$.
The research community has long sought an algorithm that is both sub-quadratic ($O(n^{2-\delta})$) and capable of achieving arbitrarily small error ($\epsilon$) without being hindered by the "curse of dimensionality."
Introducing $\ell_\rho$-Optimal Transport
The authors propose a new objective function, $\mathcal{R}_\rho(\mu, \nu)$, which serves as a smooth approximation of the EMD.
The $\ell_\rho$ Relaxation
In standard EMD, the goal is to minimize the expected distance: $\sum \gamma_{ij} d(x_i, y_j)$. The authors replace this with a normalized $\ell_\rho$-norm of the transport costs. When $\rho = 1$, the objective is identical to EMD. As $\rho$ increases (even slightly, e.g., $\rho = 1.1$), the optimization landscape becomes smoother. This smoothing prevents the optimal coupling $\gamma$ from becoming overly sparse, which is a key factor in making the problem computationally tractable.
The Dual Perspective and KDE
The breakthrough in this work comes from analyzing the dual form of the $\mathcal{R}_\rho$ objective. The authors demonstrate that the dual is a concave maximization problem where the partial derivatives have a specific structure: they are equivalent to Kernel Density Estimation (KDE) queries.
By framing the gradient updates as KDE problems, the authors can leverage advanced data structures like Locality-Sensitive Hashing (LSH). Instead of calculating every pairwise distance to compute a gradient, they use LSH to estimate the KDE in sub-linear time. This allows for a gradient ascent algorithm that avoids materializing the full $n \times m$ distance matrix, effectively breaking the quadratic barrier.
Key Theoretical Results
The paper’s primary contribution is a rigorous proof of the efficiency and validity of this new metric.
Theorem 1: Runtime and Accuracy
The authors prove the existence of a randomized algorithm that produces an additive $\epsilon r$-approximation to the $\mathcal{R}_\rho$ distance (where $r$ is the diameter of the point set). For a fixed $\rho > 1$, the runtime is approximately $(n+m)^{1+o(1)}$. More specifically, the complexity scales as $(nm)^{(\rho-1)/\rho}$. This represents a significant improvement over the $O(n^2)$ requirement of Sinkhorn-based methods.
Metric Properties
Crucially, the authors prove that $\mathcal{R}_\rho$ is a valid metric. It satisfies the triangle inequality, which is essential for many downstream applications like clustering or nearest-neighbor search in the space of distributions.
Insights and Implications
- The $\rho$ Parameter as a Trade-off: The parameter $\rho$ acts as a "computational dial." Setting $\rho$ close to 1 yields a result very close to the true EMD but increases runtime. Increasing $\rho$ speeds up the computation at the cost of a slightly different relaxation.
- Decoupling Distortion from Accuracy: A notable feature of this approach is that the "distortion" inherent in LSH-based data structures only affects the algorithm's runtime, not its final accuracy. The algorithm can still converge to an arbitrarily accurate $(1 \pm \epsilon)$ result.
Limitations and Future Directions
While this work provides a strong theoretical foundation for sub-quadratic OT, several challenges remain:
- The $\rho \to 1$ Limit: As the relaxation approaches the true EMD ($\rho \to 1$), the runtime's dependence on $\rho$ becomes exponential ($2^{\rho/(\rho-1)}$). This suggests that while fast approximations are possible, exact EMD remains difficult.
- Additive vs. Multiplicative Error: The current algorithm provides an additive error guarantee. Achieving a multiplicative $(1+\epsilon)$ approximation in sub-quadratic time for unbounded datasets remains an open problem.
- Empirical Implementation: The paper is primarily theoretical. Translating these KDE-based gradient updates into a high-performance implementation that can compete with GPU-optimized Sinkhorn algorithms is a significant next step for systems researchers.
By bridging the gap between high-dimensional geometry and efficient data structures, this work opens a new path for scaling optimal transport to the massive datasets of the future.
Summary updated