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.
78,285 characters · 22 sections · 29 citation commands
Inference on Time Series Nonparametric Conditional Moment Restrictions Using General Sieves
\onehalfspacing
Consider a conditional moment restriction model
where $\rho$ is a scalar residual function; $\alpha_0=(\theta_0,h_0)$ contains a finite dimensional parameter $\theta_0$ and an infinite dimensional parameter $h_0$, which may depend on some endogenous variables $W_t$. The conditioning filtration $\sigma_t(\mathcal{X})$ is the sigma-algebra generated by variables $\{\mathcal{X}_s: s\leq t\}$, where $ \mathcal{X}_s$ is a vector of multivariate (finite dimensional) exogenous variables, including all relevant lagged variables of $Y_t$ and other instrumental variables. The model therefore allows for endogenous variables and weakly dependent data.
This paper considers optimal estimation and inference for linear functionals $\phi(\alpha_0)$ of the infinite dimension. The functional may be either known or not. When it is unknown, it is assumed to take the form $$ \phi(\alpha_0)=\mathbb El(h_0(W_t))\,, $$ where $l$ is a known linear function and $h_0(W_t)$ is the nonparametric function on endogenous variable. We use general nonlinear sieve learning spaces, whose complexity grows with the sample size, to estimate the infinite dimensional parameter, such as multi-layer neural networks and Gaussian radial basis. The motivation of using general nonlinear sieve learning space, besides being adaptive to high dimensional covariates, is that they allow unbounded supports of the covariates. This is particularly desirable for models of dependent time series data, such as nonlinear autoregressive models.
We formally establish inferential theories of these functionals learned using the general nonlinear sieve learning space, and conduct inference using quasi-likelihood ratio (QLR) statistics based on the optimally weighted minimum distance. Of particular interest is the estimation of an expectation functional, such as averaged partial means, weighted average derivatives and averaged squared partial derivatives, of a nonparametric conditional moment restriction via nonlinear sieve learning sieves. An important insight from our main theory is that the asymptotic distribution does not depend on the actual choice of the learning space, but is only determined by the functional and the loss function. Therefore, estimators produced by either deep neural networks, Gaussian radial basis, or other nonlinear sieve learning basis, have the same asymptotic distribution.
In general, machine learning inference often relies on sample splitting/ cross-fitting, which does not work well in the time series setting. We propose a new time series efficient inference based on the optimal quasi-likelihood ratio test, without requiring cross-fitting. It is shown that the optimally weighted QLR statistic, based on the general nonlinear sieve learning of $h_{0}()$, is asymptotically chi-square distributed regardless of whether the information bound for the expectation functional is singular or not, which can be used to construct confidence sets without the need to compute standard errors. We present a Monte Carlo study to illustrate finite sample performance of our inference procedure.
Depending on the specific applications, our model may involve Fredholm integral equation of either the first kind (NPIV and NPQIV) or the second kind (Bellman equations). In the former case, it is well known that estimating $h_0$ is an ill-posed problem and the rate of convergence might be slow. In the latter case, the problem can be well-posed. As one of the leading examples of the Fredholm integral equation of second kind, we show that our framework implies a natural neural network-based inference in the context of Reinforcement Learning (RL), a popular learning device behind many successful applications of artificial intelligence such as AlphaGo, video games, robotics, and autonomous driving sutton2018reinforcement, silver2016mastering, vinyals2019alphastar, shalev2016safe. Due to the dynamics of the RL model, theoretical analysis of reinforcement learning naturally requires to explicitly allow time series dependency among the observed data. Earlier theoretical studies focused on the settings where the value function are approximated by linear functions. More recent developments on nonlinear learning space include farahmand2016regularized, geist2019theory,fan2020theoretical, duan2021optimal, long20212, chen2022well,shi2020statistical, among others. Our innovation lies in making inference about the functionals (such as the value functional for specific states) of the $Q$-function using general nonlinear sieve learning spaces. While the reinforcement learning is based on the well known Bellman equation, it can be formulated as the conditional moment restriction model with time series data. Therefore, one can apply the GN-QLR inference to estimating the state-specific value function in the setting of the off-policy evaluation. These applications are potentially useful for dynamic causal inference.
In the i.i.d. case, existing theoretical works on neural networks have focused on deriving approximation theories and optimal rates of convergence for estimations. Theoretically, deep learning has been shown to be able to approximate a broad class of highly nonlinear functions, see, e.g. mhaskar2016learning, rolnick2017power, lin2017does, shen2021neural,hsu2021approximation, schmidt2020nonparametric. yang1999information obtained the minimax $L_2$- rate of convergence for neural network models. Recently, chen2021efficient considered NN efficient estimation of the (weighted) average derivatives in a NPIV model for i.i.d. data, and presented consistent variance estimation. In contrast, using a general theory of Riesz representations, we derive the asymptotic distribution of the finite dimensional parameter $\theta_0$ and functionals of the infinite dimensional parameter $h_0$ that is learned from the general learning space. The uncertainty of the general nonlinear sieve learning estimator plays an essential role in the asymptotic distributions. chernozhukov2018double,chernozhukov2018generic, chernozhukov2018automatic proposed double machine learning and debias methods to achieve valid inference; dikkala2020minimax studied a minimax criterion function to study the unknown functional approximated by neural networks for NPIV models. In addition, the Riesz representation is playing a central role in our inferential theory. See newey1994asymptotic, shen1997methods,chen1998sieve,chernozhukov2020adversarial for related approaches.
In the time series setting, the neural networks have been applied to economic demand estimations as in chen2009land, and is widely applicable in financial asset pricing such as guijarro2021deep,gu2020empirical,bali2021different. These papers approximate unknown functions by neural networks, but without rigorous theoretical justifications. All these models can be formulated as an inference problem for conditional moments.
The rest of the paper is organized as follows. Section (ref) first introduces the model, the general nonlinear sieve space, the estimation and inference procedures. Section (ref) establishes the convergence rate of the nonlinear sieve estimator for the unknown function satisfying the conditional moment restrictions with weakly dependent data. Section (ref) provides the limiting distribution of the estimator for functionals that can be regular or irregular. Section (ref) shows that the GN-QLR statistics is asymptotically Chi-square distributed for both the regular and irregular functionals for time series. In Section (ref) we apply our approach to the estimation of the value function of RL and the weighted average derivative of NPIV and NPQIV as leading examples. Section (ref) contains simulation studies and Section (ref) briefly concludes.
This paper studies inference with the general nonlinear sieve learning space. The unknown function is estimated on a learning space, denoted by $\mathcal H_n$, is a general approximation space that consists of either linear or nonlinear sieves, provided that the function of interest can be approximated well by the learning space.
The popular feedforward neural network (NN) is one of the leading examples that fits into this context. Many theoretical studies have shown that NN can well approximate a broad class of functions and achieves nice statistical properties. The multilayer feedforward NN composites functions taking the form: $$ h(x)= \theta_{J+1}h_{J}(x), \quad \cdots \quad h_{j}(x)= \sigma(\theta_{j} h_{j-1}(x)), \quad \cdots \quad,h_{0}(x)=x $$ where the parameters $\theta=(\theta_1,\cdots,\theta_J)$ with $\theta_j\in\mathbb R^{d_j\times d_{j-1}}$ , $h_j(x) \in \mathbb R^{d_j}$, and $\sigma: \mathbb R^{d_j}\rightarrow \mathbb R^{d_{j}}$ is a elementwise nonlinear activation function, usually the same across components and layers. One of the popularly used activation functions is known as ReLU, defined as $ \sigma(x)= \max(0, x). $ The number of neurons being used in layer $j$, denoted by $d_j$, is called the width of that layer.
We could also use other nonlinear approximation learning spaces, which uses nonlinear combinations of inputs and neurons. One such example is the space spanned by Gaussian radial bases, which is a multilayer compositions of functions of the form: $$ h(x)=\alpha_0+\sum_{j=1}^J\alpha_jG(\sigma_j^{-1}\|x-\gamma_j\|),\quad \alpha_0,\alpha_j, \gamma_j\in\mathbb R, \sigma_j>0, $$ where $G$ is the standard normal density function. A key feature is that here inputs and neurons (e.g., a vector of $x$) are “nonlinearly combined" as $\|x-\gamma_j\|$, while they are linearly combined as indices $\theta_jx$ in the ordinary neural networks. Additional examples of nonlinear sieves include spline and wavelet sieves. They are very flexible and enjoy better approximation properties than linear sieves.
One of the key motivations of using general nonlinear sieve learning space, besides being adaptive to high dimensional covariates, is that it allows unbounded supports of input covariates. This is particularly desirable for time series models dependent data, such as nonlinear autoregressive models.
We shall assume a finite-order Markov property: for some known and fixed integer $r\geq 1$, let $X_t:=(\mathcal{X}_t,...,\mathcal{X}_{t-r})$ for all $ t=1,...,n$. define
where we assume that $\mathbb{E}[\rho(Y_{t+1},\alpha)|\sigma_t(\mathcal{X})]$ and $\operatorname{Var}(\rho(Y_{t+1},\alpha_0)|\sigma_t(\mathcal{X}))$ only depend on $( \mathcal{X}_t,...,\mathcal{X}_{t-r})$ for all $\alpha$. The model is then equivalent to $Q(\alpha_0)=0$ where
Here we use the optimal weighting function $\Sigma(X_t)$. Suppose there are nonparametric estimators $\widehat m(X,\alpha)$ and $\widehat\Sigma(X_t)$ for $m(X_t.,\alpha)$ and $\Sigma(X_t)$, we then define the sample criterion function
The estimated optimal weighting matrix is needed for the quasi-likelihood inference. In practice, one can start with the identity weighting function to obtain an initial estimator for $\alpha_0$, use it to estimate $\Sigma(X_t)$ , then update the estimator using the estimated optimal weighting matrix.
We focus on the general nonlinear sieve learning approximation to the true nonparametric function, and restrict to the following estimation space:
Here $\Theta$ is a compact set as the parameter space for $\theta_0$ but not necessarily for $\mathcal{H}_n$. In addition, let $P_{en}(h)$ denote some functional penalty for the infinite dimensional parameter. We then define the estimator $\widehat\alpha=(\widehat\theta,\widehat h)\in \mathcal{ A}_n$ as an approximate minimizer of the penalized loss function restricted to the general nonlinear sieve learning space:
The tuning parameter $\lambda_n $ is chosen to decay relatively fast, so that the penalization $P_{en}(\cdot)$ does not have a first-order impact on the asymptotic theory. Nevertheless, the functional penalization is imposed to overcome undesirable properties associated with estimates based on a large parameter space. Essentially, it plays a role of forcing the optimization to be carried out within a weakly compact set shen1997methods.
The functions $(x,\alpha )\mapsto \widehat{m}(x,\alpha )$ and $x\mapsto \widehat{\Sigma }(x)$ are nonparametric estimators of $(x,\alpha )\mapsto m(x,\alpha )$ and $x\mapsto \Sigma (x)$ (a positive definite weighting matrix) respectively. The projection $m(X_t,\alpha)$ can be also estimated using linear sieves:
where we consider linear sieve space: let $\{\Psi_j: j=1,\dots,k_n\}$ denote a set of sieve bases,
So we use the general nonlinear sieve learning space $\mathcal{H}_n$ to approximate the function space for $h_0$, and a linear sieve space $\mathcal{D}_n$ to approximate the instrumental space, which is easier to implement computationally than using nonlinear sieve approximations to the instrumental space. A more important motivation of using linear sieve space to estimate the conditional mean function $\mathbb{E}[\rho(Y_{t+1},\alpha)|\sigma_t(\mathcal{X})]$ is that the sample loss function $Q_n(\alpha)$ can be shown to have a local quadratic approximation (LQA): for some $B_n=O_P(1)$ and $Z_n\to^dN(0,1)$,
uniformly for all $\alpha$ in a shrinking neighborhood of $\alpha_0$ and $ |x|\leq Cn^{-1/2}$; here $\langle u_n, \alpha-\alpha_0\rangle$ is some inner product between $\alpha-\alpha_0$ and some function $u_n$, to be defined explicitly later. This LQA plays a fundamental role for the inferential theory of semiparametric inference using general nonlinear sieve learning methods.
Let the parameter space of the true function be $\mathcal H_0$ and let $\mathcal A_0=\Theta\times \mathcal H_0$. We are interested in the inference of $\phi(\alpha_0)$, where $\phi:\mathcal{ A}_0\to \mathbb{R}$ can be a known functional of $\alpha_0$. We also study the inference problem of unknown functionals, taking the form
where $l(\cdot)$ is a known function. While the naive plug-in estimator $ \frac{1}{n}\sum_{t=1}^nl( \widehat h(W_t)) $ is also asymptotically normal, when the model contains endogenous variables, it is not semiparametrically efficient. An important example of $\phi(\alpha_0)$ is the weighted average derivative of nonparametric instrumental variable regression (NPIV), defined as
where $\Omega(\cdot)$ is a known positive weight function and $\nabla h_0$ denotes the gradient of the nonparametric regression function $h_0$. As documented by ai2012semiparametric, the simple plug-in estimator is not an efficient estimator. To obtain a more efficient estimator, on the population level consider conditional (given $X_t$) projection of $l(h_0(W_t))$ onto $\rho(Y_{t+1}, \alpha_0)$, and the corresponding functional of interest also can be represented as $\phi(\alpha_0)$ with the functional:
where $\Gamma_0(X_t) = \mathbb{E }[l(h_0(W_t)) \rho(Y_{t+1}, \alpha_0) |\sigma_t(\mathcal{X}) ] \Sigma(X_t)^{-1} $ is the projection coefficient. We shall obtain efficient estimator of $\phi(\alpha_0)$ based on this expectation expression. It is worthy to know that the added term $\Gamma_0(X_t)\rho(Y_{t+1,\alpha_0})$ is in effect only for endogenous regressors. In pure exogeneous models where $W_t=X_t$, we have $\Gamma_0(X_t)=0$. In this case the moment condition ((ref)) reduces to the original one $\phi(\alpha)= \mathbb El(h(W_t))$.
Let
for some estimator $\widehat\Gamma_t$ to be defined later. Then we estimate the functional by $\widehat\phi(\widehat\alpha)$. Asymptotically, we shall show that
where $\mathcal{W}_t= l(h_0(W_t)) - \Gamma_0(X_t) \rho(Y_{t+1}, \alpha_0)$ and $\sigma^2$ is the asymptotic variance. It is clear that the asymptotic distribution arises from two sources of uncertainties, and importantly, the nonparametric learning error $\phi(\widehat \alpha)- \phi(\alpha_0) $ plays a first-order role.
We shall show that in both known and unknown functional case, estimated $ \phi(\alpha_0)$ is asymptotically normal. We then provide quasi-likelihood inference to construct confidence intervals for $\phi(\alpha_0)$.
Since the supports of the endogenous variable $W_t$ could be unbounded, we use a weighted sup-norm metric defined as
This is known as “admissible weight" which is often used for $h_0(W_t)$ when $W_t$ has fat tailed distribution (Remark 2.6 of haroske2020nuclear). Smooth functions with unbounded support might still be well approximated under the weighted sup-norm. The $L^2(W)$-norm can be bounded by the weighted sup-norm as: for any function $h(w)$: $$ \|h\|_{L^2(W)}^2=\int h(s)^2 f_W(s)ds\leq \|h\|^2_{\infty,\omega}\int (1+|s|^2)^{\omega} f_W(s)ds, $$ provided the distribution of the endogenous variable $W$ has as density $f_W$ such that $ f_W(s) (1+|s|^2)^{\omega}$ is integrable.
We do not consider the overparametrized regime, but impose restrictions on the complexity of the general nonlinear sieve learning space $\mathcal H_n$, measured by the “number of parameters" of the space, denoted by $p(\mathcal{H}_n)$. More specifically, we impose the following condition.
We need to assume that $h(w)$ is smooth in some sense with respect to $h(w)$. Condition (i) is a standard weighted smoothness condition for functions with unbounded support. Here two weighted norms are being defined, the weighted sup norm $\|.\|_{\infty,\omega}$ with a weight parameter $\omega$ in ((ref)). The weighted sup norm intead of the usual sup norm is being considered, as discussed above, for the purpose of allowing the nonparametric function $h(\cdot)$ to have possibly unbounded support, which is the typical case for autoregressive models. The other norm is $\|.\|_{\Lambda^\gamma}$ for the H\"{o}lder ball with a weight parameter $g$. Here we require $g<\omega$ so that the closure of the function space $\mathcal H_0$ with respec to the norm $\|.\|_{\infty,\omega}$ is compact, following from gallant1987semi.
In Condition (ii), $p(\mathcal H_n)\to\infty$ measures the dimension of of the learning space. For multilayer neural networks with ReLU activation functions, anthony2009neural showed that the bound holds with $p(\mathcal H_n)$ being the pseudo-dimension of the space and is bounded by $ C J^2 K^2\log(JK^2) $, where $J$ and $K$ respectively denote the width and depth of the network. For finite-dimensional linear sieve, the inequality also holds with $p(\mathcal H_n)$ being bounded by the number of sieve bases.
When the function $h$ has bounded support, Condition (ii) has been verified for numerous learning spaces. For instance, for feed forward multilayer neural networks, bauer2019deep showed that the approximation rate is $n^{-c},$ for $ c= \frac{p}{2p+d^*}$ and $ p=a+\gamma$, with properly chosen depth and width of layers. Importantly, $d^*\leq \dim(W_t)$ is the “intrinsic dimension" of the true function. For instance if $h_0$ has a hierarchical interaction structure or multi-index structure, $d^*$ is the number of index. When the function $h$ has unbounded support, it is known that for linear sieves such as B-splines and wavelets the approximation rate is $m=p(\mathcal H_n)^{-\gamma/\dim(W_t)}$ where $p(\mathcal H_n)$ is the number of basis. The approximation rate is however still an open question for feed forward neural networks in this case.
In this section we present the rate of convergence. For simplicity throughout the rest of the paper, we focus on the case $ \dim(\rho(Y_{t+1},\alpha))=1$. By the identification condition, $Q(\alpha)=0$ if and only if $\alpha=\alpha_0.$ So the usual risk consistency refers to $Q(\widehat\alpha)=o_P(1)$. In the presence of endogenous variables, the risk consistency however, is not sufficient to guarantee the estimation consistency. The latter is often defined under a strong norm:
We first introduce a pseudometric on $\mathcal{A}_n$ that is weaker than $ \|.\|_{\infty,\omega}$. To do so, recall the general Gateaux derivative. Given generic $ \alpha=(\theta, h) $ and $v=(v_\theta, v_h)$, let $F(x,\alpha)=F(x,\theta, h) $ be a function that is assumed to be differentiable with respect to $ \theta$. Define
where we implicitly assume $\frac{dF(x, \theta, h+\tau v_h)}{d\tau}$ exists at $\tau=0.$ Then the weak norm is defined to be
Define $\pi_n\alpha_0\in\mathcal{A}_n$ be such that
The following assumption imposes conditions on the local curvature of the criterion function.
We now discuss the ill-posedness which reflects the relation between the risk consistency and estimation consistency. Let the sieve modulus of continuity be
We say that the problem is ill-posed if $\delta=o(\omega_n(\delta))$ as $\delta\to0.$ The growth of $\omega_n(\delta)\delta^{-1}$ reflects the difficulty of recovering $\alpha_0$ through minimizing the criterion function.
Below we present regularity conditions to achieve the rates of convergence. We allow weakly dependent time series data satisfying $\beta$-mixing conditions. Define the mixing coefficient
where $\mathcal{F}_s^t$ denotes the $\sigma$-field generated by $(Y_{s+1}, X_s),...,(Y_{t+1}, X_t)$.
The lower semicontinuity of the criteria function is satisfied by the risk function of many interesting models. This condition ensures that it has a minimum on any compact set.
Define $$\epsilon(S_t,\alpha):= \rho(Y_{t+1},\alpha)-m(X_t,\alpha).$$ One of the major technical steps is to establish the stochastic equicontinuity for the function class $\Psi_j(X_t)\epsilon(S_t,\alpha)$ for $ \beta$-mixing observations, where $\alpha$ belongs to the class of deep neural networks. More specifically, we shall derive the bound for, with $\Psi(X_t):=(\Psi_j(X_t): j\leq k_n)$:
for a given convergence sequence $r_n\to 0$. This is achieved under the following Assumption.
Next we present regularity conditions on the linear sieve space $\mathcal{D} _n$ used to approximate the conditional mean function $m(X,\alpha)$.
Finally, we apply the pseudo dimension to quantify the complexity of the neural network class.
Recall that $k_n$ denotes the number of sieve bases being used to estimate the expectation function $m(X,\alpha)$; $\varphi_n$ is the approximation rate in Assumption (ref). Let
The derived rate of convergence is comparable with that of chen2012estimation. In $\bar \delta_n$, the term $\|\pi_n\alpha_0-\alpha_0\|$ is the approximation error on the general nonlinear sieve learning space; $\sqrt{\lambda_n}$ is the effect of penalization. In addition, $\varphi_n$ and $\sqrt{k_n}d_n$ respectively arise from the bias and variance of estimating $m(X,\alpha)$. In particular, the variance term $\sqrt{k_n}d_n$ depends on the complexity of the general nonlinear sieve learning space, which arises from the stochastic equicontinuity. In addition, $\omega_n(\bar\delta_n)$ connects the convergence under the weak norm $O_P(\bar\delta_n)$ to the convergence under the strong norm via the sieve modulus of continuity. When there are no endogeneity, $ \bar\delta_n $ and $\omega_n(\bar\delta_n)$ are of the same order. General nonlinear sieve spaces with more complicated structures (with larger “dimension" $p(\mathcal H_n)$) have increased covering numbers on the learning space, and thus lead to slower decays of these two terms.
We now study estimating linear functionals of $\alpha_0$. We establish the asymptotically normality of the estimated functionals formed via pluging-in the general learning estimators.
A key ingredient of our analysis, as in chen2015sieve, relies on representing the estimation error $\phi(\widehat\alpha)-\phi(\alpha_0)$ using a linear inner product induced from the loss function via the Riesz representation theorem. We define an inner product space as follows.
For any space $\mathcal{H}$, let span$\{\mathcal{H}\}$ denote the closed linear span of $\mathcal{H}$. For any $v_1, v_2$ in span$(\mathcal{A}_n \cup\{\alpha_0\})$, the linear span of $\mathcal{A}_n \cup\{\alpha_0\}$, define the inner product:
Let $\alpha_{0,n}\in $ span$(\mathcal{A}_n )$ be such that
We note that it is likely $\alpha_{0,n}\neq\pi_n\alpha_0$ because $ \pi_n\alpha_0\in\mathcal{A}_n$, which is not the same as $\text{span}( \mathcal{A}_n )$, when $\mathcal{A}_n$ is a nonlinear sieve space.
Given Theorem (ref), we can focus on shrinking neighborhoods
for a generic constant $C>0$, where $v_n^*$ is the Riesz representer to be defined below.
Because both $\mathcal{A}_{osn} $ and $\alpha_{0,n}$ are functions inside the general nonlinear sieve learning space, $(\bar V_n, \langle.\rangle)$ is a finite dimensional Hilbert space under the weak-norm $\|v\|=\sqrt{\langle v, v\rangle}$. Suppose $\frac{d\phi(\alpha_0)}{d\alpha}[v]$ is a linear functional. As any linear functional on a finite dimensional Hilbert space is bounded, by the Riesz representation Theorem, there is $v_n^*\in \bar V_n$ so that
To appreciate the role of Riesz representation in the semiparametric inference, note that $\widehat\alpha- \alpha_{0,n}\in \bar V_n$, and we have,
where the first equality follows from the smoothness condition (Assumption (ref) below) of the functional; the second equality is to the linearity of the functional pathwise derivative. In addition, suppose $\frac{ d\phi(\alpha_0)}{d\alpha}[ \alpha_{0,n}-\alpha_0]$ is negligible, a claim we shall discuss in Remark (ref) later, we can then apply the Riesz representation theorem to reach the last line of the expansion.
In addition, one of the key technical steps in the proof, by locally expanding the risk function, is to prove:
where $\mathcal{Z}_t=\rho(Y_{t+1}, \alpha_0)\Sigma(X_t)^{-1}\frac{d m(X_t,\alpha_0)}{d\alpha}[v^*_n] ,$ and $\|v_n^*\| ^2=\operatorname{Var}(\frac{1}{\sqrt{n}} \sum_t\mathcal{Z}_t).$ Then together we have
Importantly, our inference procedure does not require estimating the Riesz representer $v_n^*$ or $\|v_n^*\|$. Instead, we propose a quasi-likelihood ratio (QLR) inference. We shall provide regularity conditions in the next section to formalize the above derivations, and subsequently address estimating the known and unknown functionals.
We have the following assumptions.
To allow quantile applications that involve nonsmooth loss functions, we need to show that the sample criterion function $Q_n(\alpha)$ can be replaced with a smoothed criterion $\widetilde Q_n(\alpha):= \frac{1}{n}\sum_t\ell(X_t, \alpha)^2\widehat\Sigma(X_t)^{-1}$, where $\Psi_n=(\Psi(X_t): t=1...n) _{n\times k_n}$:
and $m_n(\alpha)$ denotes the $n\times 1$ vector of $m(X_t,\alpha)$. The replacement error is negligible:
Therefore, theoretical analysis of $Q_n(\alpha)$ is asymptotically equivalent to that of $\widetilde Q_n(\alpha)$, while the latter is second-order pathwise differentiable, and admits a local quadratic approximation. Formalizing this argument would require the following conditions.
Finally, we need to strengthen conditions on the penalty and some rates of convergence as follows.
The following condition is similar to Condition C in shen1997methods, which is used to control the approximation error of the learning space for locally perturbed elements.
An important insight from this theorem is that the asymptotic distribution does not depend on the actual choice of the learning space. The asymptotic variance $$\|v_n^*\| ^2=\mathbb{E} \Sigma(X_t)^{-1}\left( \frac{dm(X_t, \alpha_0)}{d\alpha}[v_n^*] \right)^2$$ is only determined by the functional forms $\phi$ and $m(X,\alpha)$, and more generally, the loss function. So whether the multilayer neural network, B-spline, Gaussian radial basis, etc, are being used to estimate $\alpha_0$, the asymptotic distribution is the same. What really matters is the loss function.
We now consider estimating unknown (probably not $\sqrt{n}$-estimable) functionals, taking the form
where $l(\cdot)$ is a known function. ai2012semiparametric used the following moment condition ((ref)) to construct the optimal criterion function: \\
where $\Gamma(X_t) = \mathbb{E }[l(h_0(W_t)) \rho(Y_{t+1}, \alpha_0) |\sigma_t(\mathcal{X}) ] \Sigma(X_t)^{-1} . $ They showed that estimating $\gamma_0 $ based on this moment condition leads to more efficient estimator than based on the naive plug-in method $\frac{1}{n}\sum_i l(\widehat h(W_t))$, whenever $W_t$ is endogenous. Because the naive plug-in estimator does not take into account the potential correlations between the moment functions $m(X_t, \alpha)$ and $ l(h(W_t))$.
Using the more efficient moment condition of $\gamma_0$, and letting $$\phi(\alpha):= \mathbb{E}l(h(W_t))-\mathbb{E}\Gamma(X_t)\rho(Y_{t+1},\alpha),$$ we note that $ \phi(\alpha_0)=\gamma_0.$ Suppose the functional $\phi(\cdot)$ were known, and Assumption (ref) continues to hold for $\phi(\alpha)$, then we can show
where $v^*_n$ is the Riesz representer. But we in fact are facing a problem of estimating an unknown functional $\phi(\cdot)$. To do so, we first estimate $ \Gamma (X_t)$ by
Then define the final estimator:
The following asymptotic expansion holds for the estimated functional:
where $\mathcal{Z}_t=\rho(Y_{t+1}, \alpha_0)\Sigma(X_t)^{-1}\frac{d m(X_t,\alpha_0)}{d\alpha}[v^*_n] .$ This explicitly presents two leading sources for the asymptotic distribution, where the asymptotic variance is given by
where $\mathcal W_t$ and $\mathcal Z_t$ are uncorrelated.
We impose the following conditions
Assumption (ref) regulates the approximation quality of the instrumental space using linear sieves, which is not stringent since $ \mathbb{E}(l(h(W_t))\rho(Y_{t+1}, \alpha)|\sigma_t(\mathcal{X}))$ is a function of the instrumental variable.
The next assumption imposes a condition on the accuracy of estimating the optimal weighting function $\Sigma(X_t)$. For the NPQIV model this assumption is trivially satisfied since $\widehat\Sigma(X_t)=\Sigma(X_t)= \varpi(1-\varpi)$ is known (see Section (ref) for the definition of $\varpi$). We shall verify it for the NPIV model in Section (ref).
The asymptotic normality requires some rate restrictions, which we impose below.
As shown by Theorems (ref) and (ref), computing the asymptotic variance requires estimating Riesz representer. While chen2015sieve and chernozhukov2018automatic proposed framework of estimating the Riesz representer, the task is in general quite challenging when its does not have closed-form approximations. In this section we propose to make inference directly using the optimally weighted quas-likelihood ratio statistic (QLR).
Consider testing
for some known $\phi_0\in\mathbb{R}.$ Consider the restricted null space $ \mathcal{A}_n^R:=\{\alpha\in\mathcal{A}_n: \phi(\alpha) =\phi_0\}$. The GN-QLR statistic is defined as
where $\widehat\alpha^R\in\mathcal{A}_n^R$ approximately minimizes the penalized loss function over the general nonlinear sieve learning restricted on the null space:
Define
The following theorem shows the asymptotic null distribution of $S_n(\phi_0)$ .
We now move on to the inference for the unknown functional $\gamma_0:= \mathbb{E}l(h_0(W_t))$, which is estimated by $\widehat\gamma$ as defined in ((ref)). Consider testing
for some known $\phi_0$. Define
where $\widehat\Sigma_2$ consistently estimates the long-run variance (e.g. NW87): $$\Sigma_2:=\operatorname{Var} \left( \frac{1}{\sqrt{n}}\sum_{t=1}^{n} \mathcal W_t\right) =\frac{1}{n}\sum_{t=1}^n\operatorname{Var}(\mathcal W_t) +\frac{1}{n}\sum_{t\neq s} \text{cov}(\mathcal W_t, \mathcal W_s) .$$ We recall that $ \mathcal{W}_t= l(h_0(W_t)) - \Gamma(X_t) \rho(Y_{t+1}, \alpha_0)$.
Note that $(\widehat\alpha,\widehat\gamma)$ is numerically equivalent to the solution to the following problem:
We define the GN-QLR statistic as
where $\widehat\alpha^R\in\mathcal{A}_n^R$ approximately minimizes the penalized loss function in the learning space $\mathcal H_n$, but fixing $\gamma=\phi_0$:
The asymptotic analysis of $\widetilde S_n(\phi_0)$ is rather sophisticated, which requires additional rate constraints stated as follows.
In this section, we illustrate our main results using three important models: Reinforcement learning, NPIV and NPQIV. We impose premitive conditions to verify the high level Assumptions (ref), (ref) and (ref) respectively in the two models.
Reinforcement learning (RL) has been an important learning device behind many successes in applications of artificial intelligence. Theories of RL have been developed in the literature of statistical learning and computer science. Most of the existing theoretical works formulate the problem as a least-square regression and approximate the value function by a linear function, such as bradtke1996linear, etc. Nonlinear approximations using kernel methods or deep learning appeared in the more recent literature, for example farahmand2016regularized, geist2019theory, fan2020theoretical, duan2021optimal, long20212,chen2022well. shi2020statistical also conducted inference for the optimal policy using linear sieve representations.
We proceed learning using neural networks, and study the inference for a given policy. We follow the recent literature on the off-policy evaluation problem, and formulate the reinforcement learning problem as a conditional moment restriction model. Assume the observed data trajectory $\{(S_t, A_t, R_t)\}_{t \ge 0}$ is obtained from an unknown behavior policy probability $\pi^b(a|s)$, where $(S_t, A_t, R_t)$ denote the state, action and observed reward at time $t$ respectively and $\pi^b(a|s)$ is the distribution to take action $a$ at state $s$. We denote the space of states and actions as $\mathcal S$ and $\mathcal A$. It is assumed that the reward $R_t$ is jointly determined by $(S_t, A_t, S_{t+1})$. Standing at state $S_t$ at period $t$, one takes action $A_t$ and receives reward $R_t$. The state then transits to $S_{t+1}$ at the next period.
The value of a given policy $\pi$ is measured by the so-called $Q$-function. Specifically, for any given $\pi$ and any state-action pair $(s,a)$, $Q$-function is defined as the expected discounted reward:
where $\mathbb E^\pi$ or in short $\mathbb E$ is the expectation when we take actions according to $\pi$, $0\le \gamma < 1$ is the discount factor and we consider the discounted infinite-horizon sum of expected rewards. To estimate $Q^\pi$, a classical approach is to solve the Bellman equation below:
The goal is to recover $Q^\pi$ of a given target policy $\pi$. In practice, multiple trajectories $\{(S_{i,t}, A_{i,t}, R_{i,t}, S_{i,t+1})\}_{0\le t \le T,1\le i\le N}$ may be observed to help estimate the $Q$-function. But for simplicity we assume $N=1$ and $T=n$. The more general case can be cast by merging the $N$ time series into a single series of size $n=TN. $
The Bellman equation can be formulated as a conditional moment restriction with respect to $Q^{\pi}$ for weakly dependent time series: $$ \mathbb E[\rho(Y_{t+1}, Q^{\pi})| S_t, A_t]=0,\quad Y_{t+1}= (R_t, S_t, A_t, S_{t+1}), \quad X_t=(S_t, A_t), $$ where $$ \rho(Y_{t+1}, h)=R_t- h(S_t,A_t) + \gamma \int_{x \in \mathcal A} \pi(x|S_{t+1}) h(S_{t+1}, x) \mathrm{d} x. $$
In this framework, the estimation of the function $Q^{\pi}(s,a)$ can be conducted on the neural network space, and we assume that computationally the integration in the $\rho$-function can be well approximately by the Monte Carlo method. For off-policy evaluations, the following value function is of the major interest in this section: given state $s\in\mathcal S$,
which is a known functional $\phi_s(\cdot)$ for a single state $s$.
The Bellman equation also admits a Fredholm integral equation of the second kind kress1989linear, which is a well-posed problem. Therefore, estimating the $Q$-function may achieve fast-rate of convergence. That is, the sieve modulus of continuity satisfies:
Recently chen2022well showed this result for $\|.\|_s$ to be either the sup-norm or the $\ell_2$-norm. The inner product is defined, in this case, as $ \langle v_1, v_2\rangle=\mathbb{E}\Sigma(X_t)^{-1}\left( \frac{dm}{d h}[v_1] \right)\left( \frac{dm}{dh} [v_2] \right), $ where
and induced a Riesz representer $v^*$ whose closed form is unavailable. Meanwhile, it follows from the Bellman equation that $ m(X_t, h) = \frac{dm}{dh}[h-Q^{\pi}] $ for all $h\in\mathcal H_n$. Therefore, the weak norm $\|.\|$ can be expressed as: $$ \|h-Q^{\pi}\|^2= \mathbb E m(X_t, h)^2\Sigma(X_t)^{-1}, $$ which shows that the employed minimum distance criterion function is directly estimating the squared weak norm.
Let $\widehat Q^{\pi}$ be the estimated $Q^{\pi}$ using the general nonlinear learning space, and the functional is naturally estimated using $$ \phi_s(\widehat Q^{\pi})= \int_{a \in \mathcal A} \pi(a|s) \widehat Q^{\pi}(s, a) \mathrm{d} a $$ As the moment restriction function $ \mathbb E [ \rho(Y_{t+1}, h)| S_t, A_t] $ is linear in $h$ in this case, it is straightforward to verify the high-level conditions as follows.
It then follows from Theorem (ref) that $$\|v_n^*\|^{-1}\sqrt{n}\left(\phi_s(\widehat Q^{\pi}) -\phi_s(Q^{\pi})\right)\to^d\mathcal N(0,1) $$ Inference about $\phi_s(Q^{\pi})$ based on pivotal statistics can be conducted using the GN-QLR test.
In the nonparametric instrumental variable model (NPIV), consider
where $\sigma_t(\mathcal X)$ is the filtration generated from instrumental variables $X_t$. Then $m(X_t, \alpha)= \mathbb{E}[(y_{t+1} - h(W_t))|\sigma_t(\mathcal{X})] $ and the Gateaux derivative is defined as $\frac{dm(X_t, \alpha)}{dh}[v] = \mathbb{E}(v(W_t)|\sigma_t(\mathcal{X})), $ implying
We estimate the conditional variance $ \Sigma(X_t)$ by $ \widehat\Sigma_t = \widehat A_n^{\prime }\Psi_n(\Psi_n^{\prime }\Psi_n)^{-1}\Psi(X_t) $ where $\widehat A_n$ is a $n\times 1$ vector of $\rho(Y_{t+1}, \widehat \alpha)^2$. Recall that for $\delta_n$ and $\bar\delta_n$ defined in ((ref)),
We impose the following low-level conditions to verify Assumptions (ref) and (ref).
Consider the nonparametric quantile instrumental variable (NPQIV) model
Then $m(X_t, \alpha)= P(U_{t+1}<h-h_0|\sigma_t(\mathcal{X}))-\varpi$ where $ U_{t+1}=y_{t+1}- h_0(W_t)$ and $\alpha=h$. Within this framework, we now verify the high-level assumptions presented in the previous sections.
Suppose the conditional distribution of $U_t$ given $ (X_t, W_t)$ is absolutely continuous with density function $f_{U_t|\sigma_t( \mathcal{X}), W_t}(u)$. In this context, $\Sigma(X_t)$ is known, given by
Then the Gateaux derivative is defined as
implying, for $g_1= f_{U_t|\sigma_t(\mathcal{X}),W_t}(0) u_n(W_t) $ and $ g_2=f_{U_t|\sigma_t(\mathcal{X}),W_t}(0) (h(W_t)-h_0(W_t)) $,
Also, $\|v_n^*\| ^2=(\varpi-\varpi^2)^{-1}\mathbb{E }g(X_t)^2 $ where $ g(X_t)= \mathbb{E }[ f_{U_t|\sigma_t(\mathcal{X}),W_t}(0) v^*_n(W_t)|\sigma_t(\mathcal{X})]. $
We impose the following low-level conditions to verify Assumptions (ref) and (ref). Let
The following proposition, proved in the appendix, is the main result in this subsection, which verifies the high-level conditions in the NPQIV context.
In this section, we set up nonparametric endogenous models to illustrate the performance of our proposed estimators and testing statistics using some synthetic data. Consider the following data generating process
where
and $\phi(\alpha) = \mathbb E[\partial h/\partial Z_t]=\vartheta_0 =1$ is the quantity to be estimated. We choose $L=3, b_l = 0.4^l$ and consider the nonlinear mapping $f(x) = \frac{1-\exp(-x)}{1+\exp(-x)}$. The endogenous $Z_t$ is generated using the following auto-regressive model:
And $e_t$ is generated with the following ARCH model using $\varepsilon_t$ as the innovation:
We set $\rho = 0.5$ to make $Z_t$ endogenous. We also make $e_t$ heterogeneous. Note that $\mathbb E[e_t^2] = \mathbb E[\sigma_t^2] = 1$. The endogenous variable is $W_t= Z_t$. The instruments are $X_t= (Z_{t-1}, Y_{t-1},...,Y_{t-L})$. We chose to generate $n = 5000$ samples (some burning period has been thrown away to make sure data are stationary). Note that the model can be used for both NPIV and NPQIV with $\varpi = 0.5$.
We applied a fully-connected $J$-layer ReLU-activated NN with hidden layer width of $K$. The optimization of the unconstrained NPIV or NPQIV objective used vanilla gradient descent. We did not apply mini-batch in gradient descent training as using mini-batches may hurt performance due to insufficient smoothing. The training epoch was as large as $10000$ with learning rate $0.01$ for NPIV and $0.1$ for NPQIV. Furthermore we did not apply any penalty term for this example since the problem is relatively easy and the NN under consideration is of a small scale. The linear sieve bases $(\Psi_1,...,\Psi_{k_n})$ for the instrumental variable space were $\tilde k_n$ cubic B-splines for $X$ and each of the three $Y$ lags concatenated together. For simplicity, no interaction terms between X and Y lags were included. Thus in total, we have $k_n = 4 \tilde k_n - 3$ bases (since all B-spline bases sum up to 1, we remove the last basis for each dimension and finally add the intercept term as another basis). In our simulations, we find that NPQIV requires more number of sieve basis $k_n$ for estimating the instrumental space.
For the NPIV problem, we first optimize the equal weighted quadratic loss to obtain $\widehat h$, which is used to estimate $\Sigma(X_t)$ and $ \Gamma(X_t) $ consistently. In the second step, we optimize the optimally weighted quadratic loss with the weighting matrix $\widehat\Sigma(X_t)^{-1}$ and apply the forward filter to estimate our expectation functional, which in this example is the constant $\vartheta_0=1$. Finally, we carry out the hypothesis testing for $H_0: \phi(h) =\mathbb E[\partial h/\partial Z_t] = \phi_0 = 1$ to check the size of the testing statistic. Specifically, we estimated the forward filtered residuals as $\widehat{\mathcal{W}}_t= \partial\widehat h(W_t)/\partial W_t - \widehat\Gamma_t (Y_t - \widehat h(W_t))$ and estimated $ \Sigma_2 = \operatorname{Var}(\mathcal{W}_t)$ by the Newey-West estimator given $\widehat{ \mathcal{W}}_t$, then solved the constrained optimization of $L_n(h, \phi_0)$ and finally constructed the testing statistic. For NPQIV problem, since the optimal weighting is proportional to equal weighting, we do not need the initial step to estimate $\Sigma(X_t)$. So we directly optimized the optimally weighted quadratic loss and estimated $\Gamma(X_t)$ using the results and then used the forward filter to correct the estimation of the average partial derivative. Finally, similar to NPIV, we conduct the hypothesis testing for $H_0: \phi(\alpha) = 1$ under NPQIV.
As for the computational practice, we find that for NPQIV models, it is helpful to apply truncations to the learned gradients in each step of training the network. Specifically, we smooth the loss function of the NPQIV model and truncate the updated gradient: $$ \theta_{k+1}= \theta_k - \text{lr} *\min\{|\nabla L_{n,k}|, 0.001\}*\text{sgn}(\nabla L_{n,k}) $$ where lr is the learning rate, fixed to be 0.1 for NPQIV; $\nabla L_{n,k} $ is the gradient of the NN at the current step; $\theta_{k+1}$ is the updated neural network coefficients at the current step. The truncation prevents the network from having very large gradients during iterations, helping stabilize the training process empirically.
We repeat each setting for $1000$ times. For the efficient estimation, we report the mean and standard deviation of the forward filtered average gradient for the optimal weighting optimizaiton in Table (ref). For hypothesis testing, we also report in Table (ref) the mean, standard deviation and 95% quantile of the empirical testing statistic. In addition, if we use the theoretical critical value corresponding to 5% significance level, which is 3.84 for $\chi^2_1$, the p-value is also reported.
As we can see from Table (ref), for NPIV, optimal weighting estimates $ \phi(h)$ accurately in the sense that the mean insignificantly differs from the true value $\vartheta_0 = 1$. NPQIV is less efficient with a larger standard deviation, and thus requires more samples to be estimated to the same accuracy. Note that the instrumental space with a step function can be harder to approximate with the cubic B-spline linear sieve bases. In terms of the performance of QLR testing statistic, the p-values are all close to the nominal 5% level for the NPIV and NPQIV models. Admittedly through our experiments the results can be sensitive to some tuning parameters, which is typically the case when applying deep learning for statistical inference: at the moment we still heavily rely on ad-hoc tuning in many problems. In comparison, the estimation of $\phi(h)$ is more stable with respect to different $J$ and $K$ values. Here we only mean to present some results without heavily tuning the parameters. Methods using NN for real applications require more extensive tuning in practice and some rough sense on the model complexity would be useful to determine the balance between the dimensions of the NN sieve and the linear IV sieve.
In this paper we establish neural network estimation and inference on functionals of unknown function satisfies a general time series conditional moment restrictions containing endogenous variables. We consider quasi-likelihood ratio (GN-QLR) based inference, where nonparametric functions are learned using multilayer neural networks. While the asymptotic normality of the estimated functionals depends on some unknown Riesz representer of the functional space, we show that the GN-QLR statistic is asymptotically Chi-square distributed, regardless whether the expectation functional is regular (root-$n$ estimable) or not. This holds when the data are weakly dependent and satisfy the beta-mixing condition.
In addition to estimating partial derivatives in nonparametric endogenous problems as examples, our study is well motivated by the setting of reinforcement learning where data are time series in nature. We apply our method to the off-policy evaluation, by formulating the Bellman equation into the conditional moment restriction framework, so that we can make inference about the state-specific value functional using the proposed GN-QLR method with time series data.