EconBase
← Back to paper

Covariate-Adjusted Deep Causal Learning for Heterogeneous Panel Data Models

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.

81,964 characters · 14 sections · 48 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.

Covariate-Adjusted Deep Causal Learning for Heterogeneous Panel Data Models

\newcounter{appendixcounter} \refstepcounter{appendixcounter} \refstepcounter{appendixcounter} \refstepcounter{appendixcounter} \refstepcounter{appendixcounter}

\pagestyle{plain}

\setstretch{1.2}

abstractThis paper studies the task of estimating heterogeneous treatment effects in causal panel data models, in the presence of covariate effects. We propose a novel Covariate-Adjusted DEep CAusal Learning (CoDEAL) for panel data models, that employs flexible model structures and powerful neural network architectures to cohesively deal with the underlying heterogeneity and nonlinearity of both panel units and covariate effects. The proposed CoDEAL integrates nonlinear covariate effect components (parameterized by a feed-forward neural network) with nonlinear factor structures (modeled by a multi-output autoencoder) to form a heterogeneous causal panel model. The nonlinear covariate component offers a flexible framework for capturing the complex influences of covariates on outcomes. The nonlinear factor analysis enables CoDEAL to effectively capture both cross-sectional and temporal dependencies inherent in the data panel. This latent structural information is subsequently integrated into a customized matrix completion algorithm, thereby facilitating more accurate imputation of missing counterfactual outcomes. Moreover, the use of a multi-output autoencoder explicitly accounts for heterogeneity across units and enhances the model interpretability of the latent factors. We establish theoretical guarantees on the convergence of the estimated counterfactuals, and demonstrate the compelling performance of the proposed method using extensive simulation studies and a real data application.

Keywords: causal panel data models, counterfactual estimation, heterogeneous treatment effects, matrix completion, missing not at random, multi-output autoencoders, nonlinear factor models

\setstretch{1.5}

Introduction

Causal inference in panel data settings has attracted growing interest in recent years, with broad applications across various fields such as economics clarke2024synthetic, life science helske2024estimating, political science imai2021use, and social science imbens2024causal. Causal panel data analysis is inherently a missing data problem due to the fundamental problem of causal inference: for each unit and time period, we could only observe either the treated or the untreated outcome, but never both. The panel data structure brings unique challenges to causal analysis. Different units may get exposed to the treatment at various time periods, forming a block-wise non-random missing pattern athey2022design. The presence of both temporal and cross-sectional dependencies could bias the estimation if not properly addressed sun2021estimating, and unit-specific heterogeneity can confound causal interpretation millimet2023fixed, especially if additional covariates are present.

To estimate causal effects, one natural approach is to first impute the missing counterfactual, and then examine the difference between the imputed counterfactuals and the actual observed outcomes. athey2021matrix formulated the imputation of missing counterfactuals as a matrix completion task with nuclear norm minimization. It is important to note that standard matrix completion approaches are not directly suitable for causal imputation choi2024matrix. Most conventional matrix completion methods operate under the assumption that missing entries are missing at random, which enables estimation of missing values without explicitly modeling the missingness mechanism. However, in causal panel data settings where different units receive treatment at different times, missing entries correspond to counterfactual outcomes that are systematically unobserved due to treatment assignments, invalidating the missing-at-random assumption. As a result, applying standard matrix completion blindly without properly accounting for this structured, non-random missingness can lead to biased estimation agarwal2023causal.

In recent years, a growing body of work has focused on developing causal matrix completion methods that handle missing-not-at-random panel designs. Besides the optimization-based causal matrix completion athey2021matrix,choi2024matrix, another line of research leverages factor models bai2003,bai2009panel to capture the latent low-rank structure of observed entries. Most factor-model-based causal matrix completion methods in the literature xu2017generalized,bai2021matrix,agarwal2023causal,xiong2023large,yan2024entrywise posit a linear factor structure. Linear factor analysis helps capture cross-sectional and temporal dependencies to some extent han2024cp,han2024tensor,yu2024power, but is often limited in capturing complex nonlinear relationships, motivating the generalization to nonlinear factor models yalcin2001nonlinear.

Another key aspect in panel data analysis is to account for unit-specific heterogeneity millimet2023fixed,semenova2023inference. Most relevant works in the literature still focus on the overall average treatment effects across units athey2021matrix,athey2025identification, as opposed to the unit-specific heterogeneous treatment effects. Pooled estimates may mask important variations across units. Units in panel data often differ in characteristics and respond to the treatment differently wager2018estimation,nandy2023generalized, which may bias the estimates of treatment effects, motivating a critical need to estimate unit-specific heterogeneous treatment effects and adjust for the covariate effects if possible.

In this paper, we develop Covariate-Adjusted DEep CAusal Learning (CoDEAL) for panel data models, a deep-learning-based causal learning method for estimating heterogeneous treatment effects. CoDEAL captures covariate effects with a deep neural network regression, and models the covariate-adjusted outcomes via a nonlinear factor structure. Our contributions can be summarized as follows.

itemize[leftmargin = *] • CoDEAL provides a causal matrix completion method that addresses the non-random missingness mechanism in causal panel data analysis. By leveraging nonlinear factor analysis, CoDEAL exploits both cross-sectional and temporal dependencies. This latent structural information is subsequently integrated into the matrix completion procedure, thereby facilitating more accurate imputation of missing counterfactual outcomes. • CoDEAL employs flexible model structures and powerful neural network architectures to cohesively deal with the underlying heterogeneity and nonlinearity of both panel units and covariate effects. Algorithmically, we begin with a feed-forward deep neural network (DNN) to flexibly remove nonlinear covariate influences, followed by a multi-output autoencoder (AE) to recover nonlinear latent factors and explicitly take the unit-specific heterogeneity into account. • CoDEAL offers a unifying framework for heterogeneous causal panel models in the presence of covariates. By combining nonlinear covariate adjustment with deep latent factor models, CoDEAL generalizes beyond traditional linear factor models and unifies a class of factor-model-based causal matrix completion approaches, e.g., xu2017generalized,bai2021matrix,agarwal2023causal,xiong2023large,yan2024entrywise. Furthermore, with different choices of factor models and neural network architectures, the proposed framework can be further generalized to accommodate various data types such as spatial and tensor data.

Related Work. (a) An overview of causal learning methods in panel data models. One traditional approach to estimate treatment effects in causal panel models is the difference-in-differences imai2021use,athey2022design,wing2024designing that compares the average changes in outcomes over time between the treated and untreated units under a parallel trend assumption. Alternatively, one can estimate the causal effects by first imputing the missing counterfactual outcomes, and then examining the difference between the imputed counterfactuals and the actual observed outcomes. Following this strand, two approaches have emerged in recent causal panel literature: the uncounfoundedness-based approach (also known as horizontal regression) rosenbaum1983central,imbens2015causal and the synthetic control method (also known as vertical regression) abadie2003economic,abadie2010synthetic,abadie2015comparative,doudchenko2016balancing,abadie2021using. The close connections between the difference-in-differences, unconfoundedness-based methods, synthetic control approaches, and causal matrix completion estimators were revealed by athey2021matrix. Despite their distinct appearances, athey2021matrix showed that the linear versions of all four estimators can be characterized as solutions to the same optimization problem with the exact same objective function, but subject to different restrictions on parameters of that optimization. We refer readers to arkhangelsky2024causal for a comprehensive review of past and recent progress on causal panel models.

