EconBase
← Back to paper

Debiased Machine Learning without Sample-Splitting for Stable Estimators

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.

50,159 characters · 6 sections · 22 citation commands

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.

Debiased Machine Learning without Sample-Splitting for Stable Estimators

abstractEstimation and inference on causal parameters is typically reduced to a generalized method of moments problem, which involves auxiliary functions that correspond to solutions to a regression or classification problem. Recent line of work on debiased machine learning shows how one can use generic machine learning estimators for these auxiliary problems, while maintaining asymptotic normality and root-$n$ consistency of the target parameter of interest, while only requiring mean-squared-error guarantees from the auxiliary estimation algorithms. The literature typically requires that these auxiliary problems are fitted on a separate sample or in a cross-fitting manner. We show that when these auxiliary estimation algorithms satisfy natural leave-one-out stability properties, then sample splitting is not required. This allows for sample re-use, which can be beneficial in moderately sized sample regimes. For instance, we show that the stability properties that we propose are satisfied for ensemble bagged estimators, built via sub-sampling without replacement, a popular technique in machine learning practice.

Introduction

A large variety of problems in causal inference and more generally semi-parametric inference can be framed as finding a solution to a moment condition:

align[align omitted — 99 chars of source]

where $Z\in {\mathcal Z}$ is a vector of random variables that, apart from the target parameter $\theta_0\in \Theta\subset\mathbb{R}^p$ of interest, also depends on unknown nuisance functions $g_0\in {\mathcal G}$, which need to be estimated in a flexible manner from the data. This framework has a long history in the literature on semi-parametric inference levit1976efficiency,hasminskii1979nonparametric,ibragimov1981statistical,pfanzagl1982lecture,klaassen1987consistent,robinson1988root,van1991differentiable,bickel1993efficient,newey1994asymptotic,robins1995semiparametric,vaart,bickel1988estimating,newey1998undersmoothing,ai2003efficient,newey2004twicing,ai2007estimation,tsiatis2007semiparametric,kosorok2007introduction,ai2012semiparametric, which analyzes the following two-stage estimation process with sample re-use, when having access to $n$ iid samples $\{Z_1, \ldots, Z_n\}$ and as $n$ grows, treating the target parameter dimension $p$ as a constant:

enumerate• Obtain an estimate $\hat{g}\in {\mathcal G}$ of the nuisance function $g_0$ based on all the samples. • Return any estimate $\hat{\theta}\in \Theta$ that satisfies: \begin{align} M_{n}(\hat{\theta}, \hat{g}) = & o_p\left(n^{-1/2}\right) & & with & M_n(\theta, g) \triangleq & \frac{1}{n} \sum_{i=1}^n m(Z_i; \theta, g) . \end{align}

Given that the estimation of function $\hat{g}$ is a complex non-parametric problem, it will typically only satisfy slower than parametric error rates. Moreover, in high dimensional settings, when machine learning techniques are used to estimate $\hat{g}$, then the regularization bias of $\hat{g}$ will propagate to the final estimate $\hat{\theta}$, leading to non-regular estimates and the inability to construct confidence intervals.

The literature on efficient semi-parametric estimation provides conditions on the moment function so that the influence of the estimation error of the nuisance function $\hat{g}$ is of second order importance and does not alter the distributional properties of the second stage hasminskii1979nonparametric,bickel1988estimating,zhang2014confidence,belloni2011inference,belloni2014inference,belloni2014uniform,belloni2014pivotal,javanmard2014confidence,javanmard2014hypothesis,javanmard2018debiasing,van2014asymptotically,ning2017general,chernozhukov2015valid,neykov2018unified,ren2015asymptotic,jankova2015confidence,jankova2016confidence,jankova2018semiparametric,bradic2017uniform,zhu2017breaking,zhu2018linear. This approach dates back to the classical work on doubly robust estimation and targeted maximum likelihood robins1995analysis,robins1995semiparametric,van2006targeted,van2011targeted,luedtke2016statistical,toth2016tmle as well as the more recent work on locally robust or Neyman orthogonal conditions on the moment function neyman1959,neyman1979c,chernozhukov2016locally,belloni2017program,chernozhukov2018double, typically referred to as double or debiased machine learning. At a high-level, the earlier literature on semi-parametric inference shows that if the moment function satisfies some form of robustness to nuisance perturbations and, importantly, as long as the space ${\mathcal G}$ used in the first stage estimation is a relatively simple function class, in terms of statistical complexity, typically referred to as a Donsker function class, then the second stage estimate is root-$n$ consistent and asymptotically normal. Hence, one can easily construct confidence intervals for the target parameter of interest.

Crucially the recent literature on debiased machine learning alters the standard two-stage estimation algorithm to introduce the idea of sample-splitting, bickel1982adaptive,zheng2010asymptotic. In particular, instead of estimating $\hat{g}$ on all the samples, the recent work on debiased machine learning chernozhukov2018double,chernozhukov2016locally,chernozhukov2021simple estimates $\hat{g}$ on a separate sample, or for better sample efficiency invokes “cross-fitting,” where we train a nuisance model on half the data and evaluate it in the second stage on the other half and vice versa. Sample splitting avoids the Donsker conditions that were prevalent in the classic semi-parametric inference literature and only requires a root-mean-squared-error (RMSE) guarantee of the estimate $\hat{g}$ of $o_p(n^{-1/4})$.

However, sample splitting or cross-fitting still leads to poorer sample usage, as we can lose half of our data when training complex non-parametric or machine learning models, which can be problematic in small and moderate sample regimes. Our main result is to show that root-$n$ consistency and asymptotic normality of the standard algorithm, without sample splitting, can be achieved without the Donsker property, but solely if one assumes that the first stage estimation algorithm is $o(n^{-1/2})$ leave-one-out stable, a relatively widely studied property in the statistical machine learning and generalization theory literature bousquet2002stability,Kale11cross-validationand,elisseeff2003leave,Hardt2016. As a leading example we show that our stability conditions are satisfied by bagging estimators formed with sub-sampling without replacement.

