NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Differentiable Integer Linear Programming

Zijie Geng, Jie Wang, Xijun Li, Fangzhou Zhu, Jianye Hao, Bin Li, Feng WuICLR 2025

TL;DR DiffILO is a novel unsupervised learning framework that solves Integer Linear Programs (ILPs) by reformulating them into continuous, differentiable, and unconstrained optimization problems. By eliminating the need for expensive training labels from traditional solvers, it achieves a 13.2x training speedup while producing solutions with significantly higher feasibility and quality than standard supervised methods.

The Bottleneck in Learning to Solve ILPs

Integer Linear Programming (ILP) is the backbone of modern logistics, scheduling, and engineering. However, because ILPs are NP-hard, solving them exactly is computationally grueling. Recently, researchers have turned to Machine Learning (ML) to "learn" heuristics that can find high-quality solutions quickly.

The catch? Most existing ML methods are supervised. They require a "teacher" (like the commercial solver Gurobi) to solve thousands of instances first to generate training labels. This creates two massive headaches:

  1. The Data Bottleneck: Generating labels is incredibly slow and expensive.
  2. Objective Misalignment: A model trained to minimize "prediction error" against a label might produce a "plausible" solution that is actually mathematically infeasible or low-quality because it doesn't truly understand the underlying constraints.
Comparison of supervised learning and DiffILO's unsupervised approach

DiffILO: An Unsupervised Paradigm Shift

To address these issues, the authors propose DiffILO (Differentiable Integer Linear Programming Optimization), which shifts the paradigm to unsupervised learning. The core idea is to make the discrete, "jagged" landscape of an ILP smooth enough for standard gradient descent.

The transformation happens in three main steps:

  • Probabilistic Modeling: Instead of predicting binary 0/1 values directly, the model (a Bipartite Graph Neural Network) predicts the probability of a variable being 1. They treat the binary variables as Bernoulli distributions.
  • Penalty Reformulation: They convert hard constraints into "expected violations." These violations are added to the objective function as a penalty term, turning a constrained problem into an unconstrained one.
  • The Differentiability Trick: To allow gradients to flow through the discrete sampling process, they use a reparameterization trick. They use a "hard" version to calculate the loss but a "soft" relaxed version to propagate gradients, ensuring the model can learn via backpropagation.

By the end of this pipeline, the discrete ILP is transformed into a continuous function that is differentiable almost everywhere, allowing the model to learn to solve the problem by directly minimizing the objective and constraint violations.

Key Insights and Performance

The researchers evaluated DiffILO on several standard combinatorial optimization benchmarks, including Set Covering (SC), Maximum Independent Set (IS), Combinatorial Auctions (CA), and challenging real-world instances from MIPLIB 2017.

  • End-to-End Alignment: Because DiffILO is unsupervised, the training objective is the inference objective. The model isn't trying to mimic Gurobi; it's trying to satisfy the math of the problem itself. This leads to much higher feasibility ratios.
  • Adaptive Penalties: The framework uses a dynamic penalty coefficient. If the model finds solutions that violate constraints, the penalty increases automatically, forcing the model to prioritize feasibility.
  • Zero-Shot Generalization: Surprisingly, a model trained on small instances (2,000 variables) generalized well to large-scale instances (4,000 variables), suggesting it learned the "mechanisms" of the problem rather than just memorizing patterns.

Dramatic Speedups and Better Solutions

The most striking result is the reduction in training time. DiffILO achieved an average 13.2x speedup compared to supervised "Predict-and-Search" (PS) methods, primarily because it entirely skipped the data collection phase.

Training time comparison showing DiffILO's massive speedup over supervised methods

Beyond speed, DiffILO excelled in solution quality and feasibility:

  • Feasibility: On the Set Covering task, DiffILO generated feasible solutions for 50.8% of samples, whereas supervised methods often struggled to find any feasible solutions without heavy post-processing. On IS and CA datasets, feasibility reached 97.1% and 99.4%, respectively.
  • Solution Quality: When used to aid traditional solvers (DiffILO + Gurobi), it consistently outperformed Gurobi’s internal heuristics and supervised baselines, finding better solutions within the same 1,000-second time limit.
  • Real-World Performance: On complex MIPLIB instances, DiffILO found the optimal solution in 1,000 seconds, even surpassing Gurobi's performance after 3,600 seconds on specific cases.

Limitations and Future Work

While highly effective, DiffILO has limitations. As an unsupervised approach, it may sometimes settle for high-quality sub-optimal solutions rather than the absolute global optimum found by exact solvers. Additionally, the current work focuses on 0-1 programs (binary variables). Extending this to general integer variables or mixed-integer programs (MILPs) with continuous variables is a noted area for future research. Finally, combining unsupervised learning with small amounts of high-quality supervised data could be a promising "best of both worlds" approach moving forward.

Summary updated

BibTeX
@inproceedings{geng2025differentiable,
  author = {Zijie Geng and Jie Wang and Xijun Li and Fangzhou Zhu and Jianye HAO and Bin Li and Feng Wu},
  title = {{Differentiable Integer Linear Programming}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=FPfCUJTsCn},
}
Figure