TL;DR
Chain-of-Thought (CoT) prompting significantly boosts LLM reasoning, but surprisingly, the logical validity of the demonstrations doesn't matter nearly as much as we thought. This study reveals that LLMs can achieve 80-90% of CoT performance even when prompted with completely invalid reasoning steps, provided the demonstrations remain relevant to the query and maintain a coherent structure.
What Problem Does This Paper Address?
Since the introduction of Chain-of-Thought (CoT) prompting, Large Language Models (LLMs) have shown remarkable improvements in multi-step reasoning tasks like arithmetic and factual Q&A. By providing a few examples that include intermediate reasoning steps (rationales), we "teach" the model to show its work.
However, the community has lacked a deep understanding of why this works. Is the model actually learning to reason by following the logic in the prompt? Or is the prompt simply a formatting guide? This paper investigates which components of a CoT rationale—logical validity, relevance to the query, or the order of steps—are truly essential for performance.
Methods
The authors conducted a series of rigorous ablation studies using state-of-the-art LLMs, primarily InstructGPT (text-davinci-002), but also extending to text-davinci-003, PaLM, and Flan-PaLM.
They decomposed CoT rationales into two parts:
- Bridging Objects: The key elements needed for the solution (e.g., numbers in math, entities in QA).
- Language Templates: The surrounding text that connects these objects.
They then tested several "broken" prompt settings:
- Invalid Reasoning: The rationales use the correct numbers/entities from the query but the logic connecting them is nonsensical (see Figure 1).
- No Relevance: The rationales are logically sound but discuss completely different entities or numbers than the query.
- No Coherence: The steps of the rationale are randomly shuffled, destroying the linear flow.
Performance was measured both extrinsically (final answer accuracy) and intrinsically (checking if the model's generated intermediate steps contained the correct "bridging objects").
Datasets
The study focused on two representative multi-step reasoning benchmarks:
- GSM8K: A dataset of grade-school math word problems requiring arithmetic reasoning.
- Bamboogle: A dataset of multi-hop factual questions designed to be difficult for standard search engines.
Key Insights and Ideas
- Logic is Optional (in the prompt): The most startling finding is that providing rationales with "invalid reasoning" still allows the model to perform well. The LLM seems to use its own internal reasoning capabilities rather than strictly mimicking the logic in the prompt.
- Elicitation, Not Learning: The results suggest that LLMs don't "learn to reason" from CoT prompts. Instead, the prompts serve to elicit reasoning skills the model already acquired during pre-training. The prompt acts as a "format regularizer," telling the model how to structure its output (step-by-step) rather than what logic to use.
- Relevance is Crucial: While logic can be flawed, the prompt must be relevant to the query. If the prompt discusses "cats and dogs" while the query is about "chocolates," the model's performance collapses, often falling below standard few-shot prompting.
- Structure Matters: The order of language templates is more important than the order of bridging objects. Shuffling the text steps confuses the model more than shuffling the numbers, likely because the text provides the structural scaffolding for the model's generation.
Key Results
The quantitative results highlight the resilience of CoT to logical errors in the prompt:
As shown in the table below, "Invalid Reasoning" (Setting 1) retains the vast majority of CoT's performance. However, "No relevance" (Setting 7) leads to a massive drop, especially in math tasks.
- GSM8K: Standard prompting gets ~15% accuracy. CoT jumps to ~48%. Invalid reasoning still hits ~40%.
- Bamboogle: Standard gets ~21%. CoT hits ~45%. Invalid reasoning stays high at ~39%.
- Consistency: Figure 2 (below) shows that the performance gap between valid and invalid reasoning remains consistent regardless of the problem's complexity (reasoning depth).
Limitations and Future Work
- Task Variety: The authors noted that their ablation designs didn't apply well to highly template-based symbolic tasks (like "Last Letter Concatenation"), where the language templates are identical across all steps.
- Manual Ablations: The "invalid reasoning" prompts were manually written. The authors suggest that a more systematic, automated way to generate logical fallacies would be a valuable next step.
- Intrinsic Metrics: While "bridging object recall" is a good proxy for rationale quality, the authors admit it doesn't capture the full nuance of natural language reasoning and call for more comprehensive, reference-free evaluation methods.
Summary updated