(b) Causal matrix completion and deep matrix completion. A surge of interest in the recent past has led to new research on causal matrix completion methods capable of addressing missing-not-at-random panel data, e.g., optimization-based methods athey2021matrix,choi2024matrix and factor-model-based methods xu2017generalized,bai2021matrix,agarwal2023causal,xiong2023large,yan2024entrywise. There has been a handful of deep-learning-based methods for matrix completion, e.g., fan2018matrix,radhakrishnan2022simple,xiu2024deep,fan2024neuron. However, most of them assume missing-at-random, and therefore, not directly suitable for causal imputation in panel data models.

Methodology

Problem Setup

Heterogeneous Treatment Effects \footnote{Here, the “heterogeneous treatment effect” refers to the heterogeneity across units. } in Causal Panel Data Models. We begin by setting up the causal learning problem in panel data. Consider a panel data setting with $N$ units over $T$ periods. Let $[n]$ denote the set $\{1, 2, \ldots, n\}$. For each unit $i \in [N]$ and time point $t \in [T]$, there are two potential outcomes, $Y_{it}(1)$ and $Y_{it}(0)$, representing the outcomes the $i$-th unit would experience at time $t$ under treatment and control, respectively. The treatment assignment is captured by a binary indicator variable $W_{it} \in \{0, 1\}$, where $W_{it} = 1$ indicates that the unit $i$ receives the treatment at time $t$ and $W_{it} = 0$ otherwise. Suppose we also have access to some unit-specific covariates $\mathrm{\bf X}_i \in \mathbb{R}^P$ that could potentially affect the observations $\{Y_{it}, t \in [T]\}$. We denote the matrix forms of the observed outcomes, treatment indicators, and covariates by $\mathrm{\bf Y} = (Y_{it}) \in \mathbb{R}^{N \times T}$, $\boldsymbol{\Omega} = (W_{it}) \in \mathbb{R}^{N \times T}$, and $\mathrm{\bf X} = (\mathrm{\bf X}_1, \ldots, \mathrm{\bf X}_N)^\top \in \mathbb{R}^{N \times P}$, respectively. Let $\mathrm{\bf Y}(1) = (Y_{it}(1))\in \mathbb{R}^{N \times T}$ and $\mathrm{\bf Y}(0) = (Y_{it}(0))\in \mathbb{R}^{N \times T}$ be the matrices of potential outcomes of the treated and untreated, respectively. Our aim\footnote{Aligning with relevant works in the literature athey2021matrix,athey2025identification, we focus on the unit-specific average treatment effects on the treated (ATT) as our primary estimand of interest to demonstrate our proposed model and algorithm. The proposed method can be also be used to many other estimands, such as the overall (non-unit-specific) ATT $\mathbb{E}_{(i,t)} [Y_{it}(1) - Y_{it}(0) \mid W_{it}=1]$, the unit-specific average treatment effects (ATE) $ \mathbb{E}_{t} [Y_{it}(1) - Y_{it}(0)]$, and the overall (non-unit-specific) ATE $\mathbb{E}_{(i,t)} [Y_{it}(1) - Y_{it}(0)]$. } in this work is to estimate the unit-specific (potentially heterogeneous) average treatment effects on the treated (ATT), $\tau_i^\star = \mathbb{E}_{t} [Y_{it}(1) - Y_{it}(0) \mid W_{it} = 1]$ for each treated unit $i$.

Staggered Adoption Design. This work focuses on staggered adoption design athey2022design, where treatments can be rolled out at different times across various units and are irreversible once initiated. We assume there is at least one never-treated unit in the panel. Details about staggered design are in Appendix (ref).

Causal Assumptions. To ensure the validity of the estimators' interpretation, we adopt the following assumptions throughout the analysis. (i) (Stable Unit Treatment Value Assumption (SUTVA).) The potential outcomes for a given unit at a particular time depend solely on the treatment administered to that unit at that time, and are unaffected by treatments assigned to other units or at other time points. (ii) (Static Treatment Effects.) The treatment effects are non-dynamic, i.e., do not change over time.

Challenges and Limitations of Existing Methods. The fundamental problem of causal inference implies that $Y_{it}(0)$ and $Y_{it}(1)$ cannot be observed simultaneously. The panel data forms two partially observed data matrices $\mathrm{\bf Y}(0)$ and $\mathrm{\bf Y}(1)$, where the missing pattern is determined according to the treatment assignments. To estimate the treatment effects, one natural idea is to estimate the unobserved counterfactuals, in other words, to impute the missing potential outcomes. Since our focus is the unit-specific ATT and $\{Y_{it}(1): W_{it}=1\}$ is observed, it suffices to estimate $\{Y_{it}(0): W_{it}=1\}$ to impute missing elements in $\mathrm{\bf Y}(0)$. Let $\{\widehat{Y}_{it}(0): W_{it}=1\}$ denote imputed values. The unit-specific ATT can then be estimated by $\widehat\tau_i = \sum_{t: W_{it} = 1} [Y_{it}(1)-\widehat{Y}_{it}(0)]/\sum_{t} W_{it}$ for each treated unit $i$.

There are three main limitations of existing methods that this work aims to overcome in the task of modeling unit-specific ATT and imputing missing potential outcomes. First, the vast majority of matrix completion methods rely on the assumption of missing at random, an assumption that is typically violated in staggered adoption designs, thereby leading to biased estimates. Second, existing matrix-completion-based causal panel models mostly focus on the overall (non-unit-specific) ATT, without adequately accounting for unit-level heterogeneity. Third, many existing methods often lack the capacity to disentangle the causal impact of treatment from confounding covariate effects and to model the underlying complex nonlinear dependencies, limiting both the precision of counterfactual predictions and the interpretability of causal analysis.

Covariate-Adjusted Deep Causal Learning (CoDEAL) for Panel Data Models

To tackle the above challenges, we propose the CoDEAL method that (i) leverages the staggered adoption structure to fully exploit both cross-sectional and temporal dependencies for more accurate imputation of missing potential outcomes, (ii) models the unit-specific heterogeneity explicitly to accommodate variation in treatment effects across units, and (iii) involves flexible model structures and employs powerful neural network architectures to efficiently capture complex nonlinear relationships.

For each unit $i \in [N]$ at time $t \in [T]$, we model the observed outcome by

equation[equation omitted — 199 chars of source]

where $\mathrm{\bf F}^\star_t \in \mathbb{R}^K$ is a $K$-dimension vector of latent factors, $\phi^\star_{i}(\cdot): \mathbb{R}^K \rightarrow \mathbb{R}$ is a potentially nonlinear factor loading function, $g^\star_t(\cdot): \mathbb{R}^P \rightarrow \mathbb{R}$ is a potentially nonlinear function that captures how covariates influence the outcome, and $ \mathds{1}\{\cdot\}$ is an indicator function, and $\varepsilon_{it}$ is the idiosyncratic noise. CoDEAL employs a nonlinear factor model yalcin2001nonlinear to characterize an underlying low-rank structure of the covariate-adjusted outcomes. By letting $\phi^\star_{i}(\cdot)$ take different forms, CoDEAL unifies a class of factor-model-based causal matrix completion approaches, e.g., xu2017generalized,bai2021matrix,agarwal2023causal,xiong2023large,yan2024entrywise. As shown by (ref), CoDEAL accommodates heterogeneous but non-dynamic treatment effects. The covariate effects can be heterogeneous across units and time-varying over periods. Here, we allow $N$ and $T$ to be large and diverging, while $P$ and $K$ are fixed and small.

