[Paper Review] Can large language models build causal graphs?
GPT-3 can help signal edge presence/absence in medical DAGs, with accuracy affected by prompts, verbs, and specificity; expert verification remains essential.
Building causal graphs can be a laborious process. To ensure all relevant causal pathways have been captured, researchers often have to discuss with clinicians and experts while also reviewing extensive relevant medical literature. By encoding common and medical knowledge, large language models (LLMs) represent an opportunity to ease this process by automatically scoring edges (i.e., connections between two variables) in potential graphs. LLMs however have been shown to be brittle to the choice of probing words, context, and prompts that the user employs. In this work, we evaluate if LLMs can be a useful tool in complementing causal graph development.
Motivation & Objective
- Evaluate if GPT-3 can signal the presence or absence of edges in medical DAGs from text data.
- Assess how prompt engineering affects edge classification accuracy.
- Examine the impact of linking verbs and language specificity on accuracy.
- Identify limitations and contexts where GPT-3 is more or less reliable.
- Suggest directions for integrating LLMs with expert DAG development.
Proposed method
- Construct four ground-truth medical DAGs with varying complexity.
- For every ordered pair of variables, query GPT-3 with two statements (edge present vs edge absent) and compare accuracy scores.
- Experiment with prompts anchored to medical authorities (e.g., doctors, studies) to assess prompt effects.
- Test different linking verbs describing relationships (e.g., 'causes', 'increases risk') to gauge impact on accuracy.
- Vary specificity of variable descriptions to see if more detailed language improves performance.
Experimental results
Research questions
- RQ1Can GPT-3 reliably indicate the existence of an edge between two medical variables in a DAG based on text data?
- RQ2Do prompts that reference medical authorities improve GPT-3 edge classification accuracy?
- RQ3Do linking verbs or phrasing influence the accuracy of edge detection by GPT-3?
- RQ4Does increased specificity of variable descriptions improve GPT-3’s ability to identify causal edges?
Key findings
- GPT-3 achieved accuracy well above random on all DAGs under at least one experimental setting.
- Prompt engineering had mixed effects; medical-doctor prompts boosted accuracy for some DAGs, but not others, and Big Pharma prompts often reduced accuracy.
- Linking verbs influenced accuracy, with 'increases risk' and 'cause' performing variably across DAGs.
- Greater specificity did not consistently improve accuracy and sometimes reduced it depending on the DAG and verb used.
- Overall, GPT-3 performance varied by DAG and settings, but improvements were observed, suggesting utility as a complement to expert DAG development.
- The study emphasizes that expert verification remains essential when using LLMs to build DAGs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.