Solving Linear and Integer Programs Faster Using Data

Yuhan Ye, Omar BennounaNeurIPS 2026

TL;DR

Many real-world decision systems—like routing packets or scheduling power grids—solve the exact same massive optimization problem over and over, where only the cost coefficients change from day to day. This paper shows how to use historical data to shrink those giant Linear and Integer Programs down to a tiny fraction of their original variables, while offering a mathematical dial to trade off problem size against the exact probability of finding the true optimal solution. Best of all, learning this compression doesn't require training a heavy neural network—it just takes simple linear algebra and a handful of past solves.

What Problem Does This Paper Address?

Imagine managing a delivery network. The physical roads and truck capacities (your constraints, or feasible region) stay fixed, while traffic delays and fuel prices (your cost vector) fluctuate constantly. Solving high-dimensional Linear Programs (LPs) or Integer Programs (IPs) from scratch every time costs change is a major computational bottleneck.

Existing shortcuts try to compress these problems using random projections, neural networks that predict low-dimensional projections, or heuristics that guess which integer variables to freeze. However, these methods suffer from frustrating flaws: they take ages to train, risk leaving large optimality gaps on the table, or restrict you solely to integer solutions you’ve already seen in your training set. Crucially, none of them learn a single, compact reformulation with a rigorous guarantee on the probability of recovering the exact set of optimal solutions for a brand-new cost vector.

Methods

Instead of treating problem compression as a black-box machine learning task, the authors turn to geometry. Even if an optimization problem lives in a 10,000-dimensional space, varying the cost vector within realistic bounds usually only nudges the optimal solution within a much smaller "slice" of the feasible region.

Figure 1: Exact compression through the decision-relevant subspace. Costs in Cρ have c1 < 0, so all reachable optimizers lie on the highlighted right edge. The direction U = (0, 1)⊤parameterizes this edge as x = (1, z), reducing the LP to one variable while preserving its full optimizer set.

The authors formalize this via the decision-relevant subspace—the subspace spanned by the differences between all reachable optimal solutions. By picking one valid optimal solution as an "anchor" $x_0$ and building a basis matrix $U$ for this subspace, any high-dimensional problem can be rewritten as an exact, low-dimensional affine slice ($x = x_0 + Uz$).

Because computing this subspace from scratch is NP-hard, the authors introduce a sequential, sample-based algorithm:

  1. Calibrate a working boundary: Since real-world cost distributions can have weird outliers that bloat the compressed problem, they use pilot samples (and a ridge Mahalanobis score) to draw a convex confidence set around the most likely costs, intentionally ignoring a tunable fraction $\rho$ of rare outliers.
  2. Test and append: Looping through historical cost samples inside that boundary, they check if the current subspace $U$ already captures the optimal solution face for each sample. If it misses a direction, they append the missing vector ($x - x_0$) to $U$. If optimal solutions are unique (common in continuous settings), you don't even need to loop—you can solve all $n$ training problems in parallel and take a basis of their differences!

Unlike prior theoretical work, this algorithm requires no nondegeneracy assumptions (meaning it handles real-world LPs with flat faces and multiple tied optima gracefully) and guarantees exact optimality on new test costs at a fast statistical rate of $1 - \rho - \widetilde{O}(d^\star_\rho / \hat{n})$.

Datasets

The authors evaluate their framework (with no newly introduced benchmarks, relying on synthetic families and established optimization libraries) across:

  • Linear Programs: Synthetic repeated-LP families (Packing, MinCostFlow, and RandomLP A–D) alongside classic Netlib benchmark instances (SC205 and GROW7).
  • Integer Programs: Benchmark Unit Commitment (power generation scheduling) and Knapsack problems.