For clarity, we first present the learning procedures using the simplest form of a $2\times 2$ staggered adoption (also known as the four-block design) in Section (ref), and generalize the algorithm to the more general staggered adoption design in Section (ref). More details about the four-block and staggered adoption design as well as their graphical illustrations are in Appendix (ref). A graphical illustration of CoDEAL in four-block design is provided in Figure (ref). The complete CoDEAL method in general staggered adoption design is summarized in Algorithm (ref).

CoDEAL in Four-Block Design

We begin with the four-block design, the simplest form of the staggered adoption and often regarded as foundational building blocks for more general staggered adoption designs. The four-block design is a $2 \times 2$ staggered adoption design, where a subset of $N_1$ units never receive the treatment while the remaining $N_2 = N-N_1$ units are exposed to the irreversible treatment starting at time $t=T_1+1$. Without loss of generality, we rearrange the panel such that the first $N_1$ units ($i=1,\ldots, N_1$) are untreated. We call the time periods $t\in [T_1]$ as pre-treatment periods and $t\in [T]\backslash [T_1]$ as post-treatment periods. Let $T_2 = T-T_1$ denote the time duration of the post-treatment periods. The four-block design naturally decomposes the panel into four blocks:

equation[equation omitted — 545 chars of source]

where $\mathrm{\bf Y}_\mathcal{A} \in \mathbb{R}^{N_1\times T_1}$, $\mathrm{\bf Y}_\mathcal{B} \in \mathbb{R}^{N_1\times T_2}$, $\mathrm{\bf Y}_\mathcal{C} \in \mathbb{R}^{N_2\times T_1}$, and $\mathrm{\bf Y}_\mathcal{D} \in \mathbb{R}^{N_2\times T_2}$. By construction, $\mathrm{\bf Y}_\mathcal{A}$, $\mathrm{\bf Y}_\mathcal{B}$, $\mathrm{\bf Y}_\mathcal{C}$ are observed outcomes of the untreated with $Y_{it} = Y_{it}(0)$ for $(i,t)\in \mathcal{A} \cup \mathcal{B} \cup \mathcal{C}$, while $\mathrm{\bf Y}_\mathcal{D}$ are observed outcomes of the treated with $Y_{it} = Y_{it}(1)$ for $(i,t)\in \mathcal{D}$, leaving a missing block in $\mathrm{\bf Y}(0)$. To estimate $\tau_i^\star$, it suffices to impute the missing values of $\mathrm{\bf Y}_{\mathcal{D}}(0)$. Denote the imputed block as $\widehat{\mathrm{\bf Y}}_{\mathcal{D}}(0)$. The unit-specific ATT can be then estimated by $\widehat{\tau}_i = \frac{1}{T_2} \sum_{t: (i,t)\in\mathcal{D}} [Y_{it}(1) -\widehat{Y}_{it}(0)] \text{ for } i \in [N]\backslash [N_1]$.

figure[figure omitted — 531 chars of source]

Modeling Covariate Effects. To account for the potentially nonlinear, heterogeneous, and time-varying effects brought by covariates, we consider a fully connected DNN for $g_t^\star(\cdot)$. We construct our model using a fully connected DNN with ReLU activation, due to its strong empirical performance. We refer to this architecture as a deep ReLU network. Let $L\in\mathbb N$ denote the network depth and let $\mathrm{\bf d} = (d_1, \ldots, d_{L+1}) \in \mathbb{N}^{L+1}$ specify the layer widths. A deep ReLU network is a function mapping $\mathbb{R}^{d_0}$ to $\mathbb{R}^{d_{L+1}}$ and takes the form

equation[equation omitted — 203 chars of source]

where each $\mathcal{L}_\ell(z) = M_\ell z + b_\ell$ is an affine transformation with weight matrix $M_\ell \in \mathbb{R}^{d_\ell \times d_{\ell-1}}$ and bias vector $b_\ell \in \mathbb{R}^{d_\ell}$, and $\bar{\sigma}_\ell : \mathbb{R}^{d_\ell} \to \mathbb{R}^{d_\ell}$ applies the ReLU activation function entrywise. For simplicity, we refer to both $M_\ell$ and $b_\ell$ as the weights of the deep ReLU network.

definition[Deep ReLU network class] For any $L \in \mathbb{N}$, $\mathrm{\bf d} \in \mathbb{N}^{L+1}$, and constants $B, C>0$, we define the class of deep ReLU networks with depth $L$, width parameter $\mathrm{\bf d}$, and weights $\mathrm{\bf M}=\{M_1,...,M_{L+1},b_1,...,b_{L+1}\}$ bounded by $C$ as \[ \mathcal{G}_{n_0}^{n_{L+1}}(L,\mathrm{\bf d}, B, C) = \left\{ \tilde{h}(x) = \text{sgn}(h(x))(|h(x)| \wedge B) : h \text{ of form } \eqref{eq:relu}, \, \|M_\ell\|_{\infty} \leq C, \, \|b_\ell\|_{\infty} \leq C \right\} . \]

The covariate effects can be estimated via

equation[equation omitted — 194 chars of source]

for certain functional class $\mathcal{G}_{P}^{1}(L,\mathrm{\bf d}, B, C)$ specified in Appendix (ref). We define the covariate-adjusted observed outcomes for unit $i \in [N]$ at time $t \in [T]$ as $\widetilde{Y}_{it} = Y_{it} - \widehat{g}_t(\mathrm{\bf X}_i).$

Estimating Counterfactuals by Matrix Completion via a Multi-Output AE. With covariate-adjusted outcomes, it remains to model the nonlinear factor structure $\phi^\star_i(\mathrm{\bf F}_t^\star)$ in (ref). Inspired by xiu2024deep, we consider tackling $\phi^\star_i(\mathrm{\bf F}_t^\star)$ using a multi-output AE.

The architecture of the multi-output autoencoder (AE) consists of a single DNN encoder and multiple independent DNN decoders. The encoder $\rho(\cdot) \in \mathcal{G}^{K_1}_{N}(L_1, \mathrm{\bf d}_1, B,C)$ maps the input to a $K_1$-dimensional bottleneck representation. For each of the $N$ output components, a distinct DNN decoder is used; specifically, the decoder for the $i$-th output is given by $\phi_i(\cdot) \in \mathcal{G}^{1}_{K_1}(L_2, \mathrm{\bf d}_2, B, C)$ for $i \in [N]$. Consequently, the $i$-th output of the multi-output AE for an input $x$ is given by $\phi_i \circ \rho(x)$. We formally define the function class of the multi-output AE as:

align[align omitted — 260 chars of source]

where $K_1\ge K$. Further details on this function class are provided in Appendix (ref).

With the multi-output AE, the encoder $\rho^\star(\cdot)$ effectively approximates the latent factors, facilitating the factor-model-based matrix completion. The unit-specific decoders $\phi_i^\star(\cdot)$, $i \in [N]$, are better equipped to capture the heterogeneity across units, in contrast to a traditional single-output AE which limits $\phi_1^\star = \ldots =\phi_N^\star$. DNNs involved in the multi-output AE are estimated by

equation[equation omitted — 314 chars of source]

