Distributionally robust optimization (DRO) hedges data-driven two-stage stochastic programs against error in the distribution estimated from a finite record, and standard ambiguity sets differ in how they treat realizations absent from that record. A divergence ball around the empirical distribution contains only reweightings of the record, whereas a transport ball also contains distributions supported off the record, including on realizations the data-generating process cannot produce, against which the decision is then hedged as well. We instead propose a Kullback-Leibler (KL) ball centered at a density model fitted to the record, the learned nominal, which lets the adversary up-weight costly unobserved realizations in proportion to the probability the model assigns them. Solving the resulting problem poses a second difficulty, because it can accommodate only a few scenarios, and an independent sample of that size is likely to omit the rare realizations on which the worst case concentrates. We therefore build the scenario set adaptively, alternating between solving the finite problem and drawing new realizations from the learned nominal, steered toward the worst case at the current decision, with importance weights that correct the draws back to the model. On a multi-item newsvendor problem and a capacity expansion problem on realistic grid data, centering the ball at the learned nominal rather than at the record lowers cost under distribution shift, at comparable in-distribution cost, when the record is scarce and the model class captures structure that lets it extrapolate beyond the record. The advantage fades as the record grows or as the shift departs from the structure the model has learned.
Figures & tables
(a) OOD cost at SAA’s ID budget
(b) ID cost to halve SAA’s OOD cost
N=16
N=128
N=16
N=128
Method
L
T
S
C
L
T
S
C
L
T
S
C
L
T
S
C
SAA
643
154
434
244
129
88
98
39
⋅
⋅
⋅
⋅
⋅
⋅
⋅
⋅
KL-Rec
647
155
435
227
141
89
111
39
⋅
⋅
⋅
⋅
⋅
⋅
⋅
⋅
W-DRO
80
39
92
154
24
45
30
18
55
68
55
97
12
42
12
20
KL-OT
88
43
99
159
45
57
44
25
57
64
57
97
12
29
12
⋅
Table 1: Newsvendor: cost above the optimum (%, median over records) under the level (L), tail (T), support (S), and coincidence (C) shifts. (a) Out-of-distribution cost at each method’s selection rule. (b) In-distribution cost needed to halve SAA’s out-of-distribution cost; ⋅ : never reached; † : lowest in under 80% of bootstrap resamples. Bold: lowest among the rows shown.
Figure 2: Capacity expansion at k=21 (panels defined in App. B.6 ). (a) OOD against ID cost (bn$/yr) of each setting, with Pareto frontiers; KL-Rec, CSSC, and SAA lie outside the range. (b) Zonal wind on the most severe OOD day and admitted scenarios (top), and their spatial coherence (bottom). (c) Severity against demand-rescaled distance to the nearest real day, for the most severe admitted scenarios. (d) Demand relative to its 2001–2010 maximum against system wind; stars: the 20 most severe OOD days.
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 3: The four newsvendor shift families: joint densities of log demand for products 1 and 3 (1 and 2 in (c)) under the records’ distribution (top) and the shifted distribution (bottom), with contours spanning 3.5 orders of magnitude so that the shocks are visible. (a) Level: the density translates. (b) Tail: the shock spreads into a wide, faint band. (c) Support: a new component appears where the records’ distribution has almost no mass. (d) Coincidence: shocks to one product at a time become joint shocks, with unchanged marginals.
Figure 4: What each nominal can represent: 4,000 draws from each nominal fitted to one record of N=16 (top) and one of N=128 (bottom), shown for products 1 and 3 (black points: the record; dashed box: its range). The copula’s draws stay within the record’s range, while the other nominals extrapolate beyond it. Here, cross-validation keeps the flow at its log-normal initialization, and the heavy-tailed flow selects a log- t with 30 degrees of freedom.
Method
Scenarios in the master
Weights
Radius
SAA
the N record points
uniform
0
KL-Rec
the N record points
uniform
grid
KL-Gen-P, oracle
n=100 draws of the sampler
φ/r
grid
KL-Gen
356 draws of the nominal, resampled 100 times by the tilt
ci/(356τi)
grid
CSSC
K=100 medoids of 1,024 draws of the nominal
cluster mass
grid
W-DRO
the N record points, moved
uniform
0
Appendix
Table 2: Newsvendor methods. KL-Gen-P and KL-Gen are run with each nominal of Figure 4 , and CSSC with the log-normal and the log-normal mixture. Weights are normalized to sum to one.
Figure 5: Newsvendor frontiers: out-of-distribution against in-distribution cost above the optimum (%, median over records) as each method’s settings vary. Each line is a method’s Pareto frontier (lower left is better). Rows are record sizes and columns shifts. The open square is SAA, and the dashed line is half of SAA’s out-of-distribution cost, the target of Table 1 (b).
(a) OOD cost at SAA’s ID budget
ID cost
(b) ID cost to halve SAA’s OOD
Method
L
T
S
C
ρ=0
L
T
S
C
SAA
643 ± 59
154 ± 8
434 ± 39
244 ± 21
184
⋅
⋅
⋅
⋅
KL-Rec
647 ± 55
155 ± 7
435 ± 36
227 ± 20
184
⋅
⋅
⋅
⋅
W-DRO
80 ± 10
39 ± 4
92 ± 10
154 ± 20
–
55
68
55
97
KL-OT
88 ± 11
43 ± 4
99 ± 11
159 ± 20
–
57
64
57
97
Gaussian
Appendix
Table 3: Newsvendor, every method, N=16 (300 records): cost above the optimum (%) under the level (L), tail (T), support (S), and coincidence (C) shifts. (a) Median out-of-distribution cost ( ± 2 SE) at each method’s selection rule. ID cost at ρ=0 : median in-distribution cost of the unhedged fit (none for W-DRO and KL-OT). (b) Lowest median in-distribution cost at which a setting halves SAA’s median out-of-distribution cost; ⋅ : never. Bold: lowest per column, excluding the oracle; † : lowest in fewer than 80% of bootstrap resamples.
(a) OOD cost at SAA’s ID budget
ID cost
(b) ID cost to halve SAA’s OOD
Method
L
T
S
C
ρ=0
L
T
S
C
SAA
412 ± 41
126 ± 5
273 ± 26
149 ± 14
87
⋅
⋅
⋅
⋅
KL-Rec
412 ± 41
126 ± 5
284 ± 27
143 ± 13
87
⋅
⋅
⋅
⋅
W-DRO
46 ± 5
23 ± 3
57 ± 6
85 ± 11
–
26
43
26
56
KL-OT
46 ± 5
24 ± 3
61 ± 6
98 ± 12
–
24
37
24
56
Gaussian
Appendix
Table 4: Newsvendor, every method, N=32 (300 records); as Table 3 .
(a) OOD cost at SAA’s ID budget
ID cost
(b) ID cost to halve SAA’s OOD
Method
L
T
S
C
ρ=0
L
T
S
C
SAA
245 ± 30
107 ± 4
169 ± 18
76 ± 10
38
⋅
⋅
⋅
⋅
KL-Rec
264 ± 30
108 ± 4
182 ± 18
78 ± 8
38
⋅
⋅
⋅
⋅
W-DRO
31 ± 4
34 ± 3
44 ± 5
37 ± 4
–
16
32
16
36
KL-OT
39 ± 8
45 ± 4
48 ± 6
51 ± 7
–
16
29
16
36
Gaussian
Appendix
Table 5: Newsvendor, every method, N=64 (300 records); as Table 3 .
(a) OOD cost at SAA’s ID budget
ID cost
(b) ID cost to halve SAA’s OOD
Method
L
T
S
C
ρ=0
L
T
S
C
SAA
129 ± 17
88 ± 3
98 ± 11
39 ± 5
15
⋅
⋅
⋅
⋅
KL-Rec
141 ± 19
89 ± 3
111 ± 13
39 ± 4
15
⋅
⋅
⋅
⋅
W-DRO
24 ± 5
45 ± 3
30 ± 3
18 ± 3
–
12
42
12
20
KL-OT
45 ± 8
57 ± 4
44 ± 6
25 ± 3
–
12
29
12
⋅
Gaussian
Appendix
Table 6: Newsvendor, every method, N=128 (300 records); as Table 3 .
Figure 6: The 20 zones of the capacity expansion model. Counties of the ERCOT region are shaded by zone (other Texas counties in gray) and zone boundaries are drawn in dark gray. Lines join zone centroids along the 40 candidate transmission corridors, and centroid markers are sized by the zone’s share of 2010 demand.
Technology
Capital
Fixed O&M
VOM
Heat rate
Lifetime
($/kW)
($/kW-yr)
($/MWh)
(MMBtu/MWh)
(yr)
Wind
1494
31.0
0.0
–
30
Solar
1266
19.1
0.0
–
30
Gas, combined cycle
1489
33.7
2.2
6.4
30
Gas, combustion turbine
1348
26.5
7.4
9.5
30
Battery 4h
1540
34.5
0.0
–
15
Appendix
Table 7: Cost and technology parameters, in real 2024 dollars. Generation costs are from the 2024 Annual Technology Baseline of the National Renewable Energy Laboratory ( Mirletz et al., 2024 ) (Moderate scenario, 2030, converted from 2022 dollars by ×1.061 ), and heat rates are assumed. The gas price and emissions rate are from the Energy Information Administration (Annual Energy Outlook 2024, 2030). Capital costs are annualized with the capital recovery factor CRF(r,L)=r(1+r)L/((1+r)L−1) over the lifetime L , plus fixed operation and maintenance (O&M). VOM is variable O&M.
Period
Years
Days
Role
Record
2001–2010
10×364
records and fitted nominals
In distribution (ID)
2011–2014
1,458
evaluation
Out of distribution (OOD)
2020
364
evaluation
Appendix
Table 8: Data periods. Records A to J are the years 2010, 2009, 2007, 2008, 2005, 2001, 2002, 2003, 2004, and 2006. The years 2015–2019 are used only to place 2020 among the other years.
Method
Candidates per round
Scenarios in the master
Weights
KL-Rec
256 record days
at most 48, four per round
KL worst case at ρ
KL-Gen
256 draws of the flow
same
same
KL-Gen-P
192 draws from a fitted proposal
same
same
KL-Gen (copula)
256 copula draws
same
same
KL-Gen-P (copula)
192 draws from a proposal fitted to the copula
same
same
KL-OT ( δ )
256 record days, moved from the second round
same
same
Appendix
Table 9: Capacity expansion methods. All use the objective in equation 12 with β=0.25 , α=0.9 , and the budget B .
Figure 7: The two radii act as designed (capacity expansion, k=21 ). Boxes span the interquartile range over the ten records (each the median over five seeds; in (a), seeds are pooled), and whiskers the full range. (a) Share of admitted scenarios above the record’s 99th percentile of peak net load, at ρ=0 (dotted: the record’s own 1 %). Raising ρref admits more severe scenarios, in 37 of 40 (method, record) pairs. (b) Effective sample size of the worst-case weights, as a share of the admitted scenarios, at ρref=0.2 . It falls as ρ grows, and the realized divergence equals ρ in every run. (c) Capacity added relative to ρ=0 (GW) at ρref=0.2 , paired within record and seed. Raising ρ moves capital toward the budget and changes the mix.
Figure 8: KL-Gen’s advantage across record lengths (capacity expansion). Paired cost difference (bn/yr;negative:KL−Genischeaper)against(a)KL−Rec,(b)KL−OT(\delta=1),and(c)KL−OT(\delta=3),outofdistribution(filled)andindistribution(hatched).Eachrecordcontributesthemedian,overtheradiuspairsofTable10atwhichbothmethodswererun(allfive;for\delta=3,threeatk\leq 1andtwoatk=5),ofitsmedianoverseeds.Boxesspantheinterquartilerangeoverrecordsandwhiskersthefullrange;thenumbersaretwo−sidedWilcoxonsigned−rankp−valuesoverrecords(withfiverecords,thesmallestattainableis0.0625).Theout−of−distributiongaptoKL−RecandtoKL−OT(\delta=1)shrinksastherecordgrows;KL−OT(\delta=3)narrowsitatk=\tfrac{1}{2}$ at a higher in-distribution cost.
Distributionally robust optimization (DRO) minimizes risk or cost against a set of plausible probability distributions rather than a single estimated one.
Heinz College of Information Systems and Public Policy, Carnegie Mellon University · Machine Learning Department, Carnegie Mellon University · Department of Statistics and Data Science, Carnegie Mellon University