Recent prior work of chernozhukov2020adversarial also considered asymptotic normality based on stability conditions, but as we expand in the main text, their requirement on the stability property is much harsher than the one we derive here. Moreover, chernozhukov2020adversarial analyzes only a special case of the class of moment problems that we consider here. For instance, in our leading example of bagging estimators, the prior result of chernozhukov2020adversarial would require that the bias of the base estimator decays faster than $1/n$, where $n$ is the sample size, which is typically not the case. In contrast, our stability condition does not impose any explicit assumption on the bias and solely requires that the sub-sample size $m$ is $o(\sqrt{n})$.

To simplify the regularity assumptions required for asymptotic normality, we focus on the case where $m(Z;\theta,g)$ is linear in $\theta$, i.e.

align[align omitted — 59 chars of source]

where $a(Z;g)\in \mathbb{R}^{p\times p}$ is a $p\times p$ matrix and $\nu(Z;g)\in \mathbb{R}^p$ is a $p$-vector, and we denote with:

align[align omitted — 168 chars of source]

Many of the leading examples in semi-parametric problems that arise in causal inference correspond to linear moment problems. We present below a representative set of problems that are widely used in the practice of causal inference.

example[Partially Linear Treatment Effect robinson1988root] If one assumes that the outcome of interest $Y$ is linear in the treatment, i.e. $Y=\theta_0'T + f_0(X) + \epsilon$, with $\mathbb{E}[\epsilon\mid T, X]=0$, then estimating the treatment effect $\theta_0$ boils down to solving the following linear moment: \begin{align} m(Z;\theta,g) = (Y - q(X) - \theta'(T-p(X)))\, (T - p(X)) \end{align} where the corresponding true values of $(q,p)$ are $q_0(X)=\mathbb{E}[Y|X]$, $p_0(X)=\mathbb{E}[T|X]$.
example[Partially Linear IV chernozhukov2018double] If one assumes that the outcome of interest $Y$ is linear in the treatment, i.e. $Y=\theta_0'T + f_0(X) + \epsilon$, but the treatment is endogenous (i.e. there are unobserved confounders) and one has access to a random variable $Z$, that is referred to as an instrument, which correlates with the treatment but is un-correlated with the residual in the outcome equation, i.e. satisfies that $\mathbb{E}[\epsilon\mid Z, X]=0$, then estimating $\theta_0$ boils down to solving the following linear moment: \begin{align} m(Z;\theta,g) = (Y - q(X) - \theta'(T-p(X)))\, (Z - r(X)) \end{align} where the true values of $(q,p,r)$ are $q_0(X)=\mathbb{E}[Y|X]$, $p_0(X)=\mathbb{E}[T|X]$, $r_0(X) = \mathbb{E}[Z|X]$.
example[Average linear functionals of regression functions] Consider a class of moment functions of the form: \begin{align} m(Z;\theta,g) = \theta - m_{b}(Z;q) - \mu(T,X)\, (Y - q(T,X)) \end{align} where $g=(q,\mu)$, $m_{b}$ is a linear functional of $q$ and the corresponding true value $q$ is a regression function $q_0(T, X)=\mathbb{E}[Y\mid T, X]$ and $\mu_0$ is Riesz representer of the functional $\mathbb{E}[m_b(Z;q)]$ (see chernozhukov2018global for examples). For instance, in the case of a binary treatment $T$, where we have that $Y = q(T, X) + \epsilon$ and $\mathbb{E}[\epsilon\mid T, X]=0$, then the average treatment effect $\theta_0=\mathbb{E}[q(1,X) - q(0,X)]$ is identified by a moment of the latter type, with: \begin{align} m_b(Z;q) = q(1, X) - q(0, X) \tag{Average Treatment Effect (ATE)} \end{align} While if we have a target treatment policy $\pi: {\mathcal X} \to \{0,1\}$, and we want to estimate its average value $\theta_0$, we can identify do so with a moment of the aforementioned type, with: \begin{align} m_b(Z;q) = \pi(X)\, (q(1, X) - q(0, X)) \tag{Average Policy Effect} \end{align}

For completeness, we also include in Appendix (ref) an extension of our results to nonlinear moment problems.

Asymptotic Normality without Sample Splitting

We start by providing an asymptotic normality theorem for semi-parametric moment estimators without sample splitting and where the moment satisfies the well-studied property of Neyman orthogonality. Our theorem requires four main conditions: i) root-mean-squared-error (RMSE) rates for the nuisance function estimates of $o_p(n^{-1/4})$, ii) Neyman orthogonality of the moment with respect to the nuisances, iii) second-order smoothness of the moment with respect to the nuisance functions and, iv) stochastic equicontinuity of the Jacobian and the offset part of the linear moment function as the nuisance estimate $\hat{g}$ converges to $g_0$. For a vector $x\in \mathbb{R}^p$ we denote with $\|x\|_2$ the $\ell_2$ norm and for a matrix $X\in \mathbb{R}^{p\times p}$ we denote with $\|X\|_{op}$ the operator norm with respect to the $\ell_2$ norm.

