Extracted main text — title through conclusion, appendix excluded. This is what our citation measures are computed over, published so the extraction can be checked by eye.
Rendered from LaTeX for readability, not typeset faithfully. Citation keys are highlighted; maths is left as source; figures, tables and equation environments are summarised rather than reproduced; unrecognised commands are greyed out so nothing is silently dropped. Email addresses are removed.
A data-driven approach to beating SAA out-of-sample
abstractWhile solutions of Distributionally Robust Optimization (DRO) problems can sometimes have a higher out-of-sample expected reward than the Sample Average Approximation (SAA), there is no guarantee. In this paper, we introduce a class of Distributionally Optimistic Optimization (DOO) models, and show that it is always possible to “beat" SAA out-of-sample if we consider not just worst-case (DRO) models but also best-case (DOO) ones. We also show, however, that this comes at a cost: Optimistic solutions are more sensitive to model error than either worst-case or SAA optimizers, and hence are less robust and calibrating the worst- or best-case model to outperform SAA may be difficult when data is limited.
{\bf Keywords:} Distributionally Optimistic Optimization (DOO), Distributionally Robust Optimization (DRO), Sample Average Approximation (SAA), data-driven optimization, model uncertainty, worst-case sensitivity, out-of-sample performance.
Introduction
It is well known that solutions of optimization problems calibrated from data can perform poorly out-of-sample. This occurs due to errors in both the modeling assumptions and the estimation of model parameters and has motivated various optimization models which account for misspecification in the in-sample model. Distributionally Robust Optimization (DRO), where the decision maker optimizes against worst-case perturbations from the nominal (in-sample) distribution, is one such approach. Similar models have been introduced in a number of communities BN2,DGKF,EL,Hansen3,PJD.
The performance of DRO is often evaluated by comparing its out-of-sample expected reward to that of the SAA optimizer. This is often done experimentally, and recent papers characterize finite-sample and asymptotic properties of DRO solutions and the associated expected reward bgk-SAA,DN,DGN16,GKL-cal,KENS.
It has been observed that solutions of DRO and other worst-case models can sometimes have a higher out-of-sample expected reward than the Sample Average Approximation (SAA) optimizer AP,BLSZZ2013,GKL-cal,KL.
However, there is no guarantee, and it is of interest whether a decision that beats SAA out-of-sample can be found when DRO is unable to.
In this paper, we introduce a class of {\it Distributionally Optimistic Optimization} (DOO) problems, where nature works together with the decision maker to optimize the in-sample reward, and show under relatively mild assumptions that it is always possible to “beat" the SAA optimizer out-of-sample if we consider best-case (DOO) and worst-case (DRO) decisions.
As tempting as this may sound, there is a catch. While the out-of-sample expected reward might be larger, the expected reward under a best-case optimizer is always more sensitive to worst-case perturbations from the nominal model than the SAA optimizer, and hence is less robust. More generally, worst and best-case optimizers make a tradeoff between (in-sample) expected reward and sensitivity to model error. We potentially miss the benefits of sensitivity reduction if we only focus on the mean reward, and could even make things worse if this leads to choosing a best-case solution.
In contrast to worst-case problems, the literature on DOO is small, though recent activity suggests an uptick in interest that is generally centered around the concern that worst-case optimization is “too pessimistic." One disadvantage of optimistic optimization, however, is that convexity can be lost, making it potentially more difficult to solve (computationally) than its worst-case cousin.
Non-convexity is considered in NTM where optimistic optimization problems are shown to be related to non-convex regularizers used in machine learning.
A majorization minimization algorithm is employed in NTM to efficiently obtain a critical point of their nonconvex optimization problem by making use of its “difference of convex" structure.
Also related is NSYKW, which uses optimistic optimization over probability distributions to construct a nonparametric approximation of the likelihood function that can be used in Bayesian statistics.
The paper SZ uses DOO to solve the Trust Region Policy Optimization problem in the context of Reinforcement Learning, while optimistic optimization is also proposed in CR for online contextual decision making. Finally, a recent paper CR considers best-case optimization in stochastic optimization with model uncertainty using the “Rockafellian" framework for perturbation analysis. Best-case problems are also used in the empirical likelihood approach to generating confidence intervals of the optimal expected reward under the population distribution DGN16,Lam1,LamZhou,WGY. We also note that the National Science Foundation recently awarded a grant Xie on “Favorable optimization under distributional distortions". These papers do not consider the out-of-sample performance of solutions of best-case problems, nor the impact on the sensitivity of the out-of-sample expected reward to errors in the in-sample model.
A recent paper Lam2 shows that it is impossible, {\it asymptotically}, for a large class of data-driven problems, including DRO and DOO and popular regularization techniques, to beat the out-of-sample expected reward of SAA. While this appears to directly contradict our results, there is actually no inconsistency. The main difference is that Lam2 considers the large data limit, whereas our results apply to data sets of moderate size. Taken together, it is always possible to beat SAA using DRO/DOO with a finite data set (us), but impossible in the limit Lam2.
We discuss Lam2 in more detail at the end of this paper.
Organization
We introduce the {\it Distributionally Optimistic Optimization} (DOO) and {\it Distributionally Robust Optimization} (DRO) models in Section (ref). For concreteness, we adopt a penalty framework with smooth $\phi$-divergence as the penalty function.
We show in Section (ref) that the family of worst- and best-case solutions is continuously differentiable in a neighborhood of the SAA solution and characterize their distributional properties, that it is generally possible to find a DRO or DOO solution with a higher out-of-sample expected reward than SAA in Section (ref), but that a best-case solution is always less robust than SAA in Section (ref). The key ideas are illustrated using a data-driven inventory problem.
Setup
Let $f:{\mathbb R}^d\times{\mathbb R}^l \rightarrow {\mathbb R}$, and $Y$ be an $\mathbb{R}^{l}$-valued random vector with population distribution $\mathbb{P}$.
Consider the problem
eqnarray[eqnarray omitted — 81 chars of source]
Let
equation[equation omitted — 122 chars of source]
denote the solution of (ref). We assume the following.
assumptionThe function $f(x,\,Y)$ and random vector $Y\sim {\mathbb P}$ are such that
\begin{itemize}
• $f(x,\,Y)$ is strictly concave and twice continuously differentiable in $x\in\mathbb{R}^d$ for ${\mathbb P}$-almost surely every $Y\in\mathbb{R}^{l}$;
• for each fixed $x\in\mathbb{R}^{d}$, the mappings $y\mapsto f(x,y), \nabla_{x}f(x,y), \nabla^{2}_{x}f(x,y)$, $y\in\mathbb{R}^{l}$, are measurable and all moments of the random variables $f(x,Y)$, $\nabla_{x}f(x,Y)$, $\nabla^{2}_{x}f(x,Y)$ exist;
• there exists a solution $x^\star(0)$ of (ref).
\end{itemize}
In many applications, we do not know the population distribution ${\mathbb P}$ but only have independent and identically distributed (iid) samples $Y_1,\cdots,\,Y_n$ drawn from $\mathbb P$. This naturally leads to replacing (ref) with a Sample Average Approximation (SAA):
eqnarray[eqnarray omitted — 131 chars of source]
Here ${\mathbb P}_n = [p_1^{n},\cdots,\,p_n^{n}]$ is the empirical distribution; we assume without loss of generality that $p^n_i>0$ for all $i$. We denote the solution of the in-sample problem (ref) by
eqnarray*[eqnarray* omitted — 84 chars of source]
It is well known that the SAA solution $x_n(0)$ may not perform well out-of-sample. This has motivated worst-case versions of SAA, called Distributionally Robust Optimization (DRO), where the decision is chosen to maximize the expected reward under worst-case perturbations of the probability distribution (${\mathbb Q}$) from the empirical distribution ${\mathbb P}_n$:
eqnarray[eqnarray omitted — 160 chars of source]
where
eqnarray[eqnarray omitted — 187 chars of source]
is the $\phi$-divergence of ${\mathbb Q}=[q_1,\cdots,\,q_n]$ relative to ${\mathbb P}_n = [p_1^{n},\cdots,\,p_n^{n}]$.
We assume throughout that $\phi:{\mathbb R}\rightarrow{\mathbb R}\cup\{+\infty\}$ is a convex lower semi-continuous function such that $\phi(z)\geq\phi(1)=0$ for $z\geq 0$ and $\phi(z)=+\infty$ for $z<0$.
Distributionally optimistic optmization (DOO)
We now consider an optimistic version of (ref) where nature {\it works together} with the decision maker to optimize the expected reward. The Distributionally Optimistic Optimization (DOO) model is
eqnarray[eqnarray omitted — 163 chars of source]
Here, nature selects $\mathbb Q$ to maximize the expected reward and incurs a (negative) penalty for deviating from the nominal ${\mathbb P}_n$; the parameter $\delta$ controls the size of the deviations.
The decision maker accepts that ${\mathbb P}_n$ may be misspecified, and makes a decision that maximizes the expected reward if nature is cooperative.
DOO may be of interest to applications where the decision maker is looking for upside opportunities and does not wish to be conservative in the face of model uncertainty.
We also note that one of the likelihood approximations in NSYKW has the form of the inner problem in (ref). They do not consider optimization, though an optimistic version of Maximum Likelihood Estimation is natural step in this direction and an example of (ref).
Though our results provide insights about general properties of DOO and its solutions, applications of DOO are not the focus of this paper.
It is convenient to introduce population versions of the worst-case and best-case problems. If
eqnarray[eqnarray omitted — 185 chars of source]
denotes $\phi$-divergence, where $\frac{\mathrm{d}\mathbb Q}{\mathrm{d}\mathbb P}$ is the Radon-Nikodym derivative (likelihood ratio) of $\mathbb Q$ with respect to $\mathbb P$, then the population version of the worst-case problem is
eqnarray[eqnarray omitted — 170 chars of source]
and
eqnarray[eqnarray omitted — 171 chars of source]
is the best-case problem.
We denote the solutions of (ref), (ref) and (ref) by $x^\star(\delta)$ with $\delta=0$, $\delta>0$ and $\delta<0$, respectively, and $x_n(\delta)$ for the sample versions (ref), (ref) and (ref). It will be shown in Section (ref) that $x^\star(\delta)$ and $x_n(\delta)$ are continuously differentiable in a neighborhood of $\delta=0$. We consider the case where the decision variable $x$ is unconstrained as this allows us to directly connect changes to the SAA solution from DRO/DOO to out-of-sample performance. We defer analysis of the constrained case to future work.
Dual characterization of worst/best-case objective
Let
eqnarray*[eqnarray* omitted — 69 chars of source]
denote the convex conjugate of $\phi(z)$.
We have the following dual representation of the worst-case problems (ref) and (ref), which is well known and can be established using convex duality. We state it without proof though the interested reader can see GKL.
proposition[Dual characterization for DRO]
Suppose that $\phi:{\mathbb R}\rightarrow{\mathbb R}\cup\{+\infty\}$ is a convex lower-semicontinuous function such that $\phi(z)\geq\phi(1)=0$ for $z\geq 0$ and $\phi(z)=+\infty$ for $z<0$. If $\delta>0$, then
\begin{eqnarray}
\min_{\mathbb Q} \Big\{ {\mathbb E}_{\mathbb Q}[f(x,\,Y)] + \frac{1}{\delta}{\mathcal H}_\phi({\mathbb Q}\,|\,{\mathbb P})\Big\}= \max_c \Big\{-\frac{1}{\delta}{\mathbb E}_{\mathbb P}\Big[\phi^*\Big(-\delta\big[f(x,\,Y)+ c\big]\Big)\Big]-c\Big\}
\end{eqnarray}
and
\begin{eqnarray}
\min_{\mathbb Q}\Big\{\sum_{i=1}^n q_i f(x,\,Y_i) + \frac{1}{\delta}{\mathcal H}_\phi({\mathbb Q}\,|\,{\mathbb P}_n)\Big\} = \max_c \Big\{-\frac{1}{\delta}\sum_{i=1}^np_i^n \phi^*\Big(-\delta\big[f(x,\,Y_i)+ c\big]\Big)-c\Big\}.
\end{eqnarray}
Similarly, we can derive the dual representation for the optimistic problems (ref) and (ref).
proposition[Dual characterization for DOO]
Suppose that $\phi:{\mathbb R}\rightarrow{\mathbb R}\cup\{+\infty\}$ is a convex lower-semicontinuous function such that $\phi(z)\geq\phi(1)=0$ for $z\geq 0$ and $\phi(z)=+\infty$ for $z<0$. If $\delta<0$, then
\begin{eqnarray}
\max_{\mathbb Q} \Big\{ {\mathbb E}_{\mathbb Q}[f(x,\,Y)] + \frac{1}{\delta}{\mathcal H}_\phi({\mathbb Q}\,|\,{\mathbb P})\Big\} = \min_c \Big\{-\frac{1}{\delta}{\mathbb E}_{\mathbb P}\Big[\phi^*\Big(-\delta\big[f(x,\,Y)+ c\big]\Big)\Big]-c\Big\}
\end{eqnarray}
and
\begin{eqnarray}
\max_{\mathbb Q}\sum_{i=1}^n q_i f(x,\,Y_i) +\frac{1}{\delta}{\mathcal H}_\phi({\mathbb Q}\,|\,{\mathbb P}_n)= \min_c \Big\{-\frac{1}{\delta}\sum_{i=1}^np_i^n \phi^*\Big(-\delta\big[f(x,\,Y_i)+ c\big]\Big)-c\Big\}.
\end{eqnarray}
Characterization of the solution
In-sample problems
It follows from Proposition (ref) that the worst-case problems (ref) and (ref) are equivalent to
align[align omitted — 304 chars of source]
while by Proposition (ref), the best case problems (ref) and (ref) become
align[align omitted — 307 chars of source]
We study properties of the solution of these problems using the first-order conditions. The assumptions about the function $\phi(z)$ need to be strengthened.
assumption$\phi:{\mathbb R}\rightarrow{\mathbb R}\cup\{+\infty\}$ is a
convex lower-semicontinuous function such that $\phi(z)\geq\phi(1)=0$ for $z\geq 0$, $\phi(z)=+\infty$ for $z<0$, and is twice continuously differentiable around $z=1$ with $\phi''(1)>0$.
The first order conditions for the sample and population problems in (ref) and (ref) can be written in the form
eqnarray[eqnarray omitted — 139 chars of source]
and
eqnarray[eqnarray omitted — 137 chars of source]
respectively, where $\delta>0$ for DRO and $\delta<0$ for DOO, and
eqnarray[eqnarray omitted — 384 chars of source]
(see Appendix (ref) for a derivation). Since
eqnarray*[eqnarray* omitted — 90 chars of source]
(see Theorem 3.2 in GKL), it follows that
eqnarray*[eqnarray* omitted — 76 chars of source]
and
eqnarray*[eqnarray* omitted — 198 chars of source]
To ease notation, we suppress the dependence on $\delta$ in the function $\psi(x,\,c,\,Y)$; it should be clear from the context whether we are talking about the worst-case ($\delta>0$) or the best-case ($\delta<0$) problem.
Let $(x_n(\delta),\,c_n(\delta))$ and $(x^\star(\delta),\,c^\star(\delta))$ denote the solutions of the in-sample (ref) and population (ref) problems, respectively. The following result shows that the family of solutions parameterized by $\delta$ exists and is continuously differentiable in a neighborhood of $\delta=0$. There is a similar result in GKL-cal though the focus there is limited to DRO problems ($\delta\geq 0$). Proposition (ref) shows that the continuation to negative values of $\delta$ are solutions of DOO problems. The proof is in the Appendix.
propositionSuppose that $f(x,\,Y)$ satisfies Assumption (ref) and $\phi(z)$ satisfies Assumption (ref). Then there is an open neighborhood of $\delta=0$ where the solutions
$(x_n(\delta),\,c_n(\delta))$ and $(x^\star(\delta),\,c^\star(\delta))$ of (ref) and (ref), respectively, exist and are continuously differentiable.
In particular,
\begin{align}
\left\{
\begin{array}{l} x_n(\delta) = x_n(0) + \pi_n \delta + o(\delta),\\ [5pt]
c_n(\delta) = - {\mathbb E}_{{\mathbb P}_n} [f(x_n(0),\,Y)] + O(\delta),
\end{array}\right.
\end{align}
where\footnote{If $\phi(z)$ is three times continuously differentiable, it can be shown that \begin{eqnarray*}c_n(\delta) = - {\mathbb E}_{{\mathbb P}_n} [f(x_n(0),\,Y)] - \frac{\delta}{2}\frac{\phi”'(1)}{\left[\phi”(1)\right]^2} \mathbb{V}_{{\mathbb P}_n}\big[f(x_n(0),\,Y)\big] + o(\delta).\end{eqnarray*} However, the first-order term is not needed in our analysis.}
\begin{align}
\pi_n := \frac{1}{\phi^{”}(1)} \, \Big({\mathbb{E}_{{\mathbb{P}}_n}[\nabla^2_x f(x_n(0),\,Y)]}\Big)^{-1} \mathrm{Cov}_{{\mathbb{P}_n}}\Big[{\nabla_x f(x_n(0),\,Y)}, \, f(x_n(0),\,Y)\Big],
\end{align}
and
\begin{align}
\left\{\begin{array}{l}x^\star(\delta) = x^\star(0) + \pi \delta + o(\delta), \\ [5pt]
c^\star(\delta) = - {\mathbb E}_{{\mathbb P}} [f(x^\star(0),\,Y)] + O(\delta),
\end{array}\right.
\end{align}
where
\begin{align}
\pi := \frac{1}{\phi^{”}(1)} \, \Big({\mathbb{E}_{{\mathbb{P}}}[\nabla^2_x f(x^\star(0),\,Y)]}\Big)^{-1} \mathrm{Cov}_{{\mathbb{P}}}\Big[{\nabla_x f(x^\star(0),\,Y)}, \, f(x^\star(0),\,Y)\Big].
\end{align}
Proposition (ref) shows that worst- and best-case optimization adds a bias in the direction $\pi_n$ to the SAA maximizer $x_n(0)$ (and similarly for $x^\star(\delta)$).
Clearly, the in-sample expected reward under the robust optimizer is smaller than that of the empirical optimizer, no matter the sign of $\delta$.
When applied out-of-sample, however, this might not be the case because the solutions are random variables under the population distribution $\mathbb P$. To compare the out-of-sample reward of the best and worst-case solutions and the SAA optimizer, we need to understand the impact of data variability on the solution.
Statistical properties of the SAA solution
The following regularity assumptions on $f(x, Y)$ will be needed to characterize the statistical properties of $x_n(0)$.
assumption\begin{enumerate}
• The function
$f(x, Y)$ is three times continuously differentiable in $x\in{\mathbb R}^d$ for ${\mathbb P}$-almost all $Y\in{\mathbb R}^l$;
• As $n\rightarrow\infty$
\begin{eqnarray*}
\sup_{x}\Big|{\mathbb E}_{{\mathbb P}_n}[\nabla_x f(x,\,Y)]-{\mathbb E}_{{\mathbb P}}[\nabla_x f(x, \,Y)]\Big| \overset{P}{\longrightarrow} 0
\end{eqnarray*}
• for every $\epsilon>0$
\begin{eqnarray*}
\inf_{x: \left|x-x^\star(0)\right| \geq \epsilon} \Big|{\mathbb E}_{\mathbb P} [\nabla_x f(x,\,Y)]\Big| > 0 = \Big|{\mathbb E}_{\mathbb P} [\nabla_x f(x^\star(0),\,Y)]\Big|.
\end{eqnarray*}
• The $2^{nd}$ and $3^{rd}$ order derivatives of $f (x, \, Y)$ exist for any $x$ in a neighborhood of $x^\star(0)$ and
\begin{eqnarray*}
{\mathbb E}_{\mathbb P} \big|\nabla_x^2f(x, Y)\big|^2 & < & \infty, \\
{\mathbb E}_{\mathbb P} \Big|\nabla_x^2 \Big(\frac{\partial f}{\partial x_i}(x, \, Y)\Big)\Big|^2 & < & \infty, \; i=1,\cdots, d
\end{eqnarray*}
where $\nabla_x^2 \Big(\frac{\partial f}{\partial x_i}(x, \, Y)\Big)$ is the ${\mathbb R}^{d\times d}$-valued Hessian of the real-valued function $\frac{\partial f}{\partial x_i}(x, \, Y)$.
• For any $x$ in some neighborhood of $x^\star(0)$
\begin{eqnarray*}
\left({\mathbb E}_{{\mathbb P}_n}\big[\nabla_x^2 f(x, Y)\big]\right)^{-1} = O_P(1)
\end{eqnarray*}
• For any $x$ in some neighborhood of $x^\star(0)$ and random variable $M$ such that ${\mathbb E}_{\mathbb P}|M| < \infty$,
\begin{eqnarray*}
{\mathbb E}_{\mathbb P} \Big|\nabla_x^2 f(x, Y)-\nabla_x^2f(x^\star(0), Y)\Big| & < & M |x-x^\star(0)|, \\ [5pt]
{\mathbb E}_{\mathbb P} \Big|\nabla_x^2 \Big(\frac{\partial f}{\partial x_i}(x, \, Y)\Big)- \nabla_x^2 \Big(\frac{\partial f}{\partial x_i} (x^\star(0), \, Y)\Big)\Big| & < & M |x-x^\star(0)|.
\end{eqnarray*}
\end{enumerate}
We now characterize the statistical properties of the SAA solution.
Let
eqnarray*[eqnarray* omitted — 265 chars of source]
and random vectors
eqnarray*[eqnarray* omitted — 147 chars of source]
where
eqnarray*[eqnarray* omitted — 526 chars of source]
By condition (1) of Assumption (ref), $\nabla^2_x\big(\frac{\partial f}{\partial x_i}(x^\star(0),\, Y)\big)$ is guaranteed to exist.
The following result gives the statistical properties of the solution of the SAA problem.
propositionSuppose that data $\{Y_1,\cdots,\,Y_n\}$ is drawn iid from $\mathbb P$ and $f(x,\,Y)$ satisfies Assumptions (ref) and (ref).
Then there is a unique solution
$x^\star(0)$ of the first-order conditions ${\mathbb E}_{{\mathbb P}_n}[f(x, Y)]=0$ for the SAA problem (ref), the matrix ${A}(0)$ is invertible, $x_n(0) \overset{P}{\longrightarrow} x^\star(0)$ as $n\rightarrow\infty$, and
\begin{eqnarray}
x_n(0) = x^\star(0) + \frac{1}{\sqrt{n}} W_n(0) + \frac{1}{n} V_n(0) + o_P(n^{-3/2})
\end{eqnarray}
where ${W}_n(0)$ has mean $0$ and covariance matrix
\begin{eqnarray*}
\xi(0) & = & A(0)^{-1} B(0) {A(0)^{-1}}' \\
& = & {\mathbb V}_{\mathbb P}\Big[\Big({\mathbb E}\big[\nabla^2_x f(x^{\star}(0),\,Y)\big]\Big)^{-1}{\nabla_x f(x^{\star}(0),\,Y)}\Big],
\end{eqnarray*}
and ${V}_n(0)$ is $O_P(1)$ with mean
\begin{eqnarray}
\lefteqn{\overline{V}(0) = {\mathbb E}_{\mathbb P} \Big[{A}(0)^{-1} \nabla^2_xf(x^{\star}(0),\, Y) {A}(0)^{-1}\nabla_x f (x^{\star}(0),\, Y)\Big]} \nonumber \\
& &
- {A}(0)^{-1}
\left[\begin{array}{c}
{\rm tr} \big\{\xi(0) \, {\mathbb E}_{\mathbb P}\big[\nabla^2_x\frac{\partial f}{\partial x_1}(x^\star(0),\,Y) \big] \big\} \\
\vdots \\
{\rm tr} \big\{\xi(0)\,{\mathbb E}_{\mathbb P}\big[\nabla^2_x\frac{\partial f}{\partial x_d} (x^\star(0),\, Y)\big]\big\}
\end{array}\right].
\end{eqnarray}
proofUniqueness of $x^\star(0)$ was established in Proposition (ref), while consistency of $x_n(0)$ follows from Theorem 5.9 in vdV. Equation (ref) is obtained by applying Lemma 2.1 in KR or Lemma 3.1 from RSU to the first-order conditions of the SAA problem (ref). Invertability of $A(0)$ follows from Assumption (ref).
Equation (ref) shows that the SAA solution has a bias $\frac{1}{n}\overline{V}(0)$ relative to the solution $x^\star(0)$ of the population problem.
Statistical properties of the DRO/DOO solution
The following assumptions for $\psi(x, c, Y)$ are a direct parallel of Assumption (ref) for $f(x, Y)$.
assumption\begin{enumerate}
• The function
$f(x, Y)$ is three times continuously differentiable in $x\in{\mathbb R}^d$ for ${\mathbb P}$-almost surely $Y\in{\mathbb R}^l$, and $\phi(z)$ is three times continuously differentiable in $z\in{\mathbb R}$, and hence, $\phi^*(\zeta)$ is three times continuously differentiable in $\zeta$.
\end{enumerate}
Let $\psi(x, c, Y)$ be defined by (ref). The parameter $\delta$ in $\psi(x, c, Y)$ is such that
\begin{enumerate}
• As $n\rightarrow\infty$
\begin{eqnarray*}
\sup_{(x,\,c)}\Big|{\mathbb E}_{{\mathbb P}_n}[\psi(x,\,c,\,Y)]-{\mathbb E}_{{\mathbb P}}[\psi(x,\,c,\, \,Y)]\Big| \overset{P}{\longrightarrow} 0
\end{eqnarray*}
• for every $\epsilon>0$
\begin{eqnarray*}
\inf_{(x,\,c): |(x,\,c)-(x^\star(\delta),\,c^\star(\delta))|\geq \epsilon} \Big|{\mathbb E}_{\mathbb P} [\psi(x,\,c,\,Y)]\Big| > 0 = \Big|{\mathbb E}_{\mathbb P} [\psi(x^\star(\delta),\,c^\star(\delta),\,Y)]\Big|.
\end{eqnarray*}
• The $1^{st}$ and $2^{nd}$ order derivatives of $\psi(x, c, Y)$ exist in a neighborhood of $(x^\star(\delta), c^\star(\delta))$ and
\begin{eqnarray*}
{\mathbb E}_{\mathbb P} \big|\nabla_{(x, c)}\psi(x, c, Y)\big|^2 & < & \infty, \\
{\mathbb E}_{\mathbb P} \big|\nabla_{(x, c)}^2 \psi^{(i)}(x, c, Y)\big|^2 & < & \infty, \; i=1,\cdots, d+1
\end{eqnarray*}
where $\psi^{(i)}$ be the $i^{th}$ component of $\psi = [\psi^{(1)},\cdots,\psi^{(d)}, \psi^{(d+1)}]'$.
• For some neighborhood of $(x^\star(\delta), c^\star(\delta))$
\begin{eqnarray*}
\left({\mathbb E}_{{\mathbb P}_n}\big[\nabla_{(x, c)}\psi(x, c, Y_i)\big]\right)^{-1} = O_P(1)
\end{eqnarray*}
• For some neighborhood of $(x^\star(0), c^\star(0))$ and random variable $M$ such that ${\mathbb E}_{\mathbb P}|M| < \infty$,
\begin{eqnarray*}
{\mathbb E}_{\mathbb P} \Big|\nabla_{(x, c)}\psi(x, c, Y)-\nabla_{(x, c)}\psi(x^\star(0), c^\star(0), Y)\Big| & < & M\Big(|x-x^\star(0)| + |c-c^\star(0)|\Big), \\ [5pt]
{\mathbb E}_{\mathbb P} \Big|\nabla_{(x, c)}^2 \psi^{(i)}(x, c, Y)- \nabla_{(x, c)}^2 \psi^{(i)}(x^\star(0), c^\star(0), Y)\Big| & < & M\Big(|x-x^\star(0)| + |c-c^\star(0)|\Big).
\end{eqnarray*}
\end{enumerate}
Condition (1) guarantees that the Hessian $\nabla_{(x, c)}^2 \psi^{(i)}(x, c, Y)$ exists. The third condition implies that $\delta$ is such that the first order conditions (ref) for the population problem has a unique solution. Under Assumptions (ref) and (ref), this is satisfied for every $\delta\geq 0$
(i.e. for SAA and the worst-case problems), and for all $\delta$ in an open neighborhood of $0$, which includes negative values.
The following result characterizes the statistical properties of the DRO/DOO solution $x_n(\delta)$.
propositionSuppose that data $\{Y_1,\cdots,\,Y_n\}$ is drawn iid from $\mathbb P$, $f(x,\,Y)$ satisfies Assumptions (ref) and (ref), $\phi(z)$ satisfies Assumption (ref), and
$\delta$ is such that Assumption (ref) holds.
Then there is a unique solution $(x^\star(\delta),\,c^\star(\delta))$ of the first-order conditions (ref), $(x_n(\delta),\,c_n(\delta)) \overset{P}{\longrightarrow} (x^\star(\delta),\,c^\star(\delta))$ as $n \rightarrow \infty$, and
\begin{eqnarray}
x_n(\delta) = x^\star(\delta) + \frac{1}{\sqrt{n}} {W}_n(\delta) + \frac{1}{n}{V}_n(\delta)+ o_P(n^{-3/2}),
\end{eqnarray}
where ${W}_n(\delta)$ has mean $0$ and covariance matrix $ \xi(\delta) \equiv {\mathbb V}_{\mathbb P}[W_n(\delta)]$ and ${V}_n(\delta)$ is $O_P(1)$ with mean $\overline{V}(\delta)={\mathbb E}_{\mathbb P}[V_n(\delta)]$. $\xi(\delta)$ and $\overline{V}(\delta)$ are continuously differentiable in a neighborhood of $\delta=0$.
proofUniqueness of $(x^\star(\delta), c^\star(\delta))$ was established in Proposition (ref), while consistency of $(x_n(\delta), c_n(\delta))$ follows from Theorem 5.9 in vdV.
A proof of the remaining results can be found in the Appendix, where expressions for the random vectors $W_n(\delta)$ and $V_n(\delta)$, the covariance matrix $\xi(\delta)$ of $W_n(\delta)$ and the mean $\overline{V}(\delta)$ of $V_n(\delta)$ can also be found.
As in the case of the variance of $W_n(0)$ and the mean of $V_n(0)$ for SAA, $\xi(\delta)$ and $\overline{V}(\delta)$ do not depend on $n$. There is a bias of $\frac{1}{n}\overline{V}(\delta)$ relative to the population DRO/DOO optimizer $x^\star(\delta)$ and the variance $\frac{1}{n}\xi(\delta)$ is different from that of the SAA solution.
Out-of-sample expected reward
Let $x_n(\delta)$ be a solution of the best- or worst-case model, ${\mathbb E}_{\mathbb P}\big[f(x_n(\delta),\,Y_{n+1})\,|\,x_n(\delta)\big]$ the out-of-sample expected reward given $x_n(\delta)$, and
eqnarray*[eqnarray* omitted — 207 chars of source]
be the expected out-of-sample reward after averaging over datasets $\{Y_1,\cdots,\,Y_n\}$ of size $n$ and outcome $Y_{n+1}$. Under the assumptions of our model,
$Y_{n+1}$ has distribution $\mathbb P$, the distribution of $x_n(\delta)$ is characterized in Proposition (ref), and $x_n(\delta)$ and $Y_{n+1}$ are independent.
We now explore the relationship between $\mu_n(\delta)$ and the out-of-sample expected reward of the SAA optimizer, $\mu_n(0)$.
We denote the expected out-of-sample reward given $x$ by the function $g: {\mathbb R}^d \rightarrow {\mathbb R}$ defined by
eqnarray[eqnarray omitted — 72 chars of source]
Observe that $\mu_n(\delta) = {\mathbb E}_{\mathbb P}[g(x_n(\delta))]$. Concavity of $f(x, Y)$ in $x$ also implies that $g(x)$ is concave.
Sample Average Approximation
Independence of $x_n(0)$ and $Y$, the concavity of $f(x, Y)$ and hence $g(x)$ in $x$, and Jensen's inequality imply that the out-of-sample expected reward under the SAA optimizer $x_n(0)$ is less than that of its mean ${\mathbb E}_{\mathbb P}[x_n(0)]$
eqnarray[eqnarray omitted — 245 chars of source]
This inequality is strict if $g(x) = {\mathbb E}_{\mathbb P}[f(x, Y)]$ is strictly concave and $x_n(0)$ is random.
Equation (ref) suggests that we write the out-of-sample expected reward as a sum of the reward under the mean of the decision ${\mathbb E}_{\mathbb P}[x_n(0)]$ and a loss that we call the Jensen gap:
eqnarray[eqnarray omitted — 270 chars of source]
The Jensen gap is negative when $g(x)$ is concave (and not linear) on the support of $x_n(0)$, while the optimality of $x^\star(0)$ for the population problem implies that ${\mathbb E}_{\mathbb P}[g(x_n(0))]$ is less than $g(x^\star(0))$ if the solution is biased (${\mathbb E}_{\mathbb P}[x_n(0)] \neq x^\star(0)$).
Additional regularity (Assumptions (ref) and (ref)) allows us to characterize the mean and variance of the SAA solution and to study each component in the decomposition (ref) separately.
Specifically,
we know from Proposition (ref) that
eqnarray*[eqnarray* omitted — 98 chars of source]
We make the assumption that the second-order error terms of the expectation and variance of $x_n(0)$ are $o(n^{-1})$. Sufficient conditions for this additional level of regularity are provided in Appendix (ref).
assumptionThe SAA solution is such that
\begin{eqnarray}
{\mathbb E}_{\mathbb P}[x_n(0)] & = & x^\star(0) + \frac{1}{n} \overline{V}(0) + o(n^{-1}), \\
{\mathbb V}_{\mathbb P}[x_n(0)] & = & \frac{1}{n}\xi(0) + o(n^{-1}). \nonumber
\end{eqnarray}
Under Assumption (ref), a Taylor series expansion of the first component of (ref) around the population optimizer $x^\star(0)$ gives:
eqnarray[eqnarray omitted — 283 chars of source]
which shows that the
expected out-of-sample loss due to the finite-sample bias $\frac{1}{n} \overline{V}(0)$ is small, being on the order of $n^{-2}$.
In the case of the Jensen gap, a Taylor series expansion around ${\mathbb E}_{\mathbb P}[x_n(0)]$ gives
eqnarray[eqnarray omitted — 716 chars of source]
where the second and third equalities follow from (ref) and (ref).
The Jensen gap is negative because $g(x)$ is concave
and becomes more negative when the variance $\frac{1}{n}\xi(0)$ of $x_n(0)$ increases or the curvature $\nabla^2_x g(x^\star(0))$ becomes more negative.
Adding (ref) and (ref) we obtain an expression for the out-of-sample expected reward in terms of the population optimizer:
eqnarray[eqnarray omitted — 352 chars of source]
This expression shows that the loss in expected reward is of order $n^{-1}$ and comes from the uncertainty in the solution through the Jensen gap. There is also a loss due to the finite-sample bias in the SAA solution, but this is an order of magnitude smaller.
Distributionally Robust/Optimistic Optimization
To compare the out-of-sample expected reward of the DRO solution with that of SAA, we write ${\mathbb E}_{\mathbb P}[g(x_n(\delta))]$ in terms of the SAA reward ${\mathbb E}_{\mathbb P}[g(x_n(0))]$ and additional terms that show how changes in the mean and variance of the solution affect the expected reward:
eqnarray[eqnarray omitted — 544 chars of source]
The term (A) shows how a change in the expected value of the solution changes the reward, while (B) is the associated change in the Jensen gap.
DRO and DOO add a bias and change the variance of the SAA optimizer.
Specifically, it follows from Proposition (ref) and equations (ref) and (ref) (under Assumptions (ref), (ref) that (ref) holds. As in the case of the SAA solution, we make the additional assumption that the second-order error terms of the mean and variance of $x_n(\delta)$ is $o(n^{-1})$. A sufficient condition is given in Appendix (ref).
assumptionThere exists a neighborhood of $\delta=0$ such that
\begin{eqnarray}
{\mathbb E}_{\mathbb P}[x_n(\delta)] & = & x^\star(\delta)+\frac{1}{n}\overline{V}(\delta) + o(n^{-1})
\\ [5pt]
{\mathbb V}_{\mathbb P} [x_n(\delta)] & = & \frac{1}{n}\xi(\delta) + o(n^{-1}).
\nonumber
\end{eqnarray}
Under this assumption and for $n$ sufficiently large, there is an open neighborhood of $\delta=0$ such that
eqnarray[eqnarray omitted — 382 chars of source]
Here, $\overline{V}_\delta(0) = \frac{\mathrm{d}}{\mathrm{d}\delta}\overline{V}(0)$ and $\xi_\delta(0) = \frac{\mathrm{d}}{\mathrm{d}\delta}\xi(0)$ denote derivatives of $\xi(\delta)$ and $\overline{V}(\delta)$ at $\delta=0$, which exist because $\xi(\delta)$ and $\overline{V}(\delta)$ are continuously differentiable at $\delta=0$ (Proposition (ref)).
To the first order, the change in the bias relative to the SAA solution is $\delta\big(\pi + \frac{1}{n}\overline{V}_\delta(0)\big)$ and $\frac{\delta}{n} \xi_\delta(0)$ is the change in the variance. The expression for ${\mathbb E}_{\mathbb P}[x_n(\delta)]$ follows from the previous equation together with (ref) and (ref) and shows that the difference between the mean of $x_n(\delta)$ and $x_n(0)$ comes from two sources, the change in the population solution from $x^\star(0)$ to $x^\star(\delta)$ due to robustness which contributes the $\pi$, and the change in the finite-sample bias which gives $\frac{1}{n}\overline{V}_\delta(0)$. The variance of the solution also changes by $\frac{1}{n}\xi_\delta(0)$. An explicit relationship between terms (A) and (B) in (ref) and the robustness parameter can be obtained by substituting (ref) into each term in (ref).
For the first term (A), it is shown in Appendix (ref) that
eqnarray[eqnarray omitted — 412 chars of source]
In the case of the Jensen gap (B):
eqnarray[eqnarray omitted — 481 chars of source]
where
eqnarray*[eqnarray* omitted — 284 chars of source]
This expression shows that the change in the Jensen gap comes from the change in the curvature of the objective function due to the DRO/DOO bias (first term) and the change in the variance of the solution (second term).
The out-of-sample expected reward under a DRO/DOO solution can be written in terms of the expected reward under the SAA optimizer by adding (ref) and (ref).
propositionSuppose $\{Y_1,\cdots,\,Y_n\}$ and $Y_{n+1}$ are drawn iid from $\mathbb P$, $f(x, Y)$ satisfies Assumption (ref) and (ref), $\phi(z)$ satisfies Assumption (ref), and
Assumptions (ref), (ref) and (ref) hold.
Then for every $n$ sufficiently large, there is an open neighborhood of $\delta=0$ such that
\begin{eqnarray}
\lefteqn{{\mathbb E}_{\mathbb P}\big[f(x_n(\delta),\,Y_{n+1})\big]} \nonumber \\
& = & {\mathbb E}_{\mathbb P}\big[f(x_n(0),\,Y_{n+1})\big] + \delta \frac{\rho}{n} + \frac{\delta^2}{2} \pi' {\mathbb E}_{\mathbb P}\big[\nabla_x^2 f(x^{\star}(0),\,Y_{n+1})\big]\pi + o(\delta^2) + o(n^{-1})
\end{eqnarray}
where
\begin{eqnarray}
\rho & = & \overline{V}(0)'\,{\mathbb E}_{\mathbb P}[\nabla^2_xf(x^\star(0), Y)]\,\pi + \frac{1}{2}\, \frac{\mathrm{d}}{\mathrm{d}\delta}\mathrm{tr}\Big(\xi(\delta){\mathbb E}_{\mathbb P}[\nabla^2_xf(x^\star(\delta), Y)]\Big)\Big|_{\delta=0} \nonumber \\[5pt]
&= & \overline{V}(0)'\,{\mathbb E}_{\mathbb P}[\nabla^2_xf(x^\star(0), Y)]\,\pi \nonumber \\
& & + \frac{1}{2}\mathrm{tr}\Big(\xi_\delta(0){\mathbb{E}_{{\mathbb{P}}}[\nabla^2_x f(x^\star(0),\,Y)]}\Big) +\frac{1}{2} \pi'\nabla_x \Big[\mathrm{tr}\Big(\xi(0)\,{\mathbb E}_{{\mathbb P}}\big[\nabla_x^2 f(x^{\star}(0),\,Y_{n+1})\big]\Big)\Big]
\end{eqnarray}
and $\pi$ is given by (ref).
It is worth reiterating the origins of each term in $\rho$. The first is the change in the expected reward (ref) that results from the change to the mean of the SAA solution, while the second is the change in the Jensen gap that results from the change in the variance of the solution. The last term is the change in the Jensen gap resulting from a change in the curvature of the objective function due to the DRO/DOO bias (ref). When $f(x, Y)$ is concave but not linear, it is clear from (ref) that $\rho$ is unlikely to be zero, except in pathological cases.
The following result shows that it is always possible to select $\delta$ so that the out-of-sample expected reward under the DRO/DOO solution $x_n(\delta)$ exceeds that of $x_n(0)$ and provides an estimate of the size of the outperformance.
theoremSuppose that the assumptions of Proposition (ref) hold.
If $\rho\neq 0$, then for $n$ sufficiently large, $\delta$ can always be selected so that the expected reward under $x_n(\delta)$ exceeds that of the SAA optimizer out-of-sample
\begin{eqnarray*}
{\mathbb E}_{\mathbb P}\big[f(x_n(\delta),\,Y_{n+1})\big]>{\mathbb E}_{\mathbb P}\big[f(x_n(0),\,Y_{n+1})\big].
\end{eqnarray*}
If $n$ is such that the constant
\begin{eqnarray*}
\delta_n = -\frac{1}{n}\frac{\rho}{\pi'{\mathbb E}_{\mathbb P}[\nabla^2_xf(x^\star(0), Y)] \pi}
\end{eqnarray*}
is in the open neighborhood of $\delta=0$ where (ref) holds, then
\begin{eqnarray}
\lefteqn{{\mathbb E}_{\mathbb P}\big[f(x_n(\delta_n),\,Y_{n+1})\big] - {\mathbb E}_{\mathbb P}\big[f(x_n(0),\,Y_{n+1})\big]} \nonumber \\
& = & - \frac{1}{2n^2} \underbrace{\Big(\frac{\rho^2}{\pi'{\mathbb E}_{\mathbb P}[\nabla^2_xf(x^\star(0), Y)] \pi}\Big)}_{\tiny negative} + o(n^{-2})
\\
& > & 0 \nonumber
\end{eqnarray}
proofEquation (ref) shows how the out-of-sample expected reward depends on the robustness parameter $\delta$ when it is small. If $\rho$ is non-zero, the change in the expected reward
\begin{eqnarray*}
\lefteqn{{\mathbb E}_{\mathbb P}\big[f(x_n(\delta),\,Y_{n+1})\big] - {\mathbb E}_{\mathbb P}\big[f(x_n(0),\,Y_{n+1})\big]} \\ & = & \delta \frac{\rho}{n} + \frac{\delta^2}{2} \pi' {\mathbb E}_{\mathbb P}\big[\nabla_x^2 f(x^{\star}(0),\,Y_{n+1})\big]\pi + o(\delta^2) + o(1/n)
\end{eqnarray*}
is dominated by the linear term $\delta \frac{\rho}{n}$ when $\delta$ is small and we can always choose $\delta$ so that the expected reward from $x_n(\delta)$ exceeds that from the SAA solution $x_n(0)$. If $\rho$ is positive, a positive choice of $\delta$ (DRO) does the job, while a negative value of $\delta$ (DOO) should be chosen if $\rho$ is negative. The expression for $\delta_n$ is obtained by maximizing the quadratic on the right-hand-side of (ref).
The inequality (ref) follows by substituting the expression for $\delta_n$ into (ref).
Although we can always out-perform SAA, (ref) suggests that it is on the order of $n^{-2}$, regardless of whether it was achieved by best-case or worst-case optimization. Out-performance from either DRO or DOO is unlikely to be large if $n$ is large or $\rho$ is small. More generally, $\frac{\rho}{n}$ is the sensitivity of the sum of (A) and (B) in (ref) to changes in $\delta$. Our assumptions allow us to estimate this explicitly. (A) and (B) may depend differently on $n$ and $\delta$ in applications where our assumptions do not hold, though we have not explored this issue.
It is difficult to compute $\rho$ because it depends on the solution of the population problem $x^\star(0)$ and the population distribution $\mathbb P$, both of which are unknown, and hence to determine {\it a priori} whether the optimistic or worst-case solution will out-perform SAA. This can be sidestepped by optimizing a bootstrap or cross-validation estimate of the out-of-sample reward over $\delta$, which we explore in an inventory problem in Section (ref).
One limitation of our analysis is that we make strong assumptions about the differentiability of $f(x, Y)$. These assumptions enable us to characterize the statistical properties of the SAA and DRO/DOO solutions and to analyze out-of-sample performance. However, there are many applications where they are not satisfied, the inventory problem below being one such case. Our assumptions enable us to illustrate what is possible with DOO and to provide insight into why it occurs.
We do not rule out the possibility that either DRO or DOO will out-perform SAA when the differentiability assumptions we impose are not satisfied.
All predictions that stem from our analysis, both in Theorem (ref) and later sections, are observed in the inventory example, where the objective function violates Assumption (ref).
exampleIn AP, many examples where the out-of-sample expected reward from DRO exceeds that of SAA are presented for an objective function of the form
\begin{eqnarray*}
f(x, Y) = \frac{1}{2} x' H x + v(Y)'x + u(Y),
\end{eqnarray*}
where $H$ is strictly negative definite. Since ${\mathbb E}_{\mathbb P}[\nabla^2_xf(x^{\star}(0),\, Y)]=H$, ${\mathbb E}_{\mathbb P}[\nabla_xf(x^{\star}(0),\, Y)]=0$ and all derivatives of $f(x, Y)$ of order $3$ or higher are zero, it follows from (ref) that $\overline{V}(0) = 0$ and
\begin{eqnarray*}
\frac{1}{2} \pi'\nabla_x \Big[\mathrm{tr}\Big(\xi(0)\,{\mathbb E}_{{\mathbb P}}\big[\nabla_x^2 f(x^{\star}(0),\,Y_{n+1})\big]\Big)\Big] = 0,
\end{eqnarray*}
and hence by (ref)
\begin{eqnarray*}
\rho = \frac{1}{2}\mathrm{tr}\Big(\xi_\delta(0){\mathbb{E}_{{\mathbb{P}}}[\nabla^2_x f(x^\star(0),\,Y)]}\Big) = \frac{1}{2}{\rm tr}\Big(\xi_\delta(0)H\Big).
\end{eqnarray*}
The only term from $\rho$ that remains corresponds to the change in the Jensen gap due to a change in the variance of the solution.
If $x$ is one-dimensional, $H$ is a negative constant.
If DRO reduces the variance of the solution relative to SAA, $\xi_\delta(0)$ is negative and $\rho=\frac{1}{2}\xi_\delta(0)H$ is positive, so DRO will also out-perform SAA if $\delta>0$ is chosen appropriately.
If DRO increases the variance of the solution (see GKL-cal for an example where this happens), $\rho$ is negative and a DOO solution will have a higher out-of-sample expected reward than SAA.
All examples in AP where DRO out-performs SAA are ones where the change in variance is such that $\rho=\frac{1}{2}{\rm tr}(\xi_\delta(0)H)$ is positive. Optimistic optimization will beat SAA in the examples from AP when DRO does not.
exampleConsider an inventory problem with reward
\begin{eqnarray}
f(x, Y)= r \min\{x, Y\} + q\max\{x-Y, 0\}- s\max\{Y-x, 0\} - c x
\end{eqnarray}
where the selling price $r=10$, the purchase cost $c=9$, and the shortage and scrap costs, $s$ and $q$, are zero. Under the population distribution, demand $Y = \max\{m + I X_1 - (1-I) X_2, 0\}$, where $X_i$ is exponential with mean $\mu_i$ ($i=1, 2$), $I$ is Bernoulli with $p=P[I=1]$, and $m$ is a constant; $X_1, X_2$ and $I$ are independent. In this experiment, $m=250$, $\mu_1= 10$, $\mu_2=60$ and $p=0.9$.
We note that the objective function (ref) does not satisfy the differentiability assumptions that facilitate our analysis (Assumptions (ref), (ref), and (ref)). It will be seen, however, that all predictions from our analysis will be observed in this inventory model. More generally, this provides some evidence that the insights from our analysis are true under less stringent assumptions about the degree of smoothness of the objective function.
We generated $5,000$ datasets, each of size $n=30$, and solved the DRO/DOO problems with a modified-$\chi^2$ penalty function ($\phi(z) = \frac{1}{2}(z-1)^2$) over a range of $\delta$ for each dataset. We then computed the out-of-sample expected reward for the family of DRO/DOO decisions $x_n(\delta)$, giving $5,000$ conditional expected-reward functions. The out-of-sample expected reward $\mu_n(\delta) = {\mathbb E}_{\mathbb P}[f(x_n(\delta), Y_{n+1})]$ shown in Figure (ref) was estimated by averaging these $5,000$ functions.
If we restrict ourselves to worst-case solutions (DRO), the SAA solution ($\delta=0$) is optimal and the out-of-sample expected reward is $189$.
However, the out-of-sample expected reward is maximized with an optimistic solution $x_n(\delta)$ with $\delta=-1.3\times 10^{-3}$ and has value $193$.
With different parameter values and/or population distribution, a worst-case model $(\delta>0$) could be optimal.
\begin{figure}[h]
\caption{The plot shows the out-of-sample expected reward $\mu_n(\delta) = {\mathbb E}_{\mathbb P}[f(x_n(\delta), Y_{n+1})]$ as a function of $\delta$. The optimistic solution $x_n(\delta)$ with $\delta=-1.3\times 10^{-3}$ maximizes the expected reward ($193$). The expected reward associated with SAA ($\delta=0$) is $189$. }
\end{figure}
In summary, DRO models typically come with a free parameter -- the size of the uncertainty set or the robustness parameter $\delta$ -- which many select by optimizing an estimate of the out-of-sample expected reward via cross-validation or the bootstrap. However, it is not always possible to beat SAA if we restrict ourselves to worst-case models AP,GKL-cal. If the ultimate goal is to beat SAA out-of-sample, it is reasonable to consider worst- and best-case models to ensure this is possible.
So, what is the catch?
Best-case solutions are not robust
We have focused on the out-of-sample expected reward of solutions of best- and worst-case problems.
However,
it has also been shown that
DRO is intrinsically a tradeoff between (in-sample) expected reward and worst-case sensitivity GKL-cal,GKL,GKL-WCS. Worst-case sensitivity is a quantitative measure of robustness and it is natural to evaluate the worst-case sensitivity of the best-case optimizer.
We recall the definition of worst-case sensitivity GKL. Suppose decision $x$ is fixed and ${\mathbb E}_{{\mathbb P}_n}[f(x, Y)]$ be the expected reward under the nominal distribution ${\mathbb P}_n$. Worst-case sensitivity ${\mathcal S}_{{\mathbb P}_n}(f(x,\,Y))$ is the rate of decrease of the in-sample expected reward under “worst-case deviations" from the nominal distribution. When the difference between probability distributions is measured by smooth $\phi$-divergence, it is natural to define the worst-case distribution as the minimizer
align*[align* omitted — 323 chars of source]
Here, the penalty $\sfrac{1}{\varepsilon}>0$ on $\phi$-divergence controls the size of the deviation of ${\mathbb Q}(\varepsilon)$ from ${\mathbb P}_n$, which is increasing in $\varepsilon$. Worst-case sensitivity is
eqnarray[eqnarray omitted — 438 chars of source]
which, in the case of smooth $\phi$-divergence, is equal to the in-sample variance of the reward. There are other ways to define worst-case sensitivity: we can use a different divergence measure, or we can control the “distance" of $\mathbb Q$ from ${\mathbb P}_n$ through a constraint and look at the limit when it vanishes GKL-WCS. However, they all capture a similar idea.
Worst-case sensitivity is an in-sample {\it measure of robustness}. Given a nominal model ${\mathbb P}_n$ and a decision $x$, it quantifies the sensitivity of the expected reward to errors in the nominal model and is one way to evaluate whether a given decision is more or less robust than another.
Worst-case sensitivity depends on the choice of uncertainty set, though it is always a {\it generalized measure of deviation (spread)} GKL-WCS. Intuitively, the expected reward is sensitive to mis-specification when it has a large spread because small changes in the probability of extreme rewards (positive {\it or} negative) can have a big impact on the mean.
Instead of $x$, we can substitute the solution $x_n(\delta)$ of the best/worst-case problem into (ref). To see the impact of best/worst case optimization on the “robustness" of the solution, we write the sensitivity of $x_n(\delta)$ in terms of the sensitivity of the SAA solution $x_n(0)$.
Using the expansion (ref), the in-sample variance of the reward under $x_n(\delta)$ is
eqnarray*[eqnarray* omitted — 253 chars of source]
where
eqnarray*[eqnarray* omitted — 112 chars of source]
It now follows from (ref) that worst-case sensitivity
eqnarray[eqnarray omitted — 365 chars of source]
Strict concavity of $f(x, Y)$ in $x$ implies that
eqnarray*[eqnarray* omitted — 114 chars of source]
so solutions of the optimistic DOO problem ($\delta<0$) have a larger sensitivity than SAA, while worst-case solutions ($\delta>0$) have a smaller sensitivity and are therefore more robust.
The optimal value of $\delta$ may be difficult to estimate
Although there exists an optimal DOO or DRO decision that has a larger out-of-sample expected reward than SAA, the parameter $\delta$ corresponding to this decision needs to be estimated. It is natural to use bootstrap or cross-validation, though the estimate will depend on the data set so there will be estimation error. If the optimal value of $\delta$ is positive but we erroneously select a negative value of $\delta$ (i.e. DOO), not only do we lose a little out-of-sample expected reward but we increase worst-case sensitivity and the solution will be less robust than SAA.
example[Inventory control (continued)]
For each of the $5,000$ sampled datasets (each with $n=30$ datapoints), we compute worst-case sensitivity ${\mathcal S}_{{\mathbb P}_n}(f(x_n(\delta),\,Y))$ as a function of $\delta$. Figure (ref) is obtained by averaging these. As shown in (ref) optimistic solutions have a larger sensitivity than SAA and DRO solutions in the neighborhood of $\delta=0$ and sensitivity is linear in $\delta$. For each of the $5,000$ datasets, we can compute the in-sample mean-sensitivity frontier corresponding to the DRO/DOO solutions over a range of $\delta$. Figure (ref) is obtained by averaging these frontiers.
Figure (ref) shows that out-of-sample mean-variance frontier. SAA can be beaten by an optimistic decision, but this comes at the cost of a large increase in the out-of-sample sensitivity (variance).
Figure (ref) shows the distribution of bootstrap estimates of the optimal $\delta$ as a function of the number of data points. Here we simulated $500$ independent datasets of size $n=15$ and $n= 30$, and used 50 boostrap samples for each dataset to estimate of the out-of-sample expected reward which we optimized over $\delta$. When $n=15$, $\delta=-1.6\times 10^{-3}$ is optimal; when $n=30$, $\delta=-1.3\times10^{-3}$.
The bootstrap estimates are not very accurate when $n=15$ (mean = $1.4\times10^{-2}$, SD = $2.8\times10^{-2}$), with only $49\%$ of experiments giving an estimate with the correct sign, and there is a long right tail. This is not very surprising given that a sample of size $n=15$ is small when the population demand has a standard deviation of $28$. The chance of getting a data set that is not representative of the population is high, leading to poor estimates of $\delta$ (e.g. the extreme values in the right tail of the distribution). Accuracy improves with $n=30$ data points (mean = $-1.3\time10^{-2}$, SD = $4.7\times10^{-3}$), with estimates having the correct sign $88\%$ of the time and a smaller skew. It could well be the case that other methods estimate the optimal $\delta$, or at least its sign, more accurately. We have not explored this issue further.
\begin{figure}[ht]
\begin{subfigure}{.495\textwidth}
\caption{Worst-case sensitivity}
\end{subfigure}
\begin{subfigure}{.495\textwidth}
\caption{Average in-sample mean-sensitivity frontier}
\end{subfigure}
\begin{subfigure}{.495\textwidth}
\caption{Out-of-sample mean-sensitivity frontier.}
\end{subfigure}
\begin{subfigure}{.495\textwidth}
\caption{Density of bootstrap estimates of $\delta$.}
\end{subfigure}
\caption{(A) shows the average worst-case sensitivity as a function of $\delta$.
Consistent with (ref), it changes linearly around $\delta=0$. (B) shows the (average) in-sample mean-sensitivity frontier corresponding to a range of $\delta$. The change in the in-sample expected reward around $\delta=0$ (SAA) is small compared to changes in the worst-case sensitivity. (C) shows the out-of-sample mean-sensitivity (variance) frontier that is mapped out when $\delta$ is varied. Out-of-sample expected reward is maximized when $\delta=-1.3\times 10^{-3}$, which is on the optimistic part of the frontier. The expected reward is $193$ which exceeds that of the SAA optimizer (189). (D) shows the distribution of bootstrap estimates of the optimal $\delta$ when there are $n=15$ data points (optimal value $\delta = -1.6\times 10^{-3}$) and $n=30$ data points (optimal value $\delta=-1.3\times 10^{-3}$). Estimation error is large when $n=15$ and there is a long right tail. Accuracy improves significantly when there are $n=30$ data points. }
\end{figure}
Other remarks
The paper Lam2\footnote{The paper Lam2 was posted on
arXiv one day after the first version of this paper. Both were written independently.} studies data-driven algorithms that admit solutions of the form
eqnarray[eqnarray omitted — 149 chars of source]
where $x^\star(0)$ is the population optimizer (ref), and $\tilde{x}_n(\delta)$ is the data-driven solution when there are $n$ data points, and $\delta$ is the free parameter of the algorithm (e.g. a regularization parameter, the size of an uncertainty set, robustness parameter).
To evaluate performance (ref), Lam2
considers the difference (regret) between the expected reward of the data-driven and population optimizers
eqnarray*[eqnarray* omitted — 92 chars of source]
where $g(x)$ was defined in (ref), and shows that the weak limit ($n\rightarrow\infty$) of the scaled regret $n{\mathcal G}(\tilde{x}_n(\delta_n))$
is second-order stochastically larger than the weak limit of the scaled regret $n{\mathcal G}(\tilde{x}_n(0))$ of the SAA optimizer. In this sense it is impossible to beat SAA asymptotically when an algorithm has solutions of the form (ref).
While this appears to contradict Theorem (ref), which says that it is always possible to beat SAA using DRO/DOO,
there is actually no inconsistency.
Lam2 shows the optimality of the {\it limiting reward distribution} of SAA under second order stochastic dominance, whereas we use the asymptotic distribution of the DRO/DOO and SAA solutions to estimate the difference between the out-of-sample expected rewards for finite $n$ (ref).This difference is of order $\delta/n$, and the advantage of DRO/DOO over SAA vanishes at a rate faster than $1/n$ if $\delta \equiv \delta_n$ itself is going to $0$. Indeed, it was shown in Theorem (ref) that the optimal choice of $\delta$ is of order $1/n$ and the improvement over SAA is of the order $1/n^2$. If the goal is to beat the expected reward of SAA out-of-sample, the improvement from DRO/DOO is at best modest when data sets are moderate and diminishes quickly in $n$. There is no advantage in the limit, consistent with Lam2.
We have argued, however, that the advantage of DRO is more than the possibility that it can sometimes, but not always, beat SAA out-of-sample by just a little bit: It also reduces the sensitivity of the expected reward to misspecification in the nominal which, as the reader may recall, was the point of robust decision making in the first place. More generally, it captures the tradeoff between maximizing expected reward and controlling sensitivity which is relevant in many applications of data-driven decision making.
Conclusion
Solutions of DRO problems can sometimes have a larger out-of-sample expected reward than SAA. Indeed, much of the literature seems to suggest that this is the aspiration of DRO; uncertainty sets are often calibrated by optimizing an estimate of the out-of-sample expected reward, and recent papers focus on theoretically characterizing the out-of-sample expected reward of DRO solutions; applications of DRO are hailed a success when the out-of-sample mean exceeds that of SAA. However,
beating SAA may not be possible if we only consider worst-case models.
We have shown that it is always possible to beat SAA out-of-sample if we consider both optimistic (DOO) and pessimistic (DRO) perturbations of the nominal model. If the only concern is beating the out-of-sample expected reward of the SAA optimizer, a decision maker should consider best-case and worst-case models.
As tempting as this may sound, there is a catch. While the out-of-sample expected reward might be larger, the worst-case sensitivity of a best-case (DOO) optimizer is larger than that of SAA so it will also be less robust. Indeed, the improvement in the expected reward from using the optimal DOO optimizer is small (of order $n^{-2}$) relative to the robustness cost.
The optimal value of the parameter $\delta$ also needs to be estimated, and bootstrap or cross-validation estimates may be unreliable if the training data set is small.
thebibliography{8}
\bibitem{AP} Anderson, E.J., Philpott, A. 2020. Improving sample average approximation using distributional robustness. {\it INFORMS Journal on Optimization}, 4(1), 90--124 (\url{https://doi.org/10.1287/ijoo.2021.0061}).
\bibitem{BN2} Ben-Tal, A., A. Nemirovski. 1999. Robust solutions to uncertain programs. {\it Oper. Res. Lett.} {\bf 25} 1--13.
\bibitem{bgk-SAA} Bertsimas, D., Gupta, V., Kallus, N. 2014. Robust SAA. arXiv:1408.4445 (\url{https://arxiv.org/abs/1408.4445}).
\bibitem{BLSZZ2013} Bertsimas, D., Litvinov, E., Sun, A.X., Zhao, J., Zheng, T. 2013. Adaptive robust optimization for the security constrained unit commitment problem. {\it IEEE Transactions on Power Systems}, 28(1), 52--63.
\bibitem{CG} Cao, J., Gao, R. 2021. Contextual decision-making under parametric uncertainty and data- driven optimistic optimization. (\url{https://optimization-online.org/2021/10/8634/}).
\bibitem{CR} Chen, L.L., Royset, J.O. 2022. Rockafellian Relaxation in Optimization under Uncertainty: Asymptotically Exact Formulations (\url{https://arxiv.org/abs/2204.04762}).
\bibitem{DGKF} Doyle, J.C., Glover, K., Khargonekar, P.P., Francis, B.A. 1989. State-space solutions to standard ${\mathcal H}_2$ and ${\mathcal H}_\infty$ control problems. {\it IEEE Transactions on Automatic Control}, 34(8), 831--847.
\bibitem{EL} El Ghaoui, L., Lebret, H. 1997. Robust solutions to least-square problems to uncertain data matrices. {\it SIAM Journal on Matrix Analysis and Applications}, 18, 1035--1064.
\bibitem{DN} Duchi, J.C., Namkoong, H. 2016. Variance-based regularization with convex objectives. arXiv:1610.02581v2 (\url{https://arxiv.org/abs/1610.02581}).
\bibitem{DGN16} Duchi, J.C., Glynn, P.W., Namkoong, H. 2016. Statistics of Robust Optimization: A Generalized Empirical Likelihood Approach. arXiv:1610.03425 (\url{https://arxiv.org/abs/1610.03425}).
\bibitem{GKL-cal} Gotoh, J., Kim, M.J., Lim, A.E.B. 2020. Calibration of robust empirical optimization models. {\it Operations Research}, 69(5), 11 1630--1650, \url{https://doi.org/10.1287/opre.2020.2041}.
\bibitem{GKL} Gotoh, J., Kim, M.J., Lim, A.E.B. 2018. Robust empirical optimization is almost the same as mean-variance optimization. {\it Operations Research Letters},
46 (4), 448--452, \url{https://doi.org/10.1016/j.orl.2018.05.005}.
\bibitem{GKL-WCS} Gotoh, J., Kim, M.J., Lim, A.E.B. 2020. Worst-case sensitivity. arXiv:2010.10794 (\url{https://arxiv.org/abs/2010.10794}).
\bibitem{Hansen3} Hansen, L.P., Sargent, T.J. 2008. {\it Robustness}. Princeton University Press, Princeton, New Jersey.
\bibitem{KL} Kim, M.J., Lim, A.E.B. 2014. Robust multi-armed bandit problems. {\it Management Science}, 62(1), 264--285.
\bibitem{KENS} Kuhn, D., Esfahani, P.M., Nguyen,V.A., Shafieezadeh-Abadeh, S. 2019. Wasserstein Distributionally Robust Optimization: Theory and
Applications in Machine Learning. {\it INFORMS TutORials in Operations Research}, 130-166, \url{https://doi.org/10.1287/educ.2019.0198}.
\bibitem{KR} Kundhi, G., Rilstone, P. 2008. The third order bias of nonlinear estimators. {\it Communications in Statistics -- Theory and Methods}, 37: 2617 -- 2633.
\bibitem{Lam2} Lam, H. 2021. On the Impossibility of Statistically Improving Empirical Optimization: A Second-Order Stochastic Dominance Perspective. arXiv:2105.13419 (\url{https://arxiv.org/pdf/2105.13419.pdf}).
\bibitem{Lam1} Lam, H. 2019. Recovering Best Statistical Guarantees via the Empirical Divergence-Based Distributionally Robust Optimization. {\it Operations Research}, 67(4), pp 1090 -- 1105.
\bibitem{LamZhou} Lam H., Zhou E. 2017. The empirical likelihood approach to quantifying uncertainty in sample average approximation. {\it Operations Research Letters} 45(4), pp 301 -- 307.
\bibitem{NSYKW}Nguyen, V.A., Shafieezadeh-Abadeh, S., Yue, M.C., Kuhn, D., Wiesemann, W. 2019. Optimistic Distributionally Robust Optimization for Nonparametric Likelihood Approximation. arXiv:1910.10583 (\url{https://arxiv.org/abs/1910.10583}).
\bibitem{Nishiyama} Nishiyama, Y. 2010. Moment Convergence of $M$-Estimators. {\it Statistica Neerlandica}, Vol. 64, nr. 4, pp. 505--507.
\bibitem{NTM} Norton, M., Takeda, A., Mafusalov, A. 2017. Optimistic robust optimization with applications to machine learning. arXiv:1711.07511 (\url{https://arxiv.org/abs/1711.07511}).
\bibitem{PJD} Peterson, I.R., James, M.R., Dupuis, P. 2000. Minimax optimal control of stochastic uncertain systems with relative entropy constraints. {\it IEEE Transactions on Automatic Control}, 45, 398--412.
\bibitem{RSU} Rilstone, P., Srivastava, V.K., Ullah, A. (1996). The second-order bias and mean squared error of nonlinear estimators. {\it Journal of Econometrics}, 75: 369--395.
\bibitem{SZ} Song, J., Zhao, C. 2020. Optimistic Distributionally Robust Policy Optimization. arXiv:2006.07815v1, \url{https://arxiv.org/pdf/2006.07815.pdf}.
\bibitem{vdV}van der Vaart, A.W. 2000. {\it Asymptotic Statistics}. Cambridge University Press.
\bibitem{WGY} Wang, Z., Glynn, P.W., Ye. Y. (2016). Likelihood robust optimization for data-driven problems. {\it Computational Management Science}, 13(2), pp. 241 -- 261.
\bibitem{Xie} Xie, W. 2021. {\it CAREER}: Favorable Optimization under Distributional Distortions: Frameworks, Algorithms, and Applications (Award Number 2046426). Division of Civil, Mechanical & Manufacturing Innovation, National Science Foundation.