Manuscript Offprint
arXiv:2610.06665Faster high-accuracy multicommodity flow in dense graphs
Abstract
We give a fast algorithm for solving min-cost -commodity flow. The basic idea is to construct an auxiliary linear program that has low rank and whose minimum value is at most times the minimum value of the original problem (thus, solving this auxiliary linear program will make at least fraction of progress in the original problem). Low-rank linear programs can be solved quickly using black-box techniques. Thus, our algorithm runs in time on a directed graph with vertices and edges. We do not rely on any fast matrix multiplication.
1 Introduction
Linear programming remains one of the most fundamental primitives in convex optimization. Current research is devoted to improving interior-point methods for solving linear programs. See [KV96; LS15a; Che+22] for previous results. A single interior-point iteration in these methods typically reduces the problem of making progress along a central path to solving a few auxiliary linear systems. So, the complexity of the algorithm is governed both by the number of iterations and by the cost of these linear solves, which makes structures classes of linear programs particularly amenable to faster algorithms.
This perspective has been especially fruitful for flow problems, which, themselves, have been studied extensively. The class of network-flow problem is a classic class of problems in computer science, where very efficient algorithms are known. Single-commodity max flow and min-cost flow are fundamental problems in optimization, where their study begins with the classic augmenting-path result of Fork and Fulkerson [FF56]. More recently, interior point methods for these problems have pushed the runtime to nearly linear (in the number of edges) time, first by a randomized algorithm and subsequently deterministically [Che+22; Bra+23]. Recent work has also produced a randomized parallel algorithm for exact single-commodity min-cost flow with work and depth [Bra+25].
We focus this paper on the problem of minimum-cost -commodity flow.
Take be a directed graph with vertices and edges, a positive integer, , and . Given some cost vector and demand vectors , where , write . Thus, the minimum-cost -commodity flow problem is the following linear program
Minimize
where
subject to:
are variables
for all and
for all
for all
(1)
Here is the edge-vertex directed incidence matrix of : for any directed edge , we have and with all zeros elsewhere.
Think of the variables as representing flows of distinct commodities, the vector as representing the cost of using each edge, and the vectors as representing the desired demand on each vertex (the excess or deficit induced by the flow of a commodity towards or away from a vertex). The constraint says that the combined flow of all commodities cannot exceed the capacity of each edge, which is taken to be 1 here.
Carnegie Mellon University, {chenxin2,astepin,cstang}@andrew.cmu.edu
For high-accuracy minimum-cost multicommodity flow on possibly directed graphs, the strongest specialized running-time bound is due to van den Brand and Zhang [BZ23]. For integer capacities, costs and demands of polynomial magnitude, and for , their deterministic algorithm runs in time . It performs sequential interior-point iterations, where bound the numerical data. The returned flows have cost at most , are nonnegative and obey shared capacities exactly, while conservation is guaranteed up to an additive error. We remark that the shared cost vector and unit capacities are a special case of this formulation. We note that this theorem is the closest result when it comes to total-running-time comparison, but it is neither an exact-conservation nor a parallel-depth.
A recent focus in this area has been to present an algorithm with a runtime dependent on the intrinsic dimension of the problem, which can be roughly thought of as the rank. We remark on the rank-sensitive box-LP method of [LS20]. They introduce one unused-capacity variable per edge for a total of variables and equality rank exactly , and so it requires adaptive weighted normal-system rounds. The goal of this paper is to reduce the adaptive solve count in the dense regime. Specifically, we remove the shared-capacity equations from the linear systems without relaxing shared capacities. We do this by encoding feasible edgewise transfers through our zonotope method.
We make the following mild assumptions:
We present an algorithm for solving (1) that runs in time .
Theorem 1.1. There exists an algorithm which, assuming the mild assumptions in (2), can obtain an almost-feasible solution to (1) that attains value at most plus the minimum value of (1). The algorithm runs in time . Here, “almost-feasible” means that .
A naive approach to solving the linear program in (1) might suggest using rank-sensitive linear programming algorithms, but this proves to be expensive because this linear program has high rank. Instead, our algorithm repeatedly constructs and solves subproblems that have low rank, which can be solved quickly. These subproblems are zonotope flows and will be defined in (4).
We remark that we cannot hope to find a feasible solution, as opposed to an almost-feasible solution, while preserving the runtime. Already for two commodities, exact directed flow has the same polynomial-time expressive power of general linear-programming via a reduction in [Ita78]. For integer-coefficient LP’s with polynomially bounded data, [DKZ22] show nearly-linear-size reductions that apply to high-accuracy approximations with only a polynomial loss in additive error. However, these reductions produce only sparse instances. We also remark that in general the solution to such a system can be rational numbers whose numerator and denominator are digits, which incurs a -factor blowup of any arithmetic operations.
Notation.
| Notation | Meaning |
| Directed graph with vertex set and edge set . | |
| Numbers of vertices and directed edges, respectively. | |
| Number of commodities and the index set . | |
| Directed edge-vertex incidence matrix. | |
| Flow and edge-cost vectors for commodity . | |
| Net-demand vector for commodity ; conservation is . | |
| OPT and | Optimal objective value and requested additive accuracy. |
| The norm of . | |
| Asymptotic notation suppressing polylogarithmic factors. | |
| The matrix multiplication exponent. |
Minimize
where
are variables
subject to:
for all and
for all
for all
(3)
This is indeed an equivalent problem, since we may update (as suggested by the notation).
The basic idea is to construct a new linear program (which we will call zonotope flow), which has low rank, and whose minimum is at most times the minimum of (3) (note that this is a negative number). By using Lemma 4.1 to solve the zonotope linear program quickly, we make at least a amount of progress in the original problem (3). (Thus, we only need to solve zonotope linear programs in order to solve (1) up to additive error, as required in Theorem 1.1.)
Let us now describe the zonotope linear program. We are searching for an integer and real numbers and vectors and and a constant with a desirable property which will be specified later.
Definition 2.1. For a k-commodity flow instance as defined at the start of the paper, an r-commodity zonotope flow is given by mapping coefficients and capacities and is the following linear program:
Minimize
where
are variables
subject to:
for all and
(4)
for all
That is, the vertex residue conditions exist in the commodities mapped to (via ), but the capacities exist in the commodities.
Observe that (4) is in the form required by Lemma 4.1. Given a feasible point of (4), we would like to set , and hope the following desirable properties hold:
• (Feasibility) is a feasible point of (3)
• (λ-Efficacy) The minimum value of (4) is at most λ times the minimum value of (3)
If both Feasibility and -Efficacy hold, we can do the following: Use Lemma 4.1 to solve (4), which will make at least a amount of progress in the original problem (3). We will show in Section 3 that we can find data which satisfy both Feasibility and -Efficacy, with .
Now let us explain the name “zonotope”. We are searching for sufficient conditions for Feasibility and -Efficacy. For fixed , define the convex body
such that for all
This is a linear image of the hyperbox
and is thus a zonotope, justifying the name. Additionally, define the convex body
Observe that this is a simplex. Now, a sufficient (and necessary) condition for Feasibility is that
whereas a sufficient condition for -Efficacy is that
where denotes the dilation by a factor of with respect to the origin. (Indeed, if denotes the minimizer of (3), then has value times the minimum of (3), and is moreover in the image of the mapping )
3 Construction of zonotope flows, and convergence
We give an explicit construction for the data , with , such that both Feasibility and -Efficacy are satisfied. As observed previously, we only need to verify (5) and (6).
Let us slightly reformulate the problem. Write for the -simplex, embedded in as the convex hull of the standard basis vectors (think of this as barycentric coordinates). We will show that for each point , there exists a zonotope satisfying
Construct as follows. For all , define the translation vector (the standard basis vectors), and define . Moreover, define the point
where is the centroid of . Now, define
which is manifestly a zonotope.
Claim I. We have (i.e. the left containment of (7)).
Proof. It suffices to check that each vertex of the lhs is contained in the rhs. By symmetry, it suffices to check only the first vertex of the lhs. Namely, we only need to verify .
Recalling that , we compute
which is equal to
which can be expressed in the form if we set
Claim II. We have (i.e. the right containment of (7)).
Proof. By symmetry, it suffices to verify that for all possible choices of , we have
This follows from the fact that
Observe that we may also write
The corresponding data are as follows: We have , where we identify the set with the set of pairs . Now let be fixed. Set
Now set
As noted above, this data satisfies (5) and (6). We may interpret the variables as representing “taking flow from commodity and giving flow to commodity ” (the commodity representing “unused capacity” or “the null commodity”).
Proof of Theorem 1.1. Let us set aside the problem of how do we obtain an initial feasible point to (1), and assume we currently have a feasible point ; now how do we make at least of progress?
The data above is a linear program in the form of Lemma 4.1, with and . The matrix is a block matrix, whose blocks are scalar multiples of the matrix ; furthermore, is 4-row-sparse. Thus, setting aside for now the problem of how do we obtain , Lemma 4.1 implies that we can solve (4) in time . As noted previously, in order to solve (1) we only need to solve zonotope linear programs; since each one takes time , the total runtime is still , as claimed in Theorem 1.1.
How do we obtain ? Note that 0 is guaranteed to be a feasible point, and in order to obtain the separation required, we simply perturb l and u slightly. At the end this means we have solved a slightly different problem. We can perturb the solution so as to obtain an almost-feasible solution to the original problem.
Now we will say how to obtain an initial feasible point to (1). Create a new vertex and add edges between and every other vertex, with very large capacities and costs. Now there is guaranteed to be a flow that satisfies all vertex demands.
Note. It is not possible to give data satisfying and also satisfying both (5) and (6); in other words, our choice of is optimal. To see this, simply observe that all zonotopes are, up to translation, centrally-symmetric convex bodies. Thus, (7) would imply that for some translation vector , but this is not possible if . However, it may be possible that by using a smaller value of , one can reduce , in such a way that the total runtime is reduced.
4 Solvers for zonotope flows
This section presents the general LP result used by the reduction as well as the additional structural speedup needed for the advertised running time.
Lemma 4.1. Let be positive integers satisfying , and let , , such that the magnitudes and condition numbers are . Further assume that is -row-sparse; i.e. each row of contains only nonzero entries.
Consider the linear program
Minimize
where
are variables
subject to:
for all
Assume the linear program is feasible and has full column rank. Suppose we are given an initial point which is a almost-feasible point, with margins at least . Then in time we can find which is almost-feasible such that and such that .
This is similar to Theorem 21 from [LS15a], but our proof is somewhat different. In particular, we do not have any dependence on .
Proof of Lemma 4.1. By the work in [LS15b] (see [LS20] for a more polished version), we know that in order to solve the linear program in Lemma 4.1, we can run an interior-point method that uses only iterations, each iteration requiring us to solve a linear system of the form for some diagonal matrix (“weight matrix”). It suffices to give a solver for the matrix that runs in time . In what follows, we will assume is the identity matrix (the argument goes through for general mutatis mutandis).
Recall the recent result by Kelner, namely that we can solve a system of the form in time (Theorem 1.1 of [Kel26]). If we naively use this to get a solver for the matrix , this will take too long, since is in general a dense matrix. Instead, we will sparsify : sample of its rows according to some probability distribution, resulting in the random matrix , such that whp is a 2-approximation to (in the sense of positive semi-definite matrices). The key idea is that is sparse: it has only nonzero entries. Now we can apply Kelner's result; by preconditioned Richardson iteration, this gives a solver for the original matrix in time as desired.
How do we obtain ? We sample by leverage scores.
Recall that if the rows of A are labeled , then the leverage score is given by
which is a real number in the interval . Observe that
We have the following lemma, due to [RV07] and [Tro11]:
Lemma 4.2. Suppose satisfy for each . Then, if we independently sample each row of with probability , this will result in a matrix such that whp is a 2-approximation to .
So if we could somehow obtain the leverage scores (or even -approximations thereof), we could use Lemma 4.2 to obtain the desired sparsified . The problem is that naively computing the leverage scores involves giving a solver for the matrix , which is exactly the problem we started out with!
Instead, we follow the methods in [LMP12]. For each define the auxiliary matrix to consist of the square matrix appended below . When , will have all the same leverage scores as . Our strategy is as follows:
• Initialize , large enough so that the leverage scores of are easy to compute. Write for 2-approximations to the leverage scores.
• Given , use Lemma 4.2 to obtain a sparsified , with rows, such that is a 2-approximation to . It follows that is a 8-approximation to .
• As noted above, we can use to do preconditioned Richardson iteration to obtain a solver for that runs in time . Apply Lemma 4.3 with this solver as the oracle; we see that we obtain in time .
• Set and repeat.
After running this loop times, we will have , at which point is so small that we can use as approximations of . As noted above, this allows us to use Lemma 4.2 to obtain , as desired.
Lemma 4.3. Suppose we are given an oracle solver for the matrix . Then whp we can compute which are 2-approximations to the leverage scores in time as well as oracle calls.
Proof. The key identity is
If is a random Gaussian matrix, then whp
by Johnson-Lindenstrauss lemma. Our algorithm is as follows.
First compute (this takes time ). Now compute (this takes time ). Now run the oracle solver, once for each column of ; since there are columns, this takes oracle calls and results in the matrix .
Finally we may simply compute for each ; this takes time . We take to be .
5 Acknowledgements
CT thanks Yang P. Liu and Richard Peng for explaining the literature pertaining to [LS15a].
References
[Bra+23] Jan van den Brand, Li Chen, Rasmus Kyng, Yang P. Liu, Richard Peng, Maximilian Probst Gutenberg, Sushant Sachdeva, and Aaron Sidford. "A Deterministic Almost-Linear Time Algorithm for Minimum-Cost Flow". In: 2023 IEEE 64th Annual Symposium on Foundations of Computer Science (FOCS). IEEE, 2023, pp. 503–514. doi: 10.1109/FOCS57990.2023.00037. arXiv: 2309.16629 [cs.DS].
[Bra+25] Jan van den Brand, Hossein Gholizadeh, Yonggang Jiang, and Tijn de Vos. "Parallel Minimum Cost Flow in Near-Linear Work and Square Root Depth for Dense Instances". In: Proceedings of the 37th ACM Symposium on Parallelism in Algorithms and Architectures. Association for Computing Machinery, 2025, pp. 1–16. doi: 10.1145/3694906.3743356. arXiv: 2503.13274 [cs.DS].
[BZ23] Jan van den Brand and Daniel J. Zhang. "Faster High Accuracy Multi-Commodity Flow from Single-Commodity Techniques". In: 2023 IEEE 64th Annual Symposium on Foundations of Computer Science (FOCS). IEEE, 2023, pp. 493–502. doi: 10.1109/FOCS57990.2023.00036. arXiv: 2304.12992 [cs.DS].
[Che+22] Li Chen, Rasmus Kyng, Yang P. Liu, Richard Peng, Maximilian Probst Gutenberg, and Sushant Sachdeva. Maximum Flow and Minimum-Cost Flow in Almost-Linear Time. 2022. arXiv: 2203.00671 [cs.DS].
[DKZ22] Ming Ding, Rasmus Kyng, and Peng Zhang. Two-Commodity Flow is Equivalent to Linear Programming under Nearly-Linear Time Reductions. 2022. arXiv: 2201.11587 [cs.CC].
[FF56] L. R. Ford Jr. and D. R. Fulkerson. "Maximal Flow Through a Network". In: Canadian Journal of Mathematics 8 (1956), pp. 399–404. doi: 10.4153/CJM-1956-045-5.
[Ita78] Alon Itai. "Two-Commodity Flow". In: J. ACM 25.4 (Oct. 1978), pp. 596–611. ISSN: 0004-5411. DOI: 10.1145/322092.322100.
[Kel26] Jonathan A. Kelner. Solving Linear Systems in Bit Operations. 2026. arXiv: 2609.38101 [cs.DS].
[KV96] Sanjiv Kapoor and Pravin M. Vaidya. "Speeding up Karmarkar's algorithm for multicommodity flows". In: Mathematical Programming 73 (1996), pp. 111–127. DOI: 10.1007/BF02592100.
[LMP12] Mu Li, Gary L. Miller, and Richard Peng. Iterative Row Sampling. 2012. arXiv: 1211.2713v1 [cs.DS].
[LS15a] Yin Tat Lee and Aaron Sidford. "Efficient Inverse Maintenance and Faster Algorithms for Linear Programming". In: 56th IEEE Annual Symposium on Foundations of Computer Science (FOCS 2015). Theorem numbering refers to arXiv:1503.01752v3. 2015, pp. 230–249. DOI: 10.1109/FOCS.2015.23. arXiv: 1503.01752 [cs.DS].
[LS15b] Yin Tat Lee and Aaron Sidford. Path Finding II: An Algorithm for the Minimum Cost Flow Problem. Theorem numbering refers to arXiv:1312.6713v2. 2015. arXiv: 1312.6713 [cs.DS].
[LS20] Yin Tat Lee and Aaron Sidford. Solving Linear Programs with Linear System Solves. Theorem numbering refers to arXiv:1910.08033v2. 2020. arXiv: 1910.08033 [cs.DS].
[RV07] Mark Rudelson and Roman Vershynin. "Sampling from large matrices: An approach through geometric functional analysis". In: J. ACM 54.4 (July 2007), 21–es. ISSN: 0004-5411. DOI: 10.1145/1255443.1255449.
[Tro11] Joel A. Tropp. "User-Friendly Tail Bounds for Sums of Random Matrices". In: Foundations of Computational Mathematics 12.4 (Aug. 2011), pp. 389–434. ISSN: 1615-3383. DOI: 10.1007/s10208-011-9099-z.