The counterfactuals $\mathrm{\bf Y}_{\mathcal{D}}(0)$ can then be imputed by $\widehat{Y}_{it}(0) = \widehat{\phi}_i (\widehat\rho(\widetilde{\mathrm{\bf Y}}_{\cdot t})) + \widehat{g}_t(\mathrm{\bf X}_i)$ for any $(i,t) \in \mathcal{D}$. The complete steps of imputing counterfactuals in the four-block design are summarized as a standalone algorithm in Algorithm (ref) to facilitate further generalizations to staggered design.

algorithm[algorithm omitted — 1,177 chars of source]
algorithm[algorithm omitted — 1,823 chars of source]

CoDEAL in Staggered Adoption Design

The extension to staggered adoption design is a natural generalization of the four-block design. Under the staggered adoption design, we rearrange the panels by sorting the $N$ units based on the time at which they began receiving the treatment in a descending order (with never-treated units at the top, followed by the latest adopters, and then progressively earlier adopters towards the bottom). This sorting procedure yields a block structure in the treatment indicator matrix $\boldsymbol{\Omega}$. By grouping the units based on their adoption timing and segmenting the overall time periods into relevant intervals, we partition the indicator matrix $\boldsymbol{\Omega}$ (as well as the outcome matrix $\mathrm{\bf Y}$) into submatrices $\boldsymbol{\Omega}_{(\xi, \eta)} \in \mathbb{R}^{N_{\xi} \times T_{\eta}}$ and $\mathrm{\bf Y}_{(\xi, \eta)} \in \mathbb{R}^{N_{\xi} \times T_{\eta}}$ for $\xi=1,\ldots, r$ and $\eta =1,\ldots, r$, where $\sum_{\xi=1}^{r} N_{\xi} =N $ and $\sum_{\eta=1}^{r} T_{\eta} = T $. Examples of block partitions in the staggered design are included in Appendix (ref). Let $\mathcal{I}_{tr} = \{(\xi,\eta): \boldsymbol{\Omega}_{(\xi, \eta)} = 1\}$ denote the index set of the treated blocks. By the construction of these partitions, the indices in $\mathcal{I}_{tr}$ satisfy $\xi+\eta > r+1$.

To estimate the unit-specific ATT, it suffices to estimate the counterfactuals of $\mathrm{\bf Y}_{(\xi,\eta)}$ for all $(\xi,\eta) \in \mathcal{I}_{tr}$. The imputation of $\mathrm{\bf Y}_{(\xi,\eta)}(0)$ can be reduced to a four-block design problem yan2024entrywise, therefore the method proposed in the previous Section (ref) can be directly applied. Specifically, to estimate $\mathrm{\bf Y}_{(\xi_0, \eta_0)}(0)$ for some $(\xi_0, \eta_0) \in \mathcal{I}_{tr}$ , we construct a four-block data matrix $ \mathrm{\bf Y}^{(\xi_0,\eta_0)}$ as follows

equation[equation omitted — 533 chars of source]

where $\mathcal{A}_{(\xi_0,\eta_0)} = \{(\xi,\eta): 1 \leq \xi \leq k_1, 1 \leq \eta \leq k_2 \}$, $\mathcal{B}_{(\xi_0,\eta_0)} = \{(\xi,\eta):1\leq \xi \leq k_1, k_2+1 \leq \eta \leq \eta_0 \}$, $\mathcal{C}_{(\xi_0,\eta_0)} = \{(\xi,\eta): k_1+1 \leq \xi \leq \xi_0, 1 \leq j \leq k_2 \}$, and $\mathcal{D}_{(\xi_0,\eta_0)} = \{(\xi,\eta): k_1+1 \leq \xi \leq \xi_0, k_2+1 \leq j \leq \eta_0 \}$ with \( k_1 = r + 1 - \eta_0 \) and \( k_2 = r + 1 - \xi_0 \). The associated treatment indicator matrix $\boldsymbol{\Omega}^{(\xi_0,\eta_0)}$ is defined analogously and the associated covariate matrix $\mathrm{\bf X}^{(\xi_0)}$ can be obtained by retaining the units included in $\mathrm{\bf Y}^{(\xi_0,\eta_0)}$. The missing potential outcomes $\mathrm{\bf Y}_{\mathcal{D}_{(\xi_0,\eta_0)}}(0)$ can be directly estimated using Algorithm (ref). By construction, $\mathrm{\bf Y}_{\mathcal{D}_{(\xi_0,\eta_0)}} \supseteq \mathrm{\bf Y}_{(\xi_0,\eta_0)}$. In the case when $\mathrm{\bf Y}_{\mathcal{D}_{(\xi_0,\eta_0)}} \supset \mathrm{\bf Y}_{(\xi_0,\eta_0)}$, we treat all the blocks of $\mathrm{\bf Y}_{\mathcal{D}_{(\xi_0,\eta_0)}}$ as missing and impute their values, but only extract $\widehat{\mathrm{\bf Y}}_{(\xi_0,\eta_0)}(0)$ from the imputed $\widehat{\mathrm{\bf Y}}_{\mathcal{D}_{(\xi_0,\eta_0)}}(0)$; see Figure (ref) for examples.

With the four-block construction in (ref) and the CoDEAL method in four-block design introduced in Section (ref), we obtain the imputed values of $\mathrm{\bf Y}_{(\xi, \eta)}(0)$ for all $(\xi,\eta) \in \mathcal{I}_{tr}$. The unit-specific ATT can then be estimated by $\widehat\tau_i = \sum_{t: W_{it} = 1} [Y_{it}(1)-\widehat{Y}_{it}(0)]/\sum_{t} W_{it}$ for each treated unit $i$. The complete algorithm of CoDEAL in the staggered adoption design is summarized as Algorithm (ref).

figure[figure omitted — 2,504 chars of source]

Theoretical Properties

assumptionSuppose $\mathrm{\bf X}_i$ is supported on $[0,1]^P$ and has a density function $f$ satisfying $\sup_{x \in [0,1]^P} f(x) =: f_{\max} < \infty,$ where $f_{\max}$ is independent of dimension $P$. We assume there exists a constant $B > 0$ such that $\mathbb{E} F_t^\star=0$ and $\|F_t^\star\|_\infty \leq B$ holds almost surely. We further assume that $\varepsilon_{it}$ is sub-Gaussian with sub-Gaussian norm $\sigma_\epsilon^2$, and that $\varepsilon_{it}, F_t^\star,\mathrm{\bf X}_i$ are mutually independent.
assumptionThe functions $\{g_t^\star\}$ are assumed to be $(\beta, C)$-H\"older smooth, that is, each function is $\lfloor \beta \rfloor$ times continuously differentiable, and its $\lfloor \beta \rfloor$th derivative is H\"older continuous with exponent $\beta - \lfloor \beta \rfloor$ and constant $C$. Here, $\lfloor \beta \rfloor$ denotes the greatest integer less than $\beta$.
assumption[Pervasiveness] There exist a matrix $M^\star \in \mathbb{R}^{K \times N}$ and a function $\rho^\star$, defined on the image of the mapping $M^\star \phi^\star$, denoted by $M^\star \phi^\star([-B,B]^K)$. Assume that $\rho^\star $ is also $(\beta, C)$-H\"older smooth, and $\|M^\star\|_\infty \lesssim n^{-1}$, $\|M^\star\|_0 \asymp n$ for some diverging integer $n>0$. We further assume that { \begin{equation} \sup_{x \in [-B,B]^K} \| \rho^\star(M^\star \phi^\star(x)) - x \|^2 \lesssim n^{-1}. \end{equation} }

