NeurIPS 2026QuestionsPapersAreasAboutMarkdown

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

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: Time Series, PDEs & Probabilistic ML › Optimal Transport Estimation · Type: new method · Keywords: optimal transport, partial Wasserstein distance, FFT data structure, balanced-interval queries, conditional lower bound

Areas: Optimization & Algorithms › Optimal Transport and Sampling › Clustering and Diversity Algorithms

Summary

The paper introduces an FFT-based data structure for balanced-interval transport queries that computes all optimal partial p-Wasserstein matchings on the line in O(p n log² n) time, improving upon quadratic baselines.

Explained to a 5-year-old

We have two groups of points on a line and want to pair each point from the first group with a point from the second group so that the total distance traveled between paired points is as small as possible. When the points are sorted and matched in order, it’s easy to find the best pairing, but for more complex cases it takes a long time. The paper finds a way to make this computation faster by using a clever trick with numbers. It also proves that making it even faster would break a known rule about algorithm speed. The result is a quicker tool that can match points on a line more efficiently.

Explained to a 5-year-old, longer

Imagine you have two sets of dots placed on a straight line. You want to pair each dot from the first set with a dot from the second set so that the total distance you travel between paired dots is as small as possible. When the dots are sorted and you match them in order, it’s easy to find the best pairing, but only for a simple case. For a more general case where you can leave some dots unmatched, the problem becomes much harder and currently takes a very long time to solve. This paper looks at a special situation where the dots are on a line and the distance is measured in different ways (p-Wasserstein distance). It shows that for most distances the best pairings can be found much faster than before by using a clever trick with numbers. The trick works by preprocessing the data so that many queries can be answered quickly, similar to how a fast Fourier transform works. The new method reduces the time needed from quadratic to roughly n log² n, where n is the number of dots. The authors also built a fast C++ program that implements this idea and tested it on synthetic data. They demonstrate that their program beats the previous best method on many random examples. Additionally, they prove a theoretical result: if you could solve the problem even faster for a special case, it would contradict a known hypothesis about algorithm speed. In short, the paper gives a faster way to match points on a line and shows why this speed cannot be improved further in some cases.

For a technical reader

The paper tackles the problem of efficiently computing all optimal partial p-Wasserstein matchings between two discrete distributions on a line. It introduces an FFT-based data structure that answers balanced-interval transport queries, reducing the overall complexity from quadratic to O(p n log² n). The authors provide an open-source C++ implementation and demonstrate superior performance on synthetic benchmarks. They also prove a conditional lower bound for the ∞ case, linking the problem to the (min,+)-Convolution Hypothesis. This work offers both a practical speed-up and a theoretical insight into the limits of the algorithm.

Problem

Computing all optimal partial transport plans between discrete distributions on a line for arbitrary p≥1 remains computationally expensive, requiring quadratic time, while the case p=1 can be solved in O(n log n) time.

Method

The approach leverages an FFT-based data structure to answer balanced-interval transport queries efficiently, enabling computation of all optimal partial transports in O(p n log² n) time.

Results

The approach outperforms the state-of-the-art baseline on a range of synthetic instances.

Contributions

It provides an approach that reduces the time complexity from quadratic to O(p n log² n) and includes an open-source C++ implementation. It also establishes a conditional lower bound for p=∞ linking the problem to the (min,+)-Convolution Hypothesis.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction