NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Causality for Large Language Models

Anpeng Wu, Kun Kuang, Minqin Zhu, Yingrong Wang, Yujia Zheng, Kairong Han, Baohong Li, Guangyi Chen, Fei Wu, Kun ZhangarXiv 2024 · DOI

Introduction

Current Large Language Models (LLMs) are often described as "causal parrots." While they excel at identifying and reciting statistical correlations within massive datasets, they fundamentally lack a true understanding of cause and effect. This survey explores the roadmap for transitioning LLMs from probabilistic pattern matchers to robust causal reasoners by integrating causal principles across the entire model lifecycle.

The Problem of Causal Blindness

Despite the impressive capabilities of models like GPT-4 and LLaMA, their reliance on probabilistic modeling leads to significant limitations. This "causal blindness" manifests in three primary ways:

  1. Hallucinations: The generation of logically impossible or false information that sounds plausible.
  2. Spurious Correlations: The inheritance of biases from training data, such as gendered associations with specific professions.
  3. The Reversal Curse: A failure in bidirectional reasoning, where a model knows "A is the father of B" but cannot infer "B is the child of A."
Examples of LLM failures due to causal blindness, including gender bias and the reversal curse.

To achieve Artificial General Intelligence (AGI), models must ascend "Pearl’s Ladder of Causation," moving from simple observation (association) to intervention (doing) and counterfactuals (imagining "what if").

A Framework for Causal Integration

The survey categorizes the integration of causality into five distinct stages of the LLM lifecycle: pre-training, fine-tuning, alignment, inference, and evaluation.

Outline of the survey structure, mapping causality-based techniques to the five key stages of the LLM lifecycle.

1. Pre-training and Architecture

Techniques such as Counterfactual Data Augmentation (CDA) and Causal-Debias are employed to neutralize stereotypes in token embeddings. More fundamentally, researchers are proposing "Causal Foundation Models" that replace standard self-attention with causal attention mechanisms (e.g., CaaM or CATT) to explicitly model confounders and mediators.

2. Fine-Tuning and Alignment

Causal Effect Tuning (CET) helps models retain logical relationships during task-specific refinement. In the alignment phase, Causal Preference Optimization (CPO) treats alignment as a causal inference problem, ensuring models generate outputs that cause desired outcomes rather than merely mimicking human-like text.

3. Inference and Prompting

Strategies like Causal Chain-of-Thought (CausalCoT) and Metacognitive Prompting guide models to identify causal variables and graphs before generating answers. This structured approach helps mitigate the "parrot" effect during complex reasoning tasks.

Evaluation and Benchmarking

To distinguish between true reasoning and memorization, the survey highlights several specialized benchmarks:

  • CLADDER: Tests association, intervention, and counterfactuals based on Pearl’s Ladder.
  • CORR2CAUSE: Evaluates whether models can infer causality from purely correlational statements across 200k+ samples.
  • CausalBench: Focuses on real-world causal discovery in domains like medicine and biology.

Key Insights and Future Directions

A profound realization in recent research is that the Transformer's self-attention matrix can be interpreted as an estimate of a Structural Causal Model (SCM). This suggests that the architecture has the latent capacity for causal representation but requires better constraints.

While GPT-4 shows high accuracy (up to 97%) in simple pairwise causal discovery, performance degrades on multi-step paths. Scaling parameters alone does not solve causal blindness; future work must focus on developing architectures that prioritize causal links, addressing the reversal curse through bidirectional training, and enhancing self-correction capabilities.

By embedding causal structures into the heart of LLMs, the field moves closer to AI that understands the "why" behind the "what."

A curated list of resources is available at: https://github.com/causal-machine-learning-lab/Awesome-Causal-LLM

Summary updated

BibTeX
@misc{wu2024causality,
  author = {Anpeng Wu and Kun Kuang and Minqin Zhu and Yingrong Wang and Yujia Zheng and Kairong Han and Baohong Li and Guangyi Chen and Fei Wu and Kun Zhang},
  title = {{Causality for Large Language Models}},
  year = {2024},
  eprint = {2410.15319},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.15319},
}
Figure