arXiv:2610.32584cs.LGOct 2026

Manuscript Offprint

arXiv:2610.32584

Contextual Decision Making: Predictive or Generative

L. Jeff Hong, Weihuan Huang, Xinyao Li

L. Jeff Hong

Department of Industrial and Systems Engineering, University of Minnesota, Minneapolis, MN 55455, U.S., lhong@umn.edu

Weihuan Huang

School of Management & Engineering, Nanjing University, Nanjing 210093, China, hwh@nju.edu.cn

Xinyao Li

Department of Industrial and Systems Engineering, University of Minnesota, Minneapolis, MN 55455, U.S., li003784@umn.edu

Abstract. 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.

Key words: contextual stochastic optimization; predict-then-optimize; generate-then-optimize; conditional generative models; statistical efficiency; convexity preservation.

1. Introduction

Modern operating environments provide decision makers with rich contextual information. Retailers observe promotions, recent sales, and local market conditions before replenishing inventory. Logistics providers use congestion and demand signals to plan deliveries and reserve capacity. Service systems use workload forecasts and current operating conditions to make staffing decisions, as illustrated by feature-based approaches to hospital nurse staffing (Ban and Rudin 2019). Healthcare providers use patient characteristics and clinical information to personalize treatment and allocate care resources (Shen et al. 2021). In each setting, the challenge is to turn information available before a decision into an effective response to an uncertain outcome. Contextual stochastic optimization (CSO) provides a framework for doing so by minimizing expected cost conditional on the observed context (Bertsimas and Kallus 2020, Sadana et al. 2025).

Let X denote the context, Y the uncertain outcome, z the decision, and c(z;x,y)c(z;x,y) the cost. After observing X=x0X = x_0, the decision maker seeks to minimize the conditional expected objective

h(z;x0)=E[c(z;X,Y)∣X=x0].h(z;x_{0})=\mathbb{E}[c(z;X,Y)\mid X=x_{0}].

We focus on convex CSO: the feasible decision set is convex, and the cost is convex in z for each context and outcome. The conditional expected objective is consequently convex as well. The difficulty is that this objective is unknown and must be learned from historical observations of contexts and outcomes.

Two approaches arise naturally. A predictive approach learns the conditional expected objective and optimizes the fitted objective when a new context is observed (Bertsimas and Kallus 2020). We refer to this approach as Predict-then-Optimize (PtO). A generative approach learns the conditional distribution of Y given X, generates scenarios for the observed context, and optimizes their average cost (Gong et al. 2024). We refer to this approach as Generate-then-Optimize (GtO). For instance, in a retail inventory problem, PtO estimates expected inventory cost, whereas GtO generates demand scenarios under which inventory decisions can be evaluated. PtO concentrates learning on the objective of interest. GtO learns a conditional distribution that can support different objectives involving the same uncertain outcome.

The rise of generative AI makes the generative approach increasingly appealing. Advances in generative modeling provide flexible tools for learning conditional distributions and producing scenarios (Bond-Taylor et al. 2022, Yang et al. 2024). Further progress may make these tools easier to develop and use, while creating opportunities to incorporate qualitative context, such as descriptions of operating conditions or expert judgments expressed in language. As these capabilities develop, more organizations may be able to use generative models in operational decision making. Yet the ability to generate realistic scenarios does not by itself establish that learning a conditional distribution is preferable to learning the expected objective. The choice still depends on the data available, the optimization problem to be solved, and the decisions the model is intended to support.

This motivates our central question: When should contextual decision making be predictive, and when should it be generative? Both approaches can be applied to many of the same decision problems, but their relative appeal is not immediately clear. Learning the expected objective focuses on what a particular task requires, while learning the conditional distribution provides scenarios that can be used to evaluate decisions. We seek to understand when each approach is useful and to develop practical guidance for choosing between them. As generative AI makes scenario generation more accessible, this choice will become increasingly important.

The first consideration is statistical: how difficult is it to learn the expected objective or the conditional distribution from the available data? PtO avoids estimating how probability is distributed across outcomes, which can be valuable when data are limited or the uncertain outcome is high-dimensional. GtO must account for both the context and the uncertain outcome when learning the conditional distribution. Dimension alone, however, does not determine the difficulty of learning. Smoothness also matters because it allows observations at nearby contexts to inform one another, a central principle in nonparametric regression and conditional-density estimation (Stone 1982, Li et al. 2022). The conditional distribution may vary smoothly with the context even when the expected objective changes abruptly because costs depend on thresholds or operating rules. Learning the expected objective can therefore involve fewer dimensions without necessarily being easier.

