Maximum Flow and Minimum-Cost Flow in Almost-Linear Time

Li Chen, Rasmus Kyng, Yang P. Liu, Richard Peng, Maximilian Probst Gutenberg, Sushant Sachdeva

TL;DR

This paper presents the first algorithm that computes exact maximum and minimum-cost flows in almost-linear time ($m^{1+o(1)}$), a significant improvement over previous bounds. This breakthrough is achieved by developing novel dynamic graph data structures that efficiently solve a sequence of min-ratio cycle problems, and it extends to a wide range of other important problems like optimal transport and matrix scaling.

What Problem Does This Paper Address?

The paper tackles the fundamental problems of maximum flow and minimum-cost flow in directed graphs. For decades, the best algorithms for these problems in general graphs had running times that were significantly super-linear in the number of edges ($m$), often involving factors like $m^{1.5}$ or $m^{4/3}$. This gap between theoretical bounds and the desired "linear time" performance has been a long-standing challenge. The authors aim to bridge this gap, achieving a running time that is nearly linear in the number of edges, up to subpolynomial factors.

Methods

The core of the paper's contribution lies in a novel interior-point method (IPM) for minimum-cost flow. Unlike traditional IPMs that rely on solving $l_2$-norm subproblems (which can be done efficiently with linear systems), this algorithm cleverly reduces the problem to a sequence of undirected minimum-ratio cycle subproblems. The key innovations are:

  • Dynamic Graph Data Structures: The authors develop sophisticated data structures that can efficiently maintain approximate solutions to these min-ratio cycle problems even as the underlying graph and its parameters (lengths and gradients) change dynamically. This involves a recursive hierarchy of graphs, core graphs, and spanners.
  • "Hidden Stable-Flow Chasing" Property: A crucial insight is that the min-cost flow problem, when approached via IPMs, exhibits a "stable" property. This means that the "witness circulation" (related to the optimal solution) doesn't change drastically between iterations, allowing the data structures to work effectively.
  • Rebuilding Game: To handle adversarial updates that could destabilize the data structures, they introduce a "rebuilding game" that formalizes the trade-off between computation and rebuilding costs, ensuring progress even when the witness circulation is not perfectly preserved.
  • Generalization to Convex Objectives: The framework is extended to handle more general edge-separable convex objectives, enabling near-linear time solutions for problems like entropy-regularized optimal transport and matrix scaling.

Datasets

Not discussed in the paper. The paper focuses on theoretical algorithm development for general graph structures.

Key Insights and Ideas

  • Min-Ratio Cycles as the Key: Shifting the focus from $l_2$-norm subproblems to $l_1$-norm based min-ratio cycles is a critical departure that enables the use of specialized dynamic graph structures.
  • Stability is Crucial: The "hidden stable-flow chasing" property is not just a theoretical curiosity; it's the linchpin that allows the dynamic data structures to function efficiently and adapt to the changing IPM iterates.
  • Recursive Structure for Efficiency: The hierarchical approach of building core graphs and spanners, and then recursively processing them, is essential for managing the complexity and achieving the near-linear time bound.
  • Bridging Theory and Practice: The paper demonstrates how advanced theoretical tools like IPMs, dynamic graph algorithms, and self-concordant barriers can be combined to solve fundamental problems with significant practical implications.

Key Results

  • Almost-Linear Time Min-Cost Flow: The paper achieves an exact min-cost flow algorithm with a running time of $m^{1+o(1)} \log U \log C$, which is the first almost-linear time algorithm for this problem in general graphs.
  • Almost-Linear Time Max Flow: This result directly implies an almost-linear time algorithm for maximum flow.
  • Near-Linear Time for Convex Objectives: The framework extends to general edge-separable convex objectives, providing almost-linear time algorithms for:
  • Entropy-regularized optimal transport
    • Matrix scaling
    • p-norm flows
    • p-norm isotonic regression

Limitations and Future Work

  • Subpolynomial Factors: While the algorithm is "almost-linear," it still has subpolynomial factors ($o(1)$) in the exponent of $m$. Removing these would be a significant theoretical advancement.
  • Adaptive Adversaries: The data structures are designed to handle updates influenced by the algorithm's own progress (adaptive adversaries), which is a more challenging setting than oblivious adversaries. However, the "hidden stable-flow chasing" property is key to this.
  • Practical Implementation: The paper focuses on theoretical guarantees. The practical performance of these complex data structures in real-world scenarios would be an interesting area for future research.
  • Further Generalizations: The authors suggest that their framework might be extendable to other related problems in combinatorial optimization.

Summary updated

Abstract

We give an algorithm that computes exact maximum flows and minimum-cost flows on directed graphs with m edges and polynomially bounded integral demands, costs, and capacities in $m^{1+o(1)}$ time. Our algorithm builds the flow through a sequence of $m^{1+o(1)}$ approximate undirected minimum-ratio cycles, each of which is computed and processed in amortized $m^{o(1)}$ time using a new dynamic graph data structure. Our framework extends to algorithms running in $m^{1+o(1)}$ time for computing flows that minimize general edge-separable convex functions to high accuracy. This gives almost-linear time algorithms for several problems including entropy-regularized optimal transport, matrix scaling, p-norm flows, and p-norm isotonic regression on arbitrary directed acyclic graphs.
BibTeX
@inproceedings{chen2022maximum,
  author = {Li Chen and Rasmus Kyng and Yang P. Liu and Richard Peng and Maximilian Probst Gutenberg and Sushant Sachdeva},
  title = {{Maximum Flow and Minimum-Cost Flow in Almost-Linear Time}},
  booktitle = {2022},
  year = {2022},
  doi = {10.1109/focs54457.2022.00064},
}
Figure