Skip to content
AI.info

Research

Minimum-Cost Network Flow with Dual Predictions

Minimum-Cost Network Flow with Dual Predictions Overview Research area: Learning-augmented algorithms (algorithms with predictions), applied to combinatorial optimization — specifically minimum-cost n

Minimum-Cost Network Flow with Dual Predictions
arXiv
2601.20203
Published
2026-01-28
Authors
Zhiyang Chen, Hailong Yao, Xia Yin

AI summary

Minimum-Cost Network Flow with Dual Predictions

Overview

Research area: Learning-augmented algorithms (algorithms with predictions), applied to combinatorial optimization — specifically minimum-cost network flow, with empirical validation in traffic networks and chip escape routing.

Technical level: Advanced. The paper assumes familiarity with combinatorial optimization, linear programming duality, complementary slackness, cost-scaling algorithms, and statistical learning theory (PAC learning, pseudo-dimension).

Scope: The paper presents the first minimum-cost flow algorithm augmented with a dual prediction, proves consistency and robustness bounds for it, proves sample-complexity bounds for learning the prediction, and evaluates it empirically on two applications.

What This Paper Is About

Minimum-cost network flow is a classic optimization problem that is polynomially solvable but often slow in practice on large instances, and its worst-case analysis is frequently pessimistic compared to observed behavior. The paper asks whether a machine-learned dual prediction — an estimate of the optimal node potentials — can be used to warm-start the classic ε-relaxation algorithm so that it runs faster when the prediction is good while never doing worse than the classical worst-case bound when the prediction is bad. It then tests this idea on traffic networks (a fixed learned prediction) and chip escape routing (a CNN-based feature-to-prediction model).

Key Contributions

  1. First minimum-cost flow algorithm with a dual prediction. Built on ε-relaxation (Bertsekas 1986), which the authors chose because it is a dual algorithm (only n variables to predict instead of m), is easy to parallelize, and has analyzable time complexity — unlike network simplex, whose practical dominance is not matched by clear theoretical bounds.

  2. Consistent and robust time-complexity bounds. The basic warm-start algorithm achieves significantly reduced running time when the infinity-norm prediction error is small, and degrades exactly to the classical bound when the prediction is fully erroneous.

  3. PAC-learning guarantees for the prediction. Using the data-driven algorithm design framework, the authors bound the pseudo-dimension of the relevant function classes and give sample-complexity bounds for both a fixed learned dual and a feature-based neural network predictor.

  4. Empirical validation on two applications (traffic networks and escape routing), with speedups reported in both the abstract and the experimental section.

Main Findings

  • Warm-start bound (Theorem 1): Running ε-relaxation from a preprocessed predicted dual takes O(min{ n³ + n²ε⁻¹‖p̂−p*‖∞ , n³ε⁻¹C }) time, where n is the number of nodes, C is the maximum absolute edge cost, and ‖p̂−p*‖∞ is the infinity-norm prediction error against an arbitrary optimal dual p*. For 0/1 flow instances (capacities b_ij = 0, c_ij = 1), the bound improves to O(min{ mn + mε⁻¹‖p̂−p*‖∞ , mnε⁻¹C }).

  • Setting ε = 1/(n+1) to guarantee optimality yields O(min{ n³‖p̂−p*‖∞ , n⁴C }). The second term, n⁴C, matches the classical ε-relaxation complexity when the prediction is useless.

  • Cost-scaling bound (Theorem 2): Combining the warm start with the cost-scaling trick gives O(min{ n³ log‖p̂−p*‖∞ , n³ log(nC) }), and O(min{ mn log‖p̂−p*‖∞ , mn log(nC) }) for 0/1 flow instances. The second term is the classical O(n³ log(nC)) worst-case bound, so the algorithm is both consistent (fast when prediction error is small) and robust (never worse than classical).

  • Preprocessing is safe: The dual is shift-invariant, and the authors prove (Lemma 1) there exists an optimal dual in [0, (n−1)C]; clipping the prediction to that range does not increase the prediction error.

  • Key technical lemma (Lemma 2): For the warm-start dual p̂, β(p̂) ≤ 2‖p̂−p*‖∞, where β(p) measures the minimum over feasible flows of the maximum reduced-cost length of a simple unblocked path. This is what translates prediction error into running time.

  • Sample complexity, fixed prediction (Theorem 3): With k = Ω( H²/ε² ( n log(nC) + log(1/δ) ) ) i.i.d. samples, the generalization error of the algorithm's running time is at most ε with probability at least 1−δ. The underlying pseudo-dimension is O(n log(nC)), giving a Õ(n/ε²) sample complexity. The authors emphasize this bounds algorithm performance end-to-end, not just prediction error.

  • Sample complexity, neural predictor (Theorem 4): With k = Ω( H²/ε² ( n d_NN log(nC) + log(1/δ) ) ) samples, the same uniform-convergence guarantee holds for a neural network predictor h, where d_NN is the maximum pseudo-dimension over per-node output components. The paper notes Bartlett et al. (2019) gives an O(WL log W) pseudo-dimension bound for piecewise-linear networks with W weights and L layers.

  • Empirical speedups (abstract): 12.74× and 1.64× average speedup on the two applications.

  • Empirical speedups (experiments section, as far as it appears in the provided text): about 6.2 ∼ 21.4× acceleration on real-world traffic networks and about 1.1 ∼ 2.3× acceleration for escape routing. The remainder of the experiments section, including dataset sizes, hardware details, and per-instance results, is not included in the provided content.

  • Comparison with prior prediction-based bounds: Chen et al. (2022) give O(m^{3/2}n + (mn + m log m)‖p̂−p*‖₀) for min-cost 0/1 flow, which the authors state is not better than their O(mn log‖p̂−p*‖∞) bound and uses the harder-to-achieve 0-norm error. Sakaue and Oki (2022) give O(mn²‖p̂−p*‖∞), which the authors state is worse in both prediction error and graph size. Both prior works, the authors note, are purely theoretical rather than practical.

