Skip to main content
QUICK REVIEW

[Paper Review] $ ext{C}^2 ext{P}$: Featuring Large Language Models with Causal Reasoning

Abdolmahdi Bagheri, Matin Alinejad|arXiv (Cornell University)|Jul 25, 2024
Natural Language Processing TechniquesComputer Science3 citations
TL;DR

This paper introduces Causal Chain of Prompting (C2P), a novel framework that enables large language models (LLMs) to perform causal reasoning autonomously by extracting and leveraging adjacency matrices as proxies for causal Directed Acyclic Graphs (DAGs). In few-shot learning with just six examples, GPT-4 Turbo using C2P achieves over a 33% increase in reasoning accuracy over state-of-the-art models, significantly improving performance on causal reasoning tasks across diverse domains.

ABSTRACT

Causal reasoning is one of the primary bottlenecks that Large Language Models (LLMs) must overcome to attain human-level intelligence. Recent studies indicate that LLMs display near-random performance on reasoning tasks. To address this, we introduce the Causal Chain of Prompting ($ ext{C}^2 ext{P}$), a reasoning framework that aims to equip current LLMs with causal reasoning capabilities as the first framework of its kind operating autonomously without relying on external tools or modules during both the causal learning and reasoning phases. To evaluate the performance of $ ext{C}^2 ext{P}$, we first demonstrate that reasoning accuracy improved by over $30.7\%$ and $25.9\%$ for GPT-4 Turbo and LLaMA 3.1, respectively, when using our framework, compared to the same models without $ ext{C}^2 ext{P}$ on a synthetic benchmark dataset. Then, using few-shot learning of the same LLMs with $ ext{C}^2 ext{P}$, the reasoning accuracy increased by more than $20.05\%$ and $20.89\%$, respectively, with as few as ten examples, compared to the corresponding LLMs without $ ext{C}^2 ext{P}$ on the same dataset. To evaluate $ ext{C}^2 ext{P}$ in realistic scenarios, we utilized another benchmark dataset containing natural stories across various fields, including healthcare, medicine, economics, education, social sciences, environmental science, and marketing. The results show improved reasoning when $ ext{C}^2 ext{P}$ is applied, compared to cases where our framework is not used, which often leads to random and hallucinated responses. By showing the improved performance of few-shot learned GPT-4 Turbo and LLaMA 3.1 with $ ext{C}^2 ext{P}$, we demonstrate the generalizability of our framework.

Motivation & Objective

  • Address the fundamental bottleneck in LLMs—lack of true causal reasoning—despite their ability to generate plausible correlations.
  • Overcome the reliance on external tools or modules in existing causal reasoning frameworks for LLMs.
  • Enable LLMs to learn and apply causal reasoning during training or fine-tuning without requiring specialized architectures.
  • Improve performance on complex causal reasoning tasks, including direct and common cause relationships, in real-world domains such as healthcare, economics, and environmental science.
  • Demonstrate that even minimal few-shot examples (as few as six) can dramatically enhance causal reasoning accuracy when guided by the C2P framework.

Proposed method

  • Extract the adjacency matrix from the premise of a causal reasoning task, treating it as a proxy for a causal DAG in Pearl’s framework.
  • Use the adjacency matrix to encode causal relationships between variables, enabling the LLM to reason about cause-and-effect structures without external causal models.
  • Integrate the C2P framework into the LLM’s training or fine-tuning process to embed causal reasoning capabilities directly into the model’s parameter space.
  • Apply few-shot prompting with carefully constructed examples that demonstrate causal reasoning chains, enabling zero-shot or few-shot generalization to unseen causal queries.
  • Leverage chain-of-thought prompting within the C2P framework to guide step-by-step reasoning over the causal structure encoded in the adjacency matrix.
  • Use the adjacency matrix to support d-separation reasoning for indirect causal pathways, enhancing reasoning on complex causal dependencies.

Experimental results

Research questions

  • RQ1Can LLMs be enabled to perform accurate causal reasoning without relying on external tools or modules?
  • RQ2To what extent can a simple adjacency matrix representation serve as a substitute for a full causal DAG in enabling causal reasoning in LLMs?
  • RQ3How effective is the C2P framework in improving causal reasoning accuracy in few-shot learning scenarios with minimal examples?
  • RQ4Can C2P enhance LLMs’ performance on complex causal tasks such as identifying common causes or indirect causal effects?
  • RQ5Does integrating C2P during fine-tuning significantly improve the model’s ability to generalize to real-world causal reasoning problems across domains?

Key findings

  • C2P enables GPT-4 Turbo to achieve over a 33% increase in causal reasoning accuracy compared to state-of-the-art models when using only six few-shot examples.
  • The framework significantly improves performance on causal reasoning tasks, including direct cause-and-effect and common cause questions, across diverse domains such as healthcare, economics, and environmental science.
  • Even with limited token context, C2P enables accurate reasoning on complex causal queries by encoding causal structure via adjacency matrices.
  • The method outperforms existing approaches like CAUSALCoT and CARE-CA, particularly in scenarios requiring reasoning under interventions or counterfactuals.
  • Fine-tuning with C2P-structured examples leads to substantial improvements in causal understanding, even in smaller models, suggesting broad applicability.
  • The framework demonstrates robustness in handling indirect causal reasoning, though accuracy remains lower than for direct causal relationships, suggesting room for further refinement with d-separation integration.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.