Abstract
Decision-Focused Learning (DFL) trains machine learning models to output predictions that lead to high-quality downstream optimization decisions. Traditionally, this requires computationally expensive solver calls during every training step to compute gradients. We introduce LAVA (Loss via Adjacent Vertex Alignment), a novel "solver-free" loss function for linear programs. By precomputing the adjacent vertices of the optimal solution, LAVA eliminates solvers from the training loop, achieving state-of-the-art decision quality while accelerating training by up to 60x.
Introduction
In many real-world operations—such as logistics routing or resource allocation—the exact parameters of an optimization problem (e.g., travel times or item values) are unknown and must be predicted from contextual data. This is known as the "predict-then-optimize" framework. Standard machine learning approaches often minimize prediction error (e.g., Mean Squared Error), but this does not necessarily lead to optimal decisions, as small errors in critical parameters can have outsized impacts on the final outcome.
Decision-Focused Learning (DFL) addresses this by training models to minimize downstream regret. However, because linear programs (LPs) have zero or undefined gradients almost everywhere, existing DFL methods require calling an optimization solver during every loss evaluation. This makes training slow and difficult to scale. LAVA provides a solution by removing the solver from the training loop entirely.
The LAVA Method: Solver-Free Optimization
LAVA (Loss via Adjacent Vertex Alignment) leverages a fundamental geometric property of linear programming: a vertex $z^*$ is optimal if and only if its objective value is better than or equal to all of its adjacent vertices on the feasible polytope.
Geometric Intuition
Instead of solving the LP at every training step, LAVA ensures that the predicted cost vector $\hat{c}$ stays within the "optimality cone" of the ground-truth solution. As illustrated in Figure 1, the loss function penalizes the model if any adjacent vertex $z_{adj}$ performs better than the true optimal vertex $z^*$ under the predicted costs, with an added margin $\epsilon$ for stability.
Implementation
The LAVA workflow consists of two distinct phases:
- Precomputation: Before training begins, the algorithm identifies all adjacent vertices of the ground-truth optimal solution $z^*$ using simplex pivots. This is a one-time cost that can be reused across multiple training runs.
- Training: During training, LAVA computes the dot product of the predicted costs $\hat{c}$ with $z^*$ and its precomputed neighbors. It applies a hinge-like loss that ensures $z^*$ remains the best choice under $\hat{c}$.
Because the loss only involves basic dot products, it is fully differentiable, convex, and significantly faster than solver-based alternatives.
Experimental Evaluation
The authors evaluated LAVA on three benchmarks: synthetic Random LPs, a Multi-dimensional Knapsack problem using California House Price data, and a Shortest Path grid routing problem.
Key Results
- Massive Speedups: On the Random LP and Knapsack benchmarks, LAVA achieved a 30x to 60x speedup in training time compared to state-of-the-art methods like SPO+ and PFYL. For example, Knapsack training time dropped from 581 seconds to just 9.8 seconds.
- Maintained Quality: Despite the speedup, LAVA's decision quality (test regret) matched or slightly exceeded that of heavier, solver-in-the-loop methods.
- Scalability: LAVA's training time remained virtually flat as problem complexity (number of constraints) increased, whereas traditional methods scaled poorly.
Discussion and Limitations
LAVA offers a significant advantage in "incomplete information" settings, as it only requires ground-truth optimal decisions ($z^*$) rather than the underlying true cost parameters. However, its performance is currently limited in highly degenerate problems, such as network flow, where a single vertex may have an overwhelming number of adjacent bases. Future work aims to develop problem-specific heuristics for these cases and extend LAVA to Mixed-Integer Linear Programs (MILPs).
Conclusion
LAVA demonstrates that solver-free training is a viable and highly efficient path for Decision-Focused Learning. By shifting computational effort to a preprocessing stage, LAVA enables the training of high-performance decision models at a fraction of the traditional time cost.
Summary updated