Efficient algorithms for Incremental Metric Bipartite Matching
Ritesh Seth, Mrinal Garg, Sujoy Bhore, Sharath Raghvendra, Syamantak Das
Abstract
The minimum-cost bipartite matching between two sets of points R and S in a metric space has a wide range of applications in machine learning, computer vision, and logistics. For instance, it can be used to estimate the 1-Wasserstein distance between continuous probability distributions and for efficiently matching requests to servers while minimizing cost. However, the computational cost of determining the minimum-cost matching for general metrics spaces, poses a significant challenge, particularly in dynamic settings where points arrive over time and each update requires re-executing the algorithm. In this paper, given a fixed set S, we describe a deterministic algorithm that maintains, after i additions to R, an O(1/δ 0.631 )-approximate minimum-cost matching of cardinality i between sets R and S in any metric space, with an amortized insertion time of O(n 1+δ ) for adding points in R. To the best of our knowledge, this is the first algorithm for incremental minimum-cost matching that applies to arbitrary metric spaces. Interestingly, an important subroutine of our algorithm lends itself to efficient parallelization. We provide both a CPU implementation and a GPU implementation that leverages parallelism. Extensive experiments on both synthetic and real world datasets showcase that our algorithm either matches or outperforms all benchmarks in terms of speed while significantly improving upon the accuracy. This connection to metric bipartite matching naturally extends beyond logistics. The 1-Wasserstein distance, a widely used tool for comparing probability measures in machine learning, can be expressed as a minimum-cost matching between empirical distributions (Villani, 2009; Peyré & Cuturi, 2019) . It has found broad applications in generative modeling, domain adaptation, fairness, and distributional drift detection (
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.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 53a778d6-de88-4788-bc3b-51f898cb2c92Builds on9
- Geometric Dataset Distances via Optimal TransportDavid Alvarez-Melis, Nicolò FusiNeurIPS 2020 · 267 citations
- Robust Optimal Transport with Applications in Generative Modeling and Domain AdaptationYogesh Balaji, Rama Chellappa, Soheil FeiziNeurIPS 2020 · 141 citations
- The Unbalanced Gromov Wasserstein Distance: Conic Formulation and RelaxationThibault Séjourné, François-Xavier Vialard, Gabriel PeyréNeurIPS 2021 · 106 citations
- Negative-Weight Single-Source Shortest Paths in Near-linear TimeAaron Bernstein, Danupon Nanongkai, Christian Wulff-NilsenFOCS 2022 · 24 citations
- Dynamical Wasserstein Barycenters for Time-series ModelingKevin C. Cheng, Shuchin Aeron, Michael C. Hughes, Eric L. MillerNeurIPS 2021 · 17 citations
Related papers
- Fully Dynamic Euclidean Bi-Chromatic Matching in Sublinear Update TimeGramoz Goranci, Peter Kiss, Neel Patel, Martin P. Seybold et al.ICML 2025
- A Robust Exact Algorithm for the Euclidean Bipartite Matching ProblemAkshaykumar Gattani, Sharath Raghvendra, Pouyan ShirzadianNeurIPS 2023 · 6 citations
- A Scalable Constant-Factor Approximation Algorithm for Wp Optimal TransportPankaj K. Agarwal, Oliver Chubet, Sharath Raghvendra, Keegan YaoICLR 2026
- A Higher Precision Algorithm for Computing the -Wasserstein DistancePankaj K. Agarwal, Sharath Raghvendra, Pouyan Shirzadian, Rachita SowleICLR 2023
- Approximation Algorithms for the Geometric Multimatching ProblemShinwoo An, Eunjin Oh, Jie XueSTOC 2025 · 1 citation
