Regularization Bias and the Partially Linear Model
Summary
The partially linear regression (PLR) model , (Robinson 1988) is the lead example of Chernozhukov et al. (2018). A naive ML estimator — learn with a regularized learner, then regress on — fails to be -consistent: its scaled error contains a term of order because is centered at and correlates with the bias in . Partialling out of as well (“double prediction”) replaces this with a term proportional to the product , bounded by , which vanishes whenever both learners beat the rate. This is the origin of the name double/debiased machine learning.
Overview
The PLR model captures a causal design with selection on observables: if is as good as randomly assigned given (the Conditional Independence Assumption), is the average treatment effect of — “the ‘lift’ parameter in business applications” (§1.1, p. 2). The first equation is the outcome model; the second “keeps track of confounding, namely the dependence of the treatment variable on controls” and is “not of interest per se but is important for characterizing and removing regularization bias.” The dimension of is modeled as growing with , so the nuisance lives in a space whose entropy grows with the sample — outside classical semiparametrics.
Why not just fit with a flexible learner that leaves unpenalized (e.g. alternate between a random forest for and OLS for )? Because every useful high-dimensional learner trades variance for bias, and that bias leaks into through the correlation between and . This is Omitted Variables Bias in a new guise: the “omitted variable” is the part of that regularization shrank away, and it is correlated with through .
Main Content
Partially linear regression model ^def-plr
with outcome , scalar policy/treatment variable , controls , and nuisance . (Vector : add one equation like the second per component.)
Failure of the naive plug-in estimator ^thm-naive-failure
Split the sample into a main part (size ) and auxiliary part ; fit on and set
Then with
Term is a sum of terms with non-zero mean divided by . If converges at rate with , then is of stochastic order , so (eq. 1.4).
Note that sample splitting alone does not rescue the naive estimator — above was already fit on an independent sample. The bias is a first-order sensitivity problem, not an overfitting problem.
The orthogonalized (double ML) estimator ^thm-dml-plr-decomp
Also fit on , form and
Then where
so , which vanishes e.g. when . The remainder contains terms like and is because of sample splitting (see Cross-Fitting and Sample Splitting).
is a linear IV estimator with instrument : the residualized treatment is, by construction, (approximately) uncorrelated with anything that is a function of , including the error in . A second, first-order-equivalent version is Robinson’s pure partialling-out estimator,
i.e. regress the outcome residual on the treatment residual — an ML-powered Frisch–Waugh–Lovell. Its practical advantage: both nuisances, and , are plain conditional means that any off-the-shelf learner can target, whereas depends on the unknown .
Theorem 4.1 — DML inference in the PLR model ^thm-dml-plr
Under Assumption 4.1 (moment bounds with ; ; bounded conditional variances; nuisance estimators with and the product-rate condition for score (4.3), or for score (4.4)), the cross-fit DML1 and DML2 estimators are first-order equivalent and
uniformly over ; the plug-in is consistent and is uniformly valid.
Two remarks sharpen this. Efficiency (Remark 4.2): under homoscedasticity , the semiparametric efficiency bound. Tightness (Remark 4.3): if are sparse with indices and estimated by -penalization at rates , the product-rate condition reads — far weaker than the needed without sample splitting. A very sparse propensity permits a dense outcome model and vice versa; if is known (a randomized experiment), mere consistency of suffices.
The variance tells you where identification comes from. : precision is driven by the variation in treatment not predicted by . If a flexible predicts almost perfectly, and no method can help — the continuous-treatment analogue of an overlap failure.
Examples
Figure 1 of the paper (n = 500, p = 20). is “a very smooth function of a small number of variables” — a setting favorable to random forests. The naive forest-based has a histogram “badly biased, shifted much to the right” of the truth and poorly described by its nominal normal approximation. On the same simulated data, the orthogonal estimator with forest nuisances is centered at and matches the curve.
Code sketch (partialling-out score with cross-fitting; any scikit-learn regressors):
import numpy as np
from sklearn.model_selection import KFold
from sklearn.ensemble import RandomForestRegressor
def dml_plr(Y, D, X, K=5, seed=0):
res_y, res_d = np.zeros_like(Y, float), np.zeros_like(D, float)
for train, test in KFold(K, shuffle=True, random_state=seed).split(X):
l_hat = RandomForestRegressor(500, min_samples_leaf=5).fit(X[train], Y[train])
m_hat = RandomForestRegressor(500, min_samples_leaf=5).fit(X[train], D[train])
res_y[test] = Y[test] - l_hat.predict(X[test]) # Y - l_hat(X)
res_d[test] = D[test] - m_hat.predict(X[test]) # V_hat = D - m_hat(X)
theta = (res_d @ res_y) / (res_d @ res_d) # DML2: pooled moment
psi = (res_y - theta * res_d) * res_d # score at theta
J = np.mean(res_d ** 2)
se = np.sqrt(np.mean(psi ** 2) / J ** 2 / len(Y)) # sandwich, Thm 3.2
return theta, seIn the 401(k) application, this PLR estimator gives an eligibility effect of $7,717–$9,247 across learners (s.e. $1,300–$1,750 with the split-adjusted median method).
Connections
- Neyman Orthogonality — the general principle of which ” vs ” is the special case: but .
- Cross-Fitting and Sample Splitting — controls and restores full-sample efficiency.
- DML Estimators for ATE and the Interactive Model — drops the additive-separability restriction for binary .
- R-Learner and Orthogonal CATE Estimation — lets become a function in the same residual-on-residual equation.
- Omitted Variables Bias — regularization bias is OVB where the omitted term is .
- Horseshoe and Regularized Horseshoe Priors — shrinkage priors on control coefficients create the same leak into a treatment coefficient; residualizing the treatment (or including a propensity estimate) is the analogous Bayesian remedy.
See Also
- Table 2 Fallacy — and are nuisances; their fitted “effects” have no causal reading.
- Instrumental Variables — the partially linear IV model (§4.2) replaces with in the score: .
- Frequentist Causal Estimation — outcome-regression estimators are the “naive plug-in” family that this note shows to be fragile under ML.
- Regression and the CEF — the classical regression-anatomy logic that partialling-out generalizes.