theoremSuppose that the nuisance estimate $\hat{g}\in {\mathcal G}$ satisfies: \begin{equation} \|\hat{g} - g_0\|^2_2 \triangleq \mathbb{E}_X\left[\|\hat{g}(X) - g_0(X)\|_2^2\right] =o_p\left(n^{-1/2}\right). \tag{Consistency Rate} \end{equation} Suppose that the moment satisfies the Neyman orthogonality condition: for all $g\in {\mathcal G}$ \begin{align} D_g M(\theta_0, g_0)[g-g_0] \triangleq \frac{\partial}{\partial t} M(\theta_0, g_0 + t\, (g-g_0))\big|_{t=0} = & 0 \tag{Neyman Orthogonality} \end{align} and a second-order smoothness condition: for all $g\in {\mathcal G}$ \begin{align} D_{gg} M(\theta_0, g_0)[g-g_0] \triangleq \frac{\partial^2}{\partial t^2} M(\theta_0, g_0 + t\, (g-g_0))\big|_{t=0} = & O\left(\|g-g_0\|_2^2\right) \tag{Smoothness} \end{align} and that the moment $m$ satisfy the stochastic equicontinuity conditions: \begin{align} \begin{aligned} \sqrt{n} \left\|A(\hat{g}) - A(g_0) - (A_n(\hat{g}) - A_n(g_0))\right\|_{op} = & o_p(1)\\ \sqrt{n} \left\|V(\hat{g}) - V(g_0) - (V_n(\hat{g}) - V_n(g_0))\right\|_2 = & o_p(1). \end{aligned} \tag{Stochastic Equicontinuity} \end{align} Assume that $A(g_0)^{-1}$ exists and that for any $g,g'\in {\mathcal G}$: \begin{equation} \|A(g) - A(g')\|_{op}=O\left(\|g-g'\|_2\right). \end{equation} Moreover, assume that for any $i,j\in [p]\times[p]$, the random variable $a_{i,j}(Z;g_0)$ has bounded variance. Then $\hat{\theta}$ is asymptotically normal: \begin{equation} \sqrt{n} \left(\hat{\theta} - \theta_0\right) \xrightarrow{n\rightarrow \infty, d} N\left(0, A(g_0)^{-1} \mathbb{E}\left[m(Z; \theta_0, g_0)\, m(Z; \theta_0, g_0)^\top\right] A(g_0)^{-1}\right). \end{equation}

The first three conditions are standard assumptions in the literature on debiased machine learning. The final condition (stochastic equicontinuity) is exactly where sample splitting comes very handy in the literature. To illustrate the reason why sample splitting helps with the stochastic equicontinuity condition, let us consider the first part of the condition (the reasoning is analogous for the second part). It asks that the difference of two centered empirical processes, namely $A_n(\hat{g})-A(\hat{g})$ and $A_n(g_0) - A(g_0)$, goes to zero faster than $n^{-1/2}$. We expect each empirical process to go down to zero at exactly $n^{-1/2}$ and so this condition asks, since $\hat{g}$ converges to $g_0$ is the empirical process continuous in its argument and for that reason does the difference converge to zero faster than each individual component. If the estimate $\hat{g}$ was fitted on a separate sample, then conditional on $\hat{g}$, we have that each element $t=(i,j)\in [p]\times[p]$ of $A_n(\hat{g}) - A_n(g_0)$ is an empirical average of iid random variables with mean $A(\hat{g})-A(g_0)$. Thus a simple Bernstein inequality would show that the difference of the two empirical processes would converge to zero at the order of:

align[align omitted — 192 chars of source]

where we also invoked a mean-squared-continuity property of $a_t(Z;g)$ and the fact that $\|\hat{g}-g_0\|_2=o_p(1)$. Thus, with sample splitting, no further constraint is required from $\hat{g}$, other than a convergence rate on $\|\hat{g}-g_0\|_2$. In fact, as was noted in recent work of chernozhukov2021simple, in the above step it suffices to assume that $\mathbb{E}[(a_t(Z;\hat{g}) - a_t(Z;g_0))^2] = O\left(\|\hat{g}-g_0\|_2^q\right)$ for any $q<\infty$, which is a much weaker mean-squared-continuity assumption, and the property would still hold, since $\|\hat{g}-g_0\|_2^{q/2} n^{-1/2}=o(n^{-1/2})$, whenever $\|\hat{g}-g_0\|_2=o_p(1)$.

Without sample splitting, note that $\hat{g}$ is now correlated with the samples in the empirical averages and hence $A_n(\hat{g}) - A_n(g_0)$ is no longer an average of i.i.d. random variables. Typical approaches would try to prove a uniform stochastic equicontinuity property over the function space ${\mathcal G}$, typically referred to as a Donsker property of the function space ${\mathcal G}$. In particular, if we could show that with high probability:

align[align omitted — 201 chars of source]

then the above property would also hold for $\hat{g}$. Subsequently, since we know that $\|\hat{g}-g_0\|_2^2=o_p(n^{-1/2})$, by our convergence rate assumptions on $\hat{g}$, then it would suffice that $\delta_n^2 = o(n^{-1/2})$. Such localized concentration inequalities have been known to hold for Donsker classes, which are typically defined via entropy integrals, and more recently it was also noted that such inequalities are satisfied with $\delta_n$ being the critical radius of the space ${\mathcal G}$, defined via localized Rademacher complexities.

However, the latter approach is conservative as it requires a uniform control over the function space ${\mathcal G}$ and does not utilize at all the properties of the estimation algorithm itself. In particular, as we will show in the next section, the main result of our work is that this stochastic equicontinuity condition follows from $o(n^{-1/2})$ leave-one-out stability conditions on our estimation algorithm, which are typical in the machine learning literature and in the excess risk and generalization bounds literature.

Stochastic Equicontinuity via Stability

We will show that the Condition (ref) is satisfied, whenever the estimate $\hat{g}$ satisfies leave-one-out stability properties and the moment satisfies the weak mean-squared-continuity property of chernozhukov2021simple. We start by some preliminary definitions required to state our stability conditions. Define $Z^{(-l)}$ as the data $Z_1,\ldots,Z_n$ with the $l$-th data point $Z_l$ replaced with an independent copy $\tilde{Z}_l$. Define $Z^{(-l_1,-l_2)}$ as the data $Z_1,\ldots,Z_n$ with both the $l_1$-th and the $l_2$-th data points $Z_{l_1},Z_{l_2}$ replaced with independent copies $\tilde{Z}_{l_1},\tilde{Z}_{l_2}$. Define similarly for $Z^{(-l_1,-l_2,-l_3)}$ and so on. Let $\hat g^{(-l)}$ be the estimator trained on $Z^{(-l)}$ instead of $Z_1,\ldots,Z_n.$ Similarly, let $\hat g^{(-l_1,-l_2)}$ be trained on $Z^{(-l_1,-l_2)}$ and so on. Moreover, we will always denote with $Z$ a fresh random variable drawn from the distribution of the samples, but which is not part of any training sample. For any random variable $X$, we denote with $\|X\|_1:=\mathbb{E}[|X|]$, with $\|X\|_2:=\sqrt{\mathbb{E}[X^2]}$, and with $\|X\|_p:=\left(\mathbb{E}[|X|^p]\right)^{1/p}$ for any $p\ge 1$ in general.

lemma[Main Lemma] If the estimation algorithm satisfies the stability conditions: for all $i,j\in [p]$ \begin{align} \max_{l\in[n]}\Big\|a_{i,j}(Z_l,\hat g)-a_{i,j}(Z_l,\hat g^{(-l)})\Big\|_1= & o(n^{-1/2}) & \max_{l\in[n]}\Big\|a_{i,j}(Z,\hat g)-a_{i,j}(Z,\hat g^{(-l)})\Big\|_2= & o(n^{-1/2})\\ \max_{l\in[n]}\Big\|\nu_{i}(Z_l,\hat g)-\nu_{i}(Z_l,\hat g^{(-l)})\Big\|_1= & o(n^{-1/2}) & \max_{l\in[n]}\Big\|\nu_{i}(Z,\hat g)-\nu_{i}(Z,\hat g^{(-l)})\Big\|_2= & o(n^{-1/2}) \end{align} and the moment satisfies the mean-squared-continuity condition: for all $i,j\in [p]$ \begin{align} \forall g,g': \mathbb{E}[(a_{i,j}(Z;g) - a_{i,j}(Z;g'))^2]\leq & L \|g-g'\|_2^q & \mathbb{E}[(\nu_{i}(Z;g) - \nu_{i}(Z;g'))^2]\leq L \|g-g'\|_2^q \end{align} for some $q<\infty$ and some $L>0$, then the Condition (ref) is satisfied.
remarkWe show in (ref) that the stability conditions are tight. We present a counter example for which $\Big\|\nu_{i}(Z,\hat g)-\nu_{i}(Z,\hat g^{(-l)})\Big\|_2$ is exactly of order $n^{-1/2}$ and for which the Stochastic Equicontinuity condition is not satisfied.
remarkWe note that prior work of chernozhukov2020adversarial that established asymptotic normality without sample splitting via stability, required significantly stronger conditions than what we invoke here. In particular, if we let $\beta_n$ be the stability of the estimator $\hat{g}$ as measured by the quantities in Lemma (ref), then the prior work of chernozhukov2020adversarial, would require that $n \beta_n \|\hat{g}-g_0\|_2\to 0$. If we only know that $\|\hat{g}-g_0\|_2=o(n^{-1/4})$, then the above would require $\beta_n = o(n^{-3/4})$, which is much slower than $o(n^{-1/2})$. Moreover, for bagged kernel estimators that we analyze in section (ref), the prior work would require that if we use bags of size $m$, then the bias of the base estimator with $m$ samples, denoted as $\text{bias}(m)$ satisfies that $m \text{bias}(m)\to 0$. This would rarely be satisfied and in prior work, the only concrete case that was given was forest estimators with binary variables under strong sparsity conditions, in which case the bias decays exponentially with the sample size. For more general estimators, we expect $\text{bias}(m)=1/m^{\alpha}$, for some $\alpha$. For such settings, our work still applies and, as we show in section (ref), gives results for bagged $1$-nearest neighbor estimation algorithms, which do not satisfy any entropy or critical radius bound, but are stable. The key innovation that enables our improved results is a “double centering” approach that derives intuition from techniques invoked in the analysis of cross-validation via stability and the proof of the Efron-Stein inequalityboucheron2003concentration. This idea has already been used in the study of the cross validated risk austern2020asymptotics,bayle2020cross.
proof[Proof of Main Lemma] We will show the first part of the lemma, i.e. that if for all $i,j\in [p]$ \begin{align} \max_{l\in[n]}\Big\|a_{i,j}(Z_l,\hat g)-a_{i,j}(Z_l,\hat g^{(-l)})\Big\|_1= & o(n^{-1/2}) & \max_{l\in[n]}\Big\|a_{i,j}(Z,\hat g)-a_{i,j}(Z,\hat g^{(-l)})\Big\|_2= & o(n^{-1/2}) \end{align} then \begin{align} \sqrt{n} \left\|A(\hat{g}) - A(g_0) - (A_n(\hat{g}) - A_n(g_0))\right\|_{op} = & o_p(1) \end{align} The analogous statement for $\nu$ and $V$, follows in an identical manner. Since $A(g)$ and $A_n(g)$ are $p\times p$ matrices and $p=O(1)$, it suffices to show the above property for every element $(i,j)\in [p]\times [p]$, i.e. that $$\sqrt{n} \left|A_{i,j}(\hat{g}) - A_{i,j}(g_0) - (A_{n,i,j}(\hat{g}) - A_{n,i,j}(g_0))\right|=o_p(1).$$ For this it suffices to show that: $$J_n:=\sqrt{n} \left\|A_{i,j}(\hat{g}) - A_{i,j}(g_0) - (A_{n,i,j}(\hat{g}) - A_{n,i,j}(g_0))\right\|_1=o(1).$$ In the remainder of the proof we look at a particular $(i,j)$ and hence for simplicity we overload notation and we let $a:=a_{i,j}$ and $A:=A_{i,j}$. By triangle inequality and monotonicity of $L^p$ norms we have \begin{align} J_n = & \left\|\frac{1}{\sqrt{n}}\sum_{l=1}^n \left\{a(Z_l,\hat g)-A(\hat g)-\big[a(Z_l,g_0)-A(g_0)\big]\right\}\right\|_1 \\ \le & \left\|\frac{1}{\sqrt{n}}\sum_{l=1}^n \left\{ a(Z_l,\hat g) - a(Z_l,\hat g^{(-l)})\right\}\right\|_1 +\sqrt{n}\max_{l\in[n]}\left\|A(\hat g)-A(\hat g^{(-l)})\right\|_1\\ & +\left\|\frac{1}{\sqrt{n}}\sum_{l=1}^n\left\{a(Z_l,\hat g^{(-l)})-a(Z_l,g_0)-\big(A(\hat g^{(-l)})-A(g_0)\big)\right\}\right\|_2. \end{align} To ease notations, we denote \begin{align} J_{1,n}:= &\left\|\frac{1}{\sqrt{n}}\sum_{l=1}^n \left\{ a(Z_l,\hat g) - a(Z_l,\hat g^{(-l)})\right\}\right\|_1,\\ J_{2,n}:= & \sqrt{n}\max_{l\in[n]}\left\|A(\hat g)-A(\hat g^{(-l)})\right\|_1,\\ J_{3,n}:= & \left\|\frac{1}{\sqrt{n}}\sum_l\left\{a(Z_l,\hat g^{(-l)})-a(Z_l,g_0)-\big(A(\hat g^{(-l)})-A(g_0)\big)\right\}\right\|_2. \end{align} Now we have that by triangle inequality \begin{align} J_{1,n}\le \frac{1}{\sqrt{n}}\sum_l\Big\|a(Z_l,\hat g)-a(Z_l,\hat g^{(-l)})\Big\|_1 \le\sqrt{n}\max_{\ell\in[n]} \Big\|a(Z_l,\hat g)-a(Z_l,\hat g^{(-l)})\Big\|_1=o(1). \end{align} Similarly we can handle $J_{2,n}$: \begin{align} J_{2,n}\le & \sqrt{n}\max_{l\in [n]} \Big\|a(Z,\hat g)-a(Z,\hat g^{(-l)})\Big\|_1 \\ \leq & \sqrt{n}\max_{l \in [n]}\Big\|a(Z,\hat g)-a(Z,\hat g^{(-l)})\Big\|_2=o(1). \end{align} We now aim to show that $J_{3,n}=o(1)$. Write for simplicity $$K_l:=a(Z_l,\hat g^{(-l)})-a(Z_l,g_0)-\big(A(\hat g^{(-l)})-A(g_0)\big)$$ Now by expanding the square we obtain \begin{align} J_{3,n}^2=\mathbb{E}\left[\left( \frac{1}{\sqrt{n}}\sum_{l=1}^n K_l\right)^2\right] &\leq \max_{l\in [n]} \mathbb{E}\left[K_l^2\right] + (n-1) \max_{l_1\neq l_2\in [n]} \mathbb{E}[K_{l_1} K_{l_2}] \end{align} To bound the first term, we have by mean-squared continuity: \begin{align} \mathbb{E}[K_l^2] = &\mathbb{E}\left[\left(a(Z_l,\hat g^{(-l)})-a(Z_l,g_0)-\big(A(\hat g^{(-l)})-A(g_0)\big)\right)^2\right]\\ \le & 2\mathbb{E}\left[\left(a(Z_l,\hat g^{(-l)})-a(Z_l,g_0)\right)^2\right]+2\mathbb{E}\left[\left(A(\hat g^{(-l)})-A(g_0)\right)^2\right]\\ = & 2\mathbb{E}\left[\mathbb{E}\left[\left(a(Z_l,\hat g^{(-l)})-a(Z_l,g_0)\right)^2\Big| Z^{(-l)}\right]\right]+2\mathbb{E}\left[\mathbb{E}\left[\left(A(\hat g^{(-l)})-A(g_0)\right)^2\Big|Z^{(-l)} \right]\right]\\ \le & 2L\cdot\mathbb{E}\left[\left\|\hat g^{(-l)}-g_0\right\|_2^q\right]+2L\cdot\mathbb{E}\left[\left\|\hat g^{(-l)}-g_0\right\|_2^q\right] = 4L\cdot\mathbb{E}\left[\left\|\hat g-g_0\right\|_2^q\right]=o(1). \end{align} where we invoked the property that $\left\|\hat g-g_0\right\|_2=o_p(1)$, and the second to last equality exploited the tower law. Thus $\max_{l\in [n]} \mathbb{E}\left[K_l^2\right]=o(1)$. \paragraph{Double centering.} We now bound the term, $(n-1) \max_{l_1\neq l_2\in [n]} \mathbb{E}[K_{l_1} K_{l_2}]$. Define, for simplicity, for $l_1\neq l_2$ $$K_{l_1}^{(l_2)}:=a(Z_{l_1},\hat g^{(-l_1,-l_2)})-a(Z_{l_1},g_0)-\big(A(\hat g^{(-l_1,-l_2)})-A(g_0)\big).$$ Note that $K_{l_1}^{(l_2)}$ does not depend on the $l_2$-th data point and is only a function of $Z^{(-l_2)},\tilde{Z}_{l_1}.$\\ Moreover, by the definition of $A$, noting that $Z_l$ is independent of $Z^{(-l)}$ and $Z_{l_1}$ is independent of $Z^{(-l_1,-l_2)}$: \begin{align} \mathbb{E}\left[K_l\Big|Z^{(-l)}\right] = & \mathbb{E}\left[a(Z_l,\hat g^{(-l)})-A(\hat g^{(-l)})\Big|Z^{(-l)}\right]-\mathbb{E}\left[a(Z_l,g_0)-A(g_0)\Big|Z^{(-l)}\right]\\ = & \mathbb{E}\left[a(Z_l,\hat g^{(-l)})-A(\hat g^{(-l)})\Big|Z^{(-l)}\right]-\mathbb{E}\left[a(Z_l,g_0)-A(g_0)\right]=0 \end{align} and \begin{align} &\mathbb{E}\left[K_{l_1}^{(l_2)}\Big| Z^{(-l_1,-l_2)}\right]\\ &=\mathbb{E}\left[a(Z_{l_1},\hat g^{(-l_1,-l_2)})- A(\hat g^{(-l_1,-l_2)})\Big| Z^{(-l_1,-l_2)}\right]+\mathbb{E}\left[a(Z_{l_1},g_0)-A(g_0)\Big| Z^{(-l_1,-l_2)}\right]\\ &=\mathbb{E}\left[a(Z_{l_1},\hat g^{(-l_1,-l_2)})- A(\hat g^{(-l_1,-l_2)})\Big| Z^{(-l_1,-l_2)}\right]+\mathbb{E}\left[a(Z_{l_1},g_0)-A(g_0)\right] = 0 \end{align} For simplicity, we show that $(n-1) \mathbb{E}[K_1 K_2]=o(1)$, i.e. we show that the second term vanishes for $l_1=1$ and $l_2=2$. The same exact arguments generalize to arbitrary $l_1, l_2$. We begin by writing: \begin{align} (n-1) \mathbb{E}[K_{1} K_{2}] =(n-1)\mathbb{E}\left[\left(K_{1}-K_{1}^{(2)}\right)K_{2}\right], \end{align} since by tower law: \begin{align} \mathbb{E}\left[K_{1}^{(2)}K_{2}\right]=\mathbb{E}\left[\mathbb{E}\left[K_{2}\Big|Z^{(-2)},\tilde{Z}_{1}\right]K_{1}^{(2)}\right]=\mathbb{E}\left[\mathbb{E}\left[K_2\Big|Z^{(-2)}\right]K_1^{(2)}\right]=0 \end{align} Similarly by conditioning on $Z^{(-1)},\tilde{Z}_2$ and using tower law, we can show that \begin{align} \mathbb{E}\left[\left(K_1-K_1^{(2)}\right)K_2^{(1)}\right] = & \mathbb{E}\left[\mathbb{E}\left[K_1-K_1^{(2)}\Big| Z^{(-1)},\tilde{Z}_2\right]K_2^{(1)}\right]\\ = & \mathbb{E}\left[\left\{\mathbb{E}\left[K_1\Big| Z^{(-1)},\tilde{Z}_2\right]-\mathbb{E}\left[K_1^{(2)}\Big| Z^{(-1)},\tilde{Z}_2\right]\right\}K_2^{(1)}\right]\\ = & \mathbb{E}\left[\left\{\mathbb{E}\left[K_1\Big| Z^{(-1)}\right]-\mathbb{E}\left[K_1^{(2)}\Big| Z^{(-1,-2)}\right]\right\}K_2^{(1)}\right]=0. \end{align} Hence, we have \begin{align} (n-1)\mathbb{E}[K_1K_2]=(n-1)\mathbb{E}\left[\left(K_1-K_1^{(2)}\right)K_2\right]=(n-1)\mathbb{E}\left[\left(K_1-K_1^{(2)}\right)\left(K_2-K_2^{(1)}\right)\right] \end{align} With identical arguments, the same equality holds for any indices $l_1, l_2$. By Cauchy-Schwarz: \begin{align} \max_{l_1\neq l_2} (n-1)\mathbb{E}[K_{l_1} K_{l_2}] = & \max_{l_1\neq l_2} (n-1)\mathbb{E}\left[\left(K_{l_1}-K_{l_1}^{(l_2)}\right)\left(K_{l_2}-K_{l_2}^{(l_1)}\right)\right]\\ \leq & \max_{l_1\neq l_2} (n-1) \left\|K_{l_1}-K_{l_1}^{(l_2)}\right\|_2 \left\|K_{l_2}-K_{l_2}^{(l_1)}\right\|_2 \end{align} Thus for $\max_{l_1\neq l_2} (n-1)\mathbb{E}[K_{l_1} K_{l_2}]=o(1)$ it suffices that: $\max_{l_1\neq l_2} \left\|K_{l_1}-K_{l_1}^{(l_2)}\right\|_2 = o(n^{-1/2})$. Expanding the definitions $K_{l_1}$ and $K_{l_1}^{(l_2)}$, the above simplifies to: \begin{align} \left\|K_{l_1}-K_{l_1}^{(l_2)}\right\|_2 = \left\|a(Z_{l_1},\hat g^{(-l_1)})-A(\hat g^{(-l_1)})-\left(a(Z_{l_1},\hat g^{(-l_1,-l_2)})-A(\hat g^{(-l_1,-l_2)})\right)\right\|_2. \end{align} The latter is upper bounded by a triangle inequality and a Jensen's inequality by: \begin{align} \left\|K_{l_1}-K_{l_1}^{(l_2)}\right\|_2 \leq 2 \left\|a(Z_{l_1},\hat g^{(-l_1)}) - a(Z_{l_1},\hat g^{(-l_1,-l_2)})\right\|_2. \end{align} If we denote with $Z$ a fresh random sample not part of the training sets, then since $Z_{l_1}$ is not part of $Z^{(-l_1)}$, we have: \begin{align} \left\|a(Z_{l_1},\hat g^{(-l_1)}) - a(Z_{l_1},\hat g^{(-l_1,-l_2)})\right\|_2 = & \left\|a(Z,\hat g^{(-l_1)}) - a(Z,\hat g^{(-l_1,-l_2)})\right\|_2\\ = & \left\|a(Z,\hat g) - a(Z,\hat g^{(-l_2)})\right\|_2 \end{align} where we also used the fact that $\tilde{Z}_{l_1}$ only appears in the training sets of $\hat{g}^{(-l_1)}$ and $\hat{g}^{(-l_1, -l_2)}$ and we can simply rename it to $Z_{l_1}$, as they are identically distributed and both independent from all the other data points. Invoking the second of our stability conditions for $a$, we have that: $ \max_{l_1\neq l_2}\left\|K_{l_1}-K_{l_1}^{(l_2)}\right\|_2 = o(n^{-1/2})$. Hence, $J_{3,n}=o(1)$, which completes the proof.

