Assessment of Heterogeneous Treatment Effect Estimation Accuracy via Matching

Zijun Gao, Trevor Hastie, Robert Tibshirani · DOI

Abstract

We study the assessment of the accuracy of heterogeneous treatment effect (HTE) estimation, where the HTE is not directly observable so standard computation of prediction errors is not applicable. To tackle the difficulty, we propose an assessment approach by constructing pseudo-observations of the HTE based on matching. Our contributions are three-fold: first, we introduce a novel matching distance derived from proximity scores in random forests; second, we formulate the matching problem as an average minimum-cost flow problem and provide an efficient algorithm; third, we propose a match-then-split principle for the assessment with cross-validation. We demonstrate the efficacy of the assessment approach on synthetic data and data generated from a real dataset.

Introduction

In modern data science, estimating Heterogeneous Treatment Effects (HTE)—the individualized impact of an intervention—is critical for fields ranging from personalized medicine to targeted marketing. However, HTE estimation faces a unique challenge known as the "Fundamental Problem of Causal Inference": for any given individual, we can observe the outcome under treatment or control, but never both simultaneously.

Because the ground truth HTE is unobservable, standard model evaluation metrics like Mean Squared Error (MSE) cannot be directly applied to a validation set. This makes hyperparameter tuning and model selection notoriously difficult. This paper introduces a framework to create "pseudo-observations" of treatment effects through a novel matching process, allowing researchers to evaluate HTE models as if the ground truth were known.

Methodology

The authors propose a three-pronged approach to bridge the gap between unobserved counterfactuals and model assessment.

1. Random Forest Proximity Distance

Standard matching often relies on Euclidean distance or propensity scores. However, Euclidean distance struggles in high-dimensional spaces, and propensity scores do not account for the outcome variable. The authors introduce a distance metric based on Random Forest proximity scores. By training a forest on the control group, they determine the "closeness" of units based on how frequently they land in the same terminal leaf nodes. This approach is more robust than using estimated mean functions, which can be overly sensitive to outliers.

Figure 1: Comparison of matching strategies. Panel (a) shows a match $(t_1, c_2)$ favored by the estimated control mean function, while panel (b) shows a match $(t_1, c_1)$ favored by the proximity score distance, which better captures local structure.

2. Average Distance Minimization

Traditional matching algorithms typically minimize the total distance across all pairs. The authors argue that this can force "bad" matches to satisfy global constraints. Instead, they propose minimizing the average distance, which allows the algorithm to leave certain units unmatched if no suitable partner exists. This translation-invariant approach is formulated as an average minimum-cost flow problem, solvable in $O(n^3 \log n)$ time.

Figure 2: Illustration of matching configurations. The proposed method seeks to avoid undesirable pairs (a) and unused units (b) to achieve a desired match (c) that optimizes the average distance and improves the reliability of pseudo-observations.

3. The Match-Then-Split Principle

In standard cross-validation (CV), data is split into folds before matching. However, smaller folds lead to lower-quality matches. The authors propose matching on the entire dataset first and then splitting the resulting pairs into folds. They demonstrate that this does not constitute "data snooping" because the matching distance is calculated without reference to the treatment effects themselves, preserving the integrity of the validation process.

Experimental Evaluation

The researchers validated their approach using both synthetic and semi-synthetic datasets:

  • Synthetic Data: In linear HTE models, the proposed "combo" method (RF proximity + average distance + match-then-split) achieved validation curves with an $R^2$ as high as 1.00 relative to the "oracle" (the true, hidden effect). It remained highly effective ($R^2 \approx 0.92$) even under non-linear misspecification.
  • SPRINT Data: Using features from the Systolic Blood Pressure Intervention Trial, the authors simulated outcomes to test model tuning. Their method was the only one to correctly identify the "U-shaped" error curve, successfully flagging when a model began to overfit. Other methods, such as simple response prediction, failed to show this increase in error, making them unsuitable for hyperparameter tuning.

Conclusion

By transforming the unobservable HTE problem into a manageable matching problem, this research provides a robust toolkit for model selection in causal inference. While future work is needed to scale these $O(n^3)$ algorithms to massive datasets and to further refine uncertainty quantification, the "match-then-split" framework offers a significant step forward in making HTE estimation as verifiable as standard supervised learning.

Summary updated

BibTeX
@inproceedings{gao2021assessment,
  author = {Zijun Gao and Trevor Hastie and Robert Tibshirani},
  title = {{Assessment of Heterogeneous Treatment Effect Estimation Accuracy via Matching}},
  booktitle = {Statistics},
  year = {2021},
  doi = {10.1002/sim.9010},
}
Figure