arXiv:2610.06665cs.DSOct 2026

Manuscript Offprint

arXiv:2610.06665

Faster high-accuracy multicommodity flow in dense graphs

Chenxin Dai, Alicia Stepin, Colin Tang

Abstract

We give a fast algorithm for solving min-cost kk-commodity flow. The basic idea is to construct an auxiliary linear program that has low rank and whose minimum value is at most 1/k1/k times the minimum value of the original problem (thus, solving this auxiliary linear program will make at least 1/k1/k 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 O~(poly(k)(n2.5+mn))\tilde{O}(\text{poly}(k)(n^{2.5}+m\sqrt{n})) on a directed graph with nn vertices and mm 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 O~(m+n3/2)\tilde{O}(m+n^{3/2}) work and O~(n)\tilde{O}(\sqrt{n}) depth [Bra+25].

We focus this paper on the problem of minimum-cost kk-commodity flow.

Take G=(V,E)G = (V, E) be a directed graph with nn vertices and mm edges, kk a positive integer, c∈Rmc \in \mathbb{R}^m, and d1,d2,…,dk∈Rnd_1, d_2, \ldots, d_k \in \mathbb{R}^n. Given some cost vector c∈Rmc \in \mathbb{R}^m and demand vectors d1,…,dk∈Rnd_1, \ldots, d_k \in \mathbb{R}^n, where k≥2k \ge 2, write [k]={1,…,k}[k] = \{1, \ldots, k\}. Thus, the minimum-cost kk-commodity flow problem is the following linear program

Minimize c⊤(f1+f2+⋯+fk)c^{\top}(f_1 + f_2 + \cdots + f_k)

where f1,f2,…,fk∈Rmf_1, f_2, \ldots, f_k \in \mathbb{R}^m

subject to: fi(e)≥0f_i(e) \ge 0

f1(e)+f2(e)+⋯+fk(e)≤1f_1(e) + f_2(e) + \cdots + f_k(e) \le 1

B⊤fi=diB^\top f_i = d_i

are variables

for all 1≤i≤k1 \le i \le k and e∈Ee \in E

for all e∈Ee \in E

for all 1≤i≤k1 \le i \le k

(1)

Here B∈Rm×nB \in \mathbb{R}^{m \times n} is the edge-vertex directed incidence matrix of GG: for any directed edge e=(v,w)∈Ee = (v, w) \in E, we have Bev=−1B_{ev} = -1 and Bew=+1B_{ew} = +1 with all zeros elsewhere.

Think of the variables f1,f2,…,fkf_1, f_2, \ldots, f_k as representing flows of kk distinct commodities, the vector cc as representing the cost of using each edge, and the vectors d1,d2,…,dkd_1, d_2, \ldots, d_k 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 f1(e)+f2(e)+⋯+fk(e)≤1f_1(e) + f_2(e) + \cdots + f_k(e) \leq 1 says that the combined flow of all kk 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 ϵ−1≤poly(n)\epsilon^{-1} \leq \mathrm{poly}(n), their deterministic algorithm runs in time O~(k5/2m nω−1/2)\widetilde{O}\left(k^{5/2}\sqrt{m}\,n^{\omega-1/2}\right). It performs O~(kmlog⁡(CU/ϵ))\widetilde{O}(\sqrt{km}\log(CU/\epsilon)) sequential interior-point iterations, where C,UC, U bound the numerical data. The returned flows have cost at most OPT+ε\mathrm{OPT} + \varepsilon, are nonnegative and obey shared capacities exactly, while conservation is guaranteed up to an additive ϵ\epsilon 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 (k+1)m(k+1)m variables and equality rank exactly m+k(n−q)m+k(n-q), and so it requires O~(m+k(n−q)log⁡(1/ϵ))\widetilde{O}(\sqrt{m+k(n-q)}\log(1/\epsilon)) 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 mm 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:

n≤m≤poly(n)k≤n0.1∥c∥∞,∥d1∥∞,∥d2∥∞,…,∥dk∥∞≤poly(n)(2)\begin{aligned}n&\leq m\leq \mathrm{poly}\left(n\right)\\k&\leq n^{0.1}\\\|c\|_\infty,\|d_{1}\|_\infty,\|d_{2}\|_\infty,\dots,\|d_{k}\|_\infty&\leq \mathrm{poly}\left(n\right)\end{aligned} \tag{2}

We present an algorithm for solving (1) that runs in time O~(poly(k)(n2.5+mn))\tilde{O}(\mathrm{poly}(k)(n^{2.5}+m\sqrt{n})).

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 1/poly(n)1/\mathrm{poly}(n) plus the minimum value of (1). The algorithm runs in time O~(poly(k)(n2.5+mn))\tilde{O}(\mathrm{poly}(k)(n^{2.5}+m\sqrt{n})). Here, “almost-feasible” means that ∥B⊤fi−di∥∞≤1/poly(n)\|B^\top f_i-d_i\|_\infty\leq 1/\mathrm{poly}(n).

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 Ω(n)\Omega(n) digits, which incurs a Ω(n)\Omega(n)-factor blowup of any arithmetic operations.

Notation.

NotationMeaning
G=(V,E)G=(V,E)Directed graph with vertex set VV and edge set EE.
n=∣V∣,m=∣E∣n = |V|, m = |E|Numbers of vertices and directed edges, respectively.
k and [k]k\text{ and }[k]Number of commodities and the index set [k]={1,2,…,k}[k]=\{1,2,\dots,k\}.
B∈Rm×nB\in\mathbb{R}^{m\times n}Directed edge-vertex incidence matrix.
fi,ci∈Rmf_i,c_i\in\mathbb{R}^mFlow and edge-cost vectors for commodity ii.
di∈Rnd_i\in\mathbb{R}^nNet-demand vector for commodity ii; conservation is B⊤fi=diB^\top f_i=d_i.
OPT and ϵ\epsilonOptimal objective value and requested additive accuracy.
∥x∥p\|x\|_pThe ℓp\ell_p norm of xx.
O~(∙)\tilde{O}(\bullet)Asymptotic notation suppressing polylogarithmic factors.
ω\omegaThe matrix multiplication exponent.