Discovering and Reasoning of Causality in the Hidden World with Large Language Models

Chenxi Liu, Yongqiang Chen, Tongliang Liu, Mingming Gong, James Cheng, Bo Han, Kun Zhang

TL;DR

The Causal representatiOn AssistanT (COAT) framework bridges the gap between unstructured data (like text and images) and rigorous causal discovery. By using Large Language Models (LLMs) to propose and parse high-level variables and traditional causal algorithms to verify them, COAT enables reliable causal reasoning in complex, "hidden" worlds where variables aren't pre-defined.

What Problem Does This Paper Address?

Causal Discovery (CD)—the process of figuring out "what causes what"—usually requires a set of high-quality, expert-defined variables (e.g., blood pressure, age, temperature). However, in the real world, data is often unstructured. For example, a doctor has clinical notes, not just a spreadsheet of symptoms; a marketer has customer reviews, not just a "satisfaction score."

While LLMs are excellent at summarizing unstructured data, they are notoriously unreliable at direct causal reasoning, often suffering from hallucinations or relying on mere correlations. Conversely, traditional CD algorithms are mathematically rigorous but can't "read" a paragraph or "see" an image. This paper addresses the lack of well-defined high-level variables in unstructured data, which has long been a roadblock for applying causal methods to real-world problems.

Methods

The authors introduce COAT, a "propose-and-verify" framework that treats the LLM as a Representation Assistant. Instead of asking the LLM "Does X cause Y?", COAT follows an iterative loop:

  1. Factor Proposal: The LLM examines a subset of unstructured data and proposes high-level factors (e.g., "apple sweetness" from a text review).
  2. Factor Parsing: The LLM (or an external tool) converts the unstructured data into structured values for these factors across the entire dataset.
  3. Causal Discovery & Feedback: A traditional CD algorithm (like FCI) analyzes the structured data to build a causal graph.
  4. Refinement: If the current factors don't fully explain the target variable, the system provides feedback to the LLM (e.g., showing samples where the prediction failed) to prompt it to find new, missing factors.
The COAT framework uses a loop of factor proposal, annotation, and causal discovery to refine its understanding of the data.

The paper details three specific variants:

  • COAT-MB: Focuses on finding the Markov Blanket (the set of variables that makes a target variable independent of everything else).
  • COAT-PAG: Extends the search to build a Partial Ancestral Graph, resolving the direction of causal arrows by looking for variables outside the immediate neighborhood of the target.
  • COAT-ADJ: Identifies adjustment sets to allow for unbiased causal effect estimation (e.g., calculating the true impact of a marketing campaign).

Datasets

The authors evaluated COAT across a diverse range of benchmarks:

  • AppleGastronome (Synthetic): A new benchmark where LLMs generate text reviews based on hidden ground-truth factors (size, aroma, taste).
  • Neuropathic (Semi-real): A clinical diagnosis simulator converted into a text-based task.
  • Brain Tumor (Real-world): Using MRI images to elicit visual factors like "Mass Effect" and "Contrast Enhancement."
  • ENSO (Real-world): Climate data where the LLM writes code to interact with a NetCDF database to find causes of sea surface temperature changes.
  • Stock News (Real-world): Analyzing NYT news summaries to find factors influencing Microsoft’s stock return rate.

Key Insights and Ideas

  • LLMs as Feature Engineers, Not Reasoners: The core "aha" moment is that LLMs are better at identifying potential variables than orienting causal edges. By delegating the orientation to statistical algorithms, COAT avoids LLM bias.
  • The "Hidden World" Identifiability: You often cannot determine the direction of a causal relationship if you only look at the variables directly related to your target. As shown in Figure 1, including a variable outside the Markov Blanket (like $X_3$) is often necessary to orient the arrows between $X_1, X_2,$ and $Y$.
  • Quantifying LLM Ability: The authors propose two metrics: Perception Score (how likely the LLM is to suggest a valid factor) and Capacity Score (how much a suggested factor actually reduces uncertainty). They found that while models vary wildly in perception, their capacity to suggest high-quality factors is relatively consistent among top-tier models.
Figure 1 illustrates how limited node sets (b) can obscure the true causal directions (a) that become clear when the node set is expanded (c).

Key Results

  • Superior Accuracy: On the AppleGastronome benchmark, COAT achieved an F1 score of 0.88–0.97 (depending on the LLM), significantly outperforming zero-shot LLM reasoning, which often hovered around 0.50.
  • Robustness: COAT proved resistant to "disturbing factors"—variables that are correlated with the target but aren't actually part of the causal mechanism.
  • Real-world Utility: In the Stock News case study, the factors discovered by COAT (like "Innovation and Technology Focus") yielded a higher Sharpe ratio (1.86) in trading simulations compared to non-causal factors, proving the elicited variables have genuine predictive and causal power.

Limitations and Future Work

  • Cost: Running LLM annotations over thousands of samples can be expensive (though the authors note that models like GPT-4o-mini have brought costs down to pennies per 1,000 samples).
  • Causal Chain Length: If the causal chain is very long, the iterative process might take many rounds to reach the "root" causes.
  • Future Directions: The authors suggest extending COAT to interventional settings, where the LLM could actually suggest experiments to run to further clarify causal links. They also aim to integrate other CD algorithms beyond the constraint-based methods used here.

Summary updated

BibTeX
@inproceedings{liu2024discovering,
  author = {Chenxi Liu and Yongqiang Chen and Tongliang Liu and Mingming Gong and James Cheng and Bo Han and Kun Zhang},
  title = {{Discovering and Reasoning of Causality in the Hidden World with Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=w50ICQC6QJ},
}
Figure