Assumption (ref) is a standard assumption in the literature of nonparametric regression. Note that assuming $\mathrm{\bf X}_i$ has compact support is equivalent to assuming that the support is $[0,1]^P$ via centering and scaling. The smoothness condition is standard in the nonparametric regression literature (cf. tsybakov2003introduction, Chapter 1), as it governs the complexity of the underlying function class. A formal definition is provided in Appendix (ref). Assumption (ref) generalizes the classical pervasiveness condition (with $n = N$) from linear factor models bai2003. It effectively enables approximate recovery of the latent factors from the observed input: when $x$ denotes the latent factors, condition (ref) ensures the existence of a reconstruction map $\rho^\star \circ M^\star$ that approximately inverts the encoding $\phi^\star(x)$ and recovers $x$ from the noiseless data. To illustrate, consider the linear factor model setup in bai2003, where $\phi^\star(x) = A x$ with bounded loadings satisfying $\|A\|_\infty \lesssim 1$ and $\|A\|_0 \asymp N$ indicating that each factor affects nearly all observed variables. Assumption (ref) is satisfied by setting $M^\star = N^{-1} A^\top$ and $\rho^\star(x) = N (A^\top A)^{-1} x$.

The following theorem establishes the convergence of the estimated counterfactuals under a four-block design. The result can be readily extended to general staggered adoption designs.

theoremSuppose that Assumptions (ref)-(ref) hold, and let $K_1\ge K$, with $K_1$ defined in (ref). Assume that $\log(N+T)=o(n)$, $N_1\lesssim N_2$ and $T_1\asymp T_2$. Then, under a suitable choice of parameters for the DNN function class (specified in Appendix (ref)), we have \begin{align*} & \frac{1}{T_2 N_2} \sum_{t=T_1+1}^{T}\sum_{i=N_1+1}^N \mathbb{E} \left( \widehat Y_{it}(0) - \phi_i^\star(\mathrm{\bf F}_{t}^\star) - g_t^\star(\mathrm{\bf X}_i) \right)^2 \nonumber \\ =& O_{\mathbb{P}} \left( \left( T^{-\frac{2\beta}{2\beta + K}} + T^{-1} n + N^{-1}K_1 + n^{-1} \right) \log^4(N T) +N^{-\frac{2\beta}{2\beta + k}} \log^5 N \right). \end{align*}

Additional theoretical properties, technical conditions and proofs are detailed in Appendix (ref).

Simulation Studies

In this section, we use extensive simulation studies to demonstrate the finite-sample performance of the proposed CoDEAL\footnote{Our code for implementing CoDEAL is available in the supplementary material.}.

Benchmark Methods

We consider five benchmark methods, including a single-output AE (Single AE) (detailed below), neuron-enhanced AE (AEMC-NE) fan2024neuron, matrix completion with nuclear norm minimization (MC-NNM) athey2021matrix, vertical regression (Vert-Reg) doudchenko2016balancing, and difference-in-differences (DiD) imai2021use.

Additionally, we evaluate the algorithm's performance in terms of the covariate effect removal. To this end, we compare the performance of CoDEAL using different methods to remove the covariate effects, specifically, DNN-based removal (as illustrated in Section (ref)), and linear-regression(LR)-based removal (detailed below).

We evaluate the algorithm's performance using two evaluation metrics: the mean absolute error $MAE=(\sum_{(i, t): W_{it} = 1}|Y_{it}(1)-\widehat{{Y}}_{it}(0)-\tau_{i}^\star|)/(\sum_{(i,t)} W_{it})$ and the mean squared error $MSE=(\sum_{(i,t): W_{it} = 1}(Y_{it}(1)-\widehat{{Y}}_{it}(0)-\tau_{i}^\star)^2)/(\sum_{(i,t)} W_{it})$.

{Matrix Completion by Single-Output AE (as a benchmark method).} Our proposed CoDEAL utilizes a multi-output autoencoder (as illustrated in Figure (ref)) to recover nonlinear latent factors while explicitly modeling the unit-specific heterogeneity through multiple decoders. The multi‐output autoencoder uses a shared encoder network \(\rho(\cdot)\) to map each column \(\widetilde{\mathbf{Y}}_{\!\cdot t}\) into a \(K\)-dimensional latent space, followed by \(N\) separate decoder networks \(\{\phi_1,\dots,\phi_N\}\) to reconstruct each unit’s value. To demonstrate CoDEAL's ability to account for the unit-specific heterogeneity, we include an additional benchmark that replaces the multi-output autoencoder with a single-output autoencoder in the CoDEAL algorithm. This benchmark is referred to as the Single AE in later discussions. A single-output autoencoder uses the same encoder \(\rho(\cdot)\) but only one decoder \(\phi(\cdot)\) (i.e. $\phi=\phi_1=\dots=\phi_N$) for all units. By design, the common decoder makes the single-output AE inherently unable to model the unit-specific heterogeneity effectively. For implementation, DNNs in the single-output AE are estimated by

equation*[equation* omitted — 242 chars of source]

{Covariate Effect Removal by Linear Regression (as a benchmark method).} Our proposed CoDEAL uses a DNN to remove the potentially nonlinear, heterogeneous, and time-varying effects brought by covariates. To evaluate the algorithm's performance in terms of the covariate effect removal, we include a linear-regression(LR)-based removal as a benchmark. The LR-based removal assumes that covariates have a linear impact on the outcome. With covariates $\mathbf{X}_i\in\mathbb{R}^{P}$, $i\in [N]$, we denote the effect of covariates on the outcome by a coefficient matrix $\mathrm{\bf H} = [\mathrm{\bf H}_1, \ldots, \mathrm{\bf H}_T] \in\mathbb{R}^{P\times T}$, and we estimate $\mathrm{\bf H}_t \in \mathbb{R}^P$ separately for each period. For each pre-treatment time $t\in\{1,\dots,T_1\}$, we estimate the covariate effect vector $\widehat{\mathrm{\bf H}}_t\in\mathbb{R}^{P}$ using OLS on all units: $\widehat{\mathrm{\bf H}}_t = \arg\min_{\mathrm{\bf H}_t} \sum_{i=1}^{N}\left(Y_{it}-\mathrm{\bf X}_i^\top\mathrm{\bf H}_t\right)^2.$ For each post-treatment period $t\in\{T_1+1,\dots,T\}$, we use only control units to estimate the covariate effect: $\widehat{\mathrm{\bf H}}_t = \arg\min_{\mathrm{\bf H}_t} \sum_{i: W_{it}=0}\left(Y_{it}-\mathrm{\bf X}_i^\top\mathrm{\bf H}_t\right)^2.$ With the estimated $\widehat{\mathrm{\bf H}}_t, t\in [T]$, we obtain the LR-based covariate-adjusted observed outcomes by $\widetilde{Y}_{it} = Y_{it} - \mathrm{\bf X}_i^\top\widehat{\mathrm{\bf H}}_t$ for each $i \in [N]$ and $t \in [T]$.

Data Generating Process and Simulation Configurations

We perform extensive simulation studies under various linear and nonlinear generating mechanisms, with different setups of unit numbers $N$, time periods $T$, matrix ranks $K$, and treatment assignments. Specifically, we consider the following configurations 1-4:

