TL;DR
This paper introduces DYS-Net, a highly scalable method for integrating Integer Linear Programs (ILPs) directly into deep learning pipelines. By combining Davis-Yin splitting on a quadratically regularized relaxation in the forward pass with Jacobian-free backpropagation in the backward pass, the authors achieve massive training speedups and scale to combinatorial problems with tens of thousands of variables entirely on the GPU.
What Problem Does This Paper Address?
Many real-world decision problems follow a "predict-then-optimize" workflow. For example, a neural network might predict travel times across a map based on contextual data (like weather or traffic images), and a downstream algorithm then finds the shortest path. Ideally, we want to train the neural network by minimizing the final decision error (regret) rather than just the prediction error.
However, if the optimization step is an Integer Linear Program (ILP), its solutions are discrete. Small changes to the predicted costs either cause the optimal decision to stay exactly the same or jump discontinuously to a new one. This means the gradient of the solver's output with respect to its inputs is almost everywhere zero or undefined, breaking standard gradient-based backpropagation.
Methods
To bridge the gap between discrete optimization and continuous gradient descent, the authors propose DYS-Net:
- Relaxation and Regularization: They relax the discrete ILP constraints to their continuous linear programming (LP) counterparts and add a small quadratic regularization term ($\gamma \|x\|^2$). This makes the objective strongly convex, ensuring a unique, smoothly differentiable solution.
- Forward Pass via Davis-Yin Splitting (DYS): Instead of using standard projected gradient descent—which requires an expensive projection onto the entire complex constraint polytope at every step—they employ Davis-Yin Splitting (a three-operator splitting technique). DYS decouples the constraints into simpler, independent projections (e.g., projecting onto $Ax=b$ and applying a ReLU for $x \ge 0$), which can be computed cheaply and entirely on the GPU.
- Backward Pass via Jacobian-free Backpropagation (JFB): Differentiating through an implicit layer typically requires solving a massive, computationally expensive linear system derived from the implicit function theorem. DYS-Net bypasses this by using JFB, which replaces the complex Jacobian matrix with the identity matrix during the backward pass. The authors rigorously prove that this approximation still provides a valid descent direction under standard regularity conditions.
Datasets
The method was evaluated on two classic combinatorial problems using the PyEPO benchmarking framework:
- Shortest Path Prediction: Tested on synthetic grid graphs ranging from $5 \times 5$ up to massive $100 \times 100$ grids (nearly 20,000 edge variables).
- Warcraft Shortest Path: A popular benchmark mapping $96 \times 96$ RGB images of Warcraft II terrain tiles to a $12 \times 12$ grid graph where the goal is to find the minimum-cost path.
- Knapsack Prediction: Evaluated on multi-constraint ($k$-knapsack) problems with up to 750 items.
Key Insights and Ideas
- The Synergy of DYS and JFB: The true magic of DYS-Net lies in how well the forward and backward passes complement each other. Because JFB eliminates the need for tracking dual variables (Lagrange multipliers) during backpropagation, the forward pass can use fast, primal-only splitting methods like DYS.
- Breaking the Scaling Bottleneck: Traditional implicit differentiation layers (like
cvxpylayers) scale poorly because they rely on interior-point methods with $O(n^3)$ complexity. DYS-Net's first-order approach allows it to tackle problems orders of magnitude larger than previous state-of-the-art methods. - Continuous vs. Discrete Costs: The authors observed an interesting dichotomy: methods that approximate gradients via stochastic perturbations (like PertOpt) perform well when the underlying true costs are highly discrete (e.g., Warcraft terrain types), but struggle relative to DYS-Net when costs are continuous.
Key Results
- Massive Scalability: On a $100 \times 100$ grid shortest-path problem (~20,000 variables), traditional methods like CVX-net failed to run entirely due to memory limits, and PertOpt-net took nearly a week to train. DYS-Net successfully trained in about a day while maintaining low regret.
- Training Speed: In benchmarking tests, DYS-Net consistently trained faster than competing methods (like Blackbox Backpropagation and Perturbed Optimization) while achieving comparable or superior normalized regret.
Limitations and Future Work
- Requirement of Decision Labels: DYS-Net is designed for settings where optimal decisions ($x^*$) are provided as training labels. If the true cost vectors ($w$) are available instead, simpler methods like SPO+ still outperform it.
- Theoretical Guarantees for Non-Unimodular Problems: While the quadratic relaxation works well empirically for the knapsack problem, the theoretical guarantees linking the relaxed solution back to the true integer solution currently only hold strictly for totally unimodular constraint matrices (like graphs).
- Future Directions: The authors suggest extending DYS-Net to other complex ILPs, such as the Traveling Salesperson Problem (TSP).
Summary updated