TL;DR
While hyperparameter tuning is a staple of predictive machine learning, its role in causal inference is often overlooked. This paper demonstrates that proper tuning and smart data-splitting are critical for Double Machine Learning (DML); specifically, tuning on the full sample or within cross-fitting folds significantly outperforms simple sample splitting, and AutoML frameworks like FLAML offer a robust "set-and-forget" solution for causal estimation.
What Problem Does This Paper Address?
In the world of "Causal Machine Learning," we don't just want to predict an outcome ($Y$); we want to know how much a treatment ($D$) causes that outcome. Double Machine Learning (DML) is a popular framework for this, using ML models to strip away the influence of confounders (called "nuisance parameters").
The catch? If these ML models are poorly tuned (e.g., they overfit or underfit), the resulting causal estimate becomes biased. While we have decades of wisdom on tuning models for pure prediction, there is surprisingly little guidance on how to tune them for causal tasks. Researchers often use "default" settings or arbitrary data-splitting schemes, which can lead to "causal mirages"—statistically significant results that are actually just artifacts of poor tuning.
Methods
The authors evaluate the relationship between predictive performance and causal accuracy using two primary causal models:
- Partially Linear Regression (PLR): Assumes the treatment effect is constant across individuals.
- Interactive Regression Model (IRM): A more flexible model that allows the treatment effect to vary (heterogeneity).
They test four "learners" (Lasso, Random Forest, XGBoost, and the AutoML framework FLAML) across three different sample splitting schemes for tuning:
- Full Sample: Tune hyperparameters on the entire dataset, then use those parameters in the DML cross-fitting process.
- Split Sample: Divide the data in half; tune on one half, perform causal estimation on the other.
- On Folds: Perform hyperparameter tuning independently within each fold of the cross-fitting process.
Datasets
The study relies on a massive simulation benchmark:
- ACIC 2019 Data Challenge: 1,600 datasets derived from 16 different Data Generating Processes (DGPs) with varying levels of complexity, sparsity, and linearity.
- BCH DGP: A high-dimensional sparse setup (from Belloni et al., 2013) used to study how results scale with sample size.
- IHDP: A semi-synthetic benchmark based on a real-world infant health program, used to compare DML against other state-of-the-art causal methods.
Key Insights and Ideas
- The Efficiency Trap: In small-to-medium datasets, the "Split Sample" approach is surprisingly poor. By throwing away 50% of the data for tuning, you lose too much signal. "Full Sample" or "On Folds" tuning is much more efficient and leads to lower error.
- AutoML is a Causal Powerhouse: FLAML (an AutoML library) performed exceptionally well across almost all scenarios. It adapts to the underlying structure of the data without requiring the researcher to manually guess whether a Lasso or a Random Forest is more appropriate.
- Predictive Loss as a Compass: The authors found that the "combined loss" (a metric measuring how well the ML models predict both the outcome and the treatment) is a reliable proxy for causal health. If your nuisance models are predicting poorly, your causal estimate is likely biased.
- Model Selection via Prediction: You can actually use predictive MSE on the outcome variable ($Y$) to decide whether to use a simple model (PLR) or a complex one (IRM). If the IRM predicts $Y$ significantly better, it’s a sign that treatment effects are likely heterogeneous.
Key Results
- Tuning vs. Defaults: Using default hyperparameters (untuned) led to massive biases and poor "coverage" (meaning the confidence intervals were often wrong).
- Convergence: As sample size increases, the gap between different tuning schemes vanishes. However, for the sample sizes typical in social science or medical research ($n=1000$ to $2000$), the choice of tuning scheme is decisive.
- Competitive Performance: DML combined with FLAML achieved a Mean Absolute Error (MAE) of 0.110 on the IHDP benchmark, making it just as accurate as specialized, "heavyweight" causal architectures like RieszNets and DragonNet.
Limitations and Future Work
The authors note that while predictive performance is a good guide, it isn't perfect; sometimes "greedily" minimizing predictive loss doesn't lead to the absolute lowest causal bias. Furthermore, the study focused on continuous outcomes and binary/continuous treatments; the authors suggest that future work should explore Neural Networks within this framework and extend the study to Conditional Average Treatment Effects (CATE) to see how tuning impacts personalized medicine or targeted policy interventions.
Summary updated