Structured prompting helps LLMs differentiate between correlation and causation through step-by-step analysis.
PC-SUBQ, the proposed prompting strategy, breaks down causal inference into algorithmic steps, helping LLMs determine valid cause-effect relationships from correlation statements with improved accuracy.
-----
https://arxiv.org/abs/2412.13952
π€ Original Problem:
LLMs struggle to infer causal relationships from correlation statements, performing poorly on tasks like determining if "Ice cream sales cause shark attacks" from "Ice cream sales correlate with shark attacks."
-----
π§ Solution in this Paper:
β PC-SUBQ decomposes causal inference into 8 fixed subquestions aligned with PC algorithm steps
β Each subquestion corresponds to a specific step in discovering causal structure
β The system sequentially prompts LLMs with one subquestion at a time
β Answers from previous subquestions augment later prompts
β Few-shot examples guide the LLM through each algorithmic step
-----
π‘ Key Insights:
β Breaking down complex reasoning into algorithmic steps improves LLM performance
β Formal causal reasoning can be enhanced through structured prompting
β The approach is robust to query perturbations and variable renaming
-----
π Results:
β Outperformed baseline prompting strategies across 5 different LLMs
β Maintained performance when variable names were modified
β Showed correct reasoning on natural language examples not seen in training










