Adapting Neural Networks for the Estimation of Treatment Effects

Claudia Shi, David M. Blei, Victor Veitch

The Challenge of Causal Inference in Deep Learning

In the world of data science, there is a massive gulf between prediction (what will happen?) and causal inference (what happens if I intervene?). While neural networks are world-class at prediction, they often fail at estimating treatment effects—such as the impact of a new drug or policy—from observational data.

The core challenge is confounding: variables that influence both the treatment assignment (who gets the drug) and the outcome (who recovers). Standard practice involves a two-stage process: first, modeling the expected outcome and the "propensity score" (the probability of receiving treatment), and second, plugging those models into a downstream estimator. However, a neural network optimized purely for predictive accuracy might ignore subtle features critical for causal adjustment, or it might overfit to "noise" variables that don't affect the treatment.

This paper asks a fundamental question: How can we adapt the design and training of neural networks so they are "aware" of the downstream goal of causal estimation? To solve this, the authors introduce Dragonnet and targeted regularization, two novel techniques that adapt neural network architectures and training objectives specifically for causal inference.

Architectural and Objective Adaptations

The authors propose two primary adaptations based on insights from the statistical literature on treatment effects:

1. Dragonnet

Dragonnet is a novel "three-headed" neural network architecture. It starts with shared representation layers that map input covariates ($X$) to a dense latent space ($Z$). From this shared base, the network branches into three distinct heads:

  • A head to predict the propensity score (treatment assignment).
  • Two heads to predict the conditional outcomes (one for the treated group, one for the control group).
The Dragonnet architecture, featuring a shared representation layer that branches into a propensity score head and two conditional outcome heads.

By sharing the base layers, the outcome models are forced to use features that are also relevant for predicting treatment. This design is motivated by the statistical principle that the propensity score is a "sufficient statistic" for causal adjustment. By forcing models to prioritize information relevant to treatment assignment, Dragonnet discards irrelevant noise that might otherwise distract standard predictive models.

2. Targeted Regularization (t-reg)

Targeted regularization is a novel loss function component based on semi-parametric estimation theory. It adds a regularization term that nudges the network to satisfy the "non-parametric estimating equation." Essentially, it forces the model to behave in a way that guarantees better asymptotic properties (like robustness and efficiency) "out-of-the-box." This makes the final estimate more reliable even with finite data, offering a more stable alternative to traditional post-hoc adjustments like Targeted Minimum Loss Estimation (TMLE).

Experimental Setup and Key Insights

The authors evaluated their methods on two major semi-synthetic benchmarks where ground-truth causal effects are known:

  • IHDP (Infant Health and Development Program): A standard, smaller dataset (747 observations) used to test how models handle complex, non-linear relationships.
  • ACIC 2018 (Atlantic Causal Inference Conference): A much larger and more diverse collection of datasets featuring 63 different data-generating processes, filtered to focus on scenarios without extreme "overlap violations."

The Prediction-Estimation Trade-off

Interestingly, the authors found that Dragonnet sometimes has worse predictive accuracy for the outcome than simpler models, yet it produces better causal estimates. This highlights a crucial insight: for causal tasks, learning the "right" representation is more important than minimizing raw mean squared error.

End-to-End vs. Multi-Stage Training

The authors compared Dragonnet to a version where the treatment-prediction part is trained first and then frozen (NEDnet). The end-to-end joint training of Dragonnet performed significantly better, suggesting that the "heads" need to influence the "body" of the network simultaneously to learn the optimal causal representation.

Key Results

The combination of Dragonnet and targeted regularization achieves state-of-the-art performance in estimating average treatment effects from observational data.

  • State-of-the-Art on IHDP: Dragonnet with targeted regularization achieved the lowest error ($\Delta_{all} = 0.11$) compared to established baselines like TARNET, CFR, and GANITE.
Performance comparison on the IHDP dataset, demonstrating the superior accuracy of Dragonnet combined with targeted regularization.
  • Dominance on ACIC 2018: On the large-scale ACIC benchmark, Dragonnet reduced the mean absolute error from 1.45 (baseline TARNET) to 0.55, and further to 0.35 when targeted regularization was added.
  • Consistency: The methods showed substantial improvements in about half of the tested scenarios and only mild degradation in others, making them a highly reliable choice for practitioners.

Limitations and Future Directions

While highly effective, the paper notes a few limitations:

  • Overlap Violations: The paper explicitly avoids datasets with "overlap violations"—situations where certain groups of people almost always (or never) receive the treatment. Handling these "positivity" issues remains a major challenge in causal inference.
  • Theoretical Gap: While the empirical results for targeted regularization are exceptionally strong, the authors note they don't yet have a full theoretical explanation for why it outperforms traditional TMLE in finite-sample settings.
  • Expanding Estimands: The current work focuses on the Average Treatment Effect (ATE). Future work could extend these architectures to estimate the effect on the treated (ATT) or perform mediation analysis to understand how a treatment works.

Summary updated

BibTeX
@inproceedings{shi2019adapting,
  author = {Claudia Shi and David M. Blei and Victor Veitch},
  title = {{Adapting Neural Networks for the Estimation of Treatment Effects}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=s0mTxbKgRpc},
}
Figure