Organizations: Department of Civil Engineering, Tsinghua University, Beijing 100084, China · Yau Mathematical Sciences Center, Tsinghua University, Beijing 100084, China · Department of Urban Studies and Planning, Massachusetts Institute of Technology, Cambridge, MA 02139, USA · Department of Industrial Engineering and Operations Research, University of California, Berkeley, Berkeley, CA 94720, USA
In contextual stochastic optimization, integrated learning trains conditional models on operational loss, but repeatedly solving stochastic programs with many scenarios is costly. We propose KKT Atlas, which partitions contexts into local charts and identifies a low-dimensional subspace per chart from decision gradients of the scenario cost. It generates shared scenarios by jointly fitting subspace coordinates and context-dependent probabilities. We show that one more scenario than the subspace dimension suffices to approximate the conditional Karush-Kuhn-Tucker optimality condition under regularity conditions, yielding decision and risk bounds under local strong convexity, with generalization error scaling with the compact parameter dimension. On three synthetic problems, Atlas uses 4-18 scenarios per decision versus 500 for direct-solve full-support integrated learning. It attains comparable or lower risk with about 4-23× construction and 13-61× batch deployment speedups. Atlas also achieves lower risk than clustering-based reduction at matched support budgets. In real-world European grid reserve commitment, Atlas compresses 728 scenarios to 8-9, cutting construction and deployment times by factors of about 4 and 3 relative to full-support integrated learning. Its loss is lowest over 11 quarters and, over 17 later quarters with fixed settings, slightly higher than with full-support integrated learning and significantly lower than with the remaining benchmarks.
Figures & tables
Method
Main idea
ICEO
Learns context-dependent probabilities over all Kref reference scenarios by minimizing operational loss ( Qi et al. 2026 ) .
ICEO-red
Uses K-means clustering to construct fixed scenarios from training realizations, then learns context-dependent probabilities by minimizing operational loss ( Qi et al. 2026 , Rujeerapaiboon et al. 2022 ) .
SOF
Uses optimization-aware tree splits to assign context-dependent weights to historical observations ( Kallus and Mao 2023 ) .
kNN
Selects the k training observations with contexts closest to the new context and forms a local empirical SAA using their realizations, each with probability 1/k ( Hastie et al. 2009 ) .
kNN-red
Selects the k1 nearest neighbors as in kNN, then applies K-means to their realizations with k2<k1 , using cluster centroids as scenarios and the summed probabilities of cluster members as scenario probabilities ( Rujeerapaiboon et al. 2022 ) .
SAA
Assigns uniform weights to all training observations, ignoring context.
Table 1: Summary of the six benchmarks.
Study
Kref
dξ
dz
ηreg
∣Itr∣
∣Ival∣
∣Ieval∣
CAP
500
64
8
0
12,800
1,000
200
PORT
500
32
33
10−6
12,800
1,000
200
NET
500
16
48
10−6
12,800
1,000
200
Table 2: Core application dimensions and settings.
CAP
PORT
NET
Method
Risk (SE) ↓
Excess /% (SE) ↓
Risk (SE) ↓
Excess /% (SE) ↓
Risk (SE) ↓
Excess /% (SE) ↓
Atlas
1.5957 (0.021)
0.07 (0.01)
0.0380 (0.0005)
2.94 (0.17)
1.7253 (0.100)
0.12 (0.01)
ICEO
1.6009 (0.022)
0.40 (0.03)
0.0382 (0.0005)
3.66 (0.27)
1.7247 (0.100)
0.09 (0.02)
ICEO-red
1.6015 (0.021)
0.44 (0.03)
0.0393 (0.0005)
6.69 (2.08)
1.7259 (0.100)
0.16 (0.03)
SOF
1.6331 (0.023)
2.41 (0.13)
0.0408 (0.0005)
10.66 (0.40)
1.7384 (0.102)
0.87 (0.11)
kNN
1.6275 (0.023)
2.06 (0.11)
0.0388 (0.0005)
5.20 (0.21)
1.7343 (0.100)
0.65 (0.06)
Table 3: Out-of-sample decision quality under known conditional distributions.
CAP
PORT
NET
Method
Wall /h ↓
CPU /h ↓
Wall /h ↓
CPU /h ↓
Wall /h ↓
CPU /h ↓
Atlas
0.04
0.28
0.03
0.11
0.39
2.82
ICEO
0.19
3.87
0.15
2.24
8.94
133.39
ICEO-red
0.03
0.04
0.03
0.03
0.26
2.03
SOF
0.03
0.75
0.02
0.46
0.81
18.82
kNN
0.01
0.19
0.01
0.12
0.18
4.27
Table 4: Model construction time.
1 context, 1 core
128 contexts
Wall time /ms ↓
Wall time /s ↓
Method
CAP
PORT
NET
CAP
PORT
NET
1 core
32 cores
1 core
32 cores
1 core
32 cores
Atlas
6.07
3.01
39.30
0.75
0.03
0.33
0.02
5.52
0.19
ICEO
80.29
47.61
2,880.62
10.94
0.36
6.17
0.22
259.88
11.74
ICEO-red
5.75
2.80
38.06
0.75
0.04
0.33
0.03
4.84
0.20
Table 5: Model deployment time.
Application
Replications
B
PAtlas
Dimensions db
Scenarios Kb
Reduction /%
CAP
1, 3–10
1
39
(3)
(4)
99.2
2
2
78
(3, 3)
(4, 4)
99.2
PORT
1, 2, 5, 7, 9
1
299
(13)
(14)
97.2
10
1
144
(8)
(9)
98.2
6
1
264
(12)
(13)
97.4
4, 8
1
416
(16)
(17)
96.6
Table 6: Selected Atlas structures, parameter dimensions, and scenario reduction.
Pooled loss (SE) ↓
Method
Scenarios
2018Q1–2020Q3
2020Q4–2024Q4
Build /s ↓
128 contexts, 32 cores /ms ↓
Atlas
8.4
25.10 (0.32)
24.62 (0.28)
94.52
57.41
ICEO
728.0
25.15 (0.35)
24.30 (0.28)
345.78
199.17
ICEO-red
8.4
26.95 (0.35)
27.22 (0.55)
83.86
51.14
SOF
106.4
25.38 (0.30)
25.10 (0.27)
10.06
170.13
kNN
19.6
25.51 (0.31)
25.07 (0.29)
2.67
70.53
Table 7: Out-of-sample performance and computational cost in rolling European grid reserve commitment.
Figure 1: Decision quality versus local support size in CAP.
Figure 2: Decision quality as mode-specific scenario planes separate.
Noise scale σ
Basis
Normalized error ↓
Alignment ↑
Risk ↓
1/4
Cross-covariance
0.041
0.999
3.4620
PCA
0.041
0.999
3.4620
4
Cross-covariance
0.062
0.884
3.4843
PCA
0.986
0.006
4.5003
Table 8: Cross-covariance basis and PCA under decision-irrelevant variation.
CAP (10 reps.)
PORT (10 reps.)
European grid (28 quarters, 2,557 days)
Setting
K
Excess /%
K
Excess /%
K
18Q1–20Q3
20Q4–24Q4
All 28q
Diff. (SE)
αret=0.9
3.0
2.50 (0.21)
4.0
11.40 (0.56)
2.6
27.40
28.09
27.82
−3.01 (0.17)
αret=0.99
3.1
2.33 (0.23)
7.4
4.54 (0.52)
4.0
25.60
25.28
25.41
−0.60 (0.10)
αret=0.999
3.9
0.52 (0.31)
8.7
3.21 (0.22)
6.5
25.25
24.92
25.05
−0.24 (0.10)
αret=0.9999 (default)
4.0
0.07 (0.01)
14.4
2.94 (0.17)
8.4
25.10
24.62
24.81
Table 9: Sensitivity to the spectral retention threshold αret .
CAP (mean Excess /% and SE)
PORT (mean Excess /% and SE)
Method
1,600
3,200
6,400
12,800
1,600
3,200
6,400
12,800
Atlas
0.30 (0.09)
0.20 (0.03)
0.19 (0.06)
0.09 (0.01)
5.90 (0.39)
3.73 (0.16)
3.23 (0.19)
2.88 (0.23)
ICEO
1.29 (0.30)
0.64 (0.15)
0.48 (0.07)
0.38 (0.07)
18.17 (1.24)
8.09 (0.69)
5.50 (0.89)
3.08 (0.09)
ICEO-red
1.12 (0.25)
0.70 (0.13)
0.52 (0.09)
0.42 (0.06)
13.85 (1.21)
7.10 (0.66)
5.39 (0.54)
4.49 (0.76)
SOF
4.07 (0.17)
3.35 (0.14)
2.93 (0.07)
2.22 (0.16)
16.89 (1.53)
14.01 (0.62)
13.49 (0.71)
11.18 (0.98)
kNN
3.72 (0.05)
3.00 (0.15)
2.40 (0.05)
1.83 (0.07)
9.72 (0.90)
7.37 (0.60)
6.37 (0.37)
5.46 (0.44)
Table 10: Mean relative excess risk (%) across training sample sizes ∣Itr∣ ( ∣Ival∣=1,000 , replications 1–3).
Object family
Notation
Role
Data and dimensions
x∈X⊆Rdx
Observed or new context.
ξ∈Ξ⊆Rdξ
Uncertain parameter in uncertainty space Ξ .
ξi,ξ~k∈Ξ
Observed parameter value for observation i and parameter value for scenario k , respectively.
Itr
Index set of training observations {(xi,ξi)}i∈Itr .
Kref
Size of a reference scenario support.
ps⋆(x)
True conditional probability of reference scenario s in the synthetic experiments.
Table 11: Summary of notation.
Out-of-sample operational loss ↓
Deploy wall time ↓
Method
Scenarios
11-qtr med.
Pre-2020
Pooled (SE)
Build /s ↓
1 ctx /ms
128, 1c /s
128, 32c /ms
Atlas
8.4
24.05
25.65
25.10 (0.32)
94.52
19.47
1.087
57.41
ICEO
728.0
24.16
25.73
25.15 (0.35)
345.78
23.76
4.627
199.17
ICEO-red
8.4
26.65
27.72
26.95 (0.35)
83.86
16.21
1.005
51.14
SOF
106.4
24.38
25.85
25.38 (0.30)
10.06
13.26
2.234
170.13
kNN
19.6
24.14
26.02
25.51 (0.31)
2.67
9.06
1.147
70.53
Table 12: Rolling day-ahead reserve commitment across 11 quarterly European grid windows (2018Q1–2020Q3, 1,004 days).
Method
Scenarios
17-qtr med.
Pooled (SE)
P
Atlas − method (SE)
Quarters
Atlas
8.5
25.14
24.62 (0.28)
0.401
ICEO
728.0
24.83
24.30 (0.28)
0.443
+0.32 (0.08)
3
ICEO-red
8.5
27.18
27.22 (0.55)
0.055
−2.61 (0.34)
16
SOF
117.4
26.24
25.10 (0.27)
0.337
−0.48 (0.10)
14
kNN
17.9
26.00
25.07 (0.29)
0.342
−0.45 (0.10)
14
kNN-red
8.5
25.88
25.63 (0.36)
0.268
−1.01 (0.15)
14
Table 13: Rolling day-ahead reserve commitment on later data (17 quarterly windows, 2020Q4–2024Q4, 1,553 days).
Study
Basis variant
Parameters
Metric (SE) ↓
KKT − variant (SE)
KKT lower
CAP (10 reps.)
Cross-covariance (KKT)
39–78
0.07 (0.01)
Standardized PCA
39–78
0.07 (0.01)
0.00 (0.00)
4/10
Full space ( R64 )
283–566
0.07 (0.01)
0.00 (0.01)
5/10
PORT (10 reps.)
Cross-covariance (KKT)
144–459
2.94 (0.17)
Standardized PCA
144–459
3.17 (0.17)
−0.23 (0.08)
10/10
Full space ( R32 )
360–729
2.75 (0.18)
+0.18 (0.05)
1/10
Table 14: Local basis ablation across synthetic applications and rolling European grid windows.
Contextual decision making uses observed covariates to guide decisions under uncertainty. Two natural approaches are predict-then-optimize (PtO), which learns the conditional expected objective, and generate-then-optimize (GtO), which learns conditional uncertainty and optimizes using generated scenarios. We study when each approach is preferable by examining how the choice of learning target affects statistical accuracy and optimization tractability. Although PtO learns a narrower target, our regret bounds show how differences in smoothness can offset GtO's additional dimensional burden. Exploiting smoothness also raises an optimization tradeoff: within the class of nonnegative-weight PtO methods studied, a lower bound limits the gains from additional smoothness, while more flexible methods may introduce signed weights and lose the guarantee of preserving convexity. GtO preserves scenario-wise convexity, but requires learning a richer object and generating scenarios for optimization. Synthetic experiments and a real case study illustrate how these tradeoffs vary with data availability and problem structure. Together with the scope for reusing a model across tasks, our findings provide practical guidance for choosing between the approaches without identifying a universal winner.
L. Jeff Hong, Weihuan Huang, Xinyao Li
Department of Industrial and Systems Engineering, University of Minnesota, Minneapolis, MN 55455, U.S. · School of Management & Engineering, Nanjing University, Nanjing 210093, China
This paper introduces a novel approach to contextual stochastic optimization, integrating operations research and machine learning to address decision-making under uncertainty. Traditional methods often fail to leverage contextual information, which underscores the necessity for new algorithms. In this study, we utilize neural networks with combinatorial optimization layers to encode policies. Our goal is to minimize the empirical cost, which is estimated from past data on uncertain parameters and contexts. To that end, we present a surrogate learning problem and a generic primal-dual algorithm that is applicable to various combinatorial settings in stochastic optimization. Our approach extends classic Fenchel--Young loss results and introduces a new regularization method using sparse perturbations on the distribution simplex. This allows for tractable updates in the original space and can accommodate diverse objective functions. We establish sublinear convergence for the exact linear-parametric version and provide a bound on the non-optimality of the resulting policy in terms of the empirical cost. Experiments on three contextual stochastic optimization problems show that our algorithm is efficient and scalable, achieving performance comparable to state-of-the-art baselines with significantly reduced computational requirements.
Louis Bouvier, Thibault Prunet, Vincent Leclère +1
Co-innovation lab, ENPC, Institut Polytechnique de Paris, Marne-la-Vallée, France · Université de Bordeaux, CNRS, INRIA, IMB, UMR 5251, Talence, France · CERMICS, CNRS, ENPC, Institut Polytechnique de Paris, Marne-la-Vallée, France
In contextual optimization, the decision-maker seeks optimal decisions to minimize a cost function, that varies based on observed features. This context is common in many business applications ranging from on-demand delivery and retail operations to portfolio optimization and inventory management. In this paper, we study the learning and optimization approach, which first learns how outcomes result from the features, and then selects optimal decisions based on these outcomes. We focus on the integrated learning and optimization literature, and identify that a lack of control for prediction accuracy can lead to overfitting and a loss of decision effectiveness against simple separate learning and optimization models. Instead, we propose a bi-objective formulation that balances prediction accuracy and cost minimization, termed decision-driven regularization. It also addresses ambiguity in the definition of the cost function via a surrogate that depends on a new hyperparameter. We additionally show that alternative perspectives for formulating the problem, namely robust optimization and regret minimization, lead to models that are closely related to our proposed model. As a consequence, our framework generalizes models such as SPO+. Our model is shown to be numerically superior to other benchmarks, such as OLS, Random Forest, XGBoost, SPO+, Perturbation Gradient, and Learning and Rank, in our synthetic studies.
Gar Goei Loke, Qinshen Tang, Yangge Xiao +1
Department of Management and Marketing, Durham University Business School, Waterside, Durham DH1 1SL, United Kingdom · Nanyang Business School, Nanyang Technological University, Singapore · Faculty of Business and Economics, The University of Melbourne +1