TL;DR
This paper introduces COS loss, a suite of cost-sensitive regression components that enable Decision-Focused Learning (DFL) to scale to massive combinatorial problems. By reframing DFL as a cost-sensitive regression task, the authors achieve decision quality comparable to state-of-the-art methods while reducing training time by orders of magnitude, requiring zero to one optimization solve per training instance.
What Problem Does This Paper Address?
In many real-world scenarios, we use machine learning to predict parameters (like travel times or energy demand) that are then fed into a downstream optimization problem (like finding the shortest path or scheduling energy production). This is the "predict-then-optimize" pipeline.
Standard approaches often minimize predictive error (e.g., Mean Squared Error). However, a small prediction error can sometimes lead to a disastrously bad decision, while a large error might not change the optimal decision at all. Decision-Focused Learning (DFL) tries to fix this by training the model to minimize the downstream "regret" (the loss in objective value due to a sub-optimal decision).
The catch? DFL is notoriously slow. Most DFL methods require solving the optimization problem in every forward pass of training. For complex combinatorial problems, this makes training prohibitively expensive and impossible to scale to large-scale instances.
Methods
The authors propose reframing DFL as a cost-sensitive multi-output regression problem. Instead of solving the optimizer during training, they use three "decision-aware" loss components that can be computed efficiently:
- Instance-based Costs (C): Not all training examples are equally important. This component weights instances based on their potential impact on total regret. It requires a single solve per instance before training starts to estimate this weight.
- One-Sided Loss (O): In many problems, overpredicting a cost is fine if the item shouldn't be picked anyway. This component only penalizes errors in the "dangerous" direction (e.g., underpredicting the cost of an item that should be excluded).
- Sensitivity-Based One-Sided ($O_S$): An extension for Linear Programs that uses sensitivity analysis to define a "safe range" where predictions can vary without changing the optimal decision.
- Scale-Invariance (S): Linear optimization is scale-invariant—multiplying all costs by 10 doesn't change the best choice. This component applies vector normalization to ensure the loss function shares this property.
Datasets
The authors evaluated their approach on several classic combinatorial optimization benchmarks:
- Shortest Path: 5x5 grid.
- Multi-dimensional Knapsack: 32 items (KS32) and a larger 500-item version (KS500).
- Traveling Salesperson Problem (TSP): Ranging from 20 nodes (TSP20) up to a massive 1,000 nodes (TSP1000).
- Capacitated Vehicle Routing Problem (CVRP): 20, 30, and 40 nodes.
- California House Price Knapsack (CAKS): A budget-constrained house buying problem using real-world data.
Key Insights and Ideas
- Empirical Monotonicity: A key finding is that these loss components are complementary. Adding more components (S, then O, then C) consistently improves or maintains decision quality across different benchmarks.
- Normalization is a "Free Lunch": The scale-invariant (S) component requires zero extra solves and provides a significant boost in performance by aligning the loss geometry with the nature of linear objectives.
- Solver-Free Training: Once the initial weights (for C) or bounds (for O) are calculated, the training process requires zero calls to an optimization solver. This is the primary driver of the massive speedups observed.
Key Results
The proposed COS loss (specifically using Mean Absolute Error as a base) achieved a "Pareto optimal" balance between decision quality and runtime.
- Scalability: The authors successfully trained models for TSP with 1,000 nodes. Traditional DFL methods (like SPO+) timed out or were computationally infeasible at this scale, while COS loss trained in a few hundred seconds.
- Efficiency: In CVRP and TSP benchmarks, COS loss variants were often 10x to 100x faster than state-of-the-art DFL surrogates while achieving similar or even lower regret.
- Performance: On smaller benchmarks where SOTA methods could run, COS loss achieved comparable regret to SPO+, proving that you don't necessarily need to solve the optimizer during training to learn decision-aware representations.
Limitations and Future Work
- Local vs. Global Features: The method struggled on the CAKS dataset. The authors hypothesize this is because the model predicted parameters independently based on local features, whereas the loss components might benefit from a more global view of the problem's feature space.
- Linearity Assumption: The theoretical guarantees for the one-sided loss components are strongest for binary linear programs. While they work well in practice for other problems, the bounds for general integer programs are "likely loose."
- Future Directions: The authors suggest exploring how these frameworks handle problems with local features and applying the COS framework to more diverse real-world industrial optimization tasks.
Summary updated