Do LLMs Have the Generalization Ability in Conducting Causal Inference?

Chen Wang, Dongming Zhao, Bo Wang, Ruifang He, Yuexian Hou
10/15/2024
cs.CL

No official code found. Best implementation: prayingsociety/GeneralCI (2 stars, last commit 2025-04-28). 1 more below.

Abstract

In causal inference, generalization capability refers to the ability to conduct causal inference methods on new data to estimate the causal-effect between unknown phenomenon, which is crucial for expanding the boundaries of knowledge. Studies have evaluated the causal inference capabilities of Large Language Models (LLMs) concerning known phenomena, yet the generalization capabilities of LLMs concerning unseen phenomena remain unexplored. In this paper, we selected four tasks: Causal Path Discovery (CP), Backdoor Adjustment (BA), Factual Inference (FI), and Counterfactual Inference (CI) as representatives of causal inference tasks. To generate evaluation questions about previously unseen phenomena in new data on the four tasks, we propose a benchmark generation framework, which employs randomly generated graphs and node names to formulate questions within hypothetical new causal scenarios. Based on this framework, we compile a benchmark dataset of varying levels of question complexity. We extensively tested the generalization capabilities of five leading LLMs across four tasks. Experiment results reveal that while LLMs exhibit good generalization performance in solving simple CP, FI, and complex CI questions, they encounter difficulties when tackling BA questions and face obvious performance fluctuations as the problem complexity changes. Furthermore, when the names of phenomena incorporate existing terms, even if these names are entirely novel, their generalization performance can still be hindered by interference from familiar terms.

View on arXivView PDF

Code Implementations(2)

A benchmark generation framework for evaluating the generalization ability of large language models in causal inference tasks.

21PythonOct 15, 20241 years ago
totoberni/RGCICommunity64%

Reproducing Chen Wang et al.'s paper [https://arxiv.org/abs/2410.11385]. Code available on the GeneralCI repository [https://github.com/prayingsociety/GeneralCI.git]

00Shell, PythonMay 17, 20251 years ago

Cite this paper

@article{wang2024llms,
  title  = {Do LLMs Have the Generalization Ability in Conducting Causal Inference?},
  author = {Chen Wang and Dongming Zhao and Bo Wang and Ruifang He and Yuexian Hou},
  year   = {2024},
  eprint = {2410.11385},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.11385v1}
}

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

Discussion