Abstract
Recent advances in artificial intelligence have seen Large Language Models (LLMs) demonstrate notable proficiency in causal discovery tasks. This study explores the factors influencing the performance of LLMs in causal discovery tasks. Utilizing open-source LLMs, we examine how the frequency of causal relations within their pre-training corpora affects their ability to accurately respond to causal discovery queries. Our findings reveal that a higher frequency of causal mentions correlates with better model performance, suggesting that extensive exposure to causal information during training enhances the models' causal discovery capabilities. Additionally, we investigate the impact of context on the validity of causal relations. Our results indicate that LLMs might exhibit divergent predictions for identical causal relations when presented in different contexts. This paper provides the first comprehensive analysis of how different factors contribute to LLM performance in causal discovery tasks.
Introduction
Identifying causal relationships—knowing that $X$ causes $Y$ rather than the other way around—is a cornerstone of science and human cognition. While traditional statistical methods rely on massive tabular datasets to find these links, recent LLMs like GPT-4 have shown a surprising ability to identify causal directions using only the names of variables (e.g., "smoking" and "lung cancer"). However, a major skepticism remains: Are these models truly understanding the underlying logic, or are they simply retrieving memorized patterns? This paper investigates whether LLMs are reliable enough for serious causal discovery by analyzing open-source models with publicly available training corpora.
Methodology
The researchers employed a multi-pronged approach to evaluate LLM behavior:
- Correlation Analysis: Using models like OLMo and BLOOM, the authors counted exactly how many times specific causal pairs appeared in the models' original pre-training data (Dolma and ROOTS) and correlated these counts with predictive accuracy.
- Synthetic Controlled Experiments: To eliminate real-world knowledge bias, they created fictitious causal relations (e.g., "blaonge causes goloneke") and fine-tuned models on them with varying frequencies.
- Contextual Probing: They tested robustness by providing scenarios that either support or weaken a causal link (e.g., "rain causes flooding" vs. "rain in a city with an advanced drainage system").
- Benchmarking: They compared a wide range of models, from open-source (Llama2/3, OLMo) to closed-source (GPT-3.5, GPT-4o), across several real-world causal graphs like medical datasets and atmospheric science.
Key Insights: The "Causal Parrot" Phenomenon
A primary finding is the strong positive correlation (Spearman $r=0.9$) between how often a causal relation appears in the training data and the model's ability to identify it. If a relationship is rare or novel, the model's performance plummets, suggesting that LLMs often act as "causal parrots" repeating memorized patterns.
As shown in Figure 5, the F1 score for the OLMo model drops from nearly 0.9 for highly frequent relations to approximately 0.2 for the rarest ones. This trend is further supported by accuracy metrics across the same intervals.
Results and Contextual Sensitivity
- Memorization Dominates: In the full causal discovery task, OLMo's performance was heavily dependent on frequency, as illustrated in Figures 4 and 5.
- Top Performers: GPT-4o remains the state-of-the-art, leading in six out of eight datasets. However, Llama3-8b-Instruct emerged as a powerful open-source alternative, often matching or exceeding GPT-3.5.
- Contextual Impact: LLMs are highly sensitive to framing. On average, the "affirmative ratio" (the tendency to confirm a causal link) dropped from 0.83 in positive contexts to just 0.33 in negative contexts where the cause does not lead to the effect.
Discussion and Future Work
While LLMs are powerful for identifying known causal relationships, their dependence on training data frequency limits their utility for discovering novel scientific links. The authors suggest that the future of causal discovery should involve hybrid systems that integrate the linguistic knowledge of LLMs with the rigorous, data-driven logic of traditional statistical causal discovery algorithms. This approach could mitigate the "causal parrot" effect and lead to more robust automated discovery tools.
Summary updated