Learning Best-in-Class Policies for the Predict-then-Optimize Framework

Michael Huang, Vishal Gupta · OpenReview

Abstract

We propose a novel family of decision-aware surrogate losses, called Perturbation Gradient (PG) losses, for the predict-then-optimize framework. The key idea is to connect the expected downstream decision loss with the directional derivative of a particular plug-in objective, and then approximate this derivative using zeroth order gradient techniques. Unlike the original decision loss which is typically piecewise constant and discontinuous, our new PG losses can be optimized using off-the-shelf gradient-based methods. Most importantly, unlike existing surrogate losses, the approximation error of our PG losses vanishes as the number of samples grows. Hence, optimizing our surrogate loss yields a best-in-class policy asymptotically, even in misspecified settings. This is the first such result in misspecified settings, and we provide numerical evidence confirming our PG losses substantively outperform existing proposals when the underlying model is misspecified.

Introduction: The Challenge of Misspecification

In the "predict-then-optimize" workflow, machine learning models predict unknown parameters that are subsequently used in optimization algorithms. While traditional training minimizes prediction error (e.g., Mean Squared Error), "decision-focused learning" (DFL) aims to minimize downstream decision regret. However, decision loss functions are typically piecewise constant and discontinuous, posing significant challenges for gradient-based optimization.

A critical limitation of existing DFL surrogates, such as the SPO+ loss, is their reliance on the assumption of a "well-specified" model. In real-world scenarios, models are often misspecified—incapable of perfectly capturing the true data-generating process. When models are "wrong," existing surrogates can perform poorly, sometimes even worse than decision-blind methods.

Methods: Perturbation Gradient (PG) Losses

Presented at NeurIPS 2024, the work by Gupta and Huang introduces Perturbation Gradient (PG) losses. Leveraging Danskin’s Theorem, the authors demonstrate that downstream decision loss is equivalent to the directional derivative of the optimization's optimal value function. They propose two practical approximations using zeroth-order gradient techniques:

  1. Backward Differencing (PGB): A pessimistic upper bound on the true loss.
  2. Central Differencing (PGC): A two-sided perturbation for higher accuracy.

These losses are Lipschitz continuous and can be expressed as the difference of concave functions, allowing them to be optimized using standard tools like Adam. Crucially, the approximation error of PG losses vanishes as the sample size $n$ increases, ensuring asymptotic consistency even under misspecification.

Key Results and Insights

The authors validated PG losses across synthetic and real-world datasets, including shortest path benchmarks and portfolio optimization.

Asymptotic Consistency and Misspecification

In experiments where the model class was intentionally misspecified (e.g., fitting a linear model to a non-linear "elbow" function), PG losses demonstrated superior performance. As shown in the figure below, the PGB method achieves significantly lower normalized excess regret compared to benchmarks like SPO+ and ETO as the training size increases.

Normalized Excess Regret vs. Training Size, showing PGB's superior asymptotic performance in misspecified settings.

Robustness to Noise and Model Error

PG losses also exhibit remarkable robustness. In portfolio optimization tasks characterized by low signal-to-noise ratios, PGB and PGC consistently outperformed other methods. The following figure illustrates how PG losses (specifically PGC and PGB) maintain low regret even as the level of model misspecification or noise asymmetry increases, whereas other methods like ETO and SPO+ degrade rapidly.

Normalized Excess Regret as a function of misspecification level (left) and noise asymmetry (right).

Conclusion

Perturbation Gradient losses provide a theoretically grounded and practically effective framework for decision-focused learning. By providing the first asymptotic consistency guarantees in misspecified settings, this work addresses a major gap in the predict-then-optimize literature. While challenges remain regarding non-convexity and hyperparameter tuning for the perturbation size $h$, PG losses represent a significant step toward making better decisions with "wrong" models.

Summary updated

BibTeX
@inproceedings{huang2024learning,
  author = {Michael Huang and Vishal Gupta},
  title = {{Learning Best-in-Class Policies for the Predict-then-Optimize Framework}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=g8kFlZDcaX},
}
Figure