In the world of "Predict+Optimize" (P+O), we don't just want accurate predictions; we want predictions that lead to the best possible decisions. Traditionally, this field has focused on scenarios where the goals (the objective function) are uncertain. But what happens when the rules (the constraints) are the things we don't know?
A new paper titled "Branch & Learn with Post-hoc Correction for Predict+Optimize with Unknown Parameters in Constraints" tackles this head-on, moving from rough approximations to exact mathematical solutions.
TL;DR
This paper introduces B&L-C, the first exact framework for training machine learning models in Predict+Optimize settings where parameters in the constraints are unknown. By exactly computing "Post-hoc Regret"—a metric that accounts for the cost of fixing an infeasible solution—the authors significantly outperform existing approximation-based methods across various combinatorial problems.
What Problem Does This Paper Address?
Imagine a train company scheduling departures. They want to minimize the number of trains (objective) while meeting passenger demand (constraint). However, the precise demand is unknown until the day of travel.
In standard machine learning, you’d train a model to minimize Mean Squared Error (MSE) on demand. But a "small" error in demand prediction could lead to a schedule that is physically impossible to execute (infeasible).
The Predict+Optimize framework suggests we should train models to minimize "Regret"—the difference between the quality of the solution we chose based on a prediction and the true optimal solution. The challenge arises when constraints are unknown: if your prediction is wrong, your solution might be infeasible. How do you measure the "regret" of a solution that can't even be implemented?
Previous work introduced Post-hoc Regret, which involves "correcting" an infeasible solution into a feasible one and then measuring the total cost (objective loss + correction penalty). However, because this metric is mathematically "messy" (non-differentiable and piecewise constant), previous researchers could only approximate it.
Methods
The authors propose Branch & Learn with Post-hoc Correction (B&L-C). This framework extends the "Branch & Learn" approach, which was originally designed only for unknown objectives.
Key components include:
- Exact Computation: Instead of using gradients (which don't exist for these jumpy, piecewise functions), B&L-C uses a coordinate descent approach. It treats the optimization problem as a function of the model's weights.
- Piecewise Linear Representations: The algorithm represents the relationship between predicted parameters and the resulting optimal solutions as piecewise linear or constant functions. This allows the learner to "see" exactly how changing a model weight will flip a decision from one discrete choice to another.
- Correction & Penalty Functions: The framework incorporates a "Correction" step (e.g., removing items from a knapsack until it fits) and a "Penalty" step (e.g., a fee for every item removed).
Datasets
The authors evaluated B&L-C on three classic optimization problems using a mix of real-world topologies and synthetic data:
- Maximum Flow Problem (MFP): Used real-life network topologies (POLSKA, USANet, GÉANT) where edge capacities were unknown.
- 0-1 Knapsack: Used data from the ICON scheduling competition to simulate unknown item weights.
- Minimum Cost Vertex Cover (MCVC): Used ABILENE and PDH graph datasets with unknown costs and edge values.
Key Insights and Ideas
- Approximation is Leaving Money on the Table: The biggest "aha" moment is that exact computation of the loss function yields significantly better models than the state-of-the-art approximation (IntOpt-C). Even though the approximation is faster, it often settles for a sub-optimal "direction" during training.
- The "Correction" Matters: How you choose to fix a broken solution during training fundamentally changes what the model learns. For example, in the Knapsack problem, removing items based on their value-to-weight ratio vs. just removing the heaviest items leads to different predictive behaviors.
- Handling Non-Linearity: In problems like Max Flow, the regret function becomes a "piecewise rational linear function." The authors show that even these complex shapes can be managed using grid search within the B&L-C framework.
Key Results
- Better Solutions: In the Max Flow experiments, B&L-C achieved between 6% and 13% lower regret than the leading approximation method (IntOpt-C).
- Knapsack Dominance: On the 0-1 Knapsack problem with uncorrelated values, B&L-C reduced regret by a staggering 29% to 55% compared to standard regression and other baselines.
- Vertex Cover: B&L-C outperformed all other methods on the MCVC problem, showing its versatility across different types of constraints.
- The Speed Trade-off: As expected, exactness comes at a price. B&L-C is slower than approximation methods (e.g., 411 seconds vs 132 seconds for USANet), making it a "quality-first" choice rather than a "speed-first" one.
Limitations and Future Work
The primary limitation is scalability. Because the method relies on coordinate descent and exact function mapping, it can become a bottleneck for very large-scale industrial optimization problems.
The authors suggest future work should focus on:
- Scaling up: Finding ways to apply these exact insights to larger problems.
- Automation: Developing more systematic ways to define the "best" correction and penalty functions for a given domain, rather than relying on manual design.
- Generalization: Extending the framework to work with more complex, non-recursive optimization algorithms.
Summary updated