Generic machine learning inference on heterogenous treatment effects in randomized experiments

Mert Demirer, Esther Duflo, Iván Fernández‐Val, Victor Chernozhukov2018

TL;DR

This paper introduces a novel "agnostic" framework for inferring heterogeneous treatment effects in randomized experiments, even in high-dimensional settings. By leveraging machine learning (ML) as a flexible tool for prediction and then applying a "variational" inference approach based on data splitting, the authors provide robust estimation and valid inference for key features of treatment effects, overcoming common challenges in ML-based causal inference.

What Problem Does This Paper Address?

In many fields, researchers are not just interested in the average treatment effect (ATE) but also in how treatment effects vary across individuals with different characteristics (heterogeneous treatment effects). Identifying these variations is crucial for understanding mechanisms, tailoring interventions, and making informed policy decisions. However, exploring treatment effect heterogeneity often involves subgroup analysis, which is prone to overfitting, especially when dealing with a large number of potential covariates. Traditional methods struggle in high-dimensional settings where ML methods excel at prediction but lack reliable inference guarantees. This paper tackles the challenge of performing valid inference on heterogeneous treatment effects in high-dimensional settings, where ML methods are used to flexibly model complex relationships.

Methods

The core of the paper's contribution lies in its "agnostic" approach to inference. Instead of directly inferring the conditional average treatment effect (CATE), which is notoriously difficult with ML, the authors focus on inferring "key features" of the CATE. These features include:

  • Best Linear Predictor (BLP) of CATE: A linear combination of ML-derived predictors that best approximates the CATE.
  • Sorted Group Average Treatment Effects (GATES): Average treatment effects for groups defined by quantiles of the ML-predicted treatment effect.
  • Classification Analysis (CLAN): Characterizing the average attributes of the most and least affected groups.

The inference methodology is "variational," meaning it explicitly accounts for two sources of uncertainty:

  1. Estimation uncertainty: Uncertainty in parameter estimates conditional on the ML proxies.
  2. Splitting uncertainty: Uncertainty arising from repeatedly splitting the data into "main" and "auxiliary" samples for ML training and inference.

This is achieved by using multiple random data splits, estimating the target parameters on each split, and then taking medians of point estimates and confidence intervals. This "variational inference" approach ensures uniformly valid inference without requiring strong, often untestable, assumptions about the ML methods themselves.

Datasets

The paper uses two real-world datasets for empirical illustration:

  • Microfinance Availability Experiment (Morocco): A randomized controlled trial (RCT) evaluating the impact of microfinance access on household outcomes.
  • U.S. Current Population Survey (CPS): Observational data used to analyze the gender wage gap.

Key Insights and Ideas

  • Focusing on "Features" of CATE is Key: Directly estimating the full CATE function with ML is hard for inference. By focusing on simpler, interpretable features like BLPs and group averages, valid inference becomes tractable.
  • ML as a Flexible Proxy, Not a Black Box: The framework treats ML methods as powerful tools to generate flexible "proxy predictors" for treatment effects, rather than demanding they produce perfectly consistent estimates of the true CATE.
  • "Variational" Inference for Robustness: Explicitly accounting for uncertainty from both parameter estimation and data splitting (through repeated splits) leads to more reliable and robust inference, especially in complex settings.
  • Agnosticism is a Strength: The approach avoids strong, potentially unrealistic assumptions about ML methods, making it broadly applicable across various ML algorithms (e.g., random forests, neural networks, elastic nets).

Key Results

The empirical applications demonstrate the utility of the proposed methods:

  • Microfinance Availability: The analysis reveals significant heterogeneity in the impact of microfinance on loans, output, and profit. The GATES analysis identifies specific groups of "winners" who benefit substantially, while others see little to no impact. CLAN analysis helps characterize these groups.
  • Gender Wage Gap: The study uncovers substantial heterogeneity in the gender wage gap across workers, with significant differences in average wage gaps between the most and least affected groups. The CLAN analysis highlights characteristics associated with these groups, such as age, experience, and education.
  • Robustness: The results for BLP and GATES are shown to be robust across different ML methods used for proxy prediction.

Limitations and Future Work

  • Computational Cost: The repeated data splitting and ML training can be computationally intensive.
  • Choice of ML Method: While the framework is agnostic, the performance of the inference still depends on the quality of the ML proxies. The paper discusses strategies for choosing the "best" ML method.
  • Future Work: The authors suggest that their variational inference framework could be applied to other problems where sample splitting is used for ML prediction, and that noise reduction strategies could be further explored. They also note that their approach could be extended to other types of causal inference problems beyond treatment effects.

Summary updated

BibTeX
@misc{demirer2018generic,
  author = {Mert Demirer and Esther Duflo and Iván Fernández‐Val and Victor Chernozhukov},
  title = {{Generic machine learning inference on heterogenous treatment effects in randomized experiments}},
  year = {2018},
  doi = {10.1920/wp.cem.2017.6117},
}
Figure