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.
69,162 characters · 14 sections · 70 citation commands
Adaptive Principal Component Regression with Applications to Panel Data
\affil[1]{Columbia University} \affil[2]{Carnegie Mellon University} \affil[ ]{[email removed]} \affil[ ]{\{keeganh,jwhiteho,zhiweiw\}@cs.cmu.edu}
\pagenumbering{gobble}
\pagenumbering{arabic}
An omnipresent task in machine learning, statistics, and econometrics is that of making predictions about outcomes of interest given an action and conditioned on observable covariates. An often overlooked aspect of the prediction task is that in many settings the learner only has access to imperfect observations of the covariates, due to e.g. measurement error or inherent randomness in the problem domain. Such settings are sometimes formulated as error-in-variables regression: a learner is given access to a collection of data $(Z_n, a_n, Y_n)_{n \geq 1}$, where $Z_n \in \mathbb{R}^d$ are the observed covariates, $a_n \in \{1, \ldots, A\}$ is the action taken, and $Y_n \in \mathbb{R}$ is the outcome for each observation $n$. Typically, the outcomes are assumed to be generated by a linear model $Y_n := \langle \theta(a_n), X_n \rangle + \xi_n$ and $Z_n := X_n + \epsilon_n$, where $X_n \in \mathbb{R}^d$ are the \emph{true covariates}, $\epsilon_n \in \mathbb{R}^d$ is the covariate noise, $\theta(a_n) \in \mathbb{R}^d$ is an \emph{unknown slope vector} associated with action $a_n$, and $\xi_n \in \mathbb{R}$ is the response noise. Note that the learner does not get to see the true covariates $X_n$. Observe that when $\epsilon_n = 0$ we recover the traditional linear regression setting. Such an error-in-variables model can encompass many forms of data corruption including measurement error, missing values, discretization, and differential privacy---see agarwal2020robustness, agarwal2021causal for details. \looseness-1
Our point of departure from previous work is that we allow the sequence of data $(Z_n, a_n, Y_n)_{n \geq 1}$ to be chosen adaptively. In other words, we provide bounds for learning in the error-in-variables regression setting when the data seen at the current round $n$ is allowed to depend on the previously-seen data $(Z_{m}, a_m, Y_m)_{1 \leq m<n}$. Adaptive data collection occurs when the choices of future observations can depend on the inference from previous data, which is common in learning paradigms such as multi-armed bandits lattimore2020bandit, slivkins2019introduction, active learning settles2009active, and time-series analysis shumway2000time, enders2008applied. Similar to prior work on adaptive data collection that shows that valid statistical inference can be done when the true covariates are observed deshpande2018accurate, nie2018adaptively, hadad2021confidence, zhang2021statistical, zhang2022statistical, our work provides the first time-uniform finite sample guarantees for error-in-variables regression using adaptively collected data.\looseness-1
Concretely, we focus on analyzing principal component regression (PCR) jolliffe1982note, a method that has been shown to be effective for learning from noisy covariates agarwal2020robustness, agarwal2020principal and a central tool for learning from panel data agarwal2020synthetic, agarwal2021causal, agarwal2020principal. At a high level, PCR “de-noises” the sequence of observed covariates $(Z_n)_{n \geq 1}$ as $(\widehat{Z}_n)_{n \geq 1}$ by performing hard singular value thresholding, after which a linear model is learned using the observed outcomes $(Y_n)_{n \geq 1}$ and the denoised covariates $(\widehat{Z}_n)_{n \geq 1}$. See (ref) for further technical background on PCR.
\paragraph{Error-in-variables regression} There is a rich literature on error-in-variables regression (e.g. griliches1970error, kim1990robust, chesher1991effect, hall2008measurement, wansbeek2001measurement, hausman2001mismeasured, fuller2009measurement), with research focusing on topics such as high-dimensional loh2011high, kaul2015weighted, datta2017cocolasso, rosenbaum2010sparse and Bayesian settings reilly1981bayesian, ungarala2000multiscale, figueroa2022robust. Principal component regression (PCR) jolliffe1982note, bair2006prediction, agarwal2020robustness, agarwal2020principal is a popular method for error-in-variables regression. The results of agarwal2020principal are of particular relevance to us, as they provide finite sample guarantees for the fixed design (i.e. non-adaptive) version of the setting we consider.
\paragraph{Self-normalized concentration} There has been a recent uptick in the application of self-normalized, martingale concentration to online learning problems. In short, self-normalized concentration aims to control the growth of processes that have been normalized by a random, or empirical, measure of accumulated variance de2004self, de2007pseudo, howard2020time, howard2021time, whitehouse2023self. Self-normalized concentration has led to breakthroughs in wide-ranging areas of machine learning such as differential privacy whitehouse2022brownian, whitehouse2022fully, PAC-Bayesian learning chugg2023unified, convex divergence estimation manole2023martingale, and online learning whitehouse2023improved, chowdhury2017kernelized, abbasi2011improved. Of particular importance for our work are the results of abbasi2011improved, which leverage self-normalized concentration results for vector-valued processes de2004self, de2007pseudo to construct confidence ellipsoids for online regression tasks. We take inspiration from these results when constructing our estimation error bounds for PCR in the sequel.
\paragraph{Learning in panel data settings} Our application to panel data builds off of the SI framework agarwal2020synthetic, causal_MC, which itself is a generalization of the canonical SC framework for learning from panel data abadie2003economic, abadie2010synthetic, Hsiao12, imbens16, athey1, LiBell17, xu_2017, rsc, mrsc, Li18, ark, bai2020matrix, asc, chernozhukov2020practical, fernandezval2020lowrank. In both frameworks, a latent factor model is often used to encode structure between units and time-steps chamberlain, liang_zeger, arellano, bai03, bai09, pesaran, moon_15, moon_weidner_2017. Specifically, it is assumed that unit outcomes are the product of unit- and time/intervention-specific latent factors, which capture the heterogeneity across time-steps, units, and interventions, and allows for the estimation of unit-specific counterfactuals under treatment and control. Other extensions of the SI framework include applications in biology squires2022causal, network effects agarwal2022network, combinatorially-many interventions agarwal2023synthetic, and intervening under incentives harris2022strategyproof, ngo2023incentivized.
Finally, there is a growing line of work at the intersection of online learning and panel data. chen2023synthetic views the problem of SC as an instance of online linear regression, which allows them to apply the regret guarantees of the online learning algorithm follow-the-leader kalai2005efficient to show that the predictions of SC are comparable to those of the best-in-hindsight weighted average of control unit outcomes. farias2022synthetically build on the SC framework to estimate treatment effects in adaptive experimental design, while minimizing the regret associated with experimentation. The results of farias2022synthetically are part of a growing line of work on counterfactual estimation and experimental design using multi-armed bandits qin2022adaptivity, simchi2023multi, zhang2022causal, carranza2023flexible.\looseness-1
\paragraph{Notation} We use boldface symbols to represent matrices. For $N \in \mathbb{N}$, we use the shorthand $[N] := \{1, \ldots, N\}$. Unless specified otherwise, $\|v\|$ denotes the $\ell_2$-norm of a vector $v$, and $\|\mathbf{A}\|_{op}$ the operator norm of matrix $\mathbf{A}$. We use $\mathrm{diag}(a_1, \ldots, a_k)$ to represent a $k \times k$ diagonal matrix with entries $a_1, \ldots, a_k$. For two numbers $a,b \in \mathbb{R}$, we use $a \land b$ as shorthand for $\min\{a,b\}$, and $a \vee b$ to mean $\max\{a,b\}$. Finally, $\mathbb{S}^{d- 1}$ denotes the $d$-dimensional unit sphere.
We now describe our error-in-variables setting. We consider a learner who interacts with an environment over a sequence of rounds. At the start of each round $n \geq 1$, the environment generates covariates $X_n \in W^\ast \subset \mathbb{R}^d$, where $W^\ast$ is a low-dimensional linear subspace of dimension $\dim(W^\ast) = r < d$. We assume that $r$ (but not $W^\ast$) is known to the learner. Such “low rank” assumptions are reasonable whenever, e.g. data is generated according to a latent factor model, a popular assumption in high-dimensional statistical settings jenatton2012latent, agarwal2009regression, hoff2009multiplicative. As we will see in (ref), analogous assumptions are often also made in panel data settings. The learner then observes noisy covariates $Z_n := X_n + \epsilon_n$, where $\epsilon_n \in \mathbb{R}^d$ is a random noise vector. Given $Z_n$, the learner selects an action $a_n \in [A]$ and observes $Y_n := \langle \theta(a_n), X_n \rangle + \xi_n$, where $\xi_n$ is random noise and $\theta(a)$ for $a \in [A]$ are unknown slope vectors in $W^*$ that parameterize action choices such that $\|\theta(a)\|_2 \leq L$ for some $L \in \mathbb{R}$. We require that the covariate noise is “well-behaved” according to one of the two following assumptions:
Note that (ref) is a special case of (ref), which allows us to get stronger results in some settings. We also impose the following constraint on the noise in the outcomes.\looseness-1
Under this setting, the goal of the learner is to estimate $\theta(a)$ for $a \in [A]$ given an (possibly adaptively-chosen) observed sequence $(Z_n, a_n, Y_n)_{n \geq 1}$. For $n \geq 1$, we define the matrix $\mathbf{Z}_n \in \mathbb{R}^{n \times d}$ to be the matrix of observed (i.e. noisy) covariates, with $Z_1, \dots, Z_n$ as its rows. Similarly, $\mathbf{X}_n = (X_1, \dots, X_n)^{\top} \in \mathbb{R}^{n \times d}$ is the matrix of noiseless covariates (which are unobserved), and $\mathcal{E}_n = (\epsilon_1, \dots, \epsilon_n)^{\top} \in R^{n \times d}, \mathbf{Y}_n = (Y_1, \ldots, Y_n)^{\top} \in \mathbb{R}^{n \times 1},$ and $\Xi_n = (\xi_1, \dots, \xi_n)^{\top} \in \mathbb{R}^{n \times 1}$ are defined analogously. For any action $a \in [A],$ let $N_n(a) := \{s \leq n : a_s = n \}$ be the set of rounds up to and including round $n$ on which action $a$ was chosen. Likewise, let $c_n(a) := |N_n(a)|$ denote the number of rounds by round $n$ on which action $a$ was chosen. For $a \in [A]$, we enumerate $N_n(a)$ in increasing order as $i_1 \leq \cdots \leq i_{c_n(a)}$. Finally, we define $\mathbf{Z}_n(a) \in \mathbb{R}^{c_n(a) \times d}$ to be $\mathbf{Z}(a) = (Z_{i_1}, \dots, Z_{i_{c_n(a)}})^{\top}$, and define $\mathbf{X}_n(a), \mathcal{E}_n(a), \mathbf{Y}_n(a),$ and $\Xi_n(a)$ analogously.\looseness-1
\paragraph{Background on singular value decomposition} Any matrix $\mathbf{A} \in \mathbb{R}^{n \times d}$ may be written in terms of its singular value decomposition $\mathbf{A} = \mathbf{U} \Sigma \mathbf{V}^{\top}$, where $\mathbf{U} \in \mathbb{R}^{n \times d\land n}$ and $\mathbf{V} \in \mathbb{R}^{d \times d \land n}$ are matrices with orthonormal columns, and $\Sigma = \mathrm{diag}(\sigma_1(\mathbf{A}), \dots, \sigma_{d \land n}(\mathbf{A})) \in \mathbb{R}^{(d \land n) \times (d \land n)}$ is a diagonal matrix containing the singular values of $\mathbf{A}$, where we assume $\sigma_1(\mathbf{A}) \geq \dots \geq \sigma_{d \land n}(\mathbf{A}) \geq 0$. Given a truncation level $k$, we define the truncation of $\mathbf{A}$ onto its top $k$ principal components as $\mathbf{A}_k := \mathbf{U}_{k} \mathrm{diag}(\sigma_1(\mathbf{A}), \dots, \sigma_{k \land d \land n}(\mathbf{A}))\mathbf{V}^{\top}_k$, where $\mathbf{U}_k \in \mathbb{R}^{n \times k \land d \land n}$ is the matrix with the first $k \land d \land n$ columns of $\mathbf{U}$, and $\mathbf{V}_k \in \mathbb{R}^{n \times k \land d \land n}$ is defined analogously. Given such a singular value decomposition, we can define the projection matrix onto the subspace spanned by the top $k$ right singular vectors as $\mathbf{P}_{k} \in \mathbb{R}^{d \times d }$ given by $\mathbf{P}_k := \mathbf{V}_{k}\mathbf{V}_k^{\top}$.
For $n \geq 1$, $a \in [A]$, and $\mathbf{Z}_n(a)$ as defined above, we write the $k$-truncated singular value decomposition of $\mathbf{Z}_n(a)$ as $\mathbf{Z}_{n, k}(a) = \widehat{\mathbf{U}}_{n, k}(a)\mathrm{diag}(\sigma_1(\mathbf{Z}_n(a)), \dots, \sigma_{k \land n \land d}(\mathbf{Z}_n(a)))\widehat{\mathbf{V}}^{\top}_{n, k}(a)$, and the corresponding projection onto the top $k$ right singular vectors of $\mathbf{Z}_n(a)$ as $\widehat{\mathbf{P}}_{n,k}(a)$. When $k = r$, we leverage the simplified notation $\widehat{\mathbf{P}}_n(a) := \widehat{\mathbf{P}}_{n, r}(a)$. (Recall $r = \dim(W^*)$.) By $\mathbf{P}$, we denote the projection matrix onto the true, underlying subspace $W^\ast$. While $\mathbf{P}$ is never known, our results leverage the fact that $\widehat{\mathbf{P}}_n(a)$ converges to $\mathbf{P}$ nicely over time. We define the projected noisy covariate matrix matrix to be $\widehat{\mathbf{Z}}_n(a) := \mathbf{Z}_n(a)\widehat{\mathbf{P}}_n(a)$, and define $\widehat{\mathbf{X}}_n(a), \widehat{\mathcal{E}}_n(a)$ similarly. Any quantity with a “\;$\widecheck{\cdot}$\;” is defined equivalently to quantities with “\;$\widehat{\cdot}$\;”, except with $\mathbf{P}$ in place of $\widehat{\mathbf{P}}_n(a)$. We are now ready to introduce our procedure for estimating $\theta(a)$ for $a \in [A]$, called adaptive (or online) principal component regression.\looseness-1
Setting $\rho = 0$ recovers the version of PCR used in agarwal2020principal. In words, (unregularized) PCR “denoises” the observed covariates by projecting them onto the subspace given by their $k$-truncation, before estimating $\theta(a)$ via linear regression using the projected covariates. We choose to regularize since it is known that regularization increases the stability of regression-style algorithms. This added stability from regularization allows us to exploit the online regression bounds of abbasi2011improved to measure the performance of our estimates. Throughout the sequel, we only consider adaptive PCR with truncation level $k=r$.
We now introduce the concept of signal to noise ratio, which will be integral in stating and proving our results. The signal to noise ratio provides a measure of how strongly the true covariates (this is the “signal” of the problem, measured through $\sigma_r(\mathbf{X}_n(a))$) stand out sequentially with respect to the “noise” induced by $\mathcal{E}_n$ (which we will measure through the relevant high probability bounds on $\|\mathcal{E}_n\|_{op}$).\looseness-1
The price we pay for adaptivity is encoded directly into the definition of the signal to noise ratio, $\mathrm{snr}_n(a)$. While one may imagine defining $\mathrm{snr}_n(a)$ as the ratio between $\sigma_r(\mathbf{X}_n(a))$ and $\|\mathcal{E}_n(a)\|_{op}$, bounding $\|\mathcal{E}_n(a)\|_{op}$ is a nontrivial task as the rows of $\mathcal{E}_n(a)$ may be strongly correlated. To circumvent this, we apply the trivial bound $\|\mathcal{E}_n(a)\|_{op} \leq \|\mathcal{E}_n\|_{op}$. Thus, the price of adaptivity in our setting is that the signal from covariates associated with an action $a$ must stand out with respect to the total covariate noise by time $n$. The growth condition on $U_n$ presented in Definition (ref) is motivated as follows: w.h.p $\mathbb{E}\left\|\mathcal{E}_n\right\|_{op} \approx \sqrt{d} + \sqrt{n}$, and the extra additive $\sqrt{\log\left(\frac{1}{\delta}\log(n)\right)}$ factor is the price we pay for having high probability control of $\|\mathcal{E}_n\|_{op}$ uniformly over rounds. Below we provide an exact definition for $U_n$, as this choice leads to bounds with known constants and simple conditions on $\mathrm{snr}_n(a)$ for validity.
We consider the following two sequences $(U_n)_{n \geq 1}$ in defining signal to noise ratio, which both satisfy $\|\mathcal{E}_n\|_{op} \leq U_n, \forall n \geq 1$ with probability at least $1 - \delta$, per Lemma (ref).
In the above, $\delta \in (0, 1)$, $\ell_\delta(n) := 2\log\log(2 n) + \log\left(\frac{d\pi^2}{12\delta}\right)$, $\beta = 32\sigma^2 e^2$, and $\mathcal{N} = 17^d$ is an upper bound on the $1/8$-covering number of $\mathbb{S}^{d- 1}$. While the exact forms of the above sequences $(U_n)_{n \geq 1}$ may appear complicated, it is helpful to realize that, under either Assumption (ref) or (ref), we have $U_n = O\left(\sqrt{n} + \sqrt{d} + \sqrt{\log\left(\frac{1}{\delta}\log(n)\right)}\right)$, i.e., the growth condition on $U_n$ presented in Definition (ref) is satisfied.
We can likewise define the empirical signal to noise ratio associated with action $a$ as $\widehat{\mathrm{snr}}_n(a) := \frac{\sigma_r(\mathbf{Z}_n(a))}{U_n}$. Note that unlike the (true) signal to noise ratio $\mathrm{snr}_n(a)$, the empirical version $\widehat{\mathrm{snr}}_n(a)$ is computable by the learner. Thus, it will be integral in stating our empirical-style bounds in the section that follows.
\looseness-1
We conclude this section by comparing our notion of signal to noise ratio to that of agarwal2020principal, who define $\mathrm{snr}_n(a)$ instead as $\frac{\sigma_r(\mathbf{X}_n(a))}{\sqrt{n} + \sqrt{d}}$, i.e. the ratio of the “signal” in the covariates to the expected operator norm of covariate noise $\mathbb{E}\|\mathcal{E}_n\|_{op}$. Since the goal of our work is high-probability (not in-expectation) estimation guarantees for PCR, we believe using high probability bounds on $\|\mathcal{E}_n\|_{op}$ is more natural when defining $\mathrm{snr}_n(a)$.
We now present the main results of this work---high-probability, time- and action-uniform bounds measuring the convergence of the PCR estimates $\widehat{\theta}_n(a)$ to the true slope vectors $\theta(a)$. Unlike existing results agarwal2019robustness, agarwal2020principal,agarwal2020synthetic, our bounds are valid when the covariates $(X_n)_{n \geq 1}$ and actions $(a_n)_{n \geq 1}$ are determined in an online (potentially adversarial) manner.
We first point out why the analysis of agarwal2020principal, agarwal2020synthetic breaks down in the setting of adaptive (or online) PCR. First, many of the concentration inequalities leveraged in agarwal2020principal do not hold in the adaptive design setting. As a particular example, the authors leverage the Hanson-Wright inequality vershynin2018high, rudelson2013hanson for quadratic forms to study how the noisy covariate matrix $\mathbf{Z}_n$ concentrates around the true matrix $\mathbf{X}_n$. This inequality fails to hold when the design points $(X_n)_{n \geq 1}$ depend on the previous observations. Second, the techniques leveraged by agarwal2020synthetic to extend the convergence guarantees of PCR to the multiple action setting fail to hold when the $n$-th action $a_n$ is selected based on previous observations. Lastly, the bounds presented in agarwal2020principal are are inherently fixed-time in nature---a simple way to convert existing fixed-time bounds to time-uniform ones would be to perform a union bound over time steps, but that introduces looseness in the bounds.
We are able to construct our bounds by exploiting connections between online PCR and self-normalized martingale concentration howard2020time, howard2021time, de2004self, de2007pseudo. In particular, we combine martingale-based results for constructing confidence ellipsoids for online regression abbasi2011improved, de2004self, de2007pseudo with methods for high-dimensional covariance estimation wainwright2019high, tropp2015introduction to prove our results. Exploiting this connection is what allows us to extend the results of agarwal2020principal to the adaptive design, time-uniform setting. We begin with a bound which, up to constants and polylogarthmic factors, captures the rate of convergence of online PCR in terms of (a) the underlying signal to noise ratio and (b) the conditioning of the observed data.
Theorem (ref) is proved in Appendix (ref). We begin by comparing our bounds to those of agarwal2020principal, agarwal2020synthetic. At any fixed time, our bounds take on roughly the same form as those of the aforementioned authors, having an inverse quadratic dependence on the signal to noise ratio. To make their bounds non-vacuous, the authors need to make the “soft sparsity” assumption of $\|\theta(a)\|_1 = O(\sqrt{d})$. Our bound, on the other hand, suffers no dependence on the $\ell_1$-norm of the $\theta(a)$'s. This makes intuitive sense, as the specific choice of a basis should not impact the rate of convergence of PCR. However, our bounds pay a price for adaptivity---in particular, the signal to noise ratio associated with an action is defined with respect to a bound on the total operator norm of the matrix $\mathcal{E}_n$. If an action is selected very infrequently, the above bound may become loose.\looseness-1
While the above bound is stated in terms of signal to noise ratio, if we make additional assumptions, we can obtain bounds directly in terms of $d, n,$ and $r$. In particular, the following “well-balancing” assumptions suffice.
Corollary (ref) shows that Theorem (ref) obtains the same estimation rate as Theorem 4.1 of agarwal2020principal if assumption Assumption (ref) holds. This “well-balancing” assumption says roughly that all non-zero singular values of $\mathbf{X}_n$ are of the same order, each action is selected with the same frequency, and that the number of actions is, at most, proportional to dimension of the true, unknown subspace. As noted by agarwal2020principal, the assumption of a “well-balanced spectrum” (for $\mathbf{X}_n$) is common in many works in econometrics and robust statistics, and additionally holds with high probability if the entries of $\mathbf{X}_n$ are i.i.d.loh2011high, bai2021matrix, fan2018eigenvector. Further, it is often the case that there only few available actions (for instance, in the synthetic control literature there are only two actions abadie2010synthetic, abadie2003economic, farias2022synthetically), justifying the assumption that $A = O(r)$. Lastly, ensuring that each action is played (very roughly) the same number of times can be viewed as a price for adaptivity.
The proof of Theorem (ref) is immediate as a corollary from the following, more complicated bound. Theorem (ref) below measures the convergence of $\widehat{\theta}_n(a)$ to $\theta(a)$ in terms of empirical (i.e. observed) quantities. We imagine this bound to be the most practically relevant of our results, as, unlike the results of agarwal2020principal, it is directly computable by the learner, involves known constants, and places minimal conditions on the signal to noise ratio.
We see that the above bound, with the exception of the third term, more or less resembles the bound presented in Theorem (ref), just written in terms of the observed covariates $\mathbf{Z}_n(a)$ instead of the true covariates $\mathbf{X}_n(a)$. We view the third term as a slowly growing “error” term. In particular, all terms in the quantity $\mathrm{err}_n(a)$ are either constant, logarithmic in the singular values of $\mathbf{Z}_n(a)$, or linear in $c_n(a)$, the number of times by round $n$ action $a$ has been selected. This implies that $\mathrm{err}_n(a) = \widetilde{O}(n + d)$, ensuring $\mathrm{err}_n(a)$ is dominated by other terms in the asymptotic analysis. We now provide the proof of Theorem (ref). The key application of self-normalized, martingale concentration comes into play in bounding the quantities that appear in the upper bounds of terms $T_1$ and $T_2$ (to be defined below).
We now apply our bounds for adaptive PCR to online experiment design in the context of panel data. In this setting, the learner is interested in estimating unit-specific counterfactuals under different interventions, given a sequence of unit outcomes (or measurements) over time. Units can range from medical patients, to subpopulations or geographic locations. Examples of interventions include medical treatments, discounts, and socioeconomic policies.
We consider a panel data setting in which the principal observes units over a sequence of rounds. In round $n$, the learner observes a unit $n$ under control for $T_0 \in \mathbb{N}$ time steps, followed by one of $A$ interventions (including control, which we denote by $0$) for the remaining $T - T_0$ time steps, where $\mathbb{N} \ni T > T_0$. Overloading notation to be consistent with the literature on panel data, we denote the potential outcome of unit $n$ at time $t$ under intervention $a$ by $\pv{Y}{a}_{n,t} \in \mathbb{R}$, the set of unit $n$'s pre-treatment outcomes (under control) by $Y_{n,pre} := [Y_{n,1}^{(0)}, \ldots, Y_{n,T_0}^{(0)}]^{\top} \in \mathbb{R}^{T_0}$, and their post-intervention potential outcomes under intervention $a$ by $\pv{Y}{a}_{n,post} := [Y_{n,T_0+1}^{(a)}, \ldots, Y_{n,T}^{(a)}]^{\top} \in \mathbb{R}^{T-T_0}$. We use $a$ to refer to an arbitrary intervention in $\{0, \ldots, A-1\}$ and $a_n$ to denote the realized intervention unit $n$ actually receives in the post-intervention time period. We posit that potential outcomes are generated by the following latent factor model over units, time steps, and interventions.\looseness-1
Note that the learner observes $\pv{Y}{a}_{n,t}$ for only the intervention $a_n$ that unit $n$ is under at time step $t$, and never observes $U_t^{(a)}$, $V_n$, or $\epsilon_{n,t}^{(a)}$. Such “low rank” assumptions are ubiquitous within the panel data literature (see references in (ref)). We assume that $r$ is known to the learner, although principled heuristics exist for estimating $r$ in practice from data (see, e.g. Section 3.2 of agarwal2020synthetic). Additionally, we make the following “causal transportability” assumption on the latent factors.
Intuitively, (ref) allows for information to be inferred about the potential outcomes in the post-intervention time period using pre-treatment observations. A popular goal in the literature is to estimate unit-specific counterfactual outcomes under different interventions. In the sequel, we will show how to do this when the sequence of units and interventions is chosen adaptively. In line with previous work, our target causal parameter is the (counterfactual) average expected post-intervention outcome.
While we consider the average post-intervention outcome, our results may be readily extended to settings in which the target causal parameter is any linear combination of post-intervention outcomes.
The remainder of this section proceeds as follows: In (ref), we provide finite sample guarantees for the synthetic interventions estimator agarwal2020synthetic, a generalization of the popular synthetic control method for estimating counterfactuals from panel data abadie2003economic, abadie2010synthetic, when interventions are assigned adaptively. In (ref), we provide a method for learning an intervention assignment policy (i.e., a mapping from pre-treatment outcomes to interventions) with provably good performance, as measured by regret.
Synthetic control (SC) is a popular framework used to estimate counterfactual unit outcomes in panel data settings, had they not been treated (i.e. remained under control) abadie2003economic, abadie2010synthetic. In SC, there is a notion of a pre-intervention time period in which all units are under control, followed by a post-intervention time period, in which every unit undergoes one of several interventions (including control). At a high level, SC fits a model of a unit's pre-treatment outcomes using pre-treatment data from units who remained under control in the post-intervention time period. It then constructs a “synthetic control” by using the learned model to predict the unit's post-intervention outcomes, had they remained under control. Synthetic interventions (SI) is a recent generalization of the SC framework, which allows for counterfactual estimation of unit outcomes under different interventions, in addition to control agarwal2020synthetic. Using our bounds from (ref), we show how to generalize the SI framework of agarwal2020synthetic to settings where interventions are assigned via an adaptive intervention assignment policy.
As a motivating example, consider an online e-commerce platform (learner) which assigns discounts (interventions) to users (units) with the goal of maximizing total user engagement on the platform. For concreteness, suppose that the e-commerce platform assigns discounts greedily with respect to the discount level which appears to be best at the current round (i.e. maximizes total engagement for the current user), given the sequence of previously observed (user, discount level, engagement level) tuples. Under such a setting, the intervention assigned at the current round $n$ will be correlated with the observed engagement levels at previous rounds, thus breaking the requirement of the SI framework agarwal2020synthetic that the intervention assignment is not adaptive to previously observed outcomes. Formally, we provide performance guarantees for the following procedure, which may be thought of as a regularized version of the synthetic interventions estimator of agarwal2020synthetic:
A more complicated expression which does not require (ref) may be found in (ref). Observe that $|\widehat{\mathbb{E}} \pv{\Bar{Y}}{a}_{n,post} - \mathbb{E} \pv{\Bar{Y}}{a}_{n,post}| \rightarrow 0$ with high probability as $T_0, n \rightarrow \infty$.
In this section, we show how to leverage our bounds for adaptive PCR in order to design new algorithms for decision-making in panel data settings.\footnote{While we focus on panel data, our results in this section are also applicable to the (more general) setting in which a learner is faced with a contextual bandit problem with noise/measurement error in the contexts.} Here we study a setting in which $N$ units arrive sequentially. In each round $n \in [N]$, we (1) observe unit $n$'s pre-treatment outcomes $Y_{n,pre}$, (2) assign an intervention $a_n \in \{0, 1, \ldots, A-1\}$, and (3) observe post-intervention outcomes $Y_{n,post}^{(a_n)}$. We assume that the decision-maker's objective in this setting is to maximize the average post-intervention outcome for each unit (i.e., assign the intervention $a_n^* = \arg\max_{a \in [A]} \mathbb{E} \Bar{Y}_{n,post}^{(a)}$ to unit $n$), although our results readily extend to the setting in which the decision-maker wants to optimize any linear function of the post-treatment outcomes.
Our goal in this setting is to learn a good intervention assignment policy (i.e. mapping from pre-treatment outcomes to interventions), as measured by regret.
Next we show that under (ref) and (ref), $\mathbb{E} \pv{\Bar{Y}}{a}_{n,post}$ may be written as a linear combination of unit $n$'s pre-intervention outcomes. In addition to being useful for learning a good intervention assignment policy, this reformulation will allow us to make connections to the literature on contextual bandits. We note that similar observations have previously been made in the panel data literature (e.g. harris2022strategic), but we include the following lemma for completeness' sake.
$\theta(a)$ may be interpreted as a unit-independent measure of the causal relationship between pre- and post-intervention outcomes. For the reader familiar with the literature on contextual bandits, our setting may be thought of as a generalization of the linear contextual bandit setting (see, e.g. slivkins2019introduction, lattimore2020bandit) where there is additional noise in the context. Here $\mathbb{E} Y_{n,pre}$ is the (unobserved) context associated with unit $n$, $Y_{n,pre}$ is the (observed) “noisy” context associated with unit $n$, $a_n$ is the decision-maker's action, and $\Bar{Y}_{n,post}^{(a_n)}$ is the observed reward.
Our approach ((ref)) takes a number $N_0 > 0$ as input and proceeds by using the first $A \cdot N_0$ units for “exploration” by assigning each intervention $N_0$ times, before estimating $\theta(a)$ in (ref) as $\widehat{\theta}(a)$ using regularized PCR. For $n \in [A \cdot N_0 + 1, \ldots, N]$, (ref) then assigns intervention $a_n = \arg\max_{a \in [A]} \langle \widehat{\theta}(a), Y_{n,pre} \rangle$ to unit $n$ after observing pre-treatment outcomes $Y_{n,pre}$. Observe that this is one example of an intervention assignment policy which results in adaptively-collected data.
Our results for estimating $\theta(a)$ are of independent interest, so we state them separately from the analysis of (ref). We refer to our estimation procedure as “horizontal regression” since it regresses over time-steps (in contrast to “vertical regression” methods like those in (ref), which regress over units). Using a horizontal regression approach to learn how to treat has the benefit that $\wh \theta(a)$ only needs to be computed once (after the first $A \cdot N_0$ units), while an approach based on vertical regression would need to compute a separate $\wh \theta_n(a)$ for each unit $n > A \cdot N_0$.
The proof of (ref) proceeds similarly to the proof of (ref). While we still decompose the prediction error into three terms, when compared to (ref) these terms are “transposed”, roughly meaning that the roles of units and time-steps are reversed. This is to be expected, as for every intervention $a \in \{0, \ldots, A-1\}$, the synthetic interventions method of (ref) regresses over the $c_n(a)$ units and has $T_0$ data points, whereas the horizontal regression method of (ref) regresses over the $T_0$ time-steps and has $c_n(a)$ data points. Regret guarantees for (ref) follow readily from (ref).
For intuition, suppose that $T_0 = \Theta(T)$ and we pick $N_0 = \Theta \left( r^2 N^{2/3} \right)$. In this case, the regret bound simplifies to
Observe that with high probability, $\frac{R(N,T)}{N} \rightarrow 0$ as $N,T \rightarrow \infty$.
We empirically evaluate the performance of (ref) on simulated data.\footnote{It is challenging to evaluate the performance of contextual bandit algorithms on real data due to the fact that the decision-maker observes only bandit feedback. In our case, the decision-maker observes $Y_{n,post}^{(a_n)}$, but not $Y_{n,post}^{(a)}$ for $a \neq a_n$. While one could impute a real-world dataset, this would still introduce a synthetic component.} We consider a setting with three interventions, $r = 3$, $T = 20$, $T_0 = 10$, and $N = 600$. We generate the latent factors in a way which ensures that each intervention is optimal roughly $1/3$ of the time. Specifically, we consider three unit “types” $V(0) = [1, 0.1, 0.1]$, $V(1) = [0.1, 1, 0.1]$, and $V(2) = [0.1, 0.1, 1]$, and three time vectors $U(0) = [1, 0.1, 0.1]$, $U(1) = [0.1, 1, 0.1]$, and $U(2) = [0.1, 0.1, 1]$. For $t \in [T_0]$, the corresponding latent factor is chosen uniformly-at random-from $\{U(0), U(1), U(2)\}$. For $t \in \{T_0 + 1, \ldots, T\}$, the latent factor associated with intervention $a$ is $U_t^{(a)} = U(a)$. For every $n \in [N]$, $V_n$ is chosen uniformly-at-random from $\{V(0), V(1), V(2)\}$. Finally, the (potential) outcome for unit $n$ at time-step $t$ under intervention $a$ is generated by adding Gaussian noise with standard deviation $\sigma > 0$ to $\langle U_{t}^{(a)}, V_n \rangle$. The latent factors are designed in such a way that intervention $a$ is the optimal intervention to assign to a unit with latent factor $V(a)$.
\paragraph{Experiment $1$: Changing $N_0$.} In this experiment, we fix $\sigma = 0.5$ and study the effects of varying the number of explore units $N_0$ on (ref) and an ablation which uses linear regression instead of PCR. Our results are summarized in (ref). As $N_0$ decreases, we see that the performance of the ablation becomes worse relative to the performance of (ref). This is because for smaller $N_0$, the noise in the unit outcomes does not concentrate and so methods which do not explicitly de-noise perform poorly.
\paragraph{Experiment $2$: Changing $\sigma$.}
Next we fix $N_0 = 40$ and study the effects of varying the noise standard deviation $\sigma$ on both algorithms. We find that as $\sigma$ increases, the performance of both algorithms decreases, although the decrease in the ablation is more than that of (ref). Intuitively this is because the need for an explicit de-noising step grows as the magnitude of the noise increases.
We obtain the first adaptive bounds for principal component regression and apply them to two problems in the panel data setting. The first is that of online experiment design using panel data, where we allow for interventions to be assigned according to an adaptive policy. The second is the problem of learning how to assign interventions to units in order to maximize some function of the post-treatment outcomes. Here we design an algorithm which achieves no-regret with respect to the optimal intervention assignment policy and empirically evaluate the performance of our algorithm on synthetic data. Exciting directions for future work include applications of our results to domains such as differential privacy, and using our bounds to obtain algorithms with better regret guarantees (e.g. based on LinUCB abbasi2011improved) for the linear contextual bandit problem with noisy contexts.
KH is supported in part by an NDSEG Fellowship. KH, JW, and ZSW are supported in part by NSF FAI Award \#1939606. The authors would like to thank anonymous reviewers for valuable feedback.