Tightness of Stability Condition

We present here an example that shows that, without further structural constraints (on the moment or the function space ${\mathcal G}$), the stability condition we impose is required for stochastic equicontinuity condition to hold. Let $(X_i)\overset{i.i.d}{\sim}\rm{unif}[0,1]$ be i.i.d uniform random variables. We set $Y_i:=\mathbb{I}(X_i\le 0.5)$ and set $Z_i:=(X_i,Y_i)$. For any $x\in [0,1]$, we define $c(Z_{1:n},x):=\operatorname*{arg\,min}_{i\le n} |X_i-x|$ the function that returns the index of the nearest example to $x$ in $\{X_1,\dots,X_n\}$ and note that the quantity $Y_{c(Z_{1:n},x)}$ is its nearest neighbour estimator. Let $$\hat{g}(Z_{1:n})(x,y):=n^{1/6}\mathbb{I}(y\ne Y_{c(Z_{1:n},x)}),\qquad \nu(Z,g):= g(Z)^3.$$ We remark that $\nu(\cdot,\hat g)$ does not satisfy our stability conditions as $ \|\nu(Z,\hat g)-\nu(Z,\hat g^{(-1)})\|_2$ is exactly of order $1/\sqrt{n}$, neither does it respect the stochastic equicontinuity property.

