On the Estimation of Treatment Effect with Text Covariates

Liuyi Yao, Sheng Li, Yaliang Li, Hongfei Xue, Jing Gao, Aidong Zhang

Introduction

Estimating causal treatment effects from observational data is a cornerstone of decision-making in fields ranging from medicine to marketing. A primary challenge in this domain is controlling for confounding variables—covariates that influence both the treatment assignment and the final outcome. While methods for structured numerical data are well-established, the increasing prevalence of unstructured text (e.g., clinical notes, product reviews) as a source of information introduces unique complexities.

The Challenge: Nearly Instrumental Variables

A significant hurdle when using text as a covariate is the presence of nearly instrumental variables. These are features within the text that strongly predict the treatment assignment but have little to no direct impact on the outcome. In traditional causal inference, conditioning on such variables can paradoxically increase estimation bias rather than reduce it.

Causal graph representing the relationships between text covariates (T), latent representations (Z), treatment (W), and outcome (Y).

As shown in the causal diagram above, the goal is to extract a representation $Z$ from the text $T$ that captures necessary confounding information while filtering out bias-inducing components. Because textual data is high-dimensional and dense, simple feature selection methods like LASSO often fail to isolate these variables effectively.

The CTAM Framework

To address this, the authors propose CTAM (Conditional Treatment-Adversarial learning based Matching). This method leverages adversarial training to learn a "clean" latent representation of text covariates.

The CTAM architecture consists of three integrated components:

  1. Text Processing: Unstructured text is converted into numerical vectors (using GloVe embeddings) and combined with other covariates.
  2. Conditional Treatment-Adversarial Learning: This is the core innovation. A minimax game is played between a representation network and a "Conditional Treatment Discriminator." The discriminator attempts to predict the treatment $W$ using the latent representation $Z$ and the potential outcomes $Y$. Simultaneously, the representation network is trained to generate a $Z$ that makes it impossible for the discriminator to succeed. This forces the network to discard information that is purely predictive of the treatment.
  3. Nearest Neighbor Matching (NNM): Once a bias-free representation $Z$ is obtained, standard matching techniques are applied in the latent space to estimate the Average Treatment Effect (ATE) and other causal metrics.

Experimental Evaluation

The authors evaluated CTAM across diverse datasets to demonstrate its robustness:

  • News Dataset: In this semi-synthetic text-heavy task, CTAM significantly outperformed baselines like BART and STM, achieving the lowest error in estimating heterogeneous effects (PEHE of 2.06).
  • IHDP Dataset: On this standard numerical benchmark, CTAM achieved state-of-the-art results, proving that adversarial filtering is beneficial even for non-textual data.
  • CFPB Dataset: Using real-world consumer complaint data, the authors demonstrated qualitatively that CTAM successfully reduced the mutual information between specific words and treatment assignments, effectively "scrubbing" the bias.

Conclusion

CTAM provides a powerful framework for causal inference with text by explicitly addressing the problem of nearly instrumental variables through adversarial learning. By conditioning the discriminator on outcomes, the model preserves essential signals while filtering out treatment-assignment bias. Future work may involve integrating more sophisticated text encoders, such as Transformers, to capture even deeper semantic nuances in the confounding variables.

Summary updated

BibTeX
@inproceedings{yao2019estimation,
  author = {Liuyi Yao and Sheng Li and Yaliang Li and Hongfei Xue and Jing Gao and Aidong Zhang},
  title = {{On the Estimation of Treatment Effect with Text Covariates}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/570},
}
Figure