Smart Surrogate Losses for Contextual Stochastic Linear Optimization with Robust Constraints
Hyungki Im, Wyame Benslimane, Paul Grigas
Abstract
We study an extension of contextual stochastic linear optimization (CSLO) that, in contrast to most of the existing literature, involves inequality constraints that depend on uncertain parameters predicted by a machine learning model. To handle the constraint uncertainty, we use contextual uncertainty sets constructed via methods like conformal prediction. Given a contextual uncertainty set method, we introduce the "Smart Predict-then-Optimize with Robust Constraints" (SPO-RC) loss, a feasibility-sensitive adaptation of the SPO loss that measures decision error of predicted objective parameters. We also introduce a convex surrogate, SPO-RC+, and prove Fisher consistency with SPO-RC. To enhance performance, we train on truncated datasets where true constraint parameters lie within the uncertainty sets, and we correct the induced sample selection bias using importance reweighting techniques. Through experiments on fractional knapsack and alloy production problem instances, we demonstrate that SPO-RC+ effectively handles uncertainty in constraints and that combining truncation with importance reweighting can further improve performance.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Builds on6
- Efficient and Modular Implicit DifferentiationMathieu Blondel, Quentin Berthet, Marco Cuturi, Roy Frostig et al.NeurIPS 2022 · 386 citations
- Decision Trees for Decision-Making under the Predict-then-Optimize FrameworkAdam N. Elmachtoub, Jason Cheuk Nam Liang, Ryan McNellisICML 2020 · 140 citations
- Data-Driven Conditional Robust OptimizationAbhilash Reddy Chenreddy, Nymisha Bandi, Erick DelageNeurIPS 2022 · 34 citations
- Predict-then-Calibrate: A New Perspective of Robust Contextual LPChunlin Sun, Linyu Liu, Xiaocheng LiNeurIPS 2023 · 26 citations
- Predict+Optimize for Packing and Covering LPs with Unknown Parameters in ConstraintsXinyi Hu, Jasper C. H. Lee, Jimmy H. M. LeeAAAI 2023 · 24 citations
Related papers
- Feasibility-Aware Decision-Focused Learning for Predicting Parameters in the ConstraintsJayanta Mandi, Marianne Defresne, Senne Berden, Tias GunsNeurIPS 2025 · 9 citations
- Conformal Robustness Control: A New Strategy for Robust DecisionYang Hu, Jieren Tan, Changliang Zou, Yajie Bao et al.ICLR 2026
- Smart Predict-and-Optimize for Hard Combinatorial Optimization ProblemsJayanta Mandi, Emir Demirovic, Peter J. Stuckey, Tias GunsAAAI 2020 · 184 citations
- Cost-Sensitive Conformal Training with Provably Controllable Learning BoundsXuesong Jia, Yuanjie Shi, Ziquan Liu, Yi Xu et al.AAAI 2026
- Conformal Mixed-Integer Constraint Learning with Feasibility GuaranteesDaniel Ovalle, Lorenz T. Biegler, Ignacio E. Grossmann, Carl D. Laird et al.NeurIPS 2025 · 2 citations
