Honest Trees and Causal Forests
Summary
A causal forest (Wager & Athey 2018, JASA) estimates the conditional average treatment effect by averaging many causal trees, each of which estimates in a leaf as the difference in mean outcomes between treated and control units in that leaf. Trees are viewed as adaptive nearest-neighbor matching: under unconfoundedness, a small enough leaf “acts as though it had come from a randomized experiment.” The defining requirement is honesty — for each training example, its response may be used either to place splits or to estimate the within-leaf effect, never both — implemented by double-sample trees (split on half , estimate on half ) or propensity trees (split on only). Honesty removes the adaptive-overfitting bias that would otherwise prevent centered confidence intervals; subsampling re-randomizes the split across trees so that no data are wasted.
Overview
Metalearners for CATE (S-, T-, X-learners) wrap generic regressors to obtain but carry no distributional theory for itself. Wager & Athey’s contribution is “the first set of results … that allows any type of random forest, including classification and regression forests, to be used for provably valid statistical inference”: pointwise consistency, asymptotic normality, and a consistent variance estimator (developed in Asymptotic Normality and Inference for Forests). This note covers the construction — what a causal tree is, how it splits, and what honesty means.
Setup. i.i.d. with , , potential outcomes (Potential Outcomes Framework). Identification rests on unconfoundedness (eq. 2; the vault’s Conditional Independence Assumption) and overlap (eq. 6; Common Support and Overlap), which “effectively guarantees that, for large enough , there will be enough treatment and control units near any test point for local methods to work.” Unlike IPW approaches based on , the causal forest reaches consistency “without needing to explicitly estimate the propensity .”
Main Content
Causal tree and causal forest (eqs. 4–5) ^def-causal-tree
A regression tree predicts , where is the leaf containing . A causal tree instead predicts
A causal forest averages such trees, , each grown on a random subsample of size drawn without replacement, with (theory: , ).
Trees are “nearest neighbor methods with an adaptive neighborhood metric”: leaves are narrow along directions where the signal changes quickly and wide elsewhere, which is where forests gain power over -NN matching in moderate dimension. Following Breiman, the forest uses deep trees (minimum leaf size as small as 1 per arm), so no within-leaf propensity correction is needed — in contrast to Athey & Imbens’ (2016) single, larger-leaved causal tree, which reweights by propensity inside each leaf.
Honesty (Definitions 2, 2b) ^def-honesty
A (causal) tree is honest if, for each training example , it only uses the response to estimate the within-leaf treatment effect or to decide where to place splits, but not both. Formally: (a) standard case — the tree does not use in choosing splits (it may use and ); or (b) double-sample case — the tree does not use the -sample responses for placing splits.
Procedure 1 — Double-sample trees ^alg-double-sample
Input: examples ; minimum leaf size .
- Draw a random subsample of size without replacement; divide it into disjoint halves , .
- Grow a tree by recursive partitioning. Splits may use any data from and - or -observations from , but not -observations from .
- Estimate leaf-wise responses using only -sample observations (eq. 5).
Splits maximize the variance of over (Athey & Imbens 2016), subject to each leaf containing -sample observations of each treatment class.
Procedure 2 — Propensity trees ^alg-propensity-tree
- Draw a random subsample of size without replacement.
- Train a classification tree for on (e.g. Gini criterion), each leaf keeping observations of each class.
- Estimate with eq. (5) on the leaf containing .
Honest by construction (never looks at when splitting). Leaves group units with similar treatment propensity — forest-based propensity matching — so this procedure is “particularly useful in observational studies, where we want to minimize bias due to variation in .”
Why the variance-of- splitting rule (Remark 1). For a regression tree, because predictions are leaf means, , so minimizing squared error is equivalent to maximizing the variance of the fitted values. The treatment effect analogue cannot minimize directly — is never observed — but it can maximize the variance of . The tree therefore seeks splits that expose heterogeneity in treatment effects, not heterogeneity in outcome levels. (GRF later replaces this exact criterion with a gradient-based approximation; see Generalized Random Forests - Local Moment Equations.)
Why honesty. A greedy tree places splits where the observed difference between children is largest, which preferentially selects differences inflated by noise; re-using the same to estimate leaf effects yields estimates biased away from the truth (a winner’s-curse effect). With honesty, conditional on the partition, the -sample leaf means are unbiased for the leaf’s population means, and after the splitting stage (eq. 25)
using unconfoundedness. Remaining bias is purely a leaf-diameter effect, controlled by Lipschitz continuity; overlap is what guarantees the diameter shrinks fast enough with both arms represented. Remark 2 and Appendix B add that adaptive (non-honest) forests with small leaves “can overfit to outliers in ways that make them inconsistent near the edges of sample space.”
No data are wasted. Sample splitting is usually criticized for discarding half the data. Here “the forest subsampling mechanism enables us to achieve honesty without wasting any data …, because we re-randomize the -data splits over each subsample.” The authors further report that double-sample trees “can improve upon standard random forests in terms of mean-squared error as well.” This is the forest-internal analogue of fold rotation in Cross-Fitting and Sample Splitting.
Additional regularity conditions used by the theory. Random-split: every feature has probability of being the split variable at each step (so leaves shrink in all directions). -regular: each split leaves at least a fraction of observations on each side, and the leaf containing has at least observations from each treatment group and fewer than from at least one (Definition 4b) — “regular causal trees seek to act as fully grown trees for the rare treatment assignment.” Symmetric: output invariant to the ordering of training examples. Remark 4 cautions that regularity cannot in general hold at all simultaneously; the theorems are pointwise.
Examples
Simulation 1 — confounding, no effect (eq. 27). , , , , propensity trees with , .
| MSE: CF | MSE: 10-NN | MSE: 100-NN | Coverage: CF | 10-NN | 100-NN | |
|---|---|---|---|---|---|---|
| 2 | 0.02 | 0.21 | 0.09 | 0.95 | 0.93 | 0.62 |
| 10 | 0.02 | 0.28 | 0.12 | 0.94 | 0.91 | 0.51 |
| 20 | 0.02 | 0.32 | 0.13 | 0.88 | 0.89 | 0.49 |
| 30 | 0.02 | 0.33 | 0.13 | 0.85 | 0.89 | 0.48 |
Causal forests hold MSE at 0.02 as grows while -NN is an order of magnitude worse; nominal coverage holds up to and then decays.
Simulation 2 — heterogeneity in an RCT (eq. 28). , , , , double-sample trees with , . MSE 0.02–0.04 vs. 0.29–0.38 for 7-NN across ; coverage 0.97 → 0.90. Unexpectedly, MSE improves with for small because extra split candidates decorrelate the trees. With a sharper spike (eq. 29) coverage falls to 0.73 at — “the random forest is dominated by bias instead of variance” — a reminder that forest CIs are honest about variance but not about smoothing bias near peaks and boundaries.
Usage sketch (R grf, the successor implementation cited in fn. 8).
library(grf)
cf <- causal_forest(X, Y, W, num.trees = 2000, honesty = TRUE)
hat <- predict(cf, X.test, estimate.variance = TRUE)
ci <- cbind(hat$predictions - 1.96 * sqrt(hat$variance.estimates),
hat$predictions + 1.96 * sqrt(hat$variance.estimates))Connections
- Asymptotic Normality and Inference for Forests — Theorems 1 and 11 and the infinitesimal jackknife that make the intervals above valid.
- Generalized Random Forests - Local Moment Equations — generalizes Procedure 1 (weights instead of tree averaging, gradient splitting) and reconciles Procedures 1 and 2 via local centering.
- Cross-Fitting and Sample Splitting — honesty is sample splitting at the tree level.
- Metalearners for CATE, S-Learner, T-Learner and Minimax Rate, X-Learner, Künzel 2019 - Overview — metalearner alternatives; Künzel et al. often use honest forests as base learners, but only the causal forest carries pointwise CI theory.
- Nonparametric Causal Inference — BART (Hill 2011), which the paper notes “won the … 2016 Atlantic Causal Inference Conference” challenge, is the Bayesian tree-ensemble route; it gives posterior intervals rather than frequentist pointwise guarantees.
- Matching Methods and Distance Measures, Propensity Score Matching - Overview — causal forests as matching with a learned, outcome-relevant metric; propensity trees as forest-based propensity matching.
See Also
- Common Support and Overlap — leaves without both arms cannot estimate ; the -per-arm constraint operationalizes overlap locally.
- R-Learner and Orthogonal CATE Estimation — an alternative, loss-based route to that can be stacked with a causal forest.
- Heterogeneity in Agent Models — estimated CATE surfaces are a data-driven source of agent-level response heterogeneity for ABM calibration.