Conditional Counterfactual Mean Embeddings: Doubly Robust Estimation and Learning Rates

Thatchanon Anancharoenkij, Donlapark PonnopratNeurIPS 2026

TL;DR

Knowing the average effect of a treatment can hide wildly different—even bimodal—outcomes across subpopulations. This paper introduces a framework to capture the entire probability distribution of counterfactual outcomes for specific subgroups by embedding those distributions as vectors in a Hilbert space. Better yet, the authors make this estimation "doubly robust," giving you two chances to get your underlying causal models right, and scale it up using neural networks.

What Problem Does This Paper Address?

Imagine testing a new drug. On average, blood pressure drops by 5 points. Success? Not if half the patients drop by 20 points while the other half spike by 10! Traditional causal inference focuses heavily on scalar summaries like the Conditional Average Treatment Effect (CATE). Averages are tidy, but they flatten out critical nuances like skewness, heavy tails, or distinct multimodal subgroups reacting in opposite ways.

To see the full picture, we need the conditional counterfactual distribution—what the entire distribution of outcomes would look like under a treatment, given a specific set of covariates (subpopulation traits). Estimating full distributions from observational data is notoriously tricky because we never see the road not taken (the counterfactual), and the data we do have is tangled up in selection bias (confounding).

Methods

To manipulate entire probability distributions without getting bogged down in parametric assumptions, the authors turn to Kernel Mean Embeddings (KME). Using a mathematical tool called a Reproducing Kernel Hilbert Space (RKHS), you can map an entire probability distribution into a single vector (point) in an infinite-dimensional feature space without losing any distributional information. Here, they target Conditional Counterfactual Mean Embeddings (CCME).

To deal with observational confounding, they adapt Doubly Robust (DR) estimation—a classic causal inference trick—into this functional space. Instead of debiasing a scalar outcome, their key novelty is constructing an RKHS-valued "pseudo-outcome" that debiases the feature map of the outcome. They split the data and run a two-stage Meta-Estimator:

  1. Stage 1 (Nuisance Estimation): Train a propensity score model (probability of getting treatment) and an initial outcome embedding model.
  2. Stage 2 (Pseudo-Outcome Regression): Combine Stage 1 predictions to build debiased pseudo-outcomes, and regress them on the subgroup covariates of interest.

Depending on your compute budget and dataset size ($n$), they instantiate this meta-estimator in three ways:

  • Ridge Regression (RR): Classic kernel ridge regression. Simple, low variance, only two tuning knobs, but requires an $O(n^3)$ matrix inversion.
  • Deep Feature (DF): Replaces the fixed input kernel with an $M$-dimensional neural network feature map ($M \ll n$), shrinking the matrix inversion bottleneck down to a breezy $O(M^3)$.
  • Neural-Kernel (NK): Fixes $M$ grid points in the outcome space ahead of time and uses a neural net to directly predict the basis coefficients—completely eliminating matrix inversions!

Datasets

The authors evaluate their estimators on two setups (no new public benchmarks are introduced, though they craft novel synthetic causal scenarios):

  • Synthetic Multimodal Tabular Data: 10-dimensional covariates ($n$ ranging from $100$ to $10,000$) with non-linear treatment assignment and outcomes driven by heteroscedastic, bimodal noise.
  • Semi-Synthetic Noisy MNIST: 60,000 784-dimensional digit images used to test high-dimensional scalability. To simulate selection bias, an imaginary "budget-constrained denoiser" preferentially cleans bright, high-intensity images, leaving darker images noisy. The goal is to recover the true clean image distribution for each digit class ($0$–$9$).

Key Insights and Ideas

  • Debiasing in Infinite Dimensions: You don't have to collapse distributions into numbers to use doubly robust causal machinery; you can apply the exact same bias-correction algebra directly to vectors representing whole distributions.
  • Double Robustness in Rates: Usually, double robustness means your estimator is consistent if either the propensity model or the outcome model is right. The authors prove something sharper: the Stage 1 finite-sample error is governed by the minimum of the two nuisance errors. Whichever model learns faster sets the pace!
  • Bonus Theoretical Milestone: While proving finite-sample convergence bounds for their causal estimators, the authors inadvertently established the first known finite-sample convergence rates for the standard (non-causal) Deep Feature and Neural-Kernel conditional mean embedding estimators.
  • Fixed Grids Beat Learned Maps on Variance: Theoretically, Neural-Kernel converges faster than Deep Feature because NK fits coefficients onto a fixed subspace chosen before seeing data, whereas DF learns its linear operator from the data, injecting extra variance.

Key Results

  • Resilience to Model Failure: Across $n = 100$ to $10,000$ in synthetic tests, when the propensity model was deliberately broken (using linear logistic regression for a non-linear rule), Inverse Propensity Weighting (IPW) lagged behind while DR stayed sharp. When the outcome model was broken (dropping a key confounder), Plug-In estimators flatlined completely, while DR converged smoothly alongside IPW.
  • Capturing Multimodality: Naive "One-Step" baselines suffered persistent selection bias even at $n = 10,000$, warping the shapes of bimodal counterfactual densities. DR estimators cleanly hugged the ground-truth two-peaked curves.
  • 784D Image Recovery: On semi-synthetic MNIST, naive estimators retrieved digits with artificially thick, bold strokes because selection bias favored bright images. The Deep Feature DR estimator successfully reweighted the distribution, recovering empirical modes (clean digit prototypes) visually indistinguishable from an oracle trained on uncorrupted data.

Limitations and Future Work

  • Missing Lower Bounds: While the authors prove how fast their estimators converge (upper bounds), they haven't yet proven theoretical lower bounds, so it remains an open question whether these rates are minimax optimal.
  • Marginals vs. Joint Counterfactuals: CCME estimates the separate marginal distributions of $Y^1$ (treated) and $Y^0$ (control) for a subgroup. This lets you compute things like quantile or Conditional Value-at-Risk (CVaR) effects. However, it cannot give you the distribution of individual differences ($Y^1 - Y^0$), because you never observe both outcomes for the same person—doing so would require strong extra assumptions like rank invariance.

Summary updated

Abstract

A complete understanding of heterogeneous treatment effects requires fully capturing the conditional distribution of the counterfactual outcomes. To this end, we propose the *Conditional Counterfactual Mean Embeddings* (CCME), a framework that embeds conditional distributions of counterfactual outcomes into a reproducing kernel Hilbert space (RKHS). Under this framework, we develop a two-stage meta-estimator for CCME that accommodates any RKHS-valued regression in each stage. Based on this meta-estimator, we develop three practical CCME estimators: (1) *Ridge Regression* estimator, (2) *Deep Feature* estimator that parameterizes the feature map by a neural network, and (3) *Neural-Kernel* estimator that performs RKHS-valued regression, with the coefficients parameterized by a neural network. We provide finite-sample convergence rates for all estimators, establishing that they possess the double robustness property. Our experiments demonstrate that our estimators accurately recover distributional features including multimodal structure of conditional counterfactual distributions. Our code is available at [this link](https://github.com/donlap/Conditional-Counterfactual-Mean-Embeddings).
BibTeX
@inproceedings{anancharoenkij2026conditional,
  author = {Thatchanon Anancharoenkij and Donlapark Ponnoprat},
  title = {{Conditional Counterfactual Mean Embeddings: Doubly Robust Estimation and Learning Rates}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=WBrsTgkHw7},
}
Figure