Causal Representation Learning with Generative Artificial Intelligence: Application to Texts as Treatments

Kosuke Imai, Kentaro Nakamura
10/1/2024
24 citations
stat.APcs.CLcs.LG

No official code found. Best implementation: k-nakam/gpi_replication (8 stars, Python, last commit 2026-02-08).

Abstract

In this paper, we demonstrate how to enhance the validity of causal inference with unstructured high-dimensional treatments like texts, by leveraging the power of generative Artificial Intelligence (GenAI). Specifically, we propose to use a deep generative model such as large language models (LLMs) to efficiently generate treatments and use their internal representation for subsequent causal effect estimation.

Show full abstract

We show that the knowledge of this true internal representation helps disentangle the treatment features of interest, such as specific sentiments and certain topics, from other possibly unknown confounding features. Unlike existing methods, the proposed GenAI-Powered Inference (GPI) methodology eliminates the need to learn causal representation from the data, and hence produces more accurate and efficient estimates. We formally establish the conditions required for the nonparametric identification of the average treatment effect, propose an estimation strategy that avoids the violation of the overlap assumption, and derive the asymptotic properties of the proposed estimator through the application of double machine learning. Finally, using an instrumental variables approach, we extend the proposed GPI methodology to the settings in which the treatment feature is based on human perception. The GPI is also applicable to text reuse where an LLM is used to regenerate existing texts. We conduct simulation and empirical studies, using the generated text data from an open-source LLM, Llama~3, to illustrate the advantages of our estimator over state-of-the-art causal representation learning algorithms.

View on arXivView PDF

Code Implementations(1)

Replication file for "Causal Representation Learning with Generative Artificial Intelligence: Application to Texts as Treatments"

81Python, RAug 3, 20259 months ago

Similar Papers

Cite this paper

@article{imai2024causal,
  title  = {Causal Representation Learning with Generative Artificial Intelligence: Application to Texts as Treatments},
  author = {Kosuke Imai and Kentaro Nakamura},
  year   = {2024},
  eprint = {2410.00903},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.00903v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.00903.svg)](https://codeofpaper.com/paper/2410.00903)

Discussion