CausalBench: A Comprehensive Benchmark for Causal Learning Capability of Large Language Models

Yu Zhou, Xingyu Wu, Beicheng Huang, Jibin Wu, Liang Feng, Kay Chen Tan · DOI

Abstract

The ability to distinguish between correlation and causation is a hallmark of human intelligence and a prerequisite for robust artificial intelligence. While Large Language Models (LLMs) demonstrate remarkable performance in linguistic tasks, their capacity for genuine causal reasoning remains under-explored. We introduce CausalBench, a rigorous evaluation framework designed to probe the causal discovery capabilities of LLMs. By testing models on 15 real-world datasets across three hierarchical tasks and four prompt formats, we find that LLMs primarily function as "causal parrots," leveraging semantic priors rather than statistical induction. Our results highlight a significant performance gap between closed-source models like GPT-4 and open-source alternatives, as well as a sharp decline in accuracy as causal networks grow in complexity.

Introduction

Causality—the understanding of "why" events occur—is essential for counterfactual reasoning and avoiding the pitfalls of spurious correlations. Traditional causal discovery relies on statistical algorithms to infer structures from data. In contrast, LLMs are trained on vast corpora of human text, leading to a fundamental question: do these models understand the underlying causal mechanisms of the world, or are they merely identifying patterns in language?

Existing benchmarks for LLM causality often suffer from small sample sizes, reliance on private data, or simplistic prompting. CausalBench addresses these limitations by utilizing established datasets from the causal research community (e.g., the bnlearn repository) to provide a standardized "gold standard" for evaluation.

Methodology and Framework

CausalBench evaluates LLMs through a multi-layered approach that scales in both task difficulty and prompt complexity.

Evaluation Tasks

The benchmark defines three core tasks of increasing difficulty:

  1. Correlation Identification: Determining if a statistical relationship exists between two variables.
  2. Causal Skeleton Identification: Identifying an undirected connection between variables without necessarily knowing the direction.
  3. Causality Identification: Correctly identifying the direction of the causal influence (e.g., Smoking → Cancer).

Prompting Strategies

To understand how LLMs integrate different types of information, we employ four prompt formats:

  • Variable Names: Testing zero-shot semantic reasoning.
  • Background Knowledge: Supplementing names with domain information from external knowledge bases like Wikipedia.
  • Structured Data: Providing raw numerical matrices (500–1500 samples) to test statistical induction.
  • Combined Prompt: Integrating all available information (names, background, and data).
Overview of the CausalBench framework including tasks, prompts, and dataset scales.

Experimental Setup

We evaluated a wide range of LLMs, including the GPT-4 series, LLaMA, Falcon, and OPT. The benchmark utilizes 15 real-world datasets categorized by scale:

  • Small (2–15 nodes): e.g., Asia, Cancer.
  • Medium (15–50 nodes): e.g., Child, Alarm.
  • Large/Very Large (50–109 nodes): e.g., Hailfinder, Pathfinder.

Key Insights and Results

Our analysis reveals several critical findings regarding the current state of LLM causal reasoning.

The Semantic Bias

LLMs exhibit a heavy reliance on semantics. They perform significantly better when variable names are descriptive (e.g., "Smoking" and "Lung Cancer") compared to when they are abstract or anonymized (e.g., "s2251"). This suggests that LLMs "infer" causality from pre-training knowledge rather than "calculating" it from provided data.

Structural Strengths and Weaknesses

LLMs are adept at identifying sequential "chain" structures (A → B → C), likely due to their training on sequential text. However, they consistently fail at "collider" structures (A → C ← B), a fundamental logic pattern that traditional causal algorithms handle with ease. Furthermore, LLMs tend to produce "dense" graphs, predicting far more connections than actually exist, resulting in high false-positive rates compared to the sparse, precise graphs generated by traditional methods.

Performance Scaling and the Capability Gap

As shown in our comparative analysis, GPT-4 Turbo emerges as the clear leader. However, even the most advanced models face a "numerical wall"; most open-source models are unable to process raw numerical data effectively, whereas GPT-4 variants can successfully integrate it to improve scores.

F1 score performance of various LLMs across 15 datasets.

Performance craters as network size increases. While LLMs are competitive on small networks, their accuracy falls below 50% of traditional state-of-the-art (SOTA) algorithms on networks with more than 50 nodes. There is also a stark "capability gap" between closed-source and open-source models, with the latter struggling across almost all causal metrics.

Conclusion

CausalBench demonstrates that while LLMs possess significant semantic knowledge that aids in causal identification, they are not yet capable of replacing traditional statistical causal discovery. They act as "causal parrots," excelling where human knowledge is abundant but failing on complex, data-driven tasks. Future work should focus on fine-tuning models for specific causal structures and developing hybrid systems that combine the semantic strengths of LLMs with the statistical rigor of traditional algorithms.

Summary updated

BibTeX
@misc{zhou2024causalbench,
  author = {Yu Zhou and Xingyu Wu and Beicheng Huang and Jibin Wu and Liang Feng and Kay Chen Tan},
  title = {{CausalBench: A Comprehensive Benchmark for Causal Learning Capability of Large Language Models}},
  year = {2024},
  eprint = {2404.06349},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.06349},
}
Figure