lemmaLet $(X_i)\overset{i.i.d}{\sim}\rm{unif}[0,1]$ be i.i.d uniform random variables. We set $Y_i:=\mathbb{I}(X_i\le 0.5)$ and set $Z_i:=(X_i,Y_i)$. There are constants $C,c>0$ such that \begin{itemize} • Set $g_0(Z):= 0$ then we have $\|\hat g(Z)-g_0(Z)\|^2_2\rightarrow 0$$\frac{C}{\sqrt{n}}\ge \|\nu(Z,\hat g)-\nu(Z,\hat g^{(-1)})\|_2\ge \frac{c}{\sqrt{n}}$$\sqrt{n}|V(\hat g)-V( g_0)-\big(V_n(\hat g)-V_n(g_0)\big)|\not\xrightarrow{P}0. $ \end{itemize}

Application: Bagging Estimators

We remark that if the functions $a$ and $\nu$ satisfy certain $L^p$-Lipchitz conditions then the stability conditions of (ref) are implied by the algorithmic stability of the estimator $\hat g$. Those conditions are only marginally stronger than the condition of mean-squared-continuity found in (ref)

corollaryFix any constant $r>1.$ Suppose that there is $L<\infty$ such that the estimation algorithm satisfies the following uniform $L^{2r}$-continuity condition: for all $i,j\in [p]$ and $l\in [n]$ \begin{align}& \mathbb{E}[(a_{i,j}(Z_l;\hat g) - a_{i,j}(Z_l;\hat{g}^{(-l)}))^{2}]\leq L\cdot \mathbb{E}\Big[\sup_x\|\hat g(x)-\hat g^{(-l)}(x)\|_2^{2r}\Big]^{1/r} \& \mathbb{E}[(\nu_{i}(Z_l;\hat g) - \nu_{i}(Z_l;\hat{g}^{(-l)}))^{2}]\leq L\cdot \mathbb{E}\Big[\sup_x\|\hat g(x)-\hat g^{(-l)}(x)\|_2^{2r}\Big]^{1/r}\qquad \tag{$L^{2r}$-Continuity} \& \mathbb{E}[(a_{i,j}(Z;\hat g) - a_{i,j}(Z;\hat{g}^{(-l)}))^{2}]\leq L\cdot \mathbb{E}\Big[\sup_x\|\hat g(x)-\hat g^{(-l)}(x)\|_2^{2r}\Big]^{1/r} \& \mathbb{E}[(\nu_{i}(Z;\hat g) - \nu_{i}(Z;\hat{g}^{(-l)}))^{2}]\leq L\cdot \mathbb{E}\Big[\sup_x\|\hat g(x)-\hat g^{(-l)}(x)\|_2^{2r}\Big]^{1/r}. \end{align}Suppose in addition that \begin{align} \max_{l\le n}\mathbb{E}_{Z_{1:n}}\Big[\sup_x\|\hat g(x)-\hat g^{(-l)}(x)\|_2^{2r}\Big]^{1/2r}=o\Big(n^{-1/2}\Big) \tag{Algorithmic Stability} \end{align} and if in addition mean-squared-continuity condition is satisfied, then the conditions of (ref) are satisfied.

