arXiv:2611.11973stat.MLNov 2026

Manuscript Offprint

arXiv:2611.11973

Beyond Prediction Residuals: Conformal Regret Calibration for Robust Contextual Linear Optimization

Lingjie Zhao, Hansheng Jiang, Wei Qi

Abstract

Predict-then-optimize systems convert contextual forecasts into decisions, yet conformal robust optimization typically calibrates prediction residuals rather than downstream loss. For linear optimization, this parameter-space geometry can be badly misaligned with decision risk: large objective perturbations may preserve the optimizer, while small boundary-crossing perturbations may cause substantial regret. We introduce Conformal Regret Sets, a post-hoc, model-agnostic framework that conformalizes an optimization-derived regret surrogate and uses its calibrated level set for minimax-regret refinement. We first show that directly conformalizing exact regret, although sufficient to certify the nominal predict-then-optimize decision, yields a degenerate robust problem: absent an exogenous bounded support, every alternative decision has unbounded worst-case regret. We therefore use SPO+, a pointwise upper bound on exact regret, as the conformal score, obtaining distribution-free finite-sample marginal regret guarantees under exchangeability. For contextual linear programs, the resulting set decomposes into polyhedral pieces aligned with the normal fan of the feasible polytope. A vertex is active if and only if its predicted suboptimality gap is at most half the calibrated threshold η\eta, enabling local, output-sensitive generation of all relevant pieces. Moreover, if Γ\Gamma is the predicted gap to the closest competing vertex, the nominal and refined decisions admit the sharper worst-case-regret certificate (η−2Γ)+(\eta - 2\Gamma)_+, with an exact early exit when η≤2Γ\eta \leq 2\Gamma. Experiments on contextual fractional knapsack validate the geometry and certificates: continuous refinement reduces the 0.95-quantile and CVaR0.95CVaR_{0.95} of regret by 9.1% and 13.1% relative to nominal PTO, while vertex-restricted refinement changes only 10.0% of nominal decisions.

1 Introduction

Predictive models are increasingly embedded in downstream optimization systems. In the standard predict-then-optimize (PTO) pipeline, observable features are mapped to uncertain problem parameters, and the resulting point prediction is inserted into a deterministic optimization problem. This modular paradigm is natural for contextual linear programs (LPs) arising in routing, allocation, and portfolio selection (Bertsimas and Tsitsiklis 1998; Bertsimas and Kallus 2020). Yet a point forecast alone offers no protection against prediction error, and optimizing an estimated objective can amplify modest errors into substantial post-decision loss (Smith and Winkler 2006).

A common remedy is to replace the point prediction with a data-driven uncertainty set and solve a robust optimization problem. Conformal prediction (CP) is attractive for this purpose because it is model-agnostic and provides distribution-free, finite-sample marginal coverage under exchangeability (Angelopoulos and Bates 2023). Existing conformal approaches to contextual optimization typically calibrate residual scores, such as coordinatewise errors or norm distances between predicted and realized objective vectors (Sun, Liu, and Li 2023; Patel, Rayan, and Tewari 2024). The resulting boxes, ellipsoids, or norm balls are statistically valid in parameter space, but need not be aligned with downstream decision risk.

For an LP, residual coverage is not decision calibration. The objective space is partitioned by the normal fan of the feasible polytope: all costs in one cone select the same optimal vertex. A large perturbation can remain within a cone and incur no decision loss, whereas a smaller perturbation can cross a nearby boundary, change the optimizer, and cause substantial regret. Some directions also shift every feasible objective value equally and are therefore irrelevant to both the optimizer and pairwise regret. Residual-based scores do not distinguish these decision-invariant directions from decision-sensitive ones. This leads to the following question: Can conformal uncertainty instead be calibrated directly in units of downstream regret while still supporting nontrivial robust re-optimization?

Conformal validity alone is not the obstacle: the score sublevel set must also support meaningful comparison of alternative actions. The most direct score is exact decision regret, or the Smart Predict-then-Optimize (SPO) loss (El-machtoub and Grigas 2022). Although its conformal quantile immediately certifies the nominal PTO decision, we prove that, without an independently imposed bounded objective support, its sublevel set is degenerate for re-optimization: every alternative decision has infinite worst-case regret. Thus, a score that is ideal for certifying one fixed action can be unusable for comparing actions.

We therefore introduce Conformal Regret Sets based on SPO+, a pointwise upper bound on exact regret. Split-conformal calibration produces a threshold η\eta in objective-value units, yielding a finite-sample marginal regret guarantee and an objective-space set for minimax-regret refinement. The construction is post hoc and compatible with any black-box predictor. For contextual LPs, the SPO+ level set has an exact normal-fan structure that makes this otherwise non-convex robust problem analyzable and amenable to output-sensitive solution methods.

Our contributions are threefold.

  • Regret calibration and the need for a robustifiable score. We formalize conformal calibration with optimization regret, establish the degeneracy of exact-SPO sub-level sets for robust refinement, and show that SPO+ calibration provides a distribution-free finite-sample guarantee for the regret of the nominal PTO decision.

  • Exact normal-fan geometry and local active-set generation. We derive a closed polyhedral representation of the SPO+ conformal regret set, exact whenever the hindsight optimizer is unique, and show that its unbounded directions are decision-invariant. A vertex generates a nonempty piece if and only if its predicted suboptimality gap is at most η/2\eta/2. These active vertices form a connected subgraph of the polytope's one-skeleton, enabling output-sensitive generation from the nominal solution rather than enumeration of all vertices.

  • Margin-certified minimax-regret refinement. Let Γ\Gamma be the predicted gap between the nominal optimizer and its closest competing vertex. We prove that the certified worst-case regret of the nominal, vertex-restricted, and continuous refinements is at most (η−2Γ)+(\eta - 2\Gamma)_+. With η=ηα\eta = \eta_\alpha, the same bound controls realized regret with probability at least 1−α1 - \alpha. Hence η≤2Γ\eta \leq 2\Gamma gives a zero worst-case-regret certificate over the calibrated set and an exact early-exit test. Otherwise, adjacency-based generation and a fixed-piece LP oracle evaluate the regret adversary without enumerating all comparator vertices; once the active pieces are generated, the continuous refinement admits a finite LP formulation.

References (100)

Couldn't load all references. Reload the page to try again.