description• 1. Four-Block Design: $(N,T,N_1,T_1,P,K)=(100,200,50,100,3,4)$ • 2. Four-Block Design: $(N,T,N_1,T_1,P,K)=(200,120,100,60,5,3)$ • 3. Staggered Adoption Design: $(N,T,K)=(100,120,4)$, $r=\{5,10\}$ • 4. Staggered Adoption Design: $(N,T,K)=(200,120,3)$, $r=\{5,10\}$.

For the generation of factor effects and covariate effects, we first generate covariates $\mathrm{\bf X} = (X_{it}) \in \mathbb{R}^{N\times P}$, factors $\mathrm{\bf F} = (F_{it}) \in \mathbb{R}^{T\times K}$, factor loadings $\boldsymbol{\Lambda} = (\Lambda_{it})\in \mathbb{R}^{N\times K}$ with $X_{it},F_{it}, \Lambda_{it}\overset{\text{i.i.d.}}{\sim}N(0,1)$. With these building blocks, we consider various linear and nonlinear generating mechanisms to generate factor effects $\phi_i^\star(\mathrm{\bf F}^\star_{t})$ and covariate effects $g^\star_t(\mathbf{X}_i)$. Specifically, we experiment with 4 variants for generating factor effects and 6 variants for generating covariate effects, as listed in Table (ref). The unit-specific causal effect $\tau_i^\star \overset{i.i.d}{\sim}N(12,5) $ is designed to be added to treated units in treated periods. The observed outcome matrix $\mathrm{\bf Y} = (Y_{it}) \in \mathbb{R}^{N \times T}$ is then obtained by $Y_{it}= Y^\star_{it} + \tau^\star_i \cdot \mathcal{I}\{W_{it}=1\} + \varepsilon_{it}$ where $W_{it}$ are determined based on the treatment assignments according to the simulation configuration, and the idiosyncratic error $\varepsilon_{it}$ follows $\varepsilon_{it}\overset{i.i.d}{\sim}\mathcal{N}(0,0.5^2)$.

table[table omitted — 2,438 chars of source]

Evaluation on the Performance of CoDEAL in the Removal of Covariate Effects

To evaluate the algorithm’s performance in terms of the covariate effect removal, we compare the performance of CoDEAL using different methods, specifically, DNN (as illustrated in Section (ref)) and LR (detailed in Section (ref)), to remove the covariate effects. Six scenarios of covariate effects are considered as detailed in Table (ref). We also include an oracle benchmark, when no covariate effects are present and no covariate-adjusted operations are needed.

table[table omitted — 6,874 chars of source]
table[table omitted — 6,939 chars of source]

Table (ref) and Table (ref) report the comparisons of MAE and MSE using the two covariate effect removal methods in Config.1 and Config.2, respectively. Under each configuration, we consider both linear factor effects and nonlinear Sine factor effects, with all six types of covariate effects.

As shown in Tables (ref) and (ref), LR-based removal and DNN-based removal behave very differently depending on the underlying true types of covariate effects. In cases where the covariate effect is strictly linear, LR often outperforms NN by a small margin, indicating that a simple linear adjustment suffices for purely linear effects. In contrast, whenever the covariate effects enter nonlinearly (e.g.\ tanh, log, polynomial, or ReLU), the proposed DNN covariate removal achieves substantially lower errors, with MAE reduced by 10–30 % and MSE by similar amounts relative to LR. These results confirm that LR is adequate for linear covariate effects but that the DNN approach is essential to capture complex, nonlinear covariate–outcome relationships.

Evaluation on the Performance of CoDEAL in Causal Matrix Completion

Table (ref) reports the comparisons of prediction accuracy between the proposed CoDEAL and five benchmark methods (detailed in Section (ref)) in Config.1-4. Under each configuration, we consider all four types of factor effects (listed in Table (ref)), with linear covariate effects and nonlinear tanh covariate effects.

