TL;DR
This paper introduces $\mathcal{R}_\rho$, a new class of optimal transport metrics that relax the classical Earth Mover’s Distance (EMD). By using a tunable parameter $\rho$, the authors develop the first sub-quadratic time algorithms for high-dimensional Euclidean datasets that achieve high accuracy, bypassing the traditional $O(nm)$ bottleneck of materializing distance matrices.
What Problem Does This Paper Address?
Optimal Transport (OT) is a powerful tool for comparing probability distributions, with the Earth Mover’s Distance (EMD) being its most famous incarnation. However, EMD is computationally expensive. In high-dimensional spaces, exact algorithms are too slow for massive datasets, and fast approximations often suffer from a "bottleneck": they either provide poor approximation factors or degrade to quadratic time ($O(n^2)$) when high accuracy is required.
Even the popular "Sinkhorn distance"—an entropy-regularized version of OT—requires materializing an $n \times m$ distance matrix between all pairs of points. For datasets with millions of points, this quadratic memory and time requirement is a dealbreaker. The authors seek a "best of both worlds" approach: a metric that behaves like EMD but admits truly fast, sub-quadratic algorithms for accurate approximations.
Methods
The core innovation is a new objective function, $\mathcal{R}_\rho(\mu, \nu)$, which generalizes EMD by using an $\ell_\rho$-norm of transport costs instead of a simple average ($\ell_1$). When $\rho=1$, $\mathcal{R}_\rho$ is exactly EMD. As $\rho$ increases, the objective "spreads" the transport mass, making the problem mathematically smoother.
To solve this efficiently, the authors employ several key techniques:
- Dual Formulation: They derive a dual maximization problem for $\mathcal{R}_\rho$. Unlike EMD, which has hard constraints, this dual is unconstrained but includes a non-linear "penalty" term.
- Gradient Ascent: The algorithm iteratively updates dual variables using gradient ascent. The challenge is that calculating the gradient still appears to require $O(nm)$ operations.
- Kernel Density Estimation (KDE) Connection: The authors observe that the gradient terms are essentially weighted sums of distances, which is exactly the problem solved by KDE data structures. By using Locality-Sensitive Hashing (LSH) based KDE solvers, they can estimate these gradients in sub-quadratic time.
- Augmented Data Structures: They extend existing KDE structures to handle the specific weights and non-linearities required by the $\mathcal{R}_\rho$ dual, ensuring that approximation errors in the KDE step don't ruin the final result.
Datasets
This is a theoretical research paper focused on algorithmic complexity and metric properties. Consequently, no empirical datasets were used for evaluation. The results are proven mathematically for any discrete distributions supported on vectors in $\mathbb{R}^d$.
Key Insights and Ideas
- The $\rho$ "Knob": The parameter $\rho$ acts as a computational dial. Setting $\rho$ very close to 1 makes the metric nearly identical to EMD but slower. Increasing $\rho$ slightly allows for much faster algorithms while remaining a valid metric—a property that standard $c$-approximations of EMD often lose.
- Bypassing Matrix Materialization: By framing the gradient calculation as a KDE problem, the algorithm never needs to compute or store the full $n \times m$ distance matrix. This is the key to breaking the quadratic time barrier.
- Error Decoupling: A major conceptual win is showing that the approximation errors introduced by LSH and embeddings only affect the running time of the algorithm, not the accuracy of the final distance estimate. This allows the use of fast, "lossy" data structures to achieve high-precision results.
Key Results
The paper provides a randomized algorithm that outputs an additive $\epsilon r$-approximation of $\mathcal{R}_p(\mu, \nu)$ (where $r$ is the dataset diameter) with the following performance:
- Sub-quadratic Time: For a fixed $\rho > 1$, the running time is roughly $(n+m) \cdot (nm)^{(\rho-1)/\rho}$.
- Near-Linear Scaling: By carefully choosing $\rho$ as a function of $n$ (specifically $\rho = 1 + 1/\sqrt{\log(nm)}$), the algorithm achieves a running time of $(n+m)^{1+o(1)} \cdot \text{poly}(1/\epsilon)$. This is a significant theoretical improvement over the $O(n^2)$ baseline for Sinkhorn or EMD.
- Metric Preservation: The authors prove that $\mathcal{R}_\rho$ satisfies the triangle inequality for all $\rho \geq 1$, ensuring it remains a robust tool for downstream machine learning tasks like clustering or embeddings.
Limitations and Future Work
- Additive vs. Multiplicative Error: The current algorithm provides an additive $\epsilon r$ error. While useful for bounded datasets, a multiplicative $(1+\epsilon)$ approximation for unbounded data remains an open challenge.
- Polynomial Overhead: While the scaling with $n$ is excellent, the "poly" factors related to $\epsilon$ and the dimension $d$ are currently quite high (e.g., $1/\epsilon^4$ or worse). The authors note that making these algorithms practical for real-world engineering will require further optimization of the KDE components.
- EMD Gap: It remains unknown if the original, non-relaxed EMD admits a similar sub-quadratic, high-accuracy algorithm. The "smoothness" provided by $\rho > 1$ is currently essential for the KDE-based approach to work.
Summary updated