---
title: 'ForestRiesz: Robust Semiparametric Inference'
url: https://www.emergentmind.com/topics/forestriesz
type: topic
---

# ForestRiesz: Robust Semiparametric Inference

ForestRiesz refers to a nonparametric method for automatic, debiased machine learning of linear functionals—particularly in causal inference settings involving high-dimensional or nonparametric regression functions, and in the presence of non-random treatment assignment and/or outcome selection. The ForestRiesz framework leverages the Riesz representation theorem and random forest machinery to construct a locally linear estimator of the Riesz representer, enabling efficient, robust, and stable semiparametric inference with automatic debiasing and double robustness properties [2110.03031, 2601.08643].

## 1. Riesz Representation and the Debiasing Problem

Let $W = (Y, Z)$ denote the data, with $g_0(Z) = E[Y \mid Z]$ the regression function of interest. For a continuous linear functional $\psi(g)$, there exists a unique Riesz representer $\alpha_0(Z)$ such that
\[
\psi(g) = E[m(W; g)] = E[\alpha_0(Z) g(Z)]
\]
for all square-integrable $g$. The target estimand is $\theta_0 = \psi(g_0) = E[\alpha_0(Z) g_0(Z)]$. In high-dimensional and nonparametric regimes, the naive plug-in estimator is subject to regularization-induced bias that can be of order $n^{-1/2}$ or larger. The correction term
\[
\psi(\widehat{g}) + E_n[\alpha_0(Z) \{Y - \widehat{g}(Z)\}]
\]
(the "one-step" or "double-robust" correction) cancels leading bias and achieves asymptotically linear estimation if $\alpha_0$ is accurately estimated.

The Riesz representer $\alpha_0$ solves the variational problem
\[
\alpha_0 = \arg\min_\alpha E[\alpha(Z)^2 - 2 m(W; \alpha)],
\]
where $E[m(W; \alpha)] = E[\alpha_0(Z) \alpha(Z)]$. This variational characterization is central for the automatic machine learning of $\alpha_0$ [2110.03031].

## 2. ForestRiesz Estimator: Construction and Algorithmic Principles

ForestRiesz models $\alpha(Z) \approx \phi(T, X)^{\top} \beta(X)$, where $\phi(T, X)$ is a chosen feature map and $\beta(X)$ is a locally linear coefficient function estimated nonparametrically.

**Random Forest Implementation**:
- **Node-wise local moments**: For each node $N$ in the covariate space, compute:
  \[
  J(N) = \frac{1}{|N|} \sum_{i \in N} \phi(Z_i) \phi(Z_i)^\top, \qquad M(N) = \frac{1}{|N|} \sum_{i \in N} m(W_i; \phi).
  \]
  The local estimator is $\hat{\beta}(N) = J(N)^{-1} M(N)$.

- **Splitting criterion**: Candidate splits are evaluated via local Riesz loss reduction (or equivalently, maximization of a negative Riesz loss criterion), ensuring balance and stability.

- **Forest weights and prediction**: Forest similarity weights $\omega_i(x)$ are computed by averaging indicator functions over leaves that contain $x$ in each tree,
  \[
  \omega_i(x) = \frac{1}{T} \sum_{t=1}^T \frac{\mathbf{1}\{i \in \ell_t(x)\}}{|\ell_t(x)|}.
  \]
  The estimator $\hat{\alpha}(Z)$ is given by locally weighted predictions of $\phi(Z)^{\top} \hat{\beta}(X)$.

- **Debiased functional estimation**: The final estimator is
  \[
  \widehat{\theta} = E_n[m(W; \widehat{g}) + \hat{\alpha}(Z) \{Y - \widehat{g}(Z)\}].
  \]
Cross-fitting is standard: the sample is partitioned, with ForestRiesz fitted on folds excluding the target data points to avoid overfitting and induce orthogonality [2110.03031, 2601.08643].

## 3. Theoretical Guarantees and Statistical Properties

ForestRiesz achieves several desirable asymptotic properties under standard conditions:
- **$\sqrt{n}$-consistency and asymptotic normality**: Provided each of $\hat{g}$ and $\hat{\alpha}$ converge to their population targets at rates $o_p(n^{-1/4})$, the ForestRiesz estimator satisfies
  \[
  \sqrt{n} (\widehat{\theta} - \theta_0) \to_d N(0, \mathrm{Var}[\psi_0(W)]),
  \]
  where the influence function is $\psi_0(W) := m(W; g_0) + \alpha_0(Z)[Y - g_0(Z)] - \theta_0$.

