CausalBench: A Comprehensive Benchmark for Causal Learning Capability of LLMs

Yu Zhou, Xingyu Wu, Beicheng Huang, Jibin Wu, Liang Feng +1 more
4/9/2024
cs.LG

No official code found. Best implementation: Rainy-ZhouYu/CausalBN-Bench (2 stars, last commit 2025-10-03).

Abstract

The ability to understand causality significantly impacts the competence of large language models (LLMs) in output explanation and counterfactual reasoning, as causality reveals the underlying data distribution. However, the lack of a comprehensive benchmark currently limits the evaluation of LLMs' causal learning capabilities. To fill this gap, this paper develops CausalBench based on data from the causal research community, enabling comparative evaluations of LLMs against traditional causal learning algorithms. To provide a comprehensive investigation, we offer three tasks of varying difficulties, including correlation, causal skeleton, and causality identification. Evaluations of 19 leading LLMs reveal that, while closed-source LLMs show potential for simple causal relationships, they significantly lag behind traditional algorithms on larger-scale networks ($>50$ nodes). Specifically, LLMs struggle with collider structures but excel at chain structures, especially at long-chain causality analogous to Chains-of-Thought techniques. This supports the current prompt approaches while suggesting directions to enhance LLMs' causal reasoning capability. Furthermore, CausalBench incorporates background knowledge and training data into prompts to thoroughly unlock LLMs' text-comprehension ability during evaluation, whose findings indicate that, LLM understand causality through semantic associations with distinct entities, rather than directly from contextual information or numerical distributions.

View on arXivView PDF

Code Implementations(1)

Implementation for paper CausalBench: A Comprehensive Benchmark for Causal Learning Capability of LLMs

20PythonSep 8, 20241 years ago

Cite this paper

@article{zhou2024causalbench,
  title  = {CausalBench: A Comprehensive Benchmark for Causal Learning Capability of LLMs},
  author = {Yu Zhou and Xingyu Wu and Beicheng Huang and Jibin Wu and Liang Feng and Kay Chen Tan},
  year   = {2024},
  eprint = {2404.06349},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.06349v2}
}

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

Discussion