Compositional Causal Reasoning Evaluation in Language Models

Jacqueline R. M. A. Maasch, Alihan Hüyük, Xinnuo Xu, Aditya V. Nori, Javier Gonzalez

Introduction

Large Language Models (LLMs) have shown impressive capabilities in various reasoning tasks, but their ability to perform rigorous causal inference remains a subject of intense debate. This paper introduces the concept of Compositional Causal Reasoning (CCR)—the capacity to synthesize local cause-effect relationships into a coherent global understanding. The authors investigate whether models are truly reasoning or merely acting as "causal parrots," matching patterns without internal logical consistency.

The Challenge of Internal Consistency

A significant hurdle in AI development is ensuring that models do not arrive at the correct answer simply by chance or pattern recognition. Current evaluations often separate causal reasoning from compositional reasoning. An LLM might correctly identify that "A causes B," yet fail to understand how that effect propagates through a long chain to a distant node "Z."

Comparison between a global query (Q1) and a compositional query (Q2) regarding path costs.

As illustrated in Figure 1, the researchers distinguish between Global Queries (asking for the total effect) and Compositional Queries (asking for the sum of intermediate effects). A truly reasoning model should provide consistent answers across both forms. However, many models exhibit "internal inconsistency," where they provide a correct global answer but fail the underlying sub-questions, suggesting they are not actually reasoning through the causal graph.

Methodology: Formalizing CCR

The study utilizes Structural Causal Models (SCMs) to evaluate two primary measures: the Average Treatment Effect (ATE) and the Probability of Necessity and Sufficiency (PNS). To manage complex graphs, the authors introduced Commutative Cut Trees (CCTs), which simplify causal structures into "cutpoints" to mathematically track how effects aggregate.

Causal inference tasks involving the composition of functions f and g.

The framework categorizes models into a taxonomy based on their validity (accuracy) and consistency (logical harmony):

  • Valid-Consistent (VC): The gold standard—correct and logically sound.
  • Valid-Inconsistent (VI): The "lucky guesser"—correct answer via flawed logic.
  • Invalid-Consistent (IC): Incorrect answer, but follows a consistent internal logic.
  • Invalid-Inconsistent (II): Both incorrect and logically chaotic.

Key Findings: The o1 Breakthrough

The evaluation revealed a stark contrast between standard LLMs and OpenAI’s o1 model. While models like Llama 3 and GPT-4o struggled with error propagation—where the Relative Absolute Error (RAE) increased tenfold as causal chains grew longer—the o1 model maintained high accuracy and consistency.

Notably, o1 was the only model to consistently fall into the Valid-Consistent (VC) quadrant. It demonstrated an ability to "reason" through the graph structure, ensuring that all paths to a conclusion yielded the same result, regardless of the number of intermediate "mediators." In contrast, GPT-4o, even with Chain-of-Thought (CoT) prompting, often remained internally inconsistent on global quantities, failing to aggregate local parts into a correct global answer.

Conclusion and Future Directions

The findings suggest that while most current LLMs are "causal parrots," the emergence of models like o1 indicates a shift toward genuine compositional reasoning. Future research will need to expand this framework to handle non-linear relationships and more complex, "messy" graph topologies that lack clear cutpoints. Moving beyond synthetic "toy" problems to real-world medical or scientific causal chains is the next essential step in validating these reasoning capabilities.

Summary updated

BibTeX
@inproceedings{maasch2025compositional,
  author = {Jacqueline R. M. A. Maasch and Alihan Hüyük and Xinnuo Xu and Aditya V. Nori and Javier Gonzalez},
  title = {{Compositional Causal Reasoning Evaluation in Language Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=OJ3dQNRnsx},
}
Figure