Maximum Flow in Almost-Linear Time
Interior-point methods, min-ratio cycles and the 2022 breakthrough.
For more than six decades, maximum-flow algorithms improved by polynomial factors: augmenting paths, blocking flows, push-relabel, Orlin's . In 2022, Chen, Kyng, Liu, Peng, Probst Gutenberg and Sachdeva computed exact maximum flows, and minimum-cost flows, in time, barely more than it takes to read the graph. Their algorithm is not combinatorial: it follows an interior-point method, one approximately best cycle at a time.
What you’ll learn
- Trace the history of maximum-flow bounds and the two barriers that stalled it: flow decomposition for path-based methods, and about expensive iterations for interior-point methods.
- Derive electrical flows from energy minimization and Laplacian systems, and explain how near-linear Laplacian solvers led to fast approximate undirected maximum flow.
- Describe the 2022 framework, a potential-reduction interior-point method whose steps are approximate min-ratio cycles, and prove that a fundamental cycle of a low-stretch spanning tree is a good enough step.
- State the theorem and its deterministic follow-up precisely, list its consequences, and know what remains open.
Six decades of bounds, and two barriers
| Year | Work | Bound (capacities ) |
|---|---|---|
| 1956–1998 | Augmenting paths, blocking flows, push-relabel; Goldberg & Rao's binary blocking flows | down to |
| 2011 | Christiano, Kelner, Mądry, Spielman & Teng: electrical flows (approximate, undirected) | |
| 2013–14 | Sherman; Kelner, Lee, Orecchia & Sidford (approximate, undirected) | |
| 2013 | Mądry: interior point with electrical flows (exact, unit capacities) | |
| 2013 | Orlin (strongly polynomial) | |
| 2014 | Lee & Sidford: interior point with fewer iterations | , polylogarithmic in |
| 2020 | Kathuria, Liu & Sidford | |
| 2020–21 | van den Brand et al. (dense graphs) | |
| 2021 | Gao, Liu & Peng (sparse graphs) | |
| 2022 | Chen, Kyng, Liu, Peng, Probst Gutenberg & Sachdeva | , randomized |
| 2023 | van den Brand, Chen, Peng, Kyng, Liu, Probst Gutenberg, Sachdeva & Sidford | , deterministic |
Two obstacles explain the long plateau near .
- Flow decomposition. Algorithms that build a flow path by path can face paths of length , so they spend time writing them down (the Optimal lesson Max-Flow Min-Cut in Depth). Orlin's meets this barrier; it cannot be beaten by listing paths.
- Interior-point iterations. Maximum flow is a linear program, and interior-point methods solve it by following a central path through the interior of the feasible region. Classic methods need about iterations, each solving a linear system, which caps them near ; Lee and Sidford cut the count to about . Even with linear-time solvers, iterations of work each are too many.
The 2022 algorithm escapes both: it never lists paths, and it takes interior-point steps that each cost only amortized time.
Why can no algorithm that builds a maximum flow by writing down one augmenting path at a time run in time on every input?
- Because breadth-first search takes time per path
- Because some networks need paths of length in every path decomposition of their maximum flows, and writing them down already costs
- Because the number of augmentations always equals the flow value
- Because maximum flow is NP-hard for large capacities
Show the answer
B. Because some networks need paths of length in every path decomposition of their maximum flows, and writing them down already costs
The cost is in the output: if every way of expressing the flow as paths needs many long paths, any algorithm that materializes them pays for it. Dinic, push-relabel with dynamic trees and Orlin's algorithm all live at or above this barrier; the almost-linear algorithm works with the flow vector directly.
Electrical flows and Laplacian solvers
Minimize the energy subject to with Lagrange multipliers , one per vertex. Setting the gradient of to zero gives Ohm's law: the multipliers are vertex potentials.
Substituting into the constraint gives a linear system in the potentials, whose matrix is the weighted Laplacian of the graph:
For one unit from to , the minimum energy is the effective resistance between them:
One unit of electrical flow goes from to along two parallel routes with resistances 1 and 3. What fraction of the unit takes the route of resistance 1?
Show the answer
0.75
Both routes see the same potential difference , so they carry and , which must add up to 1: , and the split is and . The energy is , which is the effective resistance . Electrical flow spreads over all routes in proportion to conductance, unlike a shortest path.
Fast solvers. Spielman and Teng (2004) showed that Laplacian systems can be solved to accuracy in nearly linear time, , so one electrical flow costs about as much as reading the graph. Christiano, Kelner, Mądry, Spielman and Teng (2011) turned this into approximate undirected maximum flow by multiplicative weights: compute an electrical flow, raise the resistance of every edge whose capacity it overloads, repeat, and average. Sherman (2013) and Kelner, Lee, Orecchia and Sidford (2014) then reached time for approximate undirected maximum flow.
Two things were still missing: exactness, since approximate methods converge slowly to the precise optimum, and direction, since electrical flows treat edges as two-way. Interior-point methods supply both, and Mądry (2013) combined them with electrical flows to break for unit capacities. The 2022 algorithm keeps the interior-point method but replaces each step's linear system, an problem, by an -type problem that combinatorial graph data structures can solve approximately.
Interior points and min-ratio cycles
The algorithm solves minimum-cost flow: minimize subject to and ; maximum flow is a special case. It starts from a feasible flow and repeatedly adds a circulation , a flow with , so the demands stay met. Progress is measured by a potential function that combines the gap to the optimal cost (found by binary search) with barriers that keep every edge strictly inside its bounds:
Why a cycle. Any circulation splits into simple cycles that each follow its directions, so both and split into sums over those cycles, and by the mediant inequality one cycle's ratio is at least as good as the whole. The step is therefore a single cycle, a combinatorial object.
Why it suffices. Chen et al. show that a step along a -approximate min-ratio cycle, suitably scaled, lowers by an amount that depends only on ; with , it is per step. starts at , so steps (with logarithmic dependence on ) reach the end. Everything hinges on finding good cycles fast.
Let be an optimal circulation and a spanning tree. For an edge , let be its fundamental cycle: plus the tree path back. Every circulation is determined by its values off the tree, so
The length of is plus the length of the tree path, that is, , where the stretch is the tree path's length divided by :
By the mediant inequality, the best single cycle (oriented like ) has a ratio at least as negative as the ratio of the two sums:
Draw from a distribution of low-stretch spanning trees, an idea introduced by Alon, Karp, Peleg and West (1995); constructions in the line of Abraham and Neiman (2012) give every edge expected stretch . Then the denominator is in expectation, so for a good tree some fundamental cycle is an -approximate min-ratio cycle:
Making it fast. Scanning the fundamental cycles of a few trees costs , and steps of that would be quadratic. But the gradient and the lengths change only a little per step, so Chen et al. maintain trees and their best cycles in a dynamic data structure. It recursively shrinks the graph, replacing parts of it by much smaller core graphs built from the trees (vertex sparsification) and thinning edges with spanners (edge sparsification), with amortized time per step and approximation , which the interior-point method tolerates. The deterministic version (2023) replaced the random trees and sampling with deterministic constructions.
Why can each step of the 2022 interior-point method be taken along a single simple cycle?
- Because maximum flows always consist of cycles
- Because the Laplacian system has a cycle as its solution
- Because the step must keep the demands satisfied, and only augmenting paths do that
- Because a circulation splits into simple cycles that follow its directions, and with an denominator one of them has a ratio at least as good as the whole circulation
Show the answer
D. Because a circulation splits into simple cycles that follow its directions, and with an denominator one of them has a ratio at least as good as the whole circulation
The ratio has a numerator and a denominator that are both additive over a conformal cycle decomposition, so the mediant inequality picks out a cycle at least as good. With the norm of classical interior-point methods the denominator would not split, and the step would be a dense electrical flow instead.
The theorem, its reach, and what is open
Reach. Every problem that reduces to min-cost flow with polynomially bounded integers inherits the bound: bipartite matching and its weighted version (the assignment problem), single-source shortest paths with negative integer weights, and many problems in the Optimized lesson's modeling toolbox. All-pairs minimum cuts followed: a Gomory–Hu tree in time (Abboud, Li, Panigrahi & Saranurak, 2023). Follow-up work has extended the framework to graphs that change over time.
What means. For every fixed , the time is for large enough . The factor is subpolynomial, but in the current analyses it is not polylogarithmic, and the algorithm is far from practical: on real inputs, push-relabel and augmenting-path codes remain the tools of choice.
Which statement about a running time of is correct?
- For every fixed , it is for large enough
- It means , with the hiding a constant factor
- It means
- It is at least for large
Show the answer
A. For every fixed , it is for large enough
is a factor that grows more slowly than any fixed power . It may still grow faster than every power of , which is why "almost-linear" is weaker than "nearly linear" (, polylogarithmic factors).
Key takeaways
- Path-based maximum-flow algorithms meet the flow-decomposition barrier, and classic interior-point methods need about costly iterations; the 2022 algorithm avoids both.
- An electrical flow minimizes ; its potentials solve the Laplacian system , which Spielman–Teng-style solvers handle in nearly linear time, and its energy is the effective resistance.
- The 2022 interior-point method adds circulations that approximately minimize . With an denominator the best step is a single cycle, and a fundamental cycle of a random low-stretch spanning tree is within of optimal.
- A dynamic data structure maintains such cycles in amortized time per step over steps: exact maximum flow and min-cost flow in time (randomized 2022, deterministic 2023), with matching, negative-weight shortest paths and Gomory–Hu trees as consequences.
- Open: nearly linear time, simple and practical or combinatorial almost-linear algorithms, strongly polynomial bounds below , and general matching.
Check yourself
In the interactive lesson these are scored with your confidence, and what you miss comes back for review.
In the electrical flow that routes one unit from to , how is the flow on an edge determined?
- It is the same on every edge of a shortest – path and zero elsewhere
- It is for vertex potentials that solve the Laplacian system
- It is found by augmenting along paths until no path is left
- It is proportional to the edge's capacity
Show the answer
B. It is for vertex potentials that solve the Laplacian system
The electrical flow minimizes energy subject to the demands; its optimality conditions are Ohm's law, and conservation turns them into . That is why fast Laplacian solvers make electrical flows cheap.
What does each step of the 2022 almost-linear-time algorithm compute?
- An augmenting path in the residual graph, found by breadth-first search
- An exact electrical flow, by solving a Laplacian system
- A blocking flow in a level graph
- An -approximate min-ratio cycle, a circulation that nearly minimizes , maintained by a dynamic data structure
Show the answer
D. An -approximate min-ratio cycle, a circulation that nearly minimizes , maintained by a dynamic data structure
The interior-point method reduces its potential by adding circulations; the gradient and the lengths come from the potential. Approximation by an factor costs only an factor in the number of steps, and a dynamic data structure finds each cycle in amortized time.
Why does some fundamental cycle of a low-stretch spanning tree approximate the min-ratio cycle well?
- Because every fundamental cycle has length at most
- Because the optimal circulation is a sum of fundamental cycles whose total length exceeds its own by only an factor, so by the mediant inequality one cycle is within that factor
- Because low-stretch trees are minimum spanning trees
- Because the optimal circulation is always a single fundamental cycle
Show the answer
B. Because the optimal circulation is a sum of fundamental cycles whose total length exceeds its own by only an factor, so by the mediant inequality one cycle is within that factor
Write . The numerators add up exactly; the denominators add up to , which low stretch keeps within of . The best term of a sum of ratios is at least as good as the ratio of the sums.
Which of these does not follow directly from almost-linear-time minimum-cost flow?
- Maximum matching in a bipartite graph
- Single-source shortest paths with negative integer edge weights
- Maximum matching in a general (non-bipartite) graph
- The assignment problem with integer costs
Show the answer
C. Maximum matching in a general (non-bipartite) graph
General matching is not a flow problem: odd cycles break the reduction, and it needs blossoms or algebra. No almost-linear algorithm is known for it. The other three are min-cost flow problems with polynomially bounded integers.
Further reading
- D. A. Spielman & S.-H. Teng, "Nearly-linear time algorithms for graph partitioning, graph sparsification, and solving linear systems," Proceedings of the 36th ACM Symposium on Theory of Computing (2004).
- P. Christiano, J. A. Kelner, A. Mądry, D. A. Spielman & S.-H. Teng, "Electrical flows, Laplacian systems, and faster approximation of maximum flow in undirected graphs," Proceedings of the 43rd ACM Symposium on Theory of Computing (2011).
- L. Chen, R. Kyng, Y. P. Liu, R. Peng, M. Probst Gutenberg & S. Sachdeva, "Maximum Flow and Minimum-Cost Flow in Almost-Linear Time," Proceedings of the 63rd IEEE Symposium on Foundations of Computer Science (2022).
- J. van den Brand, L. Chen, R. Peng, R. Kyng, Y. P. Liu, M. Probst Gutenberg, S. Sachdeva & A. Sidford, "A Deterministic Almost-Linear Time Algorithm for Minimum-Cost Flow," Proceedings of the 64th IEEE Symposium on Foundations of Computer Science (2023).
- A. V. Goldberg & S. Rao, "Beyond the flow decomposition barrier," Journal of the ACM 45(5) (1998), 783–797.