Can Large Language Models Infer Causation from Correlation?

Zhijing Jin, Jiarui Liu, Zhiheng Lyu, Spencer Poff, Mrinmaya Sachan, Rada Mihalcea, Mona T. Diab, Bernhard Schölkopf · DOI

Abstract

While Large Language Models (LLMs) demonstrate impressive capabilities in various linguistic tasks, their ability to perform formal causal reasoning remains a subject of debate. This paper introduces CORR2CAUSE, a comprehensive benchmark designed to evaluate whether LLMs can infer causal structures from statistical correlations. Our findings suggest that current models primarily rely on memorized empirical knowledge rather than true causal logic, performing near-randomly on abstract tasks and failing to generalize beyond their training distribution.

What Problem Does This Paper Address?

Most existing research in "Causal NLP" evaluates models on empirical knowledge. For instance, an LLM can correctly state that "smoking causes lung cancer" because it has encountered this specific association countless times during pre-training. The authors characterize this phenomenon as "causal parroting."

Distinguishing between empirical causal knowledge and pure causal inference.

The fundamental challenge lies in formal causal inference: the capacity to take a set of abstract correlational statements (e.g., "Variable A correlates with B, but A is independent of C given B") and deduce the underlying causal graph. This skill is a cornerstone of scientific reasoning and human intelligence, requiring the ability to process information independently of specific real-world contexts.

Methods: The CORR2CAUSE Pipeline

To measure this capability, the authors formulated causal discovery as a Natural Language Inference (NLI) task. They developed a robust pipeline to generate over 200,000 synthetic samples based on the principles of the Peter-Clark (PC) algorithm, a standard framework in causal discovery.

The CORR2CAUSE data generation pipeline.

The generation process follows four key steps:

  1. Variable Selection: Choosing a set number of variables (N=2 to 6).
  2. Graph Generation: Creating all unique Directed Acyclic Graphs (DAGs) for the given variables.
  3. Statistical Mapping: Identifying the set of statistical correlations and independencies (d-separation sets) produced by those graphs. Graphs are grouped into Markov Equivalence Classes (MECs) if they are statistically indistinguishable.
  4. Data Composition: Converting these abstract relationships into natural language premises and hypotheses. A hypothesis (e.g., "A directly causes B") is labeled "Valid" only if it holds true for all possible causal graphs within the corresponding MEC.

Datasets and Robustness Testing

The resulting CORR2CAUSE dataset contains 207,972 samples. To ensure models were learning logic rather than surface-level patterns, the authors introduced two "perturbed" test sets:

  • Paraphrasing: Using different linguistic templates to express the same logical relations.
  • Variable Refactorization: Changing abstract variable names (e.g., from A, B, C to X, Y, Z) to test if models were over-fitting to specific character sequences.

Key Insights and Results

The "Causal Parrot" Hypothesis Confirmed

Off-the-shelf LLMs, including state-of-the-art models like GPT-4, performed poorly on the task. In zero-shot settings, most models scored near the random baseline. GPT-4 achieved an F1-score of only 29.08, while BERT-based models typically ranged between 15 and 25. This confirms that while these models can recite causal facts, they struggle to reason through abstract causal logic.

The Fragility of Finetuning

While models can be finetuned to achieve high scores on the CORR2CAUSE training set—with RoBERTa-Large reaching a 94.74 F1-score—this performance is deceptive. The models appear to learn the specific "shape" or spurious correlations of the dataset rather than the underlying rules of d-separation.

This is evidenced by the robustness gap: when the same finetuned RoBERTa model was tested on the "Variable Refactorization" set, its performance plummeted to 67.87. On paraphrased prompts, it dropped further to 55.45. This suggests that even with targeted training, LLMs struggle to internalize the formal logic required for pure causal inference.

Limitations and Future Work

The study identifies several constraints in the current benchmark:

  • System Scale: The dataset is limited to small systems (up to 6 nodes), whereas real-world discovery often involves hundreds of variables.
  • Closed Systems: The task assumes no unobserved confounders, a condition rarely met in empirical science.
  • Algorithmic Scope: The logic is currently grounded in the PC algorithm; future iterations could incorporate score-based or functional causal discovery methods.

Conclusion

The CORR2CAUSE benchmark highlights a significant gap in the reasoning capabilities of current Large Language Models. While they are excellent at retrieving memorized causal associations, they lack the robust, formal reasoning skills necessary for autonomous causal discovery. Moving forward, the challenge for the AI community is to develop architectures or training objectives that move beyond pattern matching toward genuine logical inference.

Summary updated

BibTeX
@inproceedings{jin2024can,
  author = {Zhijing Jin and Jiarui Liu and Zhiheng Lyu and Spencer Poff and Mrinmaya Sachan and Rada Mihalcea and Mona T. Diab and Bernhard Schölkopf},
  title = {{Can Large Language Models Infer Causation from Correlation?}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=vqIH0ObdqL},
}
Figure