The uniform $L^{2r}$-continuity conditions are going to be satisfied by most moment functions $m(\cdot;\cdot,\cdot)$. We notably show in the appendix that (ref), (ref) and (ref) with general moment conditions satisfy our conditions.

The condition of (ref) is a commonly assumed condition in recent literature austern2020asymptotics, bayle2020cross and is satisfied by various regularized empirical risk minimization estimators and stochastic gradient descent estimators bousquet2002stability, hardt2016train. Notably, it is satisfied by bagged estimators. We show in (ref) that under very general conditions a bagged ensemble of any machine learning estimator is stable. Let $Z_1,\ldots,Z_n\in\mathcal{Z}$ be an independent and identically distributed (i.i.d.) sample of size $n$. We sample uniformly randomly without replacement from these observations repeatedly and independently, each time taking a sample of size $m$, for a number of $B$ times. We denote the resulting samples as $$Z_{1:m}^b:=\left\{Z_1^b,\ldots,Z_m^b\right\},b\in[B].$$

Let $\hat{h}_m:\mathcal{Z}^m\rightarrow \mathbb{R}^P$ be a base machine learning estimator trained on $m$ observations. This base estimator can be tree, a CNN, a nearest-neighbour classifier, or any other type of machine learning estimator. The corresponding bagged estimator is $$\hat{g}(\cdot)=\frac{1}{B}\sum_{b=1}^B\hat{h}_m(Z_{1:m}^b)(\cdot).$$

