Abstract
Traditional causal discovery (CD) algorithms require structured, high-quality data, yet real-world information is often trapped in unstructured formats like text, images, and raw databases. This paper introduces COAT (Causal representatiOn AssistanT), a novel framework that bridges this gap by utilizing Large Language Models (LLMs) to elicit high-level causal variables from raw data. By employing a "propose-and-verify" paradigm, COAT combines the semantic perception of LLMs with the statistical rigor of traditional causal discovery, enabling the identification of hidden causal structures without manual variable definition.
1. Introduction
Causal Discovery—the process of identifying the underlying mechanisms of "what causes what"—is fundamental to scientific inquiry. However, a significant bottleneck exists: most CD algorithms assume the existence of a clean table of measured variables. In practice, researchers often deal with "hidden" worlds where causal factors are buried in Amazon reviews, clinical notes, or medical imaging. Historically, extracting these factors required intensive human labor. While Large Language Models (LLMs) show promise in processing unstructured data, they often fail at direct causal reasoning, frequently hallucinating correlations or succumbing to training-set biases. This paper presents COAT, a framework designed to use LLMs as perception assistants rather than causal judges.
2. The COAT Framework
COAT operates on a three-stage "propose-and-verify" loop that iteratively refines the causal model:
- Factor Proposal: An LLM analyzes a subset of the unstructured data and, utilizing its internal world knowledge, proposes candidate high-level factors (e.g., identifying "aroma" or "nutritional value" from a food review).
- Factor Parsing: The LLM (or a specialized tool) annotates the entire dataset, converting unstructured samples into structured values (typically -1, 0, or 1).
- Causal Discovery & Feedback: A mathematically grounded algorithm, such as Fast Causal Inference (FCI), analyzes the structured data. If the target variable is not sufficiently explained, the system identifies "hard" samples using entropy-based clustering. These samples are fed back to the LLM to prompt the discovery of missing factors.
2.1 Framework Variants
COAT is adaptable to different causal tasks through three specific variants:
- COAT-MB: Focuses on identifying the Markov Blanket, the minimal set of variables required to make a target independent of all other variables.
- COAT-PAG: Constructs a Partial Ancestral Graph, which accounts for latent (hidden) confounders that might influence the observed variables.
- COAT-ADJ: Identifies adjustment sets, allowing for unbiased estimation of causal effects, such as the impact of a specific intervention on an outcome.
3. Experimental Evaluation
The authors evaluated COAT across seven diverse benchmarks, spanning synthetic text, clinical notes, medical imaging, climate data, and financial news.
3.1 Synthetic and Clinical Benchmarks
In the AppleGastronome benchmark, where LLMs extract factors like "taste" from synthetic reviews, COAT achieved an F1 score of 0.88 for Markov Blanket discovery. This significantly outperformed a zero-shot LLM approach (META), which scored only 0.46. In clinical settings, the system successfully extracted radiculopathy symptoms from medical notes (Neuropathic) and identified visual factors like "Mass Effect" from brain MRI images (Brain Tumor).
3.2 Climate and Finance Case Studies
COAT demonstrated remarkable flexibility in non-textual domains. In the ENSO (Climate) study, the LLM acted as a tool-user, writing Python code to extract features from NetCDF databases to study El Niño. In the Stock News study, COAT identified an "Innovation and Technology Focus" factor from New York Times summaries. A trading strategy based on this factor achieved a Sharpe Ratio of 1.86, substantially outperforming a standard "Buy and Hold" strategy.
4. Key Insights
- Perception vs. Reasoning: The core success of COAT lies in delegating perception (variable extraction) to the LLM while reserving reasoning (causal structure identification) for statistical algorithms.
- Entropy-Driven Refinement: By focusing the LLM on samples where the current statistical model fails, COAT efficiently discovers overlooked factors without requiring the LLM to process the entire dataset simultaneously.
- Robustness to Bias: COAT proved resilient in scenarios where ground-truth causality contradicted common sense. While direct LLM reasoning often defaulted to common-sense biases, COAT’s statistical verification layer corrected these errors based on the data.
5. Conclusion and Future Work
COAT represents a significant step toward automated causal discovery in unstructured domains. While the framework is currently constrained by the computational costs of LLM annotation and the underlying assumptions of traditional CD algorithms (such as faithfulness), it provides a scalable path forward. Future research will explore extending COAT to interventional settings, where LLMs could suggest specific experiments to further refine and validate the discovered causal graphs.
Summary updated