Computing All Optimal Partial $p$-Wasserstein Matchings on the Line
Sebastian Angrick ⋅ Jacobus Conradi ⋅ Mónika Csikós ⋅ Niko Mertens ⋅ Danny Mittal ⋅ André Nusser ⋅ Krzysztof Onak ⋅ Sharath Raghvendra
Abstract
For $p \ge 1$, the $p$-Wasserstein distance measures the minimum cost of transporting probability mass between distributions, where moving unit mass between two points costs the $p$th power of their distance. For discrete distributions in one dimension, full transport is especially simple: after sorting, mass is matched in order along the line. By contrast, partial and unbalanced transport on the line remains much less understood. Recently, Chapel and Tavenard [ICLR'25] showed that, for $p=1$, all optimal partial transport plans between distributions supported on $n$ points, with uniform mass at each point, can be computed in $O(n\log n)$ time by exploiting the metric structure of the cost. For $p>1$, this structure no longer applies, and existing approaches require $\Omega(n^2)$ time. Our main contribution is an FFT-based data structure for balanced-interval transport queries, which bypasses this quadratic bottleneck and yields for any finite $p\ge 1$ an $O(p\,n\log^2 n)$-time algorithm for computing all optimal partial $p$-Wasserstein transports costs on the line. We also provide an open-source C++ implementation that outperforms the state-of-the-art baseline on a range of synthetic instances. Finally, we show that computing all optimal partial $\infty$-Wasserstein transport costs is (up to poly-logarithmic factors) equivalent to $(\min,+)$-convolution, for which the fastest currently claimed algorithm requires $\Omega(n^{1.96})$ time.
Successful Page Load