We will show that subject to $B$ and $m$ being sufficiently big and mild moment conditions on the base estimator $\hat{h}_m$, the bagged estimator satisfies condition (ref).

theoremFix any constants $s,k\geq 2r$ such that $\frac{1}{s}+\frac{1}{k}=\frac{1}{2r}.$ Assume $B,m$ satisfy $$m=o(\sqrt{n})\hspace{1cm}B>>m^{2/{k}}\cdot n^{1-\frac{2}{{k}}},$$ and assume the base estimator $\hat h$ has bounded moments: $$\left\Vert \sup_x\left\|\hat{h}(Z_{1:m}^1)(x)\right\|_2\right\Vert_s\leq C$$ for some constant $C>0.$ Then (ref) is achieved: $$\max_{l\le n}\left\|\sup_x\|\hat g(x)-\hat g^{(-l)}(x)\|_2\right\|_{2r}=o(n^{-1/2}).$$ Therefore if $a$ and $\nu $ satisfy the condition (ref) then the condition ((ref)) is satisfied.

In particular, we can take the base machine learning estimator to be the 1-nearest neighbor estimator. This specific choice leads to a bagged estimator that can be proved to satisfy both our stability conditions and our consistency rate condition in Theorem (ref), in regression settings where covariates are of small intrinsic dimension.

