TL;DR
Flexible machine-learning models predict well, but if you plug their predictions straight into an estimate of a treatment effect, the estimate inherits their regularization bias and can be far off. Chernozhukov and coauthors show a fix: build a score that is insensitive to small errors in the machine-learning part (Neyman orthogonality), and fit the nuisance models on one part of the data while estimating on another (cross-fitting). The result is a treatment-effect estimate that converges at the usual root-n rate and has valid confidence intervals.
Builds on: Average Treatment Effect, Neyman Orthogonality, Cross-Fitting · Leads to: causal estimation with lasso, forests, boosting and neural networks as nuisance learners
Why it mattered
Economists and data scientists often have a treatment that was not randomly assigned, and many controls that might confound it. Before this work, the choice was between a simple linear model with a few hand-picked controls and a flexible model whose treatment coefficient could not be trusted for inference. The paper gives a general recipe that keeps the flexible model and still produces a standard error.
The paper's own applications show the method at work. It re-analyses the Pennsylvania Reemployment Bonus experiment, in which unemployment insurance claimants were randomly offered cash bonuses, and it estimates the effect of 401(k) eligibility on net financial assets with flexible controls. The same estimator is applied to the effect of institutions on economic growth using an instrument. The paper reports that the estimates agree across several machine-learning methods, which is the behaviour the theory predicts.
The problem
Take the partially linear regression model from the paper's Example 1.1. The outcome Y depends on a treatment D, a coefficient θ0, and an unknown function g0 of many controls X. The treatment is itself related to the controls through a function m0, so D is not independent of X:
The target is θ0, the treatment effect. The functions g0 and m0 are nuisance parameters: the model needs them, but the reader does not want them reported. When X has many components, the paper estimates g0 with a regularized learner such as the lasso or a random forest. Regularization keeps the variance down, but it also biases the estimate of g0. The paper shows that this bias enters the estimate of θ0 as a sum of n terms with non-zero mean, divided by √n, so it does not vanish. The naive plug-in estimator therefore converges slower than the root-n rate, and the usual confidence intervals are wrong. Figure 1 of the paper shows the consequence in a simulation: a plug-in estimator built on a random forest is visibly shifted away from the true θ0, while the orthogonal estimator is centred on it.
How it works
The method has two ingredients, and each one removes a different part of the bias.
- Split the sample into K folds, for example K = 2 or K = 5.
- Remove the confounding from the treatment first. For each fold, fit a machine-learning model of D on the other folds to get a prediction m̂(X). The residual V̂ = D − m̂(X) is the part of the treatment that the controls do not explain.
- Fit a machine-learning model of Y on the other folds to get ℓ̂(X), or of g0, depending on the parametrisation.
- On the held-out fold, solve the orthogonal estimating equation for θ. The score is the residual of Y, minus ℓ̂(X), minus θ times the treatment residual, multiplied by the treatment residual. Small errors in m̂ and ℓ̂ change this score only by second-order amounts.
- Repeat for each fold, and average the fold estimates, or solve a single pooled equation (the paper calls the two variants DML1 and DML2).
- Use the average as the estimate and the spread across folds, or the sample variance of the score, to build a confidence interval.
The point of the score is that a nuisance error reaches θ̌ only through a product of two nuisance errors, not through a single first-order term. The plug-in estimator has no such structure, which is why its bias survives.
flowchart LR A[Split data into K folds] --> B[Fit nuisance models on K minus 1 folds] B --> C[Form residuals of Y and D on the held-out fold] C --> D[Solve orthogonal score for theta on the held-out fold] D --> E[Average across folds] E --> F[Estimate and confidence interval]
The math
The paper's moment condition: the true parameter θ0 and nuisance η0 satisfy E[ψ(W; θ0, η0)] = 0. The score ψ is Neyman orthogonal at (θ0, η0) if the derivative of its expectation with respect to the nuisance vanishes:
This says the score is flat in the nuisance direction at the truth. The paper also allows a weaker version, in which the derivative is small enough, of order o(n^(-1/2)), which is what machine-learning nuisance estimators can achieve.
Step 2 in symbols
For the partially linear model, the paper uses the Robinson-style score
where ℓ0(X) = E[Y | X] and m0(X) = E[D | X]. Its expectation at the truth is zero, and its nuisance derivative vanishes, which is the orthogonality condition above.
Steps 3 and 4 in symbols
Given the nuisance estimates on the other folds, the held-out-fold estimate solves
which gives
This is the Frisch–Waugh style estimator: regress the outcome residual on the treatment residual.
Why the error is second-order
Let δ_m = m̂ − m0 and δ_ℓ = ℓ̂ − ℓ0. Expanding the score around the truth, the terms linear in δ_m and δ_ℓ cancel because of orthogonality. What remains is a product of the two nuisance errors. The paper's conditions require this product to be small enough that √n times it goes to zero (its assumptions are stated as a rate o(n^(−1/2)) for the nuisance errors' product). This is the formal reason flexible learners are allowed, provided their errors shrink fast enough.
Results
The results below are taken from the paper's text and tables.
- Simulation (Figure 1). The paper compares a plug-in estimator with a random-forest nuisance against the orthogonal estimator in a partially linear model. The plug-in estimate is visibly biased; the orthogonal estimate is approximately unbiased and close to its normal approximation.
- Unemployment bonus (Table 1). The estimated effect of the cash bonus on log unemployment duration, in the partially linear model with 2-fold cross-fitting, ranges from −0.074 to −0.084 across the seven nuisance learners (Lasso, Reg. Tree, Random Forest, Boosting, Neural Net, Ensemble, Best). The paper reports the effect as negative and significant at the 5% level for all methods, and reports that the 2-fold and 5-fold results are close.
- 401(k) eligibility. Without controls the eligibility effect on net financial assets is 19,559 dollars with a standard error of 1413. The paper states that the flexibly adjusted estimates are substantially smaller and broadly consistent with each other across methods.
- Limits, as the paper states them. The theory needs the nuisance estimators to converge at a reasonable rate, so very small samples can be unstable; the paper notes that neural networks were dropped from the ensemble in the small institutions example because training was unstable. The choice of K has no asymptotic effect, but it matters in small samples; the paper suggests K of 4 or 5 often works better than 2. Standard errors can change noticeably when the split-to-split variability is included, and the paper leaves the question of how the number of folds affects inference for future work.
Reading guide
- Section 1, Introduction and Motivation (Example 1.1 and Figures 1 and 2): the partially linear model and the bias of the naive estimator. Needs Linear Regression and Nuisance Parameter.
- Section 1.2, Literature overview: connects to debiased lasso and instrumental-variable estimators. Needs Instrumental Variables and Lasso Regression.
- Section 2, Neyman orthogonal scores: the moment-condition framework and Definitions 2.1 and 2.2. Needs Neyman Orthogonality and Average Treatment Effect.
- Section 3, DML: cross-fitting definitions (DML1 and DML2) and Remark 3.6 on the choice of K. Needs Cross-Fitting and Random Forest.
- Section 4, Partially linear models: the score and the second-order argument. Needs Propensity Score only for the interactive model in Section 5.
- Section 5, Interactive model: ATE, ATT and local average treatment effects. Needs Propensity Score and Instrumental Variables.
- Section 6, Empirical examples: the bonus experiment and 401(k) tables, read after Sections 3 and 4.
Check yourself
QuestionRecall: what does Neyman orthogonality require of the score at the true nuisance parameter?Show answer
The derivative of the expected score with respect to the nuisance parameter, taken at the truth, is zero in every admissible direction. Small errors in the nuisance estimates then change the expected score only by a second-order amount.
QuestionComputation: the treatment residual is V̂ equal to 2 for one observation, and the outcome residual Y − ℓ̂(X) is 6. With one observation in the fold, what is the estimate θ̌ from the formula with sums over one term?Show answer
θ̌ equals the product of the two residuals divided by the square of the treatment residual: 2 times 6 divided by 2 squared, which is 12 divided by 4, so θ̌ = 3.
QuestionWhy: explain why the plug-in estimator using a random forest for g0 is biased, while the orthogonal estimator is not, even though both use the same forest.Show answer
The plug-in estimator has a regularization bias in its nuisance term that does not have mean zero, so the bias enters θ at order root-n times the nuisance bias. The orthogonal score removes the first-order effect of that bias, because its derivative with respect to the nuisance vanishes at the truth. The forest is the same; the difference is the score that uses its output.
QuestionApplied: a study has 1000 observations and you want an estimate of a treatment effect with controls, using a lasso for the controls. You can afford either K = 2 or K = 5 folds. Which does the paper suggest for small or moderate samples, and what does it say about the asymptotic effect?Show answer
The paper says K has no asymptotic effect under its conditions, but in small samples larger K gives more observations to fit each nuisance model. It reports that moderate values such as 4 or 5 often work better than 2 in its examples and simulations, and in its 401(k) tables the 5-fold standard errors are lower than the 2-fold ones. So K = 5 is a reasonable choice here, though the paper does not claim a single best K.
Sources
- Chernozhukov, Chetverikov, Demirer, Duflo, Hansen, Newey and Robins, Double/Debiased Machine Learning for Treatment and Causal Parameters. https://arxiv.org/abs/1608.00060
- Causal inference, Wikipedia. https://en.wikipedia.org/wiki/Causal_inference