AHEAD: Adaptive Neural Acceleration for Large-Scale Linear Programming
Organizations: North Carolina State University · Kennesaw State University · Nokia Applied Research
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 variables, AHEAD achieves -- 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.
Figures & tables
| Method | IID ( ) | Size shift ( ) | Unseen distribution ( ) | |||
| Speedup | Time (s) | Speedup | Time (s) | Speedup | Time (s) | |
| Cold PDHG (Gurobi) | ||||||
| Best validation ( ) | ||||||
| PDHG-Net ( Li et al., 2024 ) | ||||||
| AHEAD | ||||||
| Per-instance optimal | ||||||
| Input state | Total steps | (%) |
| Fixed stepsize | 104.4 | – |
| Residuals | 92.5 | 11.4 |
| Movement/nonlinearity | 80.4 | 13.1 |
| Primal weight | 79.3 | 1.4 |
| Cosine geometry (AHEAD) | 76.8 | 3.2 |
| Controller | Total steps | Continuation steps |
| 5 layers, width 64 | 68.5 | 36.5 |
| 7 layers, width 128 | 72.9 | 40.9 |
| Weight-shared (AHEAD) | 67.8 | 35.8 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Component | Configuration |
| GPU | NVIDIA A100 PCIe 40GB; driver 580.173.02 |
| CPU | 2 Intel Xeon Gold 5317; 24 cores, 48 threads |
| Memory | 251 GiB |
| OS | Ubuntu 24.04.3 LTS; Linux 6.8.0-139 |
| Python | 3.12.9 |
| PyTorch | 2.9.0 |
Learning to Optimize
Learning to Optimize uses data to adapt algorithms, solver decisions, and solution maps for faster or better optimization.
See all 138 papers