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,401 characters · 11 sections · 43 citation commands
Differentially Private Two-Stage Gradient Descent for Instrumental Variable Regression
Instrumental variable regression (IVaR) is a foundational tool in causal inference, designed to recover structural parameters when standard estimators fail due to endogeneity. In many observational settings, covariates are influenced by unobserved confounders, causing naive methods (such as the ordinary least squares (OLS) in the context of linear regression) to produce biased and inconsistent estimates. IVaR circumvents this by leveraging instruments, which are variables that are predictive of the endogenous regressors but independent of hidden confounders, to enable consistent estimation of causal effects hausman2001mismeasured,wooldridge2010econometric,10.1257/jep.15.4.69. This perspective is increasingly important in machine learning, for example in recommendation systems where user exposure is confounded by prior preferences si2022model, or in reinforcement learning where actions and rewards are jointly influenced by unobserved context xu2023instrumental. In such settings, IVaR provides a principled way to disentangle causal effects from spurious correlations, enabling more reliable decision making.
However, many applications of IVaR involve sensitive data, such as individual health records, financial transactions, or user interactions, where protecting privacy is of paramount importance. In such settings, releasing model estimates or even intermediate statistics can leak information about individuals in the dataset. Differential privacy (DP) dwork2006calibrating provides a mathematically rigorous framework to ensure that an algorithm’s output does not reveal sensitive information about any single data point. Despite the importance of IVaR in causal inference, to the best of our knowledge, there are no prior works addressing the problem of performing IVaR under differential privacy. This gap motivates the central question of this paper:
Our work focuses on answering this question in the context of linear IVaR models. To situate our contributions, we briefly review existing work on DP methods for OLS regression, with additional discussion in Section (ref). Several predominant approaches have emerged in the literature: (i) perturbion methods, where the empirical covariance and cross-covariance matrices are privatized before solving the normal equations; (ii) consensus-based methods, including propose-test-release and exponential mechanism approaches, which directly privatize the estimator through carefully designed randomized output rules; and (iii) gradient perturbation methods, where iterative optimization algorithms are made private by clipping gradients and injecting calibrated Gaussian noise. While all three approaches ensure differential privacy, gradient perturbation combined with clipping has been shown to yield the sharpest statistical rates in OLS regression, particularly in high-dimensional and finite-sample regimes bassily2014private, brown2024private.
Given the centrality of IVaR in causal inference, it is natural to explore whether the aforementioned techniques can be adapted to this setting. Unlike OLS, however, IVaR is based on moment conditions involving both covariates and instruments, making it less straightforward to design private algorithms. In particular, sufficient-statistics perturbation and consensus-based methods have not been explored, and their adaptation is non-trivial due to the inherent ill-posedness of IVaR under weak instruments and the sensitivity of the moment equations. These challenges stem from the fact that the closed-form 2SLS estimator depends on nested matrix multiplications and inversions, whose sensitivities are difficult to characterize directly. To address this, we design a two-stage gradient-descent-based algorithm that enables injecting noise at the iteration level in a principled manner. This structure allows us to rigorously control sensitivity, calibrate the noise, and derive non-asymptotic utility guarantees.
Specifically, we make the following contributions in this work:
By developing differentially private algorithm for IVaR and establishing its theoretical bound, we enable researchers to perform robust causal analyses without compromising the confidentiality of individuals in the dataset.
Differential Privacy for Regression. One can group private regression methods into the following broad families. (1) Output/objective perturbation (private empirical risk minimization (ERM)): add noise to the final estimator (output perturbation) or inject a random linear/quadratic term into a strongly convex loss before optimizing (objective perturbation); these one-shot mechanisms give $(\varepsilon, \delta)$-DP guarantees and excess-risk bounds for convex ERM (chaudhuri2011differentially; kifer2012private; bassily2014private). Recent refinements, e.g. redberg2023improving, leverage subsampling and tighter accounting to improve accuracy. (2) Sufficient-statistics (matrix) perturbation: release noisy surrogates of ($\mathbf{X}^{\top}\mathbf{X}, \mathbf{X}^{\top}\mathbf{y}$) (or related second-moment structures) and then solve the (regularized) normal equations; this route enables OLS-specific inference but can suffer under ill-conditioning because noise is injected at the Gram-matrix level (dwork2014analyze; sheffet2017differentially). tsfadia2022friendlycore proposes a subsample-and-aggregate framework that can, in principle, be adapted to regression settings by privately estimating the relevant sufficient statistics on carefully selected data subsets. Further developments in this direction include bernstein2019differentially and ferrando2024private. (3) Exponential mechanism: privately selects an output by randomly choosing among candidates with probabilities that grow exponentially with their quality score, with parameters controlling how strongly it favors the higher-scoring options. This mechanism is frequently applied in constructing algorithm to privately select a regression model from a pool of non-private OLS fits on subsets of the data (ramsay2021differentially, cumings2022differentially, amin2022easy). (4) Gradient perturbation (DP-(S)GD): clip per-example (mini-batch or full) gradients and add Gaussian noise at each step, tracking privacy with bounded log moment generating function of privacy loss random variable wang2019subsampled, R\'enyi DP, and subsampled-RDP-which yields tight composition for many small releases and scales well to large $n, p$ without forming $\mathbf{X}^{\top} \mathbf{X}$. (abadi2016deep; bun2016concentrated; mironov2017renyi; wang2019subsampled).
We favor gradient perturbation for multi-stage estimators like IVaR because it (i) composes tightly across many noisy steps using modern privacy accountants, (ii) avoids spectrum-dependent blow-ups from noising $\mathbf{X}^{\top} \mathbf{X}$ (sheffet2017differentially) and (iii) yields strong convergence rates while fitting standard training pipelines (including using minibatches, streaming, early stopping) and enabling modular, stage-wise design, which is preferable for practice (bassily2014private, abadi2016deep). Although there exists DP techniques for estimating gram matrices that avoid blow-ups, e.g., via carefully calibrated noise or regularization (brown2023fast, kamath2019privately), the purely sufficient statistics-based pipelines require larger sample sizes (polynomial to condition number) than gradient-based approaches to reach a comparable accuracy in high dimensions {brown2024insufficient}. That said, we note that the convergence of private first-order gradient methods still depend heavily on the condition number varshney2022nearly, liu2023near.
Instrumental Variable Regression (IVaR) has been extensively studied in econometrics 10.1257/jep.15.4.69,angrist2009mostly. Classical methods such as two-stage least squares (2SLS) admit closed-form solutions but face limitations in modern applications: they do not scale well to high-dimensional or streaming data, cannot easily incorporate regularization, and are restricted to linear models. This has motivated optimization-based approaches, including convex–concave formulations of nonlinear IV muandet2020dualinstrumentalvariableregression, stochastic optimization methods for scalable and online estimation della2023stochastic,chen2024stochasticoptimizationalgorithmsinstrumental,peixoto2024nonparametric, and bi-level gradient descent algorithms with convergence guarantees liang2025transformers. Extensions to nonlinear IV include kernel-based methods singh2019kernel and DeepIV hartford2017deep. Despite these advances, prior work assumes unrestricted access to the data and does not provide end-to-end differential privacy guarantees, which are increasingly critical in sensitive domains such as healthcare, finance, and online platforms. To our knowledge, no existing method offers DP guarantees with finite-sample convergence rates for linear IV/2SLS that explicitly account for instrument strength, sample size, dimension, and iteration complexity.
Notations:\quad Throughout this paper, unless otherwise specified, we use lower-case letters to denote random variable or individual data samples, and upper-case letters to denote datasets, i.e. collections of samples. Bolded letters represent vectors and matrices, whereas unbolded letters represent scalars.
We first review widely used notions of privacy in the literature. Two datasets $D$ and $D'$ are said to be neighbors if they differ in exactly one entry. The concept of neighboring datasets allows us to formally quantify the level of differential privacy. The two most common notions are $(\varepsilon,\delta)$-differential privacy and zero-concentrated differential privacy (zCDP).
While $(\varepsilon,\delta)$-DP is the most widely used notion of privacy, it can be too coarse for analyzing iterative mechanisms, as composition accumulates $\varepsilon$ and $\delta$ linearly\footnote{$(\epsilon,\delta)$-DP also satisfies an advanced composition that asymptotically matches zCDP, but the composition is more cumbersome and typically less practical than the clean additive composition offered by zCDP.}. In contrast, zero-concentrated differential privacy (zCDP) characterizes privacy loss through R\'enyi divergences, which ensures that the privacy loss random variable enjoys a sub-Gaussian concentration property. This yields two key benefits: (i) tighter composition, since zCDP parameters add under composition, and (ii) smooth conversion, since $\rho$-zCDP implies $(\varepsilon,\delta)$-DP with $\varepsilon = \rho + 2\sqrt{\rho \log(1/\delta)}$; see bun2016concentrated. As a result, we choose zCDP for technical convenience since it provides simple additive composition rule and leaner formulas in our context where we compose a large number of identical Gaussian mechanisms across both stages in 2SLS algorithm.
Endogeneity is a central challenge in linear regression. Suppose we aim to estimate the causal effect of the regressor $\mathbf{x}\in\mathbb{R}^p$ on the outcome $y\in\mathbb{R}$. However, there exists an unobserved confounder $\mathbf{u}$ that affects both $\mathbf{x}$ and $y$, thereby violating the standard exogeneity assumption that $\mathbf{x}$ is uncorrelated with the noise. As a result, the OLS estimator becomes biased and inconsistent. Instrumental variable regression (IVaR) is a widely adopted method to handle endogeneity by including $\mathbf{z}\in\mathbb{R}^q$, an instrumental variable (IV), to the model 10.1257/jep.15.4.69:
where the error terms $\epsilon_1$ and $\boldsymbol{\epsilon}_2$ are correlated due to the common confounder $\boldsymbol{u}$; see Figure (ref) for an illustration. Given the dataset $(\mathbf{Z}, \mathbf{X}, \mathbf{Y})=\left\{\left(\mathbf{z}_i, \mathbf{x}_i, y_i\right)\right\}_{i=1}^{n}$\footnote{Throughout this paper, we assume each entry of the dataset is independently and identically distributed (i.i.d.).}, the objective of the IVaR model is to solve the following bi-level optimization problem:
Optimization problem (ref) admits a closed-form solution. A classical approach to solve (ref) is the two-stage least squares (2SLS) estimator; see Definition (ref).
In the following sections, we will use $\hat{\boldsymbol{\beta}}$ to denote the 2SLS estimator for simplicity. We impose the following standard assumptions for IVaR model.
In Assumption (ref), condition (i) ensures the existence of the unique solution $\hat{\boldsymbol{\beta}}$ in (ref), condition (ii) guarantees that the instrument explains nontrivial variation in the endogenous regressor $\mathbf{x}$, and condition (iii) ensures that the instrument affects the outcome $y$ only through $\mathbf{x}$. These conditions are crucial for eliminating endogeneity and achieving consistent estimation for $\boldsymbol{\beta}$. See stock2011introduction for a detailed discussion.
We further impose the following assumptions to establish non-asymptotic rates.
Assumption (ref) provides the minimal conditions required to leverage concentration results from high-dimensional random design analysis Vershynin_2018. Specifically, with condition (i), we have the high-probability concentration bound for the empirical covariance matrix $\frac{\mathbf{Z}^\top\mathbf{Z}}{n}$ (see Lemma (ref)). Condition (ii) further ensures high-probability concentration of the cross terms $\frac{\mathbf{Z}^\top\boldsymbol{\mathcal{E}}_1}{n}$ and $\frac{\mathbf{Z}^\top\boldsymbol{\mathcal{E}}_2}{n}$ (see Lemma (ref)), where $(\boldsymbol{\mathcal{E}}_1,\boldsymbol{\mathcal{E}}_2)=\{(\epsilon_{1,i},\boldsymbol{\epsilon}_{2,i})\}_{i=1}^n$ denotes the sample realization of errors. With these conditions, we derive high-probability concentration bound for the sample covariance matrix of $\hat{\mathbf{X}}:=\mathbf{Z}\hat{\boldsymbol{\Theta}}$ (see Lemma (ref)), and finally establish the non-asymptotic error bound $\|\hat{\boldsymbol{\beta}}-\boldsymbol{\beta}\|$ (see Lemma (ref)).
Privacy in IVaR may be required at different levels depending on the application. In some cases, protecting only the causal effect $\boldsymbol{\beta}$ is sufficient, for instance when the first-stage compliance relation $\boldsymbol{\Theta}$ is public, secondary, or not sensitive. In other cases, privacy must also extend to the first-stage parameter $\boldsymbol{\Theta}$, such as when instruments involve sensitive behavioral data, proprietary mechanisms, or institutional policies. To ensure end-to-end privacy in the IVaR model, we adopt the framework of zCDP. We allocate two privacy parameters: $\rho_1$ for the first-stage parameter estimates $\{\boldsymbol{\Theta}^{(t)}\}_{t=1}^T$, and $\rho_2$ for the second-stage parameter estimates $\{\boldsymbol{\beta}^{(t)}\}_{t=1}^T$. By the composition property of zCDP, the overall procedure satisfies $(\rho_1+\rho_2)$-zCDP.
We begin with a baseline two-stage gradient descent algorithm, denoted as 2S-GD, for solving the IVaR problem (ref). The detailed procedure is deferred to Appendix (ref), Algorithm (ref). The method alternates between two coupled updates at each iteration: (i) updating the first-stage projection matrix $\boldsymbol{\Theta}^{(t)}$, which maps instruments $\mathbf{Z}$ to covariates $\mathbf{X}$, and (ii) updating the second-stage regression parameter $\boldsymbol{\beta}^{(t)}$ based on the predicted covariates. This iterative procedure can be viewed as a gradient-based analogue of the classical two-stage least squares estimator.
In this section, we propose a differentially private two-stage gradient descent algorithm, termed DP-2S-GD, to solve the IVaR problem (ref) while ensuring rigorous privacy guarantees. The algorithm is summarized in Algorithm (ref). Compared with 2S-GD, DP-2S-GD incorporates two key modifications: (i) per-sample clipping is applied to gradients in both stages to bound the sensitivity of each update, ensuring that no single datapoint can disproportionately affect the results, and (ii) Gaussian perturbations are injected into both the $\boldsymbol{\Theta}$- and $\boldsymbol{\beta}$-updates at every iteration, with noise scales calibrated to the target privacy budgets $\rho_1$ and $\rho_2$.
The privacy analysis proceeds by treating the two stages as separate Gaussian mechanisms with sensitivity controlled by clipping parameters $\gamma_1$ and $\gamma_2$. By the properties of zero-concentrated differential privacy, the choice of noise scales $\lambda_1,\lambda_2$ uniquely determines the effective privacy losses $\rho_1,\rho_2$, which compose additively across iterations. Consequently, for any pre-specified privacy budgets $(\rho_1,\rho_2)$, one can calibrate $(\lambda_1,\lambda_2)$ to ensure that DP-2S-GD achieves the desired privacy guarantees. We next establish formal theoretical results, including both privacy accounting and utility bounds for the resulting estimators.
The proof of Proposition (ref) is provided in Appendix (ref).
The proof of Theorem (ref) is presented in Appendix (ref). We now offer several remarks regarding this theorem. In the presentation of Theorem (ref), all constants $c_0, c_1, c_2$ and scaling factors hidden in "$\lesssim$" are independent of major parameters $n, p, q, T, \rho_1, \rho_2, \tau$. These constants only depend on problem-specific parameters $\boldsymbol{\beta}, \boldsymbol{\Theta}, \sigma_z, \sigma_1, \sigma_2$.
Hence, the optimum number of iterations $T$ is sub-linear but super-logarithmic to $n$. Figure (ref) qualitatively illustrates the trend of the error bound (ref) as a function of $T$. This is consistent with our experimental observations in Section (ref).
We conduct experiments using both synthetic data and real data to validate our theoretical findings. For all experiments, we set $\tau=5$, and step sizes $\eta=\frac{1}{(1+\delta(\tau))^2}$, $\alpha=\frac{2}{2\bar{\gamma}(\tau)+\underline{\gamma}(\tau)}$. As a practical guideline, $\rho=0.1$ is considered as strong privacy, $\rho=1$ is considered as moderate privacy, and $\rho=10$ is considered as weak privacy\footnote{The corresponding $(\epsilon,\delta)$-DP values using the conversion formula $\epsilon = \rho + 2\sqrt{\rho \log(1/\delta)}$ (with $\delta = 10^{-5}$): $\rho = 0.1 \Leftrightarrow (\epsilon,\delta) = (2.25,10^{-5})$, $\rho = 1 \Leftrightarrow (\epsilon,\delta) = (7.79,10^{-5})$, and $\rho = 10 \Leftrightarrow (\epsilon,\delta) = (31.47,10^{-5})$.}.
We generate synthetic data according to the IVaR model in (ref). To simulate the correlation between $\boldsymbol{\epsilon}_1$ and $\epsilon_2$, we include a confounder $\mathbf{u}\in\mathbb{R}^r$, and set $\epsilon_1 = \boldsymbol{\Phi}^\top\mathbf{u}_i+\boldsymbol{\epsilon}_{x}$ and $\epsilon_2 = \boldsymbol{\phi}^\top\mathbf{u}+\epsilon_{y}$, and generate each entry of the dataset $(\mathbf{Z}, \mathbf{X}, \mathbf{Y})=\{(\mathbf{z}_i,\mathbf{x}_i,y_i)\}_{i=1}^n$ according to the following model: $\mathbf{x}_i=\boldsymbol{\Theta}^\top \mathbf{z}_i+\boldsymbol{\Phi}^\top\mathbf{u}_i+\boldsymbol{\epsilon}_{x,i},$ and $\mathbf{y}_i=\boldsymbol{\beta}^\top\mathbf{x}_i+\boldsymbol{\phi}^\top\mathbf{u}_i+\epsilon_{y,i},$ where the ground-truth parameters are $\boldsymbol{\beta}\in\mathbb{R}^p, \boldsymbol{\Theta}\in\mathbb{R}^{q\times p}$, $\mathbf{\Phi}\in\mathbb{R}^{r\times p}$, $\boldsymbol{\phi}\in\mathbb{R}^r$. These parameters are drawn as follows: $\boldsymbol{\beta}\sim \mathcal{N}(\mathbf{0},\mathbf{I}_p)$, $\boldsymbol{\Theta}\sim 5\mathbf{I}_{q\times p}+\mathbf{E}$ with $\mathbf{E}_{ij}\sim\mathcal{N}(0,1)$. $\boldsymbol{\Phi}_{ij}\sim \mathcal{N}(0,1)$, and $\boldsymbol{\phi}\sim\mathcal{N}(\mathbf{0},\mathbf{I}_r)$. For each simulation, we then sample $\mathbf{z}_i\sim \mathcal{N}(\mathbf{0},\mathbf{I}_q)$, $\mathbf{u}_i\sim \mathcal{N}(\mathbf{0},\mathbf{I}_r)$, $\boldsymbol{\epsilon}_{x,i}\sim \mathcal{N}(\mathbf{0},\mathbf{I}_p)$, and $\epsilon_{y,i}\sim \mathcal{N}(0,1)$.
Figure (ref) compares the performance of Algorithm (ref) across different sample sizes $n$ under varying privacy allocations. We fix the total privacy budget at $\rho=\rho_1+\rho_2=10$, set the number of iterations to $T=20$, and examine three regimes: (i) $\rho_1=1, \rho_2=9$, (ii) $\rho_1=5, \rho_2=5$, and (iii) $\rho_1=9, \rho_2=1$. In Figure (ref)(a), with $p=q=r=5$, all points lie in the plateau region of Figure (ref), so the error decreases at the rate $\tfrac{1}{\sqrt{n}}$. In contrast, Figure (ref)(b) sets $p=q=r=50$. Here, $T=20$ violates condition (ref), leading to significantly larger errors compared to Figure (ref)(a).
The impact of $T$ is further investigated in Figure (ref), from which we observe that, with limited sample size $n$, if we enforce high privacy guarantee on $\{\boldsymbol{\Theta}^{(t)}\}_{t=1}^T$ (i.e. with small $\rho_1$), the error grows significantly after certain $T$ is reached. This cutoff aligns with the condition on $T$ specified in (ref). In contrast, when privacy is required only for $\{\boldsymbol{\beta}^{(t)}\}_{t=1}^T$ (i.e., with small $\rho_2$), the error behavior closely matches the theoretical predictions illustrated in Figure (ref).
We further evaluate our algorithm on the Angrist dataset laborsupply, which has been widely applied in the IVaR literature. This study examines the causal effect of children bearing on female labor supply, leveraging the gender composition of the first two children as an instrument\footnote{Research shows that parents whose first two children are of the same sex are significantly more likely to have an additional child Westoff1972. At the same time, the sex composition of the first two children can be treated as randomly assigned and is not directly related to the mother’s labor supply.}. The endogenous regressor $\mathbf{x}$ is the number of children bearing, the outcome $\mathbf{y}$ is the mother's labor supply measured in number of working weeks per year, and the instrument $\mathbf{z}$ is a binary variable indicating whether the first two children are of the same gender. The original dataset contains $394,835$ samples. For illustration purpose, we randomly draw a subset of $20,000$ samples and keep $n=8065$ effective observations with number of children $\geq 2$. We center all variables $\mathbf{z}, \mathbf{x}, \mathbf{y}$ and run Algorithm (ref) with $T=20$ iterations. Figure (ref) presents the results over 1000 independent runs with privacy budgets $\rho_1=1, \rho_2=1$. As shown in Figure (ref), the estimated $\boldsymbol{\beta}^{(T)}$ concentrates around $-4.3$, indicating that having an additional child reduces the mother's labor supply by approximately 4.3 weeks per year. This estimate is consistent with the 2SLS benchmark.
From Figure (ref), we observe that Algorithm (ref) converges in expectation after about 15 iterations. The dispersion of the estimates is determined by the privacy budgets: increasing $\rho_1$ and $\rho_2$ yield estimates that are more tightly concentrated around the 2SLS benchmark, while smaller budgets result in greater variability. Additional experiments are provided in Appendix (ref).
We have introduced DP-2S-GD, a differentially private two-stage gradient descent method for IVaR problem. The algorithm achieves $(\rho_1+\rho_2)$-zCDP by injecting carefully calibrated Gaussian noise. We have established finite-sample convergence guarantees that capture the trade-offs among optimization dynamics, privacy constraints, and statistical error. Our theoretical analysis shows that setting the number of iterations $T$ to be sub-linear yet super-logarithmic in $n$ minimizes the estimation error, a result that is corroborated by our experiments. We have further illustrated the practical utility of our method through an application to the Angrist dataset. On the other hand, we note that, regardless of the privacy constraint, the convergence of the two-stage gradient descent estimator to $\hat{\boldsymbol{\beta}}$ is slower by a $\sqrt{p}$ compared to the convergence of $\hat{\boldsymbol{\beta}}$ to the true parameter $\boldsymbol{\beta}$ (see Remark (ref)). Improving this rate (via algorithmic modifications) and establishing lower-bounds for privacy-accuracy tradeoffs for the IVaR problem are interesting future directions.
Krishnakumar Balasubramanian was supported in part by NSF grant DMS-2413426. Haodong Liang and Lifeng Lai were supported in part by NSF grants CCF-2232907, ECCS-2514514 and ECCS-2448268.