Paper commentary
Generalized Random Forests
Generalized random forests fit any quantity defined by local moment equations
- Problem Kernel weights suffer the curse of dimensionality as covariates grow, and averaging cannot remove bias in moment-equation solutions.
- Method Generalized random forests use forest leaves instead of kernels to weight nearby training examples, then solve a weighted estimating equation.
- Results On a simulation with confounding and heterogeneity at p = 10 and n = 800, the centered forest reaches mean squared error 0.91 against 4.51 for Procedure 1 (values multiplied by 10).
Why kernel weights and averaging fall short
The target is a parameter θ(x) defined at each covariate value x by a local estimating equation, with a scoring function ψ and an optional nuisance parameter ν(x). The same framework is said to cover local maximum likelihood, conditional quantiles, average partial effects and Huberized robust regression.
Regression forests stabilize predictions by averaging many noisy tree predictions, which reduces variance. Averaging cannot correct a moment-equation solution that is biased to begin with, so the authors move the forest's role from averaging toward weighting. Kernel weights are an alternative for local estimating equations, but they depend on covariate distance and degrade as the covariate dimension grows.
Different questions can depend on different covariates, so the partitioning rule has to target the parameter of interest rather than a generic signal. Earlier splitting rules were designed case by case, which motivates one rule driven by the moment condition itself.
From tree leaves to forest weights
For a query point x, each tree b defines the set L_b(x) of training examples that fall in the same leaf as x. Each example in that leaf receives equal weight within the tree, and these tree-level weights are then averaged over the B trees: \(\alpha_{bi}(x)=\frac{\mathbf{1}\{X_i\in L_b(x)\}}{|L_b(x)|}\) and \(\alpha_i(x)=\frac{1}{B}\sum_{b=1}^{B}\alpha_{bi}(x)\).
The resulting weights sum to one and form a forest-based neighborhood around x.
The estimate is the minimizer over θ and ν of the squared norm of the weighted sum of scores, and when that minimizer is a unique root the weighted score sum equals zero at the estimate. Because the neighborhood is learned from the forest rather than fixed by a bandwidth, the weights can follow heterogeneity in the parameter.
With the score Y_i minus µ(x), the weighted score condition holds exactly when the estimate equals the average of the tree means. So for conditional means the weighting view and the averaging view give the same estimator, and the generalized method reduces to a standard regression forest.
Splitting on the heterogeneity of θ
A split should reduce the expected squared error of the child estimates of θ(X), and the authors show that, up to a term that does not depend on the split, this error equals a constant minus the expected value of Δ. The authors note that this criterion also accounts for the sampling variance of the child estimates, which can stop the tree from favouring splits that make the model hard to estimate.
Maximizing Δ directly requires solving the estimating equation in every candidate child, which is expensive.
A standard CART regression split on the pseudo-outcomes then maximizes \(\tilde\Delta(C_1,C_2)=\sum_{j=1}^{2}\frac{1}{|\{i:X_i\in C_j\}|}\big(\sum_{i:X_i\in C_j}\rho_i\big)^2\). Proposition 2 states that, when A_P is consistent, the approximate and exact criteria differ by a term of order max{r^2, 1/n_C1, 1/n_C2} in probability. For least-squares regression the labeling step leaves the outcome unchanged up to centering at the parent mean, so the split is the usual one.
Because the criterion is a sum of child terms, every candidate split point along a feature can be scored in a single pass over the parent data.
Assembling the forest with subsampling and honesty
For each tree, a subsample of size s is drawn without replacement and then divided into two halves of equal size. The first half grows the gradient tree, and the second half supplies the examples whose leaf matches the query point x. Those neighbors receive weight, and the final estimate solves the weighted estimating equation with the accumulated weights divided by B.
The gradient tree keeps a queue of nodes and, at each node, solves the estimating equation, computes pseudo-outcomes and attempts a CART split. A node for which no legal split exists is not expanded, and the children of a successful split are added to the queue.
Growing trees on subsamples and using honesty are two ideas the authors carry over from forests for least-squares regression. For a fuller discussion of honesty in forests, the authors refer to Wager and Athey (2018).
What the asymptotic guarantees require
The covariate space is [0,1]^p, the parameters lie in a compact set of R^k, and the covariate density is bounded away from zero and infinity. The expected score M_{θ,ν}(x) is assumed to be Lipschitz in x (Assumption 1) and twice continuously differentiable in the parameters with V(x) invertible (Assumption 2). Assumption 6 states that the score is a negative subgradient of a convex function, and the authors use it only to establish consistency.
Under Assumptions 1 to 6 and Specification 1, Theorem 3 gives convergence in probability of the estimates to (θ(x), ν(x)). The analysis then replaces the estimate by a pseudo-forest built from true influence values, \(\tilde\theta^*(x)=\theta(x)+\sum_{i=1}^n\alpha_i(x)\rho_i^*(x)\), which is an infeasible regression forest with outcomes θ(x) plus ρ*_i(x).
Lemma 4 couples the estimate with this pseudo-forest when trees use subsamples of size \(s=n^{\beta}\) with β in the range given by (13).
Theorem 5 states that, when Var[ρ*_i(x) | X_i = x] > 0, the normalized estimate is asymptotically N(0,1) with variance \(\sigma_n^2(x)=\mathrm{polylog}(n/s)^{-1}s/n\). The polylog factor is bounded away from zero and grows at most polynomially in the log inverse sampling ratio.
Confidence intervals and the variance estimate
Given a consistent estimate of the noise scale, Slutsky's lemma justifies intervals centered on the estimate with half-width Φ^{-1}(1−α/2) times that scale. The pseudo-forest has the same asymptotic variance, so the variance can be studied through it, with \(\mathrm{Var}[\tilde\theta^*(x)]=\xi^\top V(x)^{-1}H_n(x;\theta(x),\nu(x))(V(x)^{-1})^\top\xi\).
The proposed variance estimate replaces V and H_n with consistent estimates, giving \(\hat\sigma_n^2(x)=\xi^\top\hat V_n(x)^{-1}\hat H_n(x)(\hat V_n(x)^{-1})^\top\xi\).
V(x) is a problem-specific curvature term; for instrumental variables it is a 2 by 2 matrix of conditional moments, and for quantile regression it equals the conditional density at the quantile. The inner variance H_n is the harder term, and the authors estimate it with a variant of the bootstrap of little bags.
The ideal half-sampling estimator averages squared differences of the forest score across all half-samples, which is too costly to compute directly. Little bags of trees built on the same half-sample give a between-group and within-group decomposition that approximates this estimator without extra forests. Theorem 6 states that this half-sampling estimator is consistent, so Gaussian intervals built with the estimate asymptotically have nominal coverage.
Local centering against Wager and Athey procedures
Treatment is Bernoulli with probability e(X_i), and the outcome is normal with mean m(X_i) plus (W_i minus 0.5) times τ(X_i) and unit variance. The three simulation designs are heterogeneity without confounding, confounding without heterogeneity, and both together. The authors compare generalized random forests with and without centering against Procedure 1 and Procedure 2 of Wager and Athey (2018), labelled WA-1 and WA-2, using forests with 2,000 trees and 60 simulation replications with 1,000 test points each.
With both confounding and heterogeneity at p = 10 and n = 800, the centered forest has mean squared error 0.91, against 4.51 for WA-1 and 7.67 for WA-2 (values multiplied by 10). Without confounding but with heterogeneity at the same p and n, the centered forest scores 0.87 and WA-1 scores 1.37 (values multiplied by 10).
With confounding and no heterogeneity at p = 10 and n = 800, WA-2 is lowest at 0.16 and the centered forest is at 0.27, while WA-1 scores 0.81 (values multiplied by 10). The authors attribute the centered forest's advantage to orthogonalizing the moment conditions by regressing out the main effect of X_i on W_i and Y_i, following Robinson (1988).
A forest for instrumental variables
The outcome follows Y_i = µ(X_i) + τ(X_i)W_i + ε_i, and the instrument Z_i identifies τ(x) through the ratio of covariances conditional on X_i = x. The moment functions require E[Z_i(Y_i − W_iτ(x) − µ(x)) | X_i = x] = 0 and E[Y_i − W_iτ(x) − µ(x) | X_i = x] = 0, with µ(x) as a nuisance parameter.
The pseudo-outcomes in each parent node are \(\rho_i=(Z_i-Z_P)\big((Y_i-Y_P)-(W_i-W_P)\hat\tau_P\big)\), where the node moments and the parent estimate are used. A CART split is run on these ρ_i, and the final personalized effect estimates come from solving the weighted equation with the forest weights.
Assumption 1 is said to hold when the conditional moments of W, Y, Z and their products are Lipschitz in x. Assumption 2 is said to hold when the instrument is correlated with the received treatment, and Assumptions 3 to 6 hold by the definition of ψ. This section sets up the forest and its assumption checks, and it does not report estimates.
Limitations
When the number of trees B is small, the bootstrap of little bags variance estimates can be negative, and the software avoids this with a Bayesian analysis of variance. That distinction washes out once B is large enough.
The causal forest comparison uses simulated designs only, with 2,000 trees and 60 simulation replications for each setting. No real-data results for the quantile or instrumental variables forests appear in the text analysed here.
The consistency and Gaussianity results hold under Assumptions 1 to 6 and the subsampling rate in (13), and the authors note that the tree splits are not targeted to ν(x), so the estimate of ν(x) may be inaccurate in finite samples. For discontinuous scores such as the quantile score, the analysis assumes only that the expected score varies smoothly in the parameters.
Paper info
- Authors
- Susan Athey, Julie Tibshirani, Stefan Wager
- Venue
- arXiv · Preprint
- First published
- 2016-10-5
- Added
- 2026-11-12
- Updated
- 2018-4-5
- Version
- v4
- arXiv
- 1610.01271
- Category
- stat.ME · econ.EM · stat.ML
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Susan Athey, Julie Tibshirani, Stefan Wager (2016). Generalized Random Forests. arXiv:1610.01271v4. https://arxiv.org/abs/1610.01271v4
BibTeX
@misc{athey2016generalized,
title = {{Generalized Random Forests}},
author = {Susan Athey and Julie Tibshirani and Stefan Wager},
year = {2016},
eprint = {1610.01271},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1610.01271v4}
}