Introduction
Chain-of-Thought (CoT) prompting has emerged as a powerful technique for enhancing the multi-step reasoning capabilities of Large Language Models (LLMs). By providing a few examples that include intermediate reasoning steps (rationales), models can solve complex problems that they would otherwise fail. However, the fundamental question remains: why does this work? Is the model learning logical rules from the prompt, or is it simply being triggered to use its internal knowledge? This study investigates the essential components of CoT—logical validity, entity relevance, and step coherence—to uncover what truly drives performance gains.
Methodology
The researchers conducted extensive ablation studies across several state-of-the-art LLMs, including InstructGPT and Flan-PaLM. They focused on two challenging benchmarks: GSM8K (grade-school math) and Bamboogle (multi-hop factual questions). To isolate the impact of different factors, they decomposed CoT rationales into "Bridging Objects" (key entities or numbers) and "Language Templates" (the connecting text).
They tested three specific "corrupted" prompt configurations:
- Invalid Reasoning: The prompt uses correct numbers and templates, but the logical steps are intentionally broken (e.g., subtracting instead of adding).
- No Relevance: The numbers or text in the prompt are replaced with random, unrelated data from the dataset.
- No Coherence: The order of the reasoning steps is shuffled, destroying the logical sequence.
The study evaluated both extrinsic performance (final answer accuracy) and intrinsic performance (the logical soundness of the model's own generated reasoning, measured via Inter. F1).
Key Insights: Logic is Optional
The most surprising finding of the study is that the logical validity of the demonstrations in the prompt matters remarkably little. Models prompted with nonsense logic still generated correct logic during their own inference process. This suggests that CoT does not "teach" the model how to reason in real-time. Instead, the prompt acts as a format trigger that elicits reasoning skills the model already acquired during its massive pre-training phase.
While logic is flexible, relevance is non-negotiable. If the prompt uses entities or numbers completely unrelated to the query, performance plummets—often falling below standard few-shot prompting. Additionally, the coherence of the step-by-step structure is vital; the model needs to see a structured sequence to know it should produce one itself.
Experimental Results
On the GSM8K math dataset using text-davinci-002, providing invalid reasoning in the prompt allowed the model to retain 80-90% of the performance gains seen with valid CoT. Stronger, instruction-tuned models like Flan-PaLM were even more robust to these logical errors, likely due to their stronger internal priors for reasoning.
As illustrated in the reasoning depth analysis, the performance gap between valid CoT and invalid reasoning remains relatively consistent as the complexity of the problem increases. This further reinforces the idea that the model's internal reasoning process is largely independent of the specific logical path provided in the few-shot demonstrations.
Conclusion and Future Work
This research challenges the conventional wisdom that CoT works by providing a logical roadmap for the model to follow. Instead, it highlights that the "secret sauce" lies in providing a structured, relevant format that encourages the model to activate its latent reasoning abilities. These findings suggest that current benchmarks might be overestimating a model's ability to learn new reasoning schemas in-context, as they are often just tapping into pre-existing knowledge. Future research should investigate whether valid demonstrations become more critical for tasks that require entirely novel reasoning patterns not encountered during pre-training.
Summary updated