Counterfactual Causal Inference in Natural Language with Large Language Models
Gaël Gendron, Jože M. Rožanec, Michael Witbrock, Gillian Dobbie
TL;DR
This work tackles the problem of extracting causal structure from unstructured natural language and performing counterfactual inference. It introduces an end-to-end framework that uses LLMs to extract instantiated causal graphs from text, merges graphs across sources, and then applies a structural causal model–based counterfactual inference pipeline with LLM-driven inference. Experiments on synthetic data (Cladder) and real-world news demonstrate that LLMs can recover the graph structure, but the reasoning/prediction step remains the bottleneck, highlighting the need for more robust causal inference within LLMs. The approach offers interpretable, auditable causal reasoning from text and points to future directions such as counterfactual self-learning and ground-truth counterfactual data to enable more reliable real-world causal analysis and strategic foresight.
Abstract
Causal structure discovery methods are commonly applied to structured data where the causal variables are known and where statistical testing can be used to assess the causal relationships. By contrast, recovering a causal structure from unstructured natural language data such as news articles contains numerous challenges due to the absence of known variables or counterfactual data to estimate the causal links. Large Language Models (LLMs) have shown promising results in this direction but also exhibit limitations. This work investigates LLM's abilities to build causal graphs from text documents and perform counterfactual causal inference. We propose an end-to-end causal structure discovery and causal inference method from natural language: we first use an LLM to extract the instantiated causal variables from text data and build a causal graph. We merge causal graphs from multiple data sources to represent the most exhaustive set of causes possible. We then conduct counterfactual inference on the estimated graph. The causal graph conditioning allows reduction of LLM biases and better represents the causal estimands. We use our method to show that the limitations of LLMs in counterfactual causal reasoning come from prediction errors and propose directions to mitigate them. We demonstrate the applicability of our method on real-world news articles.