- **Double robustness and Neyman orthogonality**: The estimation bias satisfies
  \[
  E[S(W; g, \alpha)] = -E[(\alpha(Z) - \alpha_0(Z)) (g(Z) - g_0(Z))]
  \]
  so that consistency obtains if either $\alpha=\alpha_0$ or $g=g_0$ is consistently estimated; the influence function is orthogonal to estimation errors in $g$ and $\alpha$ [2110.03031].

- **No reliance on explicit inverse-propensity weights**: ForestRiesz circumvents instability from small probability weights by direct local moment matching within the forest, enhancing robustness compared to standard double machine learning approaches that rely on inverse propensity estimation [2601.08643].

The following table summarizes key asymptotic results:

| Property                           | Description                                     | Condition                                 |
|-------------------------------------|-------------------------------------------------|-------------------------------------------|
| $\sqrt{n}$-consistency              | $\widehat{\theta}$ semiparametric efficiency    | $\| \hat{g} - g_0 \| \cdot \| \hat{\alpha} - \alpha_0 \| = o_p(n^{-1/2})$                  |
| Local CLT for $\hat{\beta}(x)$      | $\sqrt{n}(\hat{\beta}(x) - \beta_0(x))$ normal | Local identification, positive definite $J(x)$     |
| Riesz consistency                   | $\|\hat{\alpha} - \alpha_0\|_2^2 = O_p(d n^{-1})$ | ForestRiesz regularity, moment bounds     |

## 4. Application in Sample Selection Models and Bias Decomposition

ForestRiesz extends naturally to causal inference under sample selection, where both treatment assignment and outcome observability can be non-random [2601.08643]. For sample selection average treatment effect estimation, the Riesz representer admits an explicit expression involving treatment and selection propensities, and the bias from omitting latent confounders can be decomposed as
\[
\theta_0 - \theta_s = E[(g_0 - g_s)(\alpha_0 - \alpha_s)],
\]
with an upper bound $|\theta_0 - \theta_s|^2 \leq \widetilde{S}^2 C_Y^2 C_S^2$, where:
- $\widetilde{S}^2$ is a data-identified variance factor;
- $C_Y^2$ measures outcome confounding strength (partial $R^2$ with respect to latent $A$);
- $C_S^2$ is the selection confounding strength (partial $R^2$ in the selection index).

ForestRiesz facilitates stable estimation in these settings, where direct propensity-score based methods can be numerically unstable. A quasi-Gaussian latent-index model provides a calibration method for sensitivity analysis, mapping the strength of unobserved confounding to the potential for treatment effect estimate overturning.

## 5. Simulation and Empirical Evidence

In simulation studies, ForestRiesz is benchmarked against conventional double machine learning (SSM) and naive approaches (IRM) [2601.08643]. In a standard MAR selection design for ATE:
- Both SSM and ForestRiesz recover the truth as $n$ increases.
- ForestRiesz demonstrates superior stability and faster bias decay with default tunings; SSM can require careful hyperparameter adjustment.

Empirically, in U.S. gender wage gap analysis using American Community Survey data (2016), ForestRiesz yields larger estimated wage gaps (in absolute value) compared to unadjusted and propensity-score-based approaches. For example:
- For college graduates, ForestRiesz estimates are $-0.128$ (SE 0.002), versus $-0.0989$ for IRM ($n=297,\!178$).
- The approach detects underestimation of the wage gap by models that ignore sample selection.

Sensitivity analysis delivers explicit robustness values: overturning the wage gap would require unobserved confounding (partial $R^2>6.3\%$), implying robustness to substantial levels of hidden selection bias.

## 6. Methodological Implications and Extensions

ForestRiesz provides a unified and robust estimator for general linear functionals—including but not limited to average treatment effects and average marginal effects—in the presence of complex sampling, high-dimensional covariates, and selective outcome observability. The method exploits the structure of the Riesz representer to automate debiasing and sidestep tuning-sensitive propensity or density estimation. This suggests ForestRiesz is particularly well-suited for finite samples, ill-posed inverse problems, and any context where orthogonality and stability are essential [2110.03031, 2601.08643].

The integration of locally linear random forests for Riesz learning, coupled with doubly-robust cross-fitting and explicit influence-function-based sensitivity analysis, makes ForestRiesz a comprehensive tool for practitioners handling bias, regularization, and selection in modern causal inference frameworks.

Source: https://www.emergentmind.com/topics/forestriesz