Abstract
Causal discovery from observational data is a fundamental challenge in science, often hindered by the statistical indistinguishability of different causal structures, known as Markov equivalence. While human expertise traditionally resolves these ambiguities, it is often inaccessible or unscalable. This paper presents a novel framework that leverages multiple Large Language Models (LLMs) as "imperfect experts" to provide prior knowledge for score-based causal discovery. By integrating a weighted consensus from models such as GPT-4 and Gemini into a regularized mathematical objective, the proposed method significantly improves the accuracy and reliability of recovered causal graphs across diverse benchmarks.
Introduction
Determining causal relationships—the "what causes what" of a system—is essential for scientific advancement. While Randomized Controlled Trials (RCTs) remain the gold standard, they are frequently constrained by ethical, logistical, or financial barriers. Consequently, researchers rely on causal discovery algorithms to infer structures from observational data.
However, observational data is often "noisy" and mathematically ambiguous; multiple causal graphs can explain the same data distribution equally well. To break these ties, researchers have historically relied on domain-specific human knowledge. This paper explores a scalable alternative: using LLMs to provide the necessary prior knowledge. Recognizing that LLMs are prone to hallucinations and inconsistencies, the authors propose a framework that treats LLM outputs not as absolute truths, but as regularizers that guide the discovery process toward plausible structures.
Methodology
The framework enhances standard score-based causal discovery by incorporating LLM-derived priors into the optimization process. In traditional score-based methods, an algorithm searches for a graph $G$ that minimizes a score function $S_{score}(G)$, such as the Bayesian Information Criterion (BIC).
1. Multi-LLM Prompting Strategy
Rather than relying on a single model, the framework queries a suite of LLMs (e.g., GPT-3.5, GPT-4, and Gemini). The prompting process follows a structured three-stage pipeline:
- Understanding: The models are asked to explain the variables in the dataset.
- Discovery: The models propose potential causal edges between variables.
- Revision: The models perform self-correction to refine their initial suggestions.
2. The Regularized Score Function
The core innovation is the modification of the standard score function with a penalty term: $$S(G) = S_{score}(G) + \lambda \times P(G)$$ Here, $P(G)$ represents a penalty based on the distance between the algorithm's current graph candidate and the consensus suggested by the LLMs. The hyperparameter $\lambda$ controls the degree of influence the LLMs have over the final result.
3. Weighted Collaboration
To account for varying model reliability, the framework calculates a weight ($\mu$) for each LLM. This weight is determined by how well an LLM's suggested graph aligns with the actual observational data. This ensures that more accurate models have a greater influence on the final regularization term.
4. Algorithmic Flexibility
The authors demonstrate that this penalty is both decomposable and differentiable. This allows it to be integrated into various existing causal discovery algorithms, including discrete search methods like Greedy Equivalence Search (GES) and continuous optimization frameworks like NOTEARS.
Experimental Evaluation
The framework was evaluated on five classic causal discovery benchmarks representing diverse domains:
- LUCAS: Lung cancer data.
- Asia: Respiratory disease relationships.
- Earthquake: Geological and alarm variables.
- SACHS: Protein signaling networks (complex biological data).
- Child: Medical diagnosis variables.
Key Insights
The "Wisdom of the Crowd" for AI
The research highlights that while individual LLMs may be sparse (missing edges) or noisy (predicting false edges), their collective output often captures the true underlying structure more effectively. By aggregating multiple models, the framework mitigates the weaknesses of any single LLM.
LLMs as Regularizers, Not Oracles
A critical aspect of this approach is that it does not treat LLM output as ground truth. Instead, the observational data remains the primary anchor. The LLM acts as a "nudge," helping the algorithm navigate the search space toward common-sense structures when the data alone is insufficient to distinguish between candidates.
Results
The "Enhanced" versions of the algorithms consistently outperformed their baseline counterparts across several key metrics:
- Structural Hamming Distance (SHD): On the Earthquake dataset, Enhanced NOTEARS reduced the SHD from 4 to 2, indicating a significant reduction in structural errors.
- False Discovery Rate (FDR): Using the KCRL algorithm on the Asia and Earthquake datasets, the LLM-guided approach achieved an FDR of 0.0, meaning every discovered edge was a true causal link.
- True Positive Rate (TPR): For the Asia dataset, Enhanced GES achieved a perfect TPR of 1.0, successfully identifying every causal relationship in the ground truth.
Limitations and Future Work
Despite its success, the framework faces several challenges. The results are sensitive to the hyperparameter $\lambda$, the tuning of which remains a manual process. Furthermore, the effectiveness of the LLM prior depends on the model's training data; for highly specialized or proprietary domains, the LLM's knowledge may be limited.
Future research may explore more sophisticated "agentic" workflows, where LLMs engage in multi-turn debates to reach a consensus, potentially further refining the quality of the causal priors provided to the discovery algorithms.
Summary updated