A Divide and Conquer Algorithm for Predict+Optimize with Non-convex Problems

Ali Ugur Guler, Emir Demirovic, Jeffrey Chan, James Bailey, Christopher Leckie, Peter J. Stuckey

Introduction

In many operational pipelines, machine learning models are tasked with predicting unknown parameters—such as future energy prices or demand—which are subsequently used as inputs for combinatorial optimization solvers. Traditionally, these models are trained to minimize standard statistical errors like Mean Squared Error (MSE). However, minimizing prediction error does not necessarily lead to optimal downstream decisions.

The Predict+Optimize (PPO) framework addresses this by training models to directly minimize decision regret—the difference in cost between the decision made using predicted parameters and the true optimal decision. While promising, PPO faces significant challenges: combinatorial problems are discrete and non-differentiable, making gradient-based optimization difficult. Existing methods often rely on differentiable surrogates that assume convexity or exact methods tied to Dynamic Programming (DP) that scale poorly. This paper introduces Divide and Learn (DNL), a general, exact method that treats the solver as a black box and scales to hard, non-convex problems.

The Divide and Learn (DNL) Framework

The core innovation of DNL is its numerical approach to mapping the decision space. The algorithm identifies "transition points"—specific parameter values where the optimal decision of the downstream solver changes.

Figure 1: Piecewise function construction (top) and the divide-and-conquer search for transition points (bottom).

Transition Points and Piecewise Convexity

For linear models, the predicted objective value is a convex piecewise linear function (PWLF). Within a certain range of predicted parameters, the optimal decision remains static. As weights change, the model eventually hits a boundary where a different decision becomes optimal. DNL exploits the convexity of this function to find these boundaries. By sampling the parameter space and checking for collinearity, the algorithm can determine if a transition point exists between two points.

DNL uses a recursive divide-and-conquer strategy to pinpoint transition points. If three sampled points are not collinear, the algorithm narrows the search interval until the exact boundary is found. To handle multi-dimensional models, DNL employs coordinate descent, updating one parameter at a time while keeping others fixed.

To address the computational cost of calling NP-hard solvers, the authors propose DNL-Greedy. This variant terminates the search as soon as a parameter update is found that improves the true objective value, significantly accelerating the training process without sacrificing substantial accuracy.

Experimental Evaluation

The DNL framework was evaluated using the ICON Energy Challenge dataset, which contains electricity price data from 2011 to 2013. The models were tested on two classic combinatorial benchmarks:

  1. 0-1 Knapsack: Including both unit weights and highly correlated weighted versions.
  2. Scheduling: Allocating jobs across multiple machines to maximize energy cost savings over 48 time slots.

Key Results and Insights

The experiments revealed several critical advantages of the DNL approach:

  • Scalability over Exact Methods: DNL is orders of magnitude faster than previous exact methods based on Dynamic Programming. On large-scale knapsack problems where DP methods timed out (exceeding 4000 seconds per epoch), DNL successfully completed training.
  • Robustness on "Jagged" Landscapes: Differentiable surrogates like SPO-Relax often fail when the underlying problem is highly discrete or non-convex. In complex scheduling tasks, DNL-Greedy consistently outperformed both standard regression and surrogate models, which sometimes performed worse than simple MSE minimization.
  • Solver Independence: Because DNL interacts with the solver only to obtain optimal values at sampled points, it is entirely decoupled from the solver's internal logic. This allows for the use of high-performance commercial solvers like Gurobi for any combinatorial problem.

Conclusion and Future Work

While DNL offers a powerful alternative to surrogates and DP-based methods, it is not without limitations. Training remains slower than simple regression due to the need for multiple solver calls per epoch. Additionally, the coordinate descent approach may occasionally converge to local optima in the non-convex true optimal value landscape. Future research will explore extending DNL to non-linear prediction models, such as deep neural networks, and developing more sophisticated search strategies for transition points.

Summary updated

BibTeX
@inproceedings{guler2022divide,
  author = {Ali Ugur Guler and Emir Demirovic and Jeffrey Chan and James Bailey and Christopher Leckie and Peter J. Stuckey},
  title = {{A Divide and Conquer Algorithm for Predict+Optimize with Non-convex Problems}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i4.20289},
}
Figure