Key Insights and Ideas

  • Ambient dimension is an illusion: How much you can compress an LP or IP isn't governed by how many variables $d$ it originally has, but by $d^\star$—the dimension of the space where optimal decisions actually move.
  • Outlier pruning unlocks massive compression: Trying to guarantee 100% optimality for every freak edge-case cost forces you to keep extra dimensions. By dialing $\rho$ up slightly to ignore low-probability cost regions, the decision-relevant dimension drops sharply, yielding much smaller LPs with virtually zero loss in average test accuracy.
Figure 2: Comparison across target outside-mass levels. Rand corresponds to random projections.
  • Sparsity matters just as much as size: Shrinking a 360-variable LP down to 19 variables doesn't automatically make it fast if the new constraint matrix becomes a dense brick of numbers. Because neural projection baselines mash all variables together, their compressed matrices hit ~100% density. The authors' optimizer-difference basis naturally preserves structure (e.g., 26.2% density on Packing), translating dimension reduction into actual wall-clock speedups.
  • Generalizing to unseen integer solutions: Previous IP reduction methods often act like lookup tables of past strategies. Because this method restricts the geometry while keeping integrality constraints intact, it can discover optimal integer combinations that never appeared in the training data.

Key Results

  • Blistering learning speed: Because there are no neural networks to train via iterative gradient passes or auxiliary quadratic programs to solve, learning the compression with 20 training LPs takes 0.08 to 1.20 seconds—making it 30.1$\times$ to 477.0$\times$ faster to learn than the Fully Connected Neural Network (FCNN) baseline (which takes 14 to 60 seconds).
  • Faster online solving: Across all eight matched-dimension LP benchmarks, the compressed LPs solve faster than both FCNN and the full, uncompressed LPs—achieving up to a 10$\times$–19$\times$ solve-time speedup over the full LP on larger RandomLP instances (e.g., dropping from 67.6 ms down to 3.4 ms on RandomLP D).
  • Superior accuracy & IP recovery: Across varying sample sizes and $\rho$ levels, the method consistently matches or beats data-driven, neural, and random projection baselines in objective value ratio, while achieving higher exact recovery rates and much faster training times on IP benchmarks.

Limitations and Future Work

  • Fixed constraints only: The entire framework relies on the feasible region ($Ax \le b$) staying completely static across runs. Extending this geometric compression to settings where constraints also vary alongside the objective is a major open direction.
  • Sparsity isn't explicitly optimized: While the learned basis is naturally sparser than dense neural projections, it is still denser than the original problem (e.g., jumping from 0.48% to 26.19% density on Packing). The authors plan to explicitly optimize basis selection to maximize sparsity, as well as extend the theory beyond linear/integer setups to more general optimization problems.

Summary updated

Abstract

We study how much a linear program (LP) or an integer program (IP) can be compressed when solved repeatedly over a fixed feasible region with varying objective coefficients. We provide a framework that compresses LP and IP formulations with guarantees on the probability of preserving optimality, using either an uncertainty set for the cost vector or historical samples. Our framework exposes a tunable tradeoff between compression and the probability of recovering an optimal solution. We characterize the minimum dimension of affine reformulations preserving the full optimizer set over a given cost region and provide sample-based learning algorithms with fast-rate guarantees, without requiring a nondegeneracy assumption for LPs. With high confidence over the training data, the learned reformulation preserves the optimizer set for an independent test cost with probability at least $1-\rho-\widetilde{O}(d^\star_\rho/\hat n)$, where $\rho$ bounds the excluded probability mass, $d^\star_\rho$ is the retained region’s decision-relevant dimension, and $\hat n$ is the number retained from $n$ training samples. Existing data-driven approaches to LP and IP reduction do not, to our knowledge, learn a single low-dimensional affine reformulation with a prescribed probability of preserving the full optimizer set. Experimental results show substantial improvements over the compared baselines in accuracy, sample efficiency, and computational speed.
BibTeX
@inproceedings{ye2026solving,
  author = {Yuhan Ye and Omar Bennouna},
  title = {{Solving Linear and Integer Programs Faster Using Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=A5qzAwIMSD},
}
Figure