onehalfspace\begin{table}[p] \caption{ Comparisons of imputation accuracy (measured by MAE and MSE) under various factor and covariate generations in Config.1-4. Results are averaged over 50 replications. Numbers in parentheses are standard errors.} \resizebox{\textwidth}{!}{ \begin{tabular}{llccccccll} \toprule \multirow{2}{*}{Factor}& \multirow{2}{*}{Method} & \multicolumn{2}{c}{Config. 1, linear covariate}& \multicolumn{2}{c}{Config. 1, nonlinear covariate}& \multicolumn{2}{c}{Config. 2, linear covariate}& \multicolumn{2}{c}{Config. 2, nonlinear covariate}\\ & &MAE& MSE&MAE& MSE &MAE& MSE& MAE&\text\text\text\textMSE \\ \midrule \multirow{6}{*}{\textbf{Linear}} & CoDEAL & \textbf{0.646(0.009)} &\textbf{0.722(0.023)} &\textbf{0.701(0.008)}&\textbf{0.871(0.031)}&\textbf{0.609(0.004)} & \textbf{0.622(0.010)} & \textbf{0.644(0.005)} &\textbf{0.704(0.015)} \\ & Single AE & 0.821(0.010)&1.320(0.039)&0.851(0.008)&1.383(0.033)&0.777(0.007)& 1.147(0.024)& 0.795(0.007)&1.190(0.027)\\ & AEMC-NE & 0.838(0.009)&1.394(0.041)&0.862(0.009)&1.445(0.036)&0.759(0.007)& 1.093(0.025)& 0.771(0.007)&1.120(0.026)\\ & DiD & 0.892(0.010)&1.587(0.045)&0.916(0.009)&1.642(0.037)&0.810(0.007)& 1.262(0.029)& 0.828(0.008)&1.309(0.030)\\ & Vert-Reg & 0.757(0.006)&0.957(0.019)&0.798(0.007)&1.075(0.024)&0.761(0.004)& 0.936(0.011)& 0.770(0.005)&0.968(0.015)\\ & MC-NNM & 0.699(0.006)&0.895(0.020)&0.735(0.005)&1.007(0.017)&0.650(0.005)& 0.736(0.015)& 0.697(0.006)&0.859(0.019)\\ \midrule \multirow{6}{*}{\textbf{Sine}}& CoDEAL & \textbf{1.078(0.012)} &\textbf{2.136(0.055)} &\textbf{1.117(0.011)}&\textbf{ 2.238(0.050)}&\textbf{0.894(0.007)}& \textbf{1.454(0.028)} & \textbf{0.945(0.008)}&\textbf{1.593(0.030)}\\ & Single AE & 1.223(0.013)&2.618(0.061)&1.250(0.012)&2.705(0.053)&1.142(0.009)& 2.312(0.039)& 1.185(0.009)&2.458(0.039)\\ & AEMC-NE & 1.209(0.013)&2.566(0.061)&1.235(0.012)&2.645(0.053)&1.128(0.009)& 2.256(0.039)& 1.167(0.010)&2.389(0.041)\\ & DiD & 1.244(0.013)&2.697(0.063)&1.272(0.012)&2.785(0.055)&1.191(0.009)& 2.498(0.042)& 1.234(0.009)&2.650(0.041)\\ & Vert-Reg & 1.169(0.012)&2.633(0.063)&1.208(0.011)&2.736(0.059)&1.012(0.007)& 1.829(0.031)& 1.054(0.008)& 1.935(0.034)\\ & MC-NNM & 1.201(0.013)&2.511(0.059)&1.231(0.012)&2.610(0.053)&1.105(0.009)& 2.142(0.036)& 1.153(0.010)&2.305(0.040)\\ \midrule \multirow{6}{*}{\textbf{Polynomial}} & CoDEAL & \textbf{0.908(0.013)}&\textbf{2.250(0.100)}&\textbf{0.952(0.015)}&\textbf{2.477(0.126)}&\textbf{0.772(0.010)}& \textbf{1.399(0.076)}& \textbf{0.807(0.011)}&\textbf{1.539(0.070)} \\ & Single AE & 0.962(0.013)&2.727(0.116)&0.997(0.016)&3.014(0.164)&0.820(0.010)& 1.759(0.087)& 0.854(0.011)&1.964(0.084)\\ & AEMC-NE & 0.997(0.014)&3.198(0.142)&1.038(0.017)&3.500(0.192)&0.856(0.011)& 2.132(0.110)& 0.887(0.012)&2.339(0.111)\\ & DiD & 0.995(0.013)&2.708(0.111)&1.025(0.016)&2.939(0.144)&0.854(0.010)& 1.860(0.083)& 0.886(0.011)&2.065(0.092)\\ & Vert-Reg & 0.953(0.013)&1.906(0.076)&1.019(0.016)&2.327(0.113)&0.855(0.007)& 1.289(0.032)& 0.884(0.010)&1.456(0.042)\\ & MC-NNM & 0.951(0.013)&2.419(0.101)&0.989(0.015)&2.627(0.130)& 0.819(0.009)& 1.654(0.07)& 0.851(0.011)&1.839(0.078)\\ \midrule \multirow{6}{*}{\textbf{ReLU MLP}} & CoDEAL & \textbf{0.797(0.009)}&\textbf{1.097(0.027)}&\textbf{0.838(0.010)}& \textbf{1.217(0.032)} &\textbf{0.698(0.005)}& \textbf{0.820(0.014)}& \textbf{0.743(0.006)}&\textbf{0.929(0.015)}\\ & Single AE & 0.989(0.009)&1.712(0.034)&1.026(0.011)& 1.845(0.044)&0.891(0.007)& 1.375(0.022)& 0.930(0.008)&1.502(0.028)\\ & AEMC-NE & 1.045(0.010)&1.919(0.038)&1.088(0.011)& 2.084(0.048)&0.959(0.007)& 1.605(0.026)& 0.982(0.008)&1.679(0.029)\\ & DiD & 0.930(0.008)&1.499(0.028)&0.963(0.010)& 1.616(0.036)&0.842(0.005)& 1.218(0.017)& 0.870(0.007)&1.303(0.021)\\ & Vert-Reg & 0.888(0.010)&1.315(0.035)&0.958(0.013)& 1.544(0.046)&0.847(0.005)& 1.166(0.014)& 0.894(0.006)&1.302(0.020)\\ & MC-NNM & 0.843(0.007)&1.227(0.025)&0.892(0.009)& 1.453(0.031)&0.767(0.005)& 1.001(0.013)& 0.806(0.006)&1.110(0.019)\\ \toprule \multirow{2}{*}{\textbf{Factor}}& \multirow{2}{*}{\textbf{Method}}& \multicolumn{2}{c}{Config. 3, $r=5$}& \multicolumn{2}{c}{Config. 3, $r=10$} & \multicolumn{2}{c}{Config. 4, $r=5$}& \multicolumn{2}{c}{Config. 4, $r=10$} \\ & & MAE & MSE & MAE & MSE& MAE & MSE& MAE & MSE \\ \midrule \multirow{6}{*}{\textbf{Linear}} & CoDEAL &0.614(0.007) &0.721(0.023) & 0.625(0.005)& 0.754(0.018)&\textbf{0.532(0.003)}&\textbf{0.506(0.009)}&\textbf{0.560(0.004)}&\textbf{0.591(0.012)} \\ & Single AE &0.789(0.011) &1.263(0.044) & 0.795(0.008)& 1.270(0.033)&0.693(0.005) &0.948(0.017) &0.714(0.006) &1.009(0.023) \\ & AEMC-NE &0.731(0.010) &1.125(0.042) & 0.730(0.007)& 1.110(0.029)&0.647(0.005) &0.846(0.018) &0.660(0.005) &0.886(0.021) \\ & DiD &0.801(0.011) &1.341(0.047) & 0.802(0.008)& 1.326(0.033)&0.711(0.005) &1.031(0.021) &0.726(0.006) &1.081(0.025) \\ & Vert-Reg & 0.940(0.005)&6.880(2.378)& 0.865(0.023)&8.238(2.625) &0.691(0.003) &0.888(0.012) &0.750(0.016) &3.071(0.914) \\ & MC-NNM &\textbf{0.599(0.007)} &\textbf{0.685(0.023)} & \textbf{0.616(0.006)}& \textbf{0.733(0.019)}&0.537(0.003) &0.520(0.009) &0.565(0.004) &0.596(0.014) \\ \hline \multirow{6}{*}{\textbf{Sine}} & CoDEAL &\textbf{0.973(0.010)} &\textbf{1.798(0.041)} &\textbf{0.996(0.010)}&\textbf{1.907(0.039)} &\textbf{0.850(0.007)} &\textbf{1.389(0.024)} &\textbf{0.869(0.008)} &\textbf{1.463(0.028)} \\ & Single AE &1.087(0.011) &2.138(0.047) &1.122(0.011) &2.288(0.047) &1.057(0.008) &2.050(0.030) &1.061(0.008) &2.082(0.035) \\ & AEMC-NE &1.055(0.012) &2.029(0.047) &1.078(0.011) &2.128(0.044) &1.011(0.008) &1.890(0.029) &1.008(0.009) &1.897(0.034) \\ & DiD &1.110(0.012) &2.209(0.049) &1.146(0.012) &2.361(0.048) &1.091(0.008) &2.172(0.031) &1.088(0.009) &2.189(0.037) \\ & Vert-Reg & 1.549(0.090)&8.954(2.462)& 1.524(0.123)&15.689(4.057) &0.974(0.009) &2.153(0.059) &1.047(0.013) &4.384(0.544) \\ & MC-NNM &1.066(0.011) &2.033(0.046) &1.097(0.011) &2.164(0.043) &0.998(0.008) &1.819(0.031) &1.003(0.008) &1.858(0.032) \\ \hline \multirow{6}{*}{\textbf{Polynomial}} & CoDEAL &\textbf{0.785(0.011)} &\textbf{2.146(0.112)} &\textbf{0.811(0.010)} &\textbf{2.379(0.161)} &\textbf{0.662(0.007)} &\textbf{1.311(0.073)} &\textbf{0.699(0.007)} &\textbf{1.530(0.064)} \\ & Single AE &0.895(0.015) &2.423(0.117) &0.926(0.016) &2.710(0.172) &0.739(0.011) &1.582(0.086) &0.785(0.010) &1.798(0.071) \\ & AEMC-NE &0.860(0.014) &2.921(0.160) &0.897(0.013) &3.273(0.220) &0.720(0.009) &1.889(0.108) &0.764(0.009) &2.166(0.093) \\ & DiD &0.887(0.013) &2.422(0.116) &0.917(0.014) &2.693(0.165) &0.739(0.009) &1.613(0.082) &0.773(0.008) &1.801(0.068) \\ & Vert-Reg & 1.155(0.035)&6.771(1.168)& 1.131(0.032)&5.530(0.666) &0.788(0.005) &1.246(0.028) &0.881(0.014) &3.254(0.526) \\ & MC-NNM &0.839(0.012) &2.117(0.104) &0.865(0.012) &2.308(0.129) &0.703(0.008) &1.397(0.071) &0.735(0.007) &1.569(0.058) \\ \hline \multirow{6}{*}{\textbf{ReLU MLP}} & CoDEAL &\textbf{0.632(0.004)} &\textbf{0.886(0.012)} &\textbf{0.733(0.004)} &\textbf{0.953(0.013)} &\textbf{0.633(0.004)} &\textbf{0.698(0.011)}&\textbf{0.646(0.004)} &\textbf{0.730(0.011)} \\ & Single AE &0.876(0.005) &1.338(0.017) &0.913(0.006) &1.448(0.019) &0.797(0.005) &1.108(0.015) &0.809(0.005) &1.142(0.015) \\ & AEMC-NE &0.934(0.006) &1.574(0.021) &0.968(0.007) &1.677(0.024) &0.860(0.006) &1.330(0.023) &0.878(0.006) &1.381(0.022) \\ & DiD &0.817(0.004) &1.163(0.013) &0.842(0.004) &1.238(0.014) &0.742(0.004) &0.962(0.013) &0.748(0.005) &0.976(0.014) \\ & Vert-Reg & 1.045(0.031)&5.157(0.846)& 0.948(0.026)&10.387(6.292) &0.755(0.003) &1.060(0.015) &1.070(0.253) &8.399(2.377)\\ & MC-NNM &0.721(0.003) &0.897(0.009) &0.750(0.003) &0.976(0.010) &0.656(0.004) &0.741(0.011) &0.662(0.004) &0.756(0.011) \\ \bottomrule \end{tabular} } \end{table}

