Counterfactual Causal Inference in Natural Language with Large Language Models

Gaël Gendron, Jože M. Rožanec, Michael Witbrock, Gillian Dobbie
10/8/2024
cs.CLcs.LG

No official code found. Best implementation: Strong-AI-Lab/counterfactual-llm-inference (16 stars, MIT, last commit 2024-10-02).

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.

View on arXivView PDF

Code Implementations(1)

MIT
163PythonSep 22, 20242 years agoMIT

Similar Papers

Cite this paper

@article{gendron2024counterfactual,
  title  = {Counterfactual Causal Inference in Natural Language with Large Language Models},
  author = {Gaël Gendron and Jože M. Rožanec and Michael Witbrock and Gillian Dobbie},
  year   = {2024},
  eprint = {2410.06392},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.06392v1}
}

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.06392.svg)](https://codeofpaper.com/paper/2410.06392)

Discussion