Scalable Approximation Algorithms for p-Wasserstein Distance and Its Variants
Nathaniel Lahn, Sharath Raghvendra, Emma Saarinen, Pouyan Shirzadian
Abstract
The p-Wasserstein distance measures the cost of optimally transporting one distribution to another, where the cost of moving a unit mass from a to b is the p th power of the ground distance d(a, b) between them. Despite its strong theoretical properties, its use in practice -especially for p ≥ 2is limited due to two key challenges: sensitivity to noise and a lack of scalable algorithms. We identify noise sensitivity as a key reason why some existing approximation algorithms for p = 1 fail to generalize to p ≥ 2 and then present new algorithms for approximating the p-Wasserstein distance and its variant. First, when d(•, •) is a metric, for any constant p ≥ 2, we present a novel relative O(log n)approximation algorithm to compute the p-Wasserstein distance between any two discrete distributions of size n. The algorithm runs in O(n 2 log U log ∆ log n) time, where log U is the bit-length of the input probabilities and ∆ is the ratio of the largest to the smallest pairwise distance. We use p hierarchically well-separated trees to define a distance that approximates the p-Wasserstein cost within a factor of O(log n) and then present a simple primal-dual algorithm to compute the p-Wasserstein cost with respect to this distance. Second, due to the noise sensitivity of the p-Wasserstein distance, we show that existing combinatorial approaches require Ω(n 2 /δ p ) time to approximate the p-Wasserstein distance within an additive error of δ. In contrast, we show that, for any arbitrary distance d(•, •), a recent noise-resistant variant of the p-Wasserstein distance, called the p-RPW distance, can be approximated in O(n 2 /δ 3 ) time.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers2
- Adversarial Encoding Perturbation and Synthesis for Set Representation Auxiliary LearningYankai Chen, Xinni Zhang, Henry Peng Zou, Bowei He et al.ICLR 2026
- A Scalable Constant-Factor Approximation Algorithm for Wp Optimal TransportPankaj K. Agarwal, Oliver Chubet, Sharath Raghvendra, Keegan YaoICLR 2026
Builds on10
- Robust Contrastive Learning against Noisy ViewsChing-Yao Chuang, R. Devon Hjelm, Xin Wang, Vibhav Vineet et al.CVPR 2022 · 67 citations
- Scalable Nearest Neighbor Search for Optimal TransportArturs Backurs, Yihe Dong, Piotr Indyk, Ilya P. Razenshteyn et al.ICML 2020 · 60 citations
- Outlier-Robust Optimal TransportDebarghya Mukherjee, Aritra Guha, Justin M. Solomon, Yuekai Sun et al.ICML 2021 · 57 citations
- Partial Optimal Tranport with applications on Positive-Unlabeled LearningLaetitia Chapel, Mokhtar Z. Alaya, Gilles GassoNeurIPS 2020 · 30 citations
- CSOT: Curriculum and Structure-Aware Optimal Transport for Learning with Noisy LabelsWanxing Chang, Ye Shi, Jingya WangNeurIPS 2023 · 24 citations
Related papers
- A Combinatorial Algorithm for the Semi-Discrete Optimal Transport ProblemPankaj K. Agarwal, Sharath Raghvendra, Pouyan Shirzadian, Keegan YaoNeurIPS 2024 · 4 citations
- An O(n5/4) Time ∊-Approximation Algorithm for RMS Matching in a PlaneNathaniel Lahn, Sharath RaghvendraSODA 2021 · 1 citation
- A New Robust Partial p-Wasserstein-Based Metric for Comparing DistributionsSharath Raghvendra, Pouyan Shirzadian, Kaiyi ZhangICML 2024 · 10 citations
- A Higher Precision Algorithm for Computing the -Wasserstein DistancePankaj K. Agarwal, Sharath Raghvendra, Pouyan Shirzadian, Rachita SowleICLR 2023
- Efficient Algorithms for Robust and Partial Semi-Discrete Optimal TransportPankaj K. Agarwal, Sharath Raghvendra, Pouyan Shirzadian, Keegan YaoNeurIPS 2025
