Abstract
This study investigates the efficacy of Large Language Models (LLMs) in causal discovery. Using newly available open-source LLMs, OLMo and BLOOM, which provide access to their pre-training corpora, we investigate how LLMs address causal discovery through three research questions. We examine: (i) the impact of memorization for accurate causal relation prediction, (ii) the influence of incorrect causal relations in pre-training data, and (iii) the contextual nuances that influence LLMs' understanding of causal relations. Our findings indicate that while LLMs are effective in recognizing causal relations that occur frequently in pre-training data, their ability to generalize to new or rare causal relations is limited. Moreover, the presence of incorrect causal relations significantly undermines the confidence of LLMs in corresponding correct causal relations, and the contextual information critically affects the outcomes of LLMs to discern causal connections between random variables.
Introduction
Causal discovery—the process of identifying directional influences between variables—is a cornerstone of scientific inquiry. Traditionally, this task has relied on rigorous statistical analysis of observational data. However, the emergence of Large Language Models (LLMs) like GPT-4 has introduced a new paradigm: zero-shot causal discovery based on variable names alone. While these models demonstrate impressive performance, a critical question persists: are they truly reasoning about causal mechanisms, or are they merely "causal parrots" retrieving memorized patterns from their vast training corpora? This paper investigates the reliability of LLMs in causal discovery by analyzing the relationship between pre-training data frequency and model performance.
Methodology
To assess the impact of training data on causal reasoning, the researchers utilized open-source models OLMo and BLOOM, whose pre-training datasets (Dolma and ROOTS) are publicly accessible. The study focused on three dimensions:
- Memorization Analysis: The team quantified the mentions of specific causal pairs (e.g., "A causes B") within the pre-training corpora to correlate frequency with prediction accuracy.
- Synthetic Probing: To isolate the effect of prior knowledge, synthetic datasets were created using fictitious variables (e.g., "blaonge"). The frequency of these relations was controlled during fine-tuning to observe the learning curve.
- Contextual Sensitivity: Using GPT-4o, the researchers generated scenarios where generally true causal relations might be invalidated (e.g., "rain causes flooding" vs. "rain does not cause flooding due to advanced drainage systems") to test the models' ability to adapt to context.
The evaluation leveraged established benchmarks in medicine, atmospheric science, and insurance, alongside large-scale knowledge bases like ConceptNet and CauseNet.
Results
The investigation revealed a profound correlation between the frequency of a causal relation in the pre-training data and the model's ability to identify it. Spearman’s rho values reached up to 0.9, indicating that performance is heavily dependent on memorization.
Frequency vs. Performance
As shown in Figure 5, the F1 score for causal discovery tasks is highly sensitive to the number of times a relation appears in the training set. For OLMo, the F1 score reached approximately 0.88 for the most frequent relations but dropped to 0.2 for those appearing rarely. This trend is consistent across different metrics, including accuracy.
Impact of Conflicting Data and Context
The presence of incorrect or reversed relations in the training data significantly reduced the models' confidence in correct causal links. Furthermore, LLMs exhibited high sensitivity to context. When presented with "negative contexts" where a causal link is broken, the average affirmative ratio across models dropped from 0.66 to 0.33. GPT-4o was particularly affected, with its affirmative ratio plummeting from 0.92 to 0.27 in negative scenarios.
Discussion and Conclusion
The findings suggest that current LLMs are largely "causal parrots," excelling at commonsense relations frequent in their training data but struggling with novelty or data scarcity. While larger models like Llama-3-70b generally perform better, the study notes that smaller, well-tuned models can be competitive, emphasizing the importance of data quality over sheer scale.
A significant limitation is the focus on commonsense relations; real-world scientific discovery often involves complex, non-linear dynamics not easily captured in text. Future research should explore hybrid systems that combine the linguistic intuition of LLMs with the statistical rigor of traditional causal discovery methods. In conclusion, while LLMs are powerful tools for identifying known causal links, their reliability for discovering new relationships remains limited by their dependence on training data frequency.
Summary updated