Detecting and Mitigating Treatment Leakage in Text-Based Causal Inference: Distillation and Sensitivity Analysis
Adel Daoud, Richard Johansson, Connor T. Jerzak
TL;DR
This paper addresses bias from treatment leakage when using text as a proxy for unobserved confounders in causal inference. It formalizes leakage, and introduces four distillers— similarity-based passage removal, distant supervision classification, salient feature removal, and iterative nullspace projection—to purge treatment-predictive content while preserving confounding information. Through simulations and an IMF–child health case study, it shows moderate distillation often achieves the best bias-variance trade-off, while overly stringent distillation can inflate variance and erode confounding signals. The work offers a practical leakage-sensitivity analysis workflow, providing theoreticalClarifications, methodological tools, and actionable guidance for researchers employing text data in causal questions.
Abstract
Text-based causal inference increasingly employs textual data as proxies for unobserved confounders, yet this approach introduces a previously undertheorized source of bias: treatment leakage. Treatment leakage occurs when text intended to capture confounding information also contains signals predictive of treatment status, thereby inducing post-treatment bias in causal estimates. Critically, this problem can arise even when documents precede treatment assignment, as authors may employ future-referencing language that anticipates subsequent interventions. Despite growing recognition of this issue, no systematic methods exist for identifying and mitigating treatment leakage in text-as-confounder applications. This paper addresses this gap through three contributions. First, we provide formal statistical and set-theoretic definitions of treatment leakage that clarify when and why bias occurs. Second, we propose four text distillation methods -- similarity-based passage removal, distant supervision classification, salient feature removal, and iterative nullspace projection -- designed to eliminate treatment-predictive content while preserving confounder information. Third, we validate these methods through simulations using synthetic text and an empirical application examining International Monetary Fund structural adjustment programs and child mortality. Our findings indicate that moderate distillation optimally balances bias reduction against confounder retention, whereas overly stringent approaches degrade estimate precision.
