Abstract
Causal Structure Learning (CSL) aims to identify Directed Acyclic Graphs (DAGs) that represent underlying cause-and-effect relationships from observational data. This task is inherently challenging due to the super-exponential growth of the search space and the problem of Markov equivalence. We present Iterative LLM Supervised Causal Structure Learning (ILS-CSL), a framework that integrates the extensive world knowledge of Large Language Models (LLMs) with statistical CSL algorithms. By focusing the LLM on verifying edges suggested by data-driven models rather than full graph discovery, ILS-CSL achieves significant accuracy improvements and computational efficiency.
Introduction
Identifying causal structures is a cornerstone of scientific inquiry. While traditional data-driven methods are statistically rigorous, they often fail to distinguish between directionally ambiguous relationships (e.g., $A \to B$ vs. $B \to A$) without interventional data. Large Language Models (LLMs) like GPT-4 offer a potential solution by providing "common sense" domain knowledge. However, directly querying LLMs for complex graphs is prone to errors and high costs. This paper proposes a hybrid approach, ILS-CSL, where the LLM acts as an iterative supervisor to refine statistically learned structures.
The ILS-CSL Framework
The core innovation of ILS-CSL is its iterative feedback loop between a data-driven "backbone" algorithm and an LLM supervisor. The process consists of four main stages:
- Initial Learning: A baseline algorithm (e.g., MINOBSx or CaMML) generates a candidate DAG from observational data.
- LLM Verification: The framework prompts the LLM to verify each edge $X_i \to X_j$ in the candidate DAG using domain-specific context.
- Constraint Generation: If the LLM identifies a discrepancy—such as a reversed edge or a non-existent relationship—it generates a structural constraint.
- Iterative Refinement: The backbone algorithm is re-executed, incorporating these constraints to produce a refined DAG. This cycle repeats until the statistical model and the LLM's knowledge converge.
The framework supports both Hard Constraints, which strictly enforce LLM feedback, and Soft Constraints, which adjust the scoring function to favor LLM-validated edges, providing robustness against potential LLM hallucinations.
Key Insights: The Correction Ripple
A significant finding of this research is the "Correction Ripple" effect. Because the CSL algorithm must maintain a Directed Acyclic Graph, correcting a single misoriented edge can have global implications. Fixing one error often resolves structural inconsistencies, allowing the statistical model to correctly orient or discover other edges it previously missed.
Experimental Evaluation
The ILS-CSL framework was evaluated across eight benchmark datasets ranging from 5 to 48 nodes. Results demonstrate that ILS-CSL consistently outperforms pure data-driven baselines and previous LLM-augmented methods like "sepLLM."
As shown in the experimental data, ILS-CSL achieved substantial reductions in Scaled Structural Hamming Distance (SHD). For instance, on the Alarm dataset, the error rate was reduced by up to 82% compared to the baseline. Notably, the framework's advantages become more pronounced as the complexity and scale of the dataset increase, demonstrating its robustness for real-world applications.
Conclusion
ILS-CSL represents a significant step forward in causal discovery by effectively combining statistical evidence with LLM-based domain knowledge. By shifting the LLM's role from discovery to iterative verification, the framework achieves higher accuracy with lower computational costs ($O(N)$ vs. $O(N^2)$). Future work will focus on handling latent variables and further refining prompting strategies to minimize the impact of LLM knowledge cutoffs.
Source: Ban et al., "Causal Structure Learning Supervised by Large Language Model," arXiv:2311.11689v1, 2023.
Summary updated