Bipartite Matching in Nearly-linear Time on Moderately Dense Graphs

Jan van den Brand, Yin Tat Lee, Danupon Nanongkai, Richard Peng, Thatchaphol Saranurak, Aaron Sidford, Zhao Song, Di Wang

Introduction

The maximum-cardinality bipartite matching problem—identifying the largest set of edges in a bipartite graph where no two edges share a vertex—is a cornerstone of combinatorial optimization. Despite its importance, computational progress for dense graphs has been largely stagnant for nearly half a century. The field has relied on the classic $O(m\sqrt{n})$ algorithms from the early 1970s (Hopcroft-Karp, Dinic, Karzanov) or algebraic approaches scaling with $O(n^\omega)$.

This paper introduces a breakthrough randomized algorithm achieving an $\tilde{O}(m + n^{1.5})$ runtime. For "moderately dense" graphs where $m = \Omega(n^{1.5})$, this algorithm is nearly linear in the input size, representing the first major improvement in decades.

A Fusion of Optimization and Graph Theory

The core innovation lies in bridging two historically distinct domains: continuous optimization via Interior Point Methods (IPMs) and combinatorial dynamic graph algorithms.

Robust Primal-Dual IPMs

The algorithm utilizes a robust IPM framework to solve linear programs by traversing a "central path" toward the optimal solution. Unlike traditional IPMs that require exact solutions to linear systems at each iteration—a prohibitively expensive task for large graphs—this framework is designed to handle approximate solutions.

Sampling-Based Infeasibility Handling

Approximate solvers inevitably introduce infeasibility. To manage this without the overhead of exact corrections, the authors introduce a novel sub-sampling technique. By sparsifying the updates at each step, they ensure that the resulting error is both easy to quantify and inexpensive to correct using a simple correction vector.

Dynamic Expander Decompositions

To accelerate the IPM iterations to sublinear time, the authors employ dynamic expander decompositions. By partitioning the graph into highly connected "expanders," they can maintain a "HeavyHitter" data structure. This structure identifies edges experiencing significant changes in electrical flow without scanning the entire graph, allowing the algorithm to focus its computational effort where it matters most.

Key Results and Applications

The $\tilde{O}(m + n^{1.5})$ runtime extends beyond simple bipartite matching to a suite of fundamental network flow problems.

Maximum Cardinality Bipartite Matching

The algorithm provides the fastest known bounds for graphs of moderate density. As shown in the table below, it surpasses both classic combinatorial methods and modern sparse-graph breakthroughs when $m$ is sufficiently large.

Comparison of runtimes for Maximum Cardinality Bipartite Matching across different graph densities.

Optimal Transport and Transshipment

The framework also yields significant improvements for minimum-cost perfect bipartite matching (transshipment) and Optimal Transport. For Optimal Transport, the algorithm achieves an $\tilde{O}(n^2)$ runtime for $\epsilon$-additive accuracy, a substantial improvement over previous methods that scaled poorly with the precision parameter $1/\epsilon$.

Comparison of runtimes for Optimal Transport, showing the improvement in dependence on precision and node count.

Conclusion and Future Directions

By treating the iterations of a continuous optimizer as a dynamic graph problem, this work shatters long-standing complexity barriers. While the current algorithm is a theoretical "proof of concept" with polylogarithmic factors that may affect immediate practical implementation, it paves the way for a new class of hybrid algorithms. Future research may extend these techniques to achieve near-linear time for all graph densities or apply them to general maximum flow problems.

Summary updated

BibTeX
@inproceedings{brand2020bipartite,
  author = {Jan van den Brand and Yin Tat Lee and Danupon Nanongkai and Richard Peng and Thatchaphol Saranurak and Aaron Sidford and Zhao Song and Di Wang},
  title = {{Bipartite Matching in Nearly-linear Time on Moderately Dense Graphs}},
  booktitle = {FOCS},
  year = {2020},
  doi = {10.1109/focs46700.2020.00090},
}
Figure