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 mere correlation to understand the underlying mechanisms of why things happen. Causal graphs, specifically Directed Acyclic Graphs (DAGs), serve as the standard mathematical tool for representing these relationships. Despite the proliferation of Large Language Models (LLMs), a systematic method for evaluating whether these models truly "grasp" causal structures has been lacking. Existing evaluations often focus on narrow tasks, failing to capture the multi-disciplinary nature of causal understanding.

The CLEAR Framework and Benchmark

To address this gap, we propose a two-part solution consisting of a rigorous evaluation framework and the CLEAR benchmark. The framework defines "understanding" through four criteria:

  • B1 (Performance): The model must perform significantly better than random guessing.
  • B2 (Robustness): Performance should be consistent across different question types (e.g., "Is there a path?" vs. "List all paths").
  • B3 (Definition Utilization): The model should correctly apply provided formal causal definitions.
  • B4 (Task Dependence): The model must respect the logical hierarchy of tasks; mastery of complex tasks should be constrained by the mastery of their prerequisites.
The logical hierarchy and dependencies of the 20 tasks in the CLEAR benchmark across three complexity levels.

The CLEAR Benchmark comprises 2,808 questions covering 20 distinct tasks organized into three complexity levels: Basic (nodes/edges), Intermediate (d-separation, Markov blankets), and Advanced (causal effect identification). The dataset includes a variety of graph types (DAGs, ADMGs, etc.) with 4 to 9 nodes and varying edge densities to prevent models from relying on simple structural templates.

Experimental Results

We conducted extensive experiments on six leading language models, including GPT-4, Gemini Pro, and Mixtral-8x7B. Our results show that while top-tier models demonstrate a "preliminary" understanding, they remain brittle and highly sensitive to prompt phrasing.

Heatmap showing the accuracy of various LLMs across the 20 tasks of the CLEAR benchmark, compared against random guessing.

GPT-4 emerged as the leader with an average accuracy of 60.5%, significantly outperforming the ~40% average of other models. While basic tasks like identifying single nodes and edges are largely solved (>70% accuracy), advanced tasks remain a significant struggle, with most models failing to surpass 40% accuracy. This suggests that while LLMs have a "vague sense" of graph structure, they lack the precision required for rigorous causal analysis.

Key Insights

  • The "Illusion of Mastery": A striking finding was the violation of Task Dependence (B4). Models frequently performed better on "Advanced" tasks than on the "Basic" tasks they rely on, suggesting the exploitation of spurious patterns rather than true causal reasoning.
  • Definition Sensitivity: Providing formal definitions boosted performance for models like GPT-4 and Mixtral but negatively impacted others like InternLM2, highlighting a gap in how models process symbolic instructions.
  • The Robustness Gap: Models are significantly more accurate on "Yes/No" or "Existence" questions than on more demanding "Find All" or "How Many" queries.
  • Attribution Analysis: Using counterfactual perturbation via the Captum library, we found that Mixtral-8x7B focused on correct causal links more effectively than Llama2-70B, despite similar raw accuracy scores.

Conclusion

While LLMs show promise in causal reasoning, the CLEAR benchmark reveals significant room for improvement. Future work should expand to multi-modal evaluations (visual diagrams), interventional reasoning (do-calculus), and cross-lingual assessments to further probe the limits of machine causal understanding.

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