CLEAR: Can Language Models Really Understand Causal Graphs?

Sirui Chen, Mengying Xu, Kun Wang, Xingyu Zeng, Rui Zhao, Shengjie Zhao, Chaochao Lu

Abstract

Causal reasoning is a cornerstone of how humans interpret the world. To model and reason about causality, causal graphs offer a concise yet effective solution. Given the impressive advancements in language models, a crucial question arises: can they really understand causal graphs? To this end, we pioneer an investigation into language models’ understanding of causal graphs. Specifically, we develop a framework to define causal graph understanding, by assessing language models’ behaviors through four practical criteria derived from diverse disciplines (e.g., philosophy and psychology). We then develop CLEAR, a novel benchmark that defines three complexity levels and encompasses 20 causal graph-based tasks across these levels. Finally, based on our framework and benchmark, we conduct extensive experiments on six leading language models and summarize five empirical findings. Our results indicate that while language models demonstrate a preliminary understanding of causal graphs, significant potential for improvement remains.

Introduction

Causal reasoning is often described as the "holy grail" of AI—moving beyond simple correlation to understand the underlying mechanisms of why events occur. Causal graphs, typically represented as Bayesian networks where directed edges signify cause-and-effect relationships, are the standard mathematical tool for this reasoning. As Large Language Models (LLMs) are increasingly deployed in decision-making and scientific discovery, it is critical to determine if these models truly understand the structural logic of causal graphs or are merely exploiting linguistic patterns. This paper introduces a rigorous framework and the CLEAR benchmark to evaluate this understanding across multiple dimensions.

The CLEAR Framework and Benchmark

To define "understanding" in the context of AI, the authors propose four criteria: performance exceeding random chance, robustness against question formatting, correct application of formal causal definitions, and performance constrained by logical task dependence.

Building on these criteria, the researchers developed CLEAR (Can Language modEls reAlly undeRstand causal graphs?), a benchmark featuring 2,808 questions across 20 distinct tasks. These tasks are organized into a hierarchy of three complexity levels:

  • Level 1 (Basic): Identifying nodes, edges, and simple paths.
  • Level 2 (Intermediate): Understanding d-separation, Markov blankets, and blocked paths.
  • Level 3 (Advanced): Causal effect identification and adjustment sets.
Hierarchical structure of the CLEAR benchmark tasks across three complexity levels.

Experimental Setup

The CLEAR benchmark utilizes 2,808 generated questions based on randomly created Directed Acyclic Graphs (DAGs) and Acyclic Directed Mixed Graphs (ADMGs). To test robustness, questions are presented in six formats: "Find all," "Find one," "How many," "Choice selection," "Yes/No," and "Existence." The study evaluates six leading models: GPT-4, GPT-3.5-Turbo, Gemini Pro, Llama2-Chat-70B, Mixtral-8x7B, and InternLM2-Math-20B.

Key Results

Experimental results reveal a significant performance gap as task complexity increases. While most models demonstrate a preliminary grasp of basic graph structures, their reasoning capabilities falter on more sophisticated causal properties.

Model accuracy across Basic, Intermediate, and Advanced task levels.
  • GPT-4 Dominance: GPT-4 was the only model to show a consistent accuracy trend across complexity levels, achieving an average accuracy of 60.5%.
  • The Complexity Ceiling: Most models performed well on Level 1 tasks (often exceeding 70% accuracy). However, accuracy plummeted to under 40% for Intermediate and Advanced tasks for almost all models except GPT-4.
  • Open-Source Competitiveness: The open-source Mixtral-8x7B performed comparably to GPT-3.5-Turbo and Gemini Pro, suggesting that open-source models are narrowing the gap in structural reasoning.

Discussion and Insights

The study highlights several critical phenomena in LLM reasoning:

  1. The "Faking It" Phenomenon: Models often violate logical task dependence. For example, a model might correctly identify a complex "Backdoor Adjustment Set" while failing to identify a simple "Path" that the adjustment set depends on. This suggests models rely on spurious correlations rather than step-by-step logic.
  2. Sensitivity to Phrasing: Models are surprisingly brittle. A model may correctly answer a "Yes/No" question about a path's existence but fail to list the same path in a "Find one" format, despite the underlying graph being identical.
  3. The Definition Paradox: While formal definitions helped models like GPT-4 and Mixtral, they actually hindered performance for Gemini Pro and InternLM2, suggesting these models can be "distracted" by formal logic.

Conclusion

While LLMs show promise in basic graph identification, the CLEAR benchmark demonstrates that true causal understanding remains elusive. Current models often rely on pattern matching rather than the structural logic required for complex causal inference. Future work should expand this evaluation to include visual modalities and real-world, noisy datasets to further bridge the gap between linguistic processing and genuine causal reasoning.

Summary updated

BibTeX
@inproceedings{chen2024clear,
  author = {Sirui Chen and Mengying Xu and Kun Wang and Xingyu Zeng and Rui Zhao and Shengjie Zhao and Chaochao Lu},
  title = {{CLEAR: Can Language Models Really Understand Causal Graphs?}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=9Y4jvu6SVz},
}
Figure