We examine this tradeoff through bounds on regret, defined as the excess expected cost relative to an optimal decision. For PtO, our bound for kernel ridge regression (KRR) describes how greater objective smoothness can mitigate the effect of context dimension. For GtO, the corresponding analysis accounts for the dimension and smoothness of the conditional distribution, with conditional diffusion models providing a concrete instance (Fu et al. 2024). These results suggest assessing dimension and smoothness together when choosing an approach. PtO is attractive when the expected objective is sufficiently smooth to be learned accurately from the available data. GtO becomes more attractive when the conditional distribution is easier to learn because its greater smoothness compensates for the additional outcome dimension. The bounds explain these competing effects and inform the choice.

The second consideration is computational: how does learning affect the optimization problem that must ultimately be solved? Although the original decision problem is convex, an approximation learned from data need not preserve that property. A broad class of PtO methods fits the expected objective as a weighted sum of observed costs,

h^n(z;x)=∑i=1nωn,i(x)c(z;xi,yi),\hat{h}_{n}(z;x)=\sum_{i=1}^{n}\omega_{n,i}(x)c(z;x_{i},y_{i}),

where {(xi,yi)}i=1n\{(x_i, y_i)\}_{i=1}^n are historical observations (Bertsimas and Kallus 2020, Bertsimas and Koduri 2022). Nonnegative weights preserve convexity. Methods such as KRR can exploit higher-order smoothness but may assign negative weights, so their fitted objectives are no longer guaranteed to be convex. GtO preserves convexity by averaging scenario costs with equal positive weights, but must generate the scenarios and solve the resulting sample average approximation (SAA) problem (Shapiro et al. 2009). The choice of learning method thus affects both statistical accuracy and the computation needed to obtain a decision.

Our analysis makes this connection precise. For the class of nonnegative, covariate-based PtO weighting rules considered, we establish a lower bound of order n−4/(dx+4)n^{-4/(d_x+4)} on worst-case expected regret, where dxd_x is the context dimension. The bound holds even for arbitrarily smooth objectives in the constructed problem class. Within this class, the nonnegative weights that preserve convexity limit the benefit that additional smoothness can provide. KRR can benefit from higher-order smoothness, but its negative weights may complicate optimization. The extent of that difficulty depends on the cost function: negative weights do not invariably produce a nonconvex or difficult problem. A predictive method should therefore be assessed together with the optimization problem induced by its fitted objective.

For GtO, our regret bound separates the error in learning the conditional distribution from the error caused by using finitely many generated scenarios. Under the stated assumptions, the bound consists of a term proportional to the conditional-distribution learning error and an SAA term of order m−1/2m^{-1/2}, where m is the number of generated scenarios. Improving the learned distribution reduces the first error, whereas generating more scenarios reduces the second at additional computational cost. Preserving convexity therefore does not by itself imply faster decisions. PtO is attractive when its fitted objective remains easy to optimize and rapid responses are important. GtO is attractive when retaining the convex structure is valuable and the time available permits scenario generation and optimization. This distinction is particularly relevant when decisions must be made repeatedly under tight response-time requirements.

The third consideration is how broadly the learned model will be used. A model serving one objective can concentrate its learning effort on that task. In practice, however, several operational teams may face the same conditional distribution while making decisions with different objectives or constraints. When data analysis and operations reside in different departments, adapting a model to each objective can also require substantial coordination. GtO offers one way to organize this work: a data team develops a common generative model, and operational teams use its scenarios in their own decision problems. PtO can also support reuse through shared weights, features, or estimated objective components. The relevant question is how much adaptation and coordination each additional use requires. A stable, specialized task makes objective learning appealing, whereas a range of tasks sharing the same conditional distribution increases the value of a reusable generative model. The latter may be worth developing even when it offers no advantage for an individual task.

Taken together, these three considerations provide practical guidance on choosing between PtO and GtO. The choice involves balancing what can be learned reliably, what can be optimized within the available time, and how the model will serve the organization's decisions. Neither approach is preferred in all settings, and an advantage along one of these dimensions may be offset by a disadvantage along another. We draw on the theoretical results and these practical considerations to develop rules of thumb that help decision makers assess that balance.

We use two numerical examples, a contextual newsvendor problem and a product placement problem, to examine the tradeoffs and provide evidence supporting this guidance. We then extend the comparison through a real case study of fresh-retail inventory using operational data from a retail chain. With both continuous and categorical features, this case goes beyond the setting of our theoretical analysis and provides further evidence of the usefulness of our managerial insights in practice.