TARNet and Dragonnet: Causal Inference Between S- And T-Learners

Robert Kübler5 Mar 2024

Problem

A churn model says who will leave, but not whether a coupon will keep them. To decide whom to treat, you need the individual treatment effect: the outcome with the treatment minus the outcome without it. The two standard estimators fail in opposite ways. An S-learner can ignore the treatment column when X has hundreds of features, which gives zero effects everywhere. A T-learner splits the data by arm, so the treated model is weak when few customers got the treatment.

Example from the article: a company wants to know which customers who are likely to leave should get a coupon.

Solution in brief

Use a neural network that sits between the S- and T-learners. A shared trunk processes the features, and the treatment indicator selects one of two output heads (TARNet). Dragonnet adds a third head that predicts the probability of treatment, which regularizes the shared representation.

Questions this case answers
  • How to estimate individual treatment effects from observational data when a single outcome model ignores a weak treatment signal and per-arm models starve on a small treated group
  • How to estimate the effect of an intervention (such as a coupon) for each customer when an S-learner ignores the treatment and a T-learner has too few treated rows?
  • How to build a neural network that is forced to use the treatment variable when estimating uplift?
  • How to regularize a treatment-effect network with the propensity score?

Tools and methods

  • S-learner — one model with the treatment as a feature; baseline that can ignore the treatment.
  • T-learner — two models, one per arm; baseline that suffers when one arm is small.
  • TARNet — shared trunk plus treatment-selected heads; trained as one model.
  • Dragonnet — TARNet plus a propensity-score head.
  • TensorFlow — framework used for the implementation.
Continue reading — it's free

Google or a one-time email code. No password.