Let $\left\{Z_i=\left(X_i, Y_i\right)\right\}_{i=1}^n$ be a sample of size $n$, drawn independently and identically distributed from $Z=(X,Y)$. Here $X\in\mathcal{X}\subset \mathbb{R}^D$ are known covariates and $Y\in\mathcal{Y}\subset \mathbb{R}^P$ is the response variable. As in our bagging setting, let $Z_{1:m}^1,\ldots,Z_{1:m}^B$ be B independent samples of size $m$ drawn without replacement from observations $\left\{Z_i\right\}_{i=1}^n$. A bagged 1-nearest neighbor (1-NN) estimator takes the following form: $$\hat g(x):=\frac{1}{B}\sum_{b=1}^B\sum_{i=1}^n \mathbbm{1}_{\left\{X_i= S_b(x)\right\}}Y_i,$$ where $S_b(x)$ is the 1-NN of $x$ in the set $Z_{1:m}^b.$ The estimator is used to estimate the conditional expectation $g_0(x):=\mathbb{E}[Y\mid X=x].$

lemma[Special Case of Theorem 3 of khosravi2019non] Assume that \begin{itemize} • The marginal distribution $\mu$ of $X_1$ satisfies $(C,d)$-homogeneity on the ball $B(x,r)$: $$\mu(B(x,r))\le C \alpha^{-d}\mu(B(x,\alpha r))\hspace{1cm}\forall \alpha\in(0,1)$$ for some $C,r>0$. Here $d$ is referred to as the intrinsic dimension of the distribution. • The conditional expectation $\mathbb{E}[Y\mid X=x]$ is a Lipschitz function in the coordinates $x$. • The response variable $Y$ is bounded in $L^\infty$-norm: $\left\|Y \right\|_\infty<\infty.$ \end{itemize} Then the bagged 1-NN estimator $\hat g$ with $B\ge \frac{n}{m}$ satisfies the following convergence condition: $$\sqrt{\mathbb{E}\left[\left\|\hat{g}(X)-g_0(X)\right\|_2^2\right]}\le O\left(m^{-1/d}\right)+O\left(\sqrt{\frac{m P \log\log(Pn/m)}{n}}\right).$$

In particular, we note that when $0<d<2$ and $m=O(n^{\frac{1}{2}-\epsilon})$ for some $0<\epsilon\leq\frac{1}{2}-\frac{1}{4}d,$ we immediately have that $$\sqrt{\mathbb{E}\left[\left\|\hat{g}(X)-g_0(X)\right\|_2^2\right]}=o(n^{-1/4}),$$ achieving the convergence rate assumed in Theorem (ref). Moreover, provided that we choose $B$ to be sufficiently large such that $$B>>n^{\epsilon+\frac{1}{2}} \hspace{1cm} B\geq n^{1-\frac{2\epsilon+1}{k}},$$ the required stability conditions can also be satisfied.

Experimental Evaluation

We consider a synthetic experimental evaluation of our main theoretical findings. We focus on the partially linear model with a scalar outcome $Y \in \mathbb{R}$, a scalar continuous treatment $T\in \mathbb{R}$ and many controls $X\in \mathbb{R}^{n_x}$, where:

align[align omitted — 123 chars of source]

Our goal is the estimation of the treatment effect $\theta_0$, while estimating the nuisance functions $p_0(X)$ and $q_0(X)=\theta_0 p_0(X) + f_0(X)$ in a flexible manner. We will consider estimation based on the orthogonal moment presented in Example (ref).

We considered sub-sampled $1$-nearest neighbor regression (NN) and sub-sampled fully grown (with only $1$ sample minimum leaf size) random forest (RF) regression for the estimation of $p_0$ and $q_0$, regressing $T$ on $X$ and $Y$ on $X$ correspondingly.

The true functions $p_0$ and $f_0$ are actually linear in our data generating process, with $p_0(X)=\beta_0'X$ and $f_0(X)=\gamma_0'X$ and where $\beta_0$ and $\gamma_0$ have only one non-zero coefficient ($1$-sparse), and which is the same coefficient for both $\beta_0$ and $\gamma_0$. In other words, only one of the $n_x$ potential confounding variables $X$ is actually a confounder.

We evaluate the performance of the estimate for $\theta_0$ for a range of values of the sample size $n$ and the dimension of the controls $n_x$ and with or without cross-fitting. For the cross-fitted estimates we used $2$ splits. For each specification we draw $1000$ experimental samples to evaluate the distributional properties of the estimate.

We considered sub-sample sizes for the nuisance regressions based on our theoretical $n^{0.49}$ specification and for larger specifications too. We find that the estimate without cross-fitting typically has almost equal bias and smaller (and always comparable) variance (due most probably to the smaller mean squared error of the nuisances, since they are trained on larger sizes), especially in smaller sample sizes, and has better coverage properties, when the sub-sample size is $m=o(n^{1/2})$. Moreover, the estimate is approximately normally distributed, even without cross-fitting as is verified qualitatively via quantile-quantile (Q-Q) plots.

We also report the mean of the estimate of the standard error across the $1000$ experiments, to evaluate the bias in the estimation of the standard error. We find that the estimate of the standard error is more accurate without cross-fitting, potentially because the estimate of the standard error does not incorporate the extra variance that stems from the sample-splitting process. This inaccuracy of the standard error estimate is most probably the reason for the worst coverage properties of the confidence intervals with cross-fitting.

In summary, we verify experimentally that for stable estimators, with the theoretically required level of stability, sample splitting or cross-fitting is not needed to maintain asymptotic normality, small bias and nominal coverage.

As expected however, we do verify that as the sub-sample size becomes $m=O(n)$, where the estimate is both not stable and also does not optimize over hypothesis spaces with small critical radius or that satisfy the Donsker property, then the estimate without cross-fitting breaks down, while the estimate with cross-fitting maintains a decent performance, despite the high-variance of the nuisance estimate.

The experiments were run on a normal PC laptop with Processor Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz, 2112 Mhz, 4 Core(s), 8 Logical Processor(s), 16GB RAM. It took around 1.5 hours to run all the experiments.

figure[figure omitted — 4,047 chars of source]
figure[figure omitted — 2,880 chars of source]
figure[figure omitted — 204 chars of source]
figure[figure omitted — 206 chars of source]
figure[figure omitted — 211 chars of source]
figure[figure omitted — 213 chars of source]