TL;DR
This paper introduces a new task for Large Language Models (LLMs): hypothesizing missing variables in incomplete causal graphs. They developed a benchmark to test LLMs on this task, finding that LLMs excel at identifying mediators but struggle with core cause-and-effect variables, with some open-source models even outperforming GPT-4 in certain scenarios.
What Problem Does This Paper Address?
Scientific discovery relies heavily on forming and refining hypotheses, a process that is often expensive and requires deep domain expertise. A crucial aspect of this is understanding causality – how variables influence each other. While LLMs have shown promise in various reasoning tasks, their ability to assist in the early stages of scientific discovery, specifically in generating hypotheses about missing causal links in a partially understood system, remains underexplored. This paper addresses this gap by framing the problem as "hypothesizing missing causal variables" within a given causal graph structure, aiming to automate a part of the hypothesis generation phase.
Methods
The authors propose a novel task where LLMs are given a partial causal Directed Acyclic Graph (DAG) and tasked with identifying or hypothesizing the missing variables to complete it. They design a benchmark with four progressively challenging tasks:
- Out-of-Context Controlled Variable Identification: LLMs select the missing variable from a multiple-choice list containing irrelevant distractors.
- In-Context Controlled Variable Identification: A more complex version where LLMs identify a missing variable from a multiple-choice list, but one of the distractors is contextually relevant (an "in-context distractor"), requiring deeper reasoning.
- Hypothesizing in Open World: LLMs are asked to generate a set of potential hypotheses for the missing variable without any choices, testing their generative capabilities.
- Iteratively Hypothesizing in Open World: This task focuses on identifying mediators in a causal chain, where LLMs hypothesize mediators one by one, updating the graph at each step.
They evaluate LLMs using metrics like accuracy, False Node Accuracy (FNA), semantic similarity, and an "LLM-as-Judge" metric to assess the quality of hypotheses.
Datasets
The authors utilize semi-synthetic datasets from the BNLearn repository, including:
- Cancer
- Survey
- Asia
- Alzheimers
- Child
- Insurance
- Alarm
They also evaluate on a realistic Alzheimer's Disease dataset developed by domain experts. The benchmark is designed to have varying difficulty levels and knowledge assumptions, simulating real-world scientific discovery scenarios.
Key Insights and Ideas
- LLMs as Causal Hypothesis Generators: The core idea is to leverage LLMs not just for reasoning on existing data, but for generating novel hypotheses about missing components of causal models, a crucial step in scientific discovery.
- Mediators are LLMs' Strong Suit: LLMs demonstrate a strong ability to hypothesize mediator variables – those that lie on the causal pathway between a cause and an effect. This is particularly relevant in complex systems where direct cause-effect relationships might be known, but the intermediate steps are less clear.
- Core Causal Links are Challenging: LLMs underperform when asked to hypothesize the primary cause or effect variables themselves, suggesting that while they can fill in the gaps in known structures, identifying fundamental causal drivers or outcomes is more difficult.
- Context is King (Especially for Smaller Models): Providing contextual information about the causal graph significantly improves LLM prediction accuracy, especially for smaller models. This highlights the importance of how information is presented to LLMs.
- Open-Source Models Shine: Surprisingly, some open-source LLMs (like Mixtral) demonstrated competitive or even superior performance compared to the closed-source GPT-4 on certain tasks, challenging the notion that larger, proprietary models are always best for complex reasoning.
Key Results
- Task 1 (Out-of-Context): Most LLMs, including GPT-4 and Mixtral, achieved near-perfect accuracy on many datasets, suggesting they can identify missing variables when given clear choices. However, the authors caution this might be due to task simplicity rather than deep causal reasoning.
- Task 2 (In-Context): GPT-3.5 and GPT-4 showed high accuracy and low False Node Accuracy (FNA), indicating they can handle more complex scenarios with distractors. Open-source models showed variable performance.
- Task 3 (Open World): LLMs performed better at hypothesizing colliders and mediators, indicating proficiency in understanding common causes and indirect relationships. They struggled more with sink nodes (potential outcomes).
- Task 4 (Iterative Mediator Hypothesizing): LLMs effectively hypothesized multiple mediators, and the order of hypothesis generation (guided by Mediation Influence Score) could influence results.
- Model Performance: GPT-4 and Mixtral generally performed best across tasks, but some open-source models like Mistral showed surprising strengths on specific datasets.
Limitations and Future Work
- LLM Biases: The "LLM-as-Judge" metric relies on GPT-4, which might have inherent biases. The authors acknowledge this and use semantic similarity as a complementary evaluation.
- Dataset Size for Fine-tuning: The authors note that current causal graph datasets are too small for effective fine-tuning of LLMs, making prompt-based approaches more practical for understanding LLM capabilities.
- Domain Specificity: While LLMs show promise, performance can vary across domains, especially in specialized fields like genomics (Sachs dataset), suggesting a need for more domain-specific benchmarks.
- Future Work: The authors suggest exploring more complex causal structures, investigating the impact of different prompt engineering techniques (like Chain-of-Thought), and developing more robust evaluation metrics that capture deeper causal understanding beyond semantic similarity. They also highlight the potential for LLMs to assist in refining hypotheses iteratively, mirroring the scientific discovery process.
Summary updated