Integrating Large Language Models in Causal Discovery: A Statistical Causal Approach
Masayuki Takayama, Tadahisa Okuda, Thong Pham, Tatsuyoshi Ikenoue, Shingo Fukuma, Shohei Shimizu, Akiyoshi Sannai
TL;DR
This work introduces Statistical Causal Prompting (SCP), a framework that fuses large language model (LLM) knowledge with statistical causal discovery (SCD) to produce a prior knowledge matrix that guides causal graph learning. By sequentially deriving initial causal structures with SCD, extracting domain knowledge from LLMs via zero-shot prompting, and transforming LLM outputs into constraints for SCD (including edge presence, bootstrap probabilities, and causal coefficients), the method achieves mutual performance gains on benchmark datasets and a real health-screening dataset not seen by the LLM during training. The authors rigorously evaluate multiple SCD algorithms (PC, Exact Search, DirectLiNGAM) and several SCP patterns, analyzing robustness, computation time, and risk, and provide guidance for practical deployment with expert checks and domain customization. Overall, SCP enhances the statistical validity and plausibility of inferred causal graphs, while highlighting the need for careful handling of LLM hallucinatory risks and data-domain alignment in real-world applications such as healthcare. The work thus points to a promising direction for data-driven causal inference that leverages codified expert knowledge while maintaining a systematic, auditable workflow.
Abstract
In practical statistical causal discovery (SCD), embedding domain expert knowledge as constraints into the algorithm is important for reasonable causal models reflecting the broad knowledge of domain experts, despite the challenges in the systematic acquisition of background knowledge. To overcome these challenges, this paper proposes a novel method for causal inference, in which SCD and knowledge-based causal inference (KBCI) with a large language model (LLM) are synthesized through ``statistical causal prompting (SCP)'' for LLMs and prior knowledge augmentation for SCD. The experiments in this work have revealed that the results of LLM-KBCI and SCD augmented with LLM-KBCI approach the ground truths, more than the SCD result without prior knowledge. These experiments have also revealed that the SCD result can be further improved if the LLM undergoes SCP. Furthermore, with an unpublished real-world dataset, we have demonstrated that the background knowledge provided by the LLM can improve the SCD on this dataset, even if this dataset has never been included in the training data of the LLM. For future practical application of this proposed method across important domains such as healthcare, we also thoroughly discuss the limitations, risks of critical errors, expected improvement of techniques around LLMs, and realistic integration of expert checks of the results into this automatic process, with SCP simulations under various conditions both in successful and failure scenarios. The careful and appropriate application of the proposed approach in this work, with improvement and customization for each domain, can thus address challenges such as dataset biases and limitations, illustrating the potential of LLMs to improve data-driven causal inference across diverse scientific domains. The code used in this work is publicly available at: www.github.com/mas-takayama/LLM-and-SCD