Methodology in Plain English

Starting point. The ε-relaxation algorithm maintains a primal flow and a dual set of node potentials, iteratively fixing surplus at nodes until the pair satisfies a relaxed version of complementary slackness. Its runtime depends on how far the initial dual is from an optimum, measured by a quantity β(p₀).

Warm start. Instead of starting from an arbitrary dual, the algorithm starts from the predicted dual p̂. Before running, the prediction is clipped: subtract its minimum so the smallest value is 0, then cap values at (n−1)C. This keeps the prediction in the provably valid range without increasing its error.

Proving the bound. The paper shows that if a true optimal dual pair (x*, p*) exists, then for any unblocked path with respect to x*, the reduced-cost length under p̂ is at most 2‖p̂−p*‖∞. Plugging this into the classical running-time expression for ε-relaxation yields the theorem.

Cost scaling. Because the basic algorithm's runtime grows linearly in the cost scale C, the authors layer on a standard cost-scaling loop: scale edge costs by roughly (n+1)/‖p̂−p*‖∞, run with ε = 1, then repeatedly multiply costs and duals by a factor c (typically 2 ≤ c ≤ 4) and re-run. Each scaling step costs O(n³), and there are at most log‖p̂−p*‖∞ steps.

Handling unknown prediction error. The cost-scaling algorithm formally needs to know ‖p̂−p*‖∞ to set the starting scale T. The authors note this can be removed by guessing T from 1 up to ⌊log(nC)⌋ and restarting if a step fails to terminate within Ω(n³) time, without changing the complexity. In practice they suggest tuning T from the observed learning error.

Learning the prediction, case 1 — fixed topology. For traffic networks where the graph, capacities, and supplies are fixed but edge costs vary, the authors learn a single dual vector. They minimize a surrogate loss based on log‖p̂ − p^(i) + Δ_i‖∞ over training instances, allowing a per-instance shift Δ_i to account for shift invariance. This is posed as minimizing a convex function under linear constraints and solved with Frank-Wolfe.

Learning the prediction, case 2 — feature-based CNN. For escape routing (routing a w×h pin array to the board boundary on a (w+1)×(h+1) grid graph without crossings, minimizing routed length), the model takes a 3-channel (w+1)×(h+1) feature map: a binary obstacle indicator, shortest-path distance to the nearest pin, and shortest-path distance to the boundary. It outputs a (w+1)×(h+1) predicted dual matrix. The architecture is a fully convolutional UNet-style network: a 3×3 convolution to 16 channels, two downsampling and two upsampling blocks (each with two 3×3 convolutions and two group normalization layers), residual connections between matching-resolution down/upsampling pairs, and a final 3×3 convolution. Inputs and outputs are divided by max(w, h) to normalize to [0, 1]. Training uses average mean-squared (l₂) error, because the authors found l∞ error made training very difficult.

Theory for the learned predictor. The sample-complexity results are derived by bounding the pseudo-dimension of the function class mapping instances (or instance features) to algorithm running time, then applying a uniform convergence argument.

Why This Matters

Impact on research. The paper connects two threads that had not previously met: learning-augmented algorithms for network optimization (previously applied to matching, maximum flow, and global min-cut) and the ε-relaxation family of min-cost flow solvers. It advances the state of prediction-dependent bounds for min-cost flow in both prediction-error metric (infinity-norm rather than the harder 0-norm) and graph-size dependence, and it offers an end-to-end generalization bound on running time rather than on prediction error alone. It also gives concrete evidence that such algorithms can be practical, in contrast to prior purely theoretical min-cost flow results with predictions.

Real-world applications (as discussed in the paper):

  • Traffic networks: repeated min-cost flow on a fixed network with daily-varying edge costs (traffic conditions), where a learned fixed dual avoids recomputing from scratch.
  • Chip escape routing: routing pins on a PCB to the board boundary without intersections while minimizing total length — modeled as min-cost flow on a grid graph with obstacles.
  • Design automation generally, which the paper cites as a major application area for min-cost flow (Yan and Wong 2010).
  • Computer vision and scheduling, also cited by the paper as min-cost flow application areas; the authors further note that disjoint paths, maximum flow, minimum cut, matching, and assignment are all special cases of min-cost flow.

Industry relevance. Escape routing sits directly in electronic design automation for PCBs and chip design; the authors' affiliation includes the Key Laboratory of Advanced Materials and Devices for Post-Moore Chips. Any industrial pipeline that solves many similar large min-cost flow instances with slowly varying costs — logistics, routing, and layout — is a candidate for this warm-start approach, especially since ε-relaxation parallelizes well.

Future Directions

  • Closing the empirical gap between the two reported speedup figures: the abstract reports 12.74× and 1.64× average speedups while the experiments section reports 6.2 ∼ 21.4× and 1.1 ∼ 2.3× ranges; the full experimental analysis of when the larger speedups occur is not shown in the provided text.

  • Extending dual predictions to other min-cost flow solvers. The paper argues explicitly that ε-relaxation was chosen over network simplex partly because it is a dual method with analyzable complexity; whether a dual prediction can accelerate network simplex in a way that is theoretically accountable remains open.

  • Broadening beyond the two studied applications. The fixed-prediction analysis requires a fixed topology with perturbed costs, and the CNN predictor is tailored to grid-structured routing. Whether the framework transfers to instances where the topology itself varies is not addressed.

  • Practical deployment of the prediction-error estimation. The cost-scaling algorithm formally requires knowing ‖p̂−p*‖∞; the paper proposes a guessing/restart procedure that preserves the complexity bound but does not evaluate it empirically in the provided content.

  • Tighter pseudo-dimension and architecture-specific bounds. The bound for the neural predictor depends on d_NN; the paper cites generic O(WL log W) bounds for piecewise-linear networks rather than deriving bounds specific to the UNet-style architecture used.

Target Audience

Researchers working on learning-augmented algorithms and beyond-worst-case algorithm analysis; algorithm designers in combinatorial optimization and network flow; and theoretical computer scientists interested in sample-complexity and data-driven algorithm design. The empirical half will also interest EDA and physical-design engineers working on escape routing and PCB layout, and operations researchers solving repeated large-scale min-cost flow problems such as traffic and logistics networks. Readers need a strong background in optimization duality and learning theory to follow the proofs, but the high-level idea of warm-starting a solver from a learned dual is accessible to practitioners.

Authors’ abstract

Recent work has shown that machine-learned predictions can provably improve the performance of classic algorithms. In this work, we propose the first minimum-cost network flow algorithm augmented with a dual prediction. Our method is based on a classic minimum-cost flow algorithm, namely $\varepsilon$-relaxation. We provide time complexity bounds in terms of the infinity norm prediction error, which is both consistent and robust. We also prove sample complexity bounds for PAC-learning the prediction. We empirically validate our theoretical results on two applications of minimum-cost flow, i.e., traffic networks and chip escape routing, in which we learn a fixed prediction, and a feature-based neural network model to infer the prediction, respectively. Experimental results illustrate $12.74\times$ and $1.64\times$ average speedup on two applications.

Read the original paper