TL;DR
Researchers have developed chatPC, a hybrid approach that uses Large Language Models (LLMs) as automated "experts" to perform causal discovery. By framing conditional independence tests as natural language prompts and wrapping them in a statistical voting framework, they can reconstruct causal graphs from knowledge alone, sometimes outperforming traditional data-driven methods.
What Problem Does This Paper Address?
Understanding "what causes what" is the holy grail of science, from medicine to climate change. Traditionally, we find these relationships in two ways:
- Data-driven methods: Algorithms like the "PC algorithm" look for statistical patterns in massive datasets. However, they require huge amounts of high-quality data and often fail if there are hidden variables (confounders) they can't see.
- Expert-driven methods: You ask a human specialist. This is accurate but incredibly slow, expensive, and doesn't scale.
The authors of this paper ask: Can we use the vast, embedded knowledge within LLMs to act as an automated domain expert? Specifically, can an LLM tell us if two variables are independent of each other given some third factor—a core requirement for building causal maps?
Methods
The team introduced chatPC, which integrates LLMs into the classic PC algorithm.
The PC algorithm normally works by starting with a fully connected web of variables and systematically deleting links. It deletes a link between $X$ and $Y$ if it finds a set of variables $Z$ that makes $X$ and $Y$ independent (written as $X \perp Y | Z$).
Instead of using a statistical test on a spreadsheet, chatPC uses an LLM "oracle":
- Prompting: The LLM is given a "persona" (e.g., "You are an expert in epidemiology") and context about the variables.
- Chain-of-Thought (CoT): The model is asked to explain its reasoning before giving a "YES" (independent) or "NO" (dependent) answer.
- Statistical Voting: Because LLMs are stochastic (probabilistic), asking once isn't enough. The researchers ask the LLM multiple times (a batch of $n=10$ or $20$) and use a hypothesis test to decide the final answer. This allows them to tune the "significance level," giving them control over false positives and negatives, much like a real statistical test.
Datasets
The authors evaluated chatPC across several diverse benchmarks:
- BNLearn Benchmarks: Classic pedagogical causal graphs including cancer (smoking/pollution), burglary (the earthquake/alarm example), and asia (respiratory disease).
- Sachs Dataset: A real-world biological dataset involving protein-signaling networks.
- Climate Teleconnections: Graphs representing complex atmospheric interactions (bk-spv and nao-dk-med).
- Spurious Correlations: A "sanity check" dataset of variables that are statistically correlated but causally unrelated (e.g., per capita cheese consumption vs. deaths by bedsheet entanglement) to see if the LLM gets fooled.
Key Insights and Ideas
- GPT-4 is a much better "Expert" than GPT-3.5: The researchers tested "permutation consistency"—the idea that if $X$ is independent of $Y$, then $Y$ must be independent of $X$. GPT-4 achieved 87% consistency, while GPT-3.5 struggled at 51%.
- LLMs are Cautious: The models showed a "conservative bias," tending to assume variables are dependent unless there is strong evidence otherwise. This results in denser causal graphs with fewer missing links.
- Reasoning over Correlation: In the "spurious correlations" test, the LLM correctly identified most pairs as independent. Interestingly, for "chicken consumption vs. oil imports," the LLM argued for a hidden connection: oil prices affect transportation costs, which in turn affect the price and consumption of chicken. This shows the LLM isn't just matching patterns; it's simulating causal mechanisms.
Key Results
- Reconstructing the "Burglary" Graph: chatPC perfectly recovered the skeleton of the classic burglary/earthquake causal graph.
- Beating Data-Driven Baselines: On the asia dataset, the LLM-based approach outperformed a standard data-driven baseline (based on mutual information) across all metrics (accuracy, F1, precision, and recall).
- Fixing Known Errors: In the complex sachs protein dataset, GPT-4 correctly identified connections that traditional data-driven methods famously miss, such as the link between proteins Plc-γ and PKC.
Limitations and Future Work
- Scalability: The number of required independence tests grows exponentially with the number of variables. Querying an LLM hundreds of times for a large graph is currently too slow and expensive.
- Knowledge Boundaries: The method relies entirely on what the LLM "knows." If a scientific field is brand new or highly controversial, the LLM may hallucinate or provide incorrect reasoning.
- Future Directions: The authors suggest using Retrieval-Augmented Generation (RAG) to ground the LLM's answers in specific scientific papers. They also propose a "best of both worlds" approach: using data-driven tests where data is plentiful and LLM-based tests where it is scarce or hidden variables are suspected.
Summary updated