Manuscript Offprint

arXiv:2610.36321

AHEAD: Adaptive Neural Acceleration for Large-Scale Linear Programming

Sihao Liu, Zhichao Hou, Huayue Gu, Raiyan Rahman, Liang Wu, Ruozhou Yu, Xiaorui Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Large-scale linear programs with millions of variables and constraints strain time and memory budgets. First-order methods such as the primal-dual hybrid gradient scale to this regime because they avoid matrix factorizations, but they require many iterations. Learned accelerators can reduce these iterations, yet fewer iterations do not guarantee a shorter solve. Learning inference also takes time, and running the accelerator longer trades solver time for inference time. Existing unrolled accelerators handle this trade-off poorly: each layer processes every variable and constraint, the predicted iterates still need solver refinement, and every instance runs the same layers. We therefore ask: What neural accelerator design achieves end-to-end speedups on large-scale linear programs across sizes and target accuracies? We introduce AHEAD, an accelerator that predicts step sizes for first-order linear programming solvers while keeping their update rules. Its weight-shared predictor reads compact solver statistics and rescales the primal and dual step sizes, so each warm-start iteration stays inexpensive and a short warm-start phase hands the solver a warm start. A learned handoff policy sets the number of warm-start iterations for each instance and target accuracy, after which the solver finishes under its own termination criterion. On packing linear programs with up to 10710^{7} variables, AHEAD achieves 6.5−11.6×6.5-11.6\times end-to-end speedups over Gurobi's first-order solver from a cold start, including on instances of unseen sizes and distributions. The gains extend to PageRank linear programs and hold across difficulty levels and target accuracies.

1 INTRODUCTION

Linear programming (LP) underpins large-scale decision-making, but instances with millions of variables and constraints strain time and memory budgets (Dantzig, 1963; Nesterov, 2014). First-order methods (FOMs) are attractive at this scale because they rely on sparse matrix-vector multiplications rather than costly factorizations (Lin et al., 2021; Applegate et al., 2023; Lu & Yang, 2025). However, they often need many iterations, particularly at high accuracy (Applegate et al., 2023). Their progress depends strongly on primal and dual step sizes: conservative choices slow convergence, while aggressive ones can destabilize it (Goldstein et al., 2013; Malitsky & Pock, 2018).

Learning-to-optimize (L2O) offers a promising way to reduce the computational cost of iterative optimization. Early learned optimizers replace hand-designed update rules with learned dynamics (Li & Malik, 2016; Andrychowicz et al., 2016; Wichrowska et al., 2017). More recent solver-integrated methods predict one-shot warm starts (Sambharya et al., 2024; Gao et al., 2024a), unroll first-order or interior-point trajectories (Li et al., 2024; Qian et al., 2024; Hou et al., 2024a;b; 2025), or learn feedback policies that tune algorithmic parameters online (Oshin et al., 2026). Across these approaches, learning exploits recurring structure among related instances to reduce the cost subsequently performed by an optimization solver.

Fewer solver iterations, however, do not guarantee a shorter solve. In learned acceleration of LP solvers, a solve typically has two stages: a neural accelerator first produces a warm start, and the classical solver then continues from it until the solution reaches the target accuracy. We call the two

Figure

Figure 1: Framework of AHEAD.

stages together, the neural warm start followed by the classical solve, end-to-end neural acceleration. Existing unrolled accelerators typically rely on a fixed number of computational layers. Each learned layer processes every variable and constraint and predicts new primal–dual iterates in place of the solver's native update, causing inference cost to grow with both instance size and rollout depth (Qian et al., 2024; Li et al., 2024). These approximate outputs may still require additional solver running time to recover feasibility or attain high accuracy (Sambharya et al., 2024; Gao et al., 2024b). Moreover, fixed-depth models use the same compute budget for every instance. This prevents them from adapting computational efforts to instance-specific needs and limits generalization across problem distributions and difficulty levels (Chen et al., 2022; Sucker & Ochs, 2025). Consequently, neural inference and subsequent refinement can offset or even outweigh the time saved by reducing solver iterations. These limitations lead to our central question: What neural accelerator design achieves end-to-end speedups on large-scale LPs across sizes and target accuracies?

To address this question, we introduce AHEAD (Adaptive Horizon for End-to-end Acceleration of Primal–Dual Solvers), a lightweight neural accelerator for first-order LP solvers. In the first stage, which we call the warm-start phase, AHEAD applies a weight-shared step-size predictor at every iteration and accelerates the solver only by adjusting its step sizes. To keep each warm-start iteration cheap, the predictor reads only ten statistics built from the solver's own intermediate results and outputs one multiplier for each of the primal and dual step sizes. AHEAD's solution quickly approaches the target accuracy on its own. Because only the step sizes change, AHEAD is also fully aligned with the solver: when high accuracy is required, its solution can be handed directly to the solver as a warm start. A learned handoff policy picks this moment by predicting whether stopping now or continuing gives a shorter end-to-end time. Together, these designs address three core challenges: they let the solver reach the target accuracy in fewer iterations, keep the time spent on each iteration low, and adapt the number of warm-start iterations to each instance and accuracy.

Our main contributions are summarized as follows:

• End-to-end speedups from fast convergence. AHEAD’s solution quickly approaches the target accuracy within a short warm-start phase, leaving little remaining solver time, which yields many-fold end-to-end speedups across unseen scales, LP families, and accuracy levels.

• Low time per iteration. We keep the inference time of each warm-start iteration small at any problem size: the predictor reads a 10-dimensional solver-native state and outputs two step-size multipliers, which suffice to steer PDHG through its oscillatory early phase.

• Adaptive number of warm-start iterations. We apply a weight-shared predictor at each iteration recurrently, so the warm-start phase can run for any number of iterations, and a learned handoff policy selects this number for each instance and accuracy, further reducing the end-to-end time.

References (45)