CoDEAL in Four-Block Design. As shown in Config.1 and Config.2 in Table (ref), CoDEAL consistently achieves the lowest MAE and MSE across nearly all settings of factor effects and covariate effects, and achieves substantial improvements in MAE and MSE relative to all competing methods. Under the simplest linear factor model, CoDEAL reduces MAE by approximately 5–10% and MSE by about 10–20% compared to MC-NNM, the second-best performing method, and significantly outperforms other baseline methods by even larger margins. For scenarios involving nonlinear factor models, CoDEAL continues to show superior performance, typically surpassing MC-NNM by approximately 5–20% reduction in MAE and 10–20% reduction in MSE. Overall, these findings clearly demonstrate that CoDEAL’s integration of DNN-based covariate adjustment and deep autoencoder-based latent factor extraction is robust and highly effective across diverse linear and nonlinear data-generating settings.

CoDEAL in Staggered Adoption Design. As Config.3 and Config.4 of Table (ref) demonstrate, CoDEAL achieves substantial percentage gains in MAE and MSE relative to all competing methods across staggered adoption designs. Under Linear factors, CoDEAL CoDEAL {ties MC-NNM within 3% while reduces MAE by 16–35% over other benchmarks}. In staggered design with nonlinear factors, CoDEAL delivers evident advantages. Especially when under ReLU-based factors, CoDEAL delivers its largest margins, with {MAE reductions of 12–40% and MSE reductions of 15–41% versus all competing approaches}. Finally, as $r$ increases from 5 to 10, the missingness pattern grows more complex and extensive, so all methods show some drop in accuracy. However, CoDEAL’s errors only suffer a slight increase, whereas simpler methods like Vert-Reg show a dramatic rise in both MAE and MSE when missingness increases. Above results reemphasize CoDEAL’s consistent superiority and robustness in staggered‐treatment settings.

In summary, CoDEAL achieves performance comparable to MC-NNM in linear settings, while exhibiting substantial improvements over all considered methods in the presence of nonlinear effects. By integrating DNN-based covariate adjustments with deep multi-output-AE–based nonlinear factor analysis, CoDEAL is robustly effective across a wide range of linear and nonlinear scenarios.

Real Data: Oxford COVID-19 Government Response Tracker (OxCGRT)

In this section, we illustrate our methodology using data from the OxCGRT Hale2021. The data is publicly available at \href{https://github.com/OxCGRT}{https://github.com/OxCGRT}. OxCGRT systematically collects panel data on the timing and intensity of 24 different government interventions, such as school closures, travel restrictions, and vaccination mandates, across over 185 countries from January 2020 through 2022.

We examine the impact of two specific policy interventions: (1) the implementation of mandatory vaccination, and (2) the termination of internal travel restrictions (results in Appendix (ref)). Our analysis covers their impacts on COVID-19 confirmed cases and deaths across 64 states and territories in the United States and Canada from April 16, 2021, to December 11, 2021. This time frame aligns with the period following the detection of the Delta variant and precedes the rapid emergence of the Omicron variant in North America. In our analysis, we use four OxCGRT indices (overall government response, containment and health, stringency, and economic support), averaged over the time frame, as covariates, resulting in data dimensions of $N=64$, $T=240$, and $P=4$. The policy is adopted in different states at various times, forming a staggered adoption design (visualized in Figure (ref)).

Figure (ref) plots the comparisons of the total confirmed cases and deaths across policy-in-effect states between observed results (with policy executed) and estimated counterfactuals (if no policy). As shown in Figure (ref), if the mandatory vaccination policy was not implemented, there would be an increase in both confirmed cases and deaths, with a notably larger impact on mortality. This observation aligns with recent research highlighting a greater reduction in mortality than in infection rates following vaccination hernandez2023impact,xu2023systematic,mesleEtAl2024estimated,wu2023long. Although the visual differences in the log-transformed graphs appear modest, converting these back to their original scales reveals substantial impacts: on December 11, 2021, the actual cumulative counts of confirmed cases and deaths for states with mandatory vaccination policies were ${26.57\text{ }million, 0.39\text{ }million}$, respectively. In contrast, our estimates suggest that without these policies, the counts would have risen to ${29.81\text{ }million(\uparrow 12.2\%), 0.52\text{ }million(\uparrow 34.6\%)}$.

figure[figure omitted — 310 chars of source]
figure[figure omitted — 444 chars of source]

Discussion of Limitations and Future Extensions

In this paper, we propose CoDEAL, a deep-learning-based causal matrix completion method and a unifying framework for estimating heterogeneous causal effects in panel data models. One limitation of CoDEAL is that it is only designed for binary treatment settings. Causal panel data with multiple treatments is an open research area with limited existing work in the literature abadie2021using, yet this topic is gradually gaining attention due to its growing relevance in practical applications agarwal2020synthetic,squires2022causal.

To extend CoDEAL to multiple treatment settings, one possible direction is to adopt a similar strategy to that mentioned by agarwal2020synthetic, in which the treatment type is incorporated as an additional data dimension in the analysis. Together with the original panel data structures, the inclusion of treatment dimension forms a three-dimensional tensor. Methodologically, with different choices of factor models and advanced neural network architectures, the proposed CoDEAL framework can be further generalized to accommodate various data types with more complex data structures, such as tensors, images, and networks. For example, CoDEAL can be naturally extended to three-dimensional or higher-order tensors by involving tensor factorization methodologies han2022tensor, chen2024estimation, zhou2025factor,chen2025diffusion, providing a more general approach compared to matrix factor analysis bai2021matrix, luo2022inverse,yu2022nonparametric,yu2024dynamic. That being said, to extend to multiple treatments, how to handle the increased level of missingness brought by the treatment assignments in a higher-dimensional tensor remains challenging and requires careful modeling strategies. We leave the further investigation on multiple treatment settings as future work.