Introduction
In the "predict-then-optimize" (PtO) paradigm, machine learning models are tasked with predicting unknown parameters that serve as inputs to downstream optimization problems. While significant progress has been made in Decision-Focused Learning (DFL) for parameters within the objective function, handling uncertainty in the constraints remains a significant hurdle. When constraints are estimated incorrectly, the resulting "optimal" decisions often prove physically or logically impossible in practice.
This paper introduces Odece (Optimizing decisions through end-to-end constraint estimation), a framework designed to navigate the critical trade-off between optimality and feasibility. By integrating constraint-awareness directly into the training loop, Odece ensures that predicted parameters lead to decisions that are both high-performing and viable.
The Problem: When "Optimal" is Infeasible
Traditional Prediction-Focused Learning (PFL) aims to minimize statistical errors like Mean Squared Error (MSE). However, in optimization, the direction and context of an error matter more than its magnitude.
Consider a resource allocation problem: underestimating resource consumption leads to an infeasible plan (the "broken bag" scenario), while overestimating leads to wasted capacity and lost revenue. Existing DFL methods often struggle with constraints, typically requiring either specific mathematical structures (like Linear Programs) or complex, problem-specific correction heuristics to handle infeasibility. Odece seeks a more general and stable solution.
The Odece Framework
Odece addresses these challenges by employing two novel loss functions derived from a Maximum Likelihood Estimation (MLE) perspective. These losses allow the model to learn the consequences of its predictions on the final decision:
- Infeasibility Penalty Loss (IPL): This loss penalizes the model when its predicted parameters lead to a solution that violates the ground-truth constraints. It pushes the model toward "conservative" predictions to ensure safety.
- Optimality-Preserving Loss (OPL): This loss penalizes the model when predicted parameters are so strict that they make the true optimal solution appear infeasible. This prevents the model from being "too safe" and sacrificing excessive performance.
The framework's primary innovation is a tunable hyperparameter, $\alpha$ (the infeasibility-aversion coefficient). By minimizing a weighted average of these two losses, a decision-maker can choose exactly how much they care about feasibility versus suboptimality. A medical logistics company might set $\alpha$ high (prioritizing safety), while a high-frequency trader might set it lower to maximize profit margins.
Experimental Evaluation
The researchers evaluated Odece against standard MSE and several state-of-the-art DFL baselines (including CombOptNet, SFL, and 2sPtO) across two primary domains:
- Multi-dimensional Knapsack Problem (MDKP): A combinatorial challenge where either item weights (left-hand side of constraints) or total capacities (right-hand side) were unknown.
- Brass Alloy Production: A real-world-inspired covering problem. A factory must purchase ores with unknown metal content (Copper and Zinc) to meet specific requirements at the lowest cost.
Key Results and Insights
Odece demonstrated superior performance and control compared to existing methods:
- Pareto Frontier Control: Odece successfully allowed researchers to traverse the trade-off between feasibility and optimality simply by adjusting $\alpha$.
- Superiority over MSE: While standard MSE resulted in infeasibility rates as high as 60% in some tests, Odece (at $\alpha=0.8$) reduced these rates to 4-6% while maintaining competitive solution quality.
- Stability: Unlike some DFL baselines (e.g., 2sPtO) which showed extreme instability—with some training runs resulting in 99% infeasibility—Odece remained stable across different random seeds and problem instances.
- Generality: Because Odece relies on differentiable constraints, it is not restricted to specific linear structures and can be applied to a wide variety of optimization problems.
Limitations and Future Work
While effective, Odece currently requires solving the full optimization problem for every data point during every training epoch, which introduces computational overhead. The authors suggest that future work could utilize "solution caching" to speed up training. Additionally, the team plans to extend the framework to non-linear constraints and problems where parameters are unknown in both the objective and the constraints simultaneously.
Conclusion
Odece represents a significant step forward in making Decision-Focused Learning practical for real-world applications where constraints are not just suggestions, but hard requirements. By providing a "tunable knob" for feasibility, it empowers practitioners to align machine learning models with their specific risk tolerance and operational goals.
Summary updated