Smart Surrogate Losses for Contextual Stochastic Linear Optimization with Robust Constraints

Hyungki Im, Wyame Benslimane, Paul Grigas
5/28/2025
cs.LGmath.OCstat.ML

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{im2025smart,
  title  = {Smart Surrogate Losses for Contextual Stochastic Linear Optimization with Robust Constraints},
  author = {Hyungki Im and Wyame Benslimane and Paul Grigas},
  year   = {2025},
  eprint = {2505.22881},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.22881v1},
  journal = {NEURIPS 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.22881.svg)](https://codeofpaper.com/paper/2505.22881)

Discussion