Introduction
Causal discovery—the process of identifying "what causes what"—is a fundamental challenge in data science with applications ranging from healthcare to economics. Traditional approaches typically rely on statistical algorithms or human expert knowledge. However, statistical methods are often susceptible to selection bias and confounders, while expert knowledge is costly and potentially outdated. This paper introduces LACR (LLM Assisted Causal Recovery), a novel framework that leverages Large Language Models (LLMs) and Retrieval-Augmented Generation (RAG) to perform formal constraint-based causal discovery by grounding model reasoning in scientific literature.
The LACR Framework
LACR moves beyond "direct causal prompting" (asking an LLM if A causes B) by utilizing the model as a "statistical oracle" that consults external evidence. The framework operates in two primary phases:
Phase 1: LACR 1 (Edge Existence)
The first phase focuses on building the "skeleton" of the causal graph—identifying which variables are connected without determining directionality. LACR employs a RAG pipeline to search repositories like Google Scholar and PubMed. For every pair of variables, the system follows a four-step "chain of thought":
- Background Reminder: Defining variables and the domain.
- Association Verifier: Determining if a correlation exists.
- Association Type Verifier: Distinguishing between direct and indirect links.
- Association Rechecker: Verifying if mediating variables are present in the dataset.
The final skeleton is determined by aggregating "votes" from multiple retrieved documents and the LLM’s internal knowledge to reach a consensus.
Phase 2: LACR 2 (Orientation)
Once the skeleton is established, LACR 2 determines the direction of the causal arrows (e.g., $A \rightarrow B$). This orientation is based on specific evidence found during the retrieval phase, ensuring that the causal structure aligns with established scientific consensus.
Experimental Setup
The researchers evaluated LACR on three real-world causal benchmarks:
- ASIA: A small medical model (8 nodes) for lung disease.
- SACHS: A biological dataset (11 nodes, 16 edges) involving protein signaling pathways.
- CORONARY: A heart disease dataset (6 nodes) featuring undirected edges.
These datasets were chosen because they represent domains with extensive existing scientific literature, allowing the RAG pipeline to function effectively.
Results
The experimental results demonstrate that LACR significantly outperforms traditional LLM-based approaches and statistical baselines in skeleton recovery and edge orientation.
As shown in Table 1, LACR 1 achieved a perfect F1 score of 1.0 on the ASIA dataset when utilizing background knowledge (BG). While performance on the SACHS dataset was lower due to specialized protein nomenclature, it still provided competitive results compared to baseline LLMs.
In the orientation phase (Table 2), LACR achieved perfect scores (1.0) in determining the direction of causal arrows for both the ASIA and SACHS datasets once the correct skeleton was identified.
Discussion: The "Outdated Ground Truth" Paradox
A key insight from the study was the discovery of the "Outdated Ground Truth" paradox. In the ASIA dataset, LACR initially appeared to perform worse as more documents were retrieved. Investigation revealed that the LLM was finding modern medical evidence (2009–2022) that contradicted the original 1988 ground truth. When the ground truth was updated to reflect modern consensus, LACR's performance metrics improved, highlighting its ability to refine and update existing knowledge structures.
Conclusion and Limitations
LACR demonstrates that LLMs are more effective at associational reasoning from text than pure causal reasoning from scratch. By using RAG to overcome dataset-specific selection biases, LACR provides a robust tool for causal discovery. However, the system remains dependent on search engine quality and access to full-text papers. Future work will focus on improving handling of professional jargon and reducing the computational cost associated with $O(n^2)$ variable pair queries.
Summary updated