Integrating Unstructured Text into Causal Inference: Empirical Evidence from Real Data
Boning Zhou, Ziyu Wang, Han Hong, Haoqi Hu
TL;DR
This paper addresses the challenge of performing causal inference when structured tabular data are unavailable by leveraging unstructured text with transformer-based language models. It builds an Interactive Regression Model (IRM) and employs cross-fitting, doubly robust labeling, and best linear predictor concepts to estimate ATE, ATET, GATE, and CATE from text and from numeric data, enabling direct comparison on real-world data. Using an anti-counterfeit campaign dataset, the authors show that text-derived causal estimates are highly consistent with those from structured data across population, group, and individual levels, with lift curves indicating practical predictive utility. The work demonstrates the viability of text-only causal inference for timely, data-driven business decisions and lays groundwork for future extensions to continuous or multi-treatment scenarios and multi-modal training.
Abstract
Causal inference, a critical tool for informing business decisions, traditionally relies heavily on structured data. However, in many real-world scenarios, such data can be incomplete or unavailable. This paper presents a framework that leverages transformer-based language models to perform causal inference using unstructured text. We demonstrate the effectiveness of our framework by comparing causal estimates derived from unstructured text against those obtained from structured data across population, group, and individual levels. Our findings show consistent results between the two approaches, validating the potential of unstructured text in causal inference tasks. Our approach extends the applicability of causal inference methods to scenarios where only textual data is available, enabling data-driven business decision-making when structured tabular data is scarce.
