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

TL;DR

This paper introduces Corr2Cause, the first benchmark designed to test whether Large Language Models (LLMs) can perform pure causal inference from statistical correlations, rather than just relying on memorized empirical facts. The authors reveal that 17 popular LLMs fail miserably at this task out-of-the-box. Furthermore, while fine-tuning creates the illusion of competence, the models merely memorize spurious text patterns rather than learning robust, generalizable causal reasoning.

What Problem Does This Paper Address?

Most existing causal reasoning benchmarks in natural language processing (NLP) test an LLM's empirical knowledge—for example, knowing that "touching a hot stove" causes a "burn."

Comparison of empirical causal knowledge versus pure causal inference.

However, human intelligence also relies on pure causal reasoning: the ability to deduce causal relationships from statistical correlations using formal logical rules, independent of prior real-world knowledge. For instance, if A and B correlate, but are independent given C, then C might be a common cause.

The authors tackle a fundamental question: Can LLMs actually perform this kind of formal causal discovery, or are they just "causal parrots" reciting memorized facts from their training data? To answer this, the researchers needed a way to test pure correlation-to-causation inference without relying on the semantic meaning of real-world variables.

Methods

To isolate pure reasoning, the authors generated synthetic causal graphs and translated them into natural language.

The four-step data generation process for the Corr2Cause dataset.
  1. Graph Generation: They generated all unique Directed Acyclic Graphs (DAGs) containing 2 to 6 variables.
  2. Statistical Mapping: Using the rules of causal discovery (specifically, d-separation and the Peter-Clark algorithm), they determined the exact statistical correlations and conditional independencies that would arise from these graphs.
  3. Verbalization: They translated these mathematical relationships into natural language premises (e.g., "Suppose there is a closed system of 3 variables, A, B, and C. A correlates with C. B correlates with C. However, A is independent of B.") and paired them with causal hypotheses (e.g., "A directly causes C").
  4. Evaluation: The task is to predict if the premise logically entails the hypothesis. They evaluated 17 LLMs (including GPT-3.5, GPT-4, LLaMA, and BERT variants) in zero-shot settings.
  5. Robustness Testing: They fine-tuned the models on the dataset and then hit them with adversarial attacks—paraphrasing the text and refactoring variable names (e.g., swapping A/B/C for Z/Y/X)—to see if the models actually learned the underlying math or just memorized text patterns.

Datasets

The authors introduce the Corr2Cause dataset, containing 207,972 samples. Unlike existing causal NLP datasets (like CommonsenseQA) that rely on real-world entities, Corr2Cause uses abstract variables to strictly isolate pure reasoning skills from empirical knowledge. The dataset is split into training, development, and test sets, with additional perturbed test sets for robustness evaluation.

Key Insights and Ideas

  • LLMs lack pure causal reasoning: Out-of-the-box, modern LLMs are terrible at formal causal inference. They perform near or below random chance, proving that their impressive performance on standard causal benchmarks is largely due to memorized empirical knowledge, not actual reasoning.
  • Fine-tuning creates an illusion of competence: When fine-tuned on Corr2Cause, models suddenly achieve massive performance spikes. However, this is a mirage.
  • The "Clever Hans" effect in LLMs: When the authors simply swapped variable names (A becomes Z) or slightly paraphrased the prompts, the fine-tuned models' performance collapsed. They didn't learn how to do causal inference; they exploited spurious correlations in the training data (like specific sentence structures or the alphabetical order of variables).

Key Results

  • Zero-Shot Failure: All 17 off-the-shelf models failed the task. The best performer was BART MNLI with a mere 33.38% F1 score. Surprisingly, GPT-4 achieved only 29.08% F1, and many models performed worse than a random baseline.
  • Fine-Tuned Memorization: After fine-tuning, RoBERTa-Large MNLI reached an impressive 94.74% F1 on the standard test set.
  • Robustness Collapse: On the perturbed datasets, the fine-tuned RoBERTa-Large MNLI's F1 score plummeted to 67.87% when variable names were refactored, and down to 55.45% when the hypotheses were paraphrased.

Limitations and Future Work

The authors note a few limitations: the dataset only covers relatively small graphs (2 to 6 nodes) and assumes a "closed system" with no hidden confounders (unobserved variables that influence the system).

For future work, they suggest expanding the benchmark to larger graphs and introducing hidden confounders to mimic more complex causal discovery algorithms. Most importantly, they strongly recommend using Corr2Cause strictly as an out-of-distribution benchmark to evaluate off-the-shelf models. They warn against fine-tuning on it to avoid Goodhart's Law, urging the community to focus on architectural or prompting innovations that genuinely improve pure reasoning.

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