NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

An Almost-Linear-Time Algorithm for Approximate Max Flow in Undirected Graphs, and its Multicommodity Generalizations

Jonathan A. Kelner, Lorenzo Orecchia, Yin Tat Lee, Aaron Sidford · DOI

Authors and Affiliations

Abstract

This research presents a breakthrough in graph theory by providing the first "almost-linear-time" algorithm for finding approximate maximum flows in undirected graphs. By departing from traditional electrical flow methods—which rely on $\ell_2$ norms—in favor of a novel non-Euclidean gradient descent framework targeting the $\ell_\infty$ norm, the authors achieve a running time of $O(m^{1+o(1)}\epsilon^{-2})$. This result effectively breaks a long-standing efficiency barrier in combinatorial optimization and extends to complex multicommodity flow problems.

1. Introduction

The Maximum Flow problem is a cornerstone of computer science: given a network with capacities, the objective is to determine the maximum volume of traffic (data, water, or goods) that can be routed from a source to a sink. While algorithms for this problem have been studied since the 1950s, achieving true linear time—where computational complexity scales directly with the number of edges ($m$)—has remained an elusive "holy grail" for researchers.

2. The $\ell_2$ vs. $\ell_\infty$ Bottleneck

In recent years, significant progress was made using "electrical flows," which treat graph edges as resistors and utilize Laplacian linear solvers. However, these methods encountered a theoretical wall. Electrical flows minimize energy, which is an $\ell_2$ norm optimization. In contrast, flow capacities are strictly bounded, representing an $\ell_\infty$ norm constraint. This geometric mismatch typically introduces a square-root factor (such as $\sqrt{m}$), preventing algorithms from reaching near-linear speeds. This paper addresses this gap by optimizing directly for the $\ell_\infty$ "cube" rather than the $\ell_2$ "sphere."

3. Methodology

The authors introduce a new framework that replaces the "electrical" approach with a "routing" approach. Their methodology relies on three primary pillars:

3.1 Non-Euclidean Gradient Descent

Standard gradient descent moves in a direction that minimizes a function within a spherical ($\ell_2$) neighborhood. The authors generalize this to work within an $\ell_\infty$ neighborhood, which better aligns with capacity constraints. By employing a "soft-max" function to smooth the objective, the algorithm can take much larger steps and converge in fewer iterations.

3.2 Oblivious Routing Schemes

An oblivious routing scheme is a fixed strategy for routing demands between nodes without prior knowledge of the total traffic. The authors demonstrate that a "good" (low-congestion) oblivious routing scheme can be utilized as a projection matrix within their gradient descent framework, facilitating efficient flow updates.

3.3 Flow Sparsifiers

To maintain computational speed, the algorithm must operate on simplified versions of the graph. Traditional sparsifiers (such as Benczur-Karger) preserve the size of cuts but fail to provide a mapping for flow back to the original graph. The authors developed "flow sparsifiers" that allow for an efficient embedding back into the original network with low congestion, bridging a long-standing gap in graph sparsification.

4. Key Results and Contributions

The primary contribution of this work is the establishment of new complexity bounds for fundamental graph problems:

  • Approximate Max Flow: For a graph with $m$ edges, the algorithm finds a $(1-\epsilon)$-approximate max flow in $O(m^{1+o(1)}\epsilon^{-2})$ time. This is a significant improvement over the previous best of $O(mn^{1/3})$.
  • Multicommodity Flow: For $k$ different commodities, the algorithm runs in $O(m^{1+o(1)}\epsilon^{-2}k^2)$ time, a major leap over previous $O(m^{4/3})$ bounds.
  • New Algorithmic Primitive: The paper provides the first almost-linear-time construction of a competitive oblivious routing scheme, providing a powerful tool for future graph research.

5. Limitations and Future Directions

Despite its theoretical significance, several avenues for future work remain:

  • Directed Graphs: The current techniques rely heavily on the properties of undirected graphs and their relationship to Laplacians. Directed graphs remain a challenge due to the lack of symmetry required for these spectral-style tools.
  • Precision Dependence: The $1/\epsilon^2$ term indicates that the algorithm slows down significantly if a very high-precision answer is required. Achieving near-linear time with $1/\epsilon$ or $\log(1/\epsilon)$ dependence remains an open goal.
  • Practical Implementation: The $o(1)$ in the exponent hides polylogarithmic factors. The constant factors involved in recursive sparsification and non-Euclidean steps may be large, presenting challenges for efficient implementation on medium-sized real-world networks.

Summary updated

BibTeX
@inproceedings{kelner2013almost,
  author = {Jonathan A. Kelner and Lorenzo Orecchia and Yin Tat Lee and Aaron Sidford},
  title = {{An Almost-Linear-Time Algorithm for Approximate Max Flow in Undirected Graphs, and its Multicommodity Generalizations}},
  booktitle = {SODA},
  year = {2013},
  doi = {10.1137/1.9781611973402.16},
}
Figure