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

A Deterministic Almost-Linear Time Algorithm for Minimum-Cost Flow

Jan van den Brand, Li Chen, Richard Peng, Rasmus Kyng, Yang P. Liu, Maximilian Probst Gutenberg, Sushant Sachdeva, Aaron Sidford

The research team and their respective affiliations.

Introduction

The Minimum-Cost Flow problem is a fundamental challenge in combinatorial optimization, serving as a generalization of many classic graph problems, including shortest paths, bipartite matching, and maximum flow. For decades, researchers have sought algorithms that can solve these problems in "almost-linear" time—specifically, time proportional to the number of edges $m$ in the graph, plus a subpolynomial factor $m^{o(1)}$.

While randomized algorithms achieved this milestone in 2022, a significant gap remained for deterministic approaches. Deterministic algorithms for min-cost flow with polynomial capacities had been stagnant since the 1998 Goldberg-Rao algorithm, which operated in $O(m \cdot \min\{m^{1/2}, n^{2/3}\})$ time. This paper bridges that gap, presenting the first deterministic algorithm to solve the minimum-cost flow problem in $m^{1+o(1)}$ time.

The Challenge: Derandomizing Fast Flow

Modern high-performance flow algorithms typically rely on Interior Point Methods (IPMs). These methods transform the discrete flow problem into a sequence of continuous optimization steps, each requiring the solution of a dynamic graph problem—specifically, finding "minimum-ratio cycles" or solving Laplacian systems.

To keep the runtime near-linear, these algorithms use graph sparsification to reduce the complexity of the graph at each step. Randomized algorithms use random sampling to build these sparsifiers (e.g., low-stretch spanning trees or spanners). However, derandomizing this process is non-trivial because the IPM acts as an "adaptive adversary." The updates chosen by the IPM could be specifically designed to exploit the weaknesses of any fixed, non-random sparsification strategy, causing the approximation to fail.

Methodological Innovations

The authors overcome the hurdles of derandomization through three primary technical contributions:

1. The Shift-and-Rebuild Game

Instead of relying on the probability that a random tree will have low stretch, the authors maintain a recursive hierarchy of forests. They introduce a "Shift-and-Rebuild" strategy: if the current forest fails to provide a sufficiently good cycle for the IPM's progress, the algorithm "shifts" to the next forest in a predefined, deterministic collection.

The key insight is the stability of the IPM witness. Because the target solution to the flow problem changes slowly between iterations, the algorithm does not need to maintain a perfect sparsifier at every single moment. Instead, it can amortize the cost of rebuilding parts of its data structure, ensuring that it "catches up" to the evolving solution without needing randomness to hedge against adversarial updates.

2. Deterministic Edge Sparsification via Expander Decompositions

To reduce the number of edges while preserving distance properties, the algorithm constructs a spanner—a sparse subgraph where every pair of nodes is connected by a path not much longer than the original distance. Traditionally, spanners are built using random sampling. The authors instead utilize deterministic expander decompositions. By partitioning the graph into expanders (subgraphs with high connectivity), they can deterministically identify which edges are essential for preserving the graph's structure and which can be safely approximated.

3. Dynamic Low-Stretch Spanning Trees (LSST)

A major component of the framework is a new deterministic data structure for maintaining a spanning tree with subpolynomial average stretch under edge updates. This data structure supports both insertions and deletions with $n^{o(1)}$ amortized update time. This result is a significant contribution to dynamic graph theory in its own right, independent of its application to flow problems.

Key Results and Impact

The primary result is an exact algorithm for Minimum-Cost Flow that runs in $m^{1+o(1)} \log U \log C$ time, where $U$ and $C$ represent the maximum capacity and cost, respectively. This leads to several important corollaries:

  • Exact Maximum Flow: Directed maximum flow can now be solved deterministically in $m^{1+o(1)}$ time.
  • End of a 25-Year Stagnation: This represents the first deterministic runtime improvement for these problems with polynomial capacities since 1998.
  • Robustness: By removing the reliance on "lucky" random samples, the algorithm provides a robust framework that is guaranteed to perform well on all possible directed graphs.

Limitations and Future Directions

While theoretically groundbreaking, the algorithm is highly complex. It involves multiple nested layers of expander decompositions, hierarchical data structures, and the IPM framework. A practical implementation would require significant simplification and engineering effort. Furthermore, the $o(1)$ term in the exponent, while technically subpolynomial, can be substantial for practical graph sizes. Future work will likely focus on simplifying these deterministic components and improving the factors to polylogarithmic terms (e.g., $\log^k m$).

In conclusion, this work demonstrates that randomness is not a fundamental requirement for achieving almost-linear time in flow problems, successfully derandomizing one of the most complex frameworks in modern algorithmic graph theory.

Summary updated

BibTeX
@inproceedings{brand2023deterministic,
  author = {Jan van den Brand and Li Chen and Richard Peng and Rasmus Kyng and Yang P. Liu and Maximilian Probst Gutenberg and Sushant Sachdeva and Aaron Sidford},
  title = {{A Deterministic Almost-Linear Time Algorithm for Minimum-Cost Flow}},
  booktitle = {FOCS},
  year = {2023},
  doi = {10.1109/focs57990.2023.00037},
}
Figure