NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

What Makes Chain-of-Thought Prompting Effective? A Counterfactual Study

Aman Madaan, Katherine Hermann, Amir Yazdanbakhsh

Abstract

Chain-of-Thought (CoT) prompting significantly enhances the reasoning capabilities of Large Language Models (LLMs). However, the underlying mechanisms of its effectiveness remain poorly understood. This study employs a counterfactual approach, systematically isolating prompt components—such as symbols and structural patterns—to identify the "active ingredients" of CoT. Our findings reveal that while specific symbols are secondary, the structural patterns and linguistic frequency of the prompt are crucial. We propose that CoT functions primarily as a "task-reminding" mechanism that activates the model's internal knowledge rather than teaching new reasoning logic.

Introduction

Chain-of-Thought (CoT) prompting has become the gold standard for coaxing reasoning out of Large Language Models. By providing a few examples that include intermediate steps (a "thought"), models suddenly become much better at math, logic, and commonsense tasks. Despite its success, it remains unclear whether the model is truly learning a new reasoning algorithm from those few examples or if it is simply a formatting query. This paper seeks to move past the intuitive "human-like thinking" analogy and provide a systematic explanation for CoT’s success by isolating its active components.

Methodology: Counterfactual Prompting

The authors employ Counterfactual Prompting, a method where they take a standard CoT prompt and modify exactly one component at a time to observe changes in model performance. They categorize prompt elements into two main buckets:

  1. Symbols: The specific data points (e.g., digits like 3, 5, or entity names like Jamal Murray).
  2. Patterns: The structural templates (e.g., mathematical equations like 3 + 2 = 5, or specific sentence structures).

Key experimental variations included replacing numbers with Greek letters (abstract symbols), providing misleading logic, and altering syntax to less frequent styles, such as "Yoda-speak," to test the impact of linguistic frequency.

Overview of Counterfactual Prompting variations including symbol abstraction and syntax changes.

Key Insights and Results

The study evaluated performance across four diverse reasoning domains: Mathematical (GSM-8K), Commonsense (Sports), Commonsense (Date), and Symbolic (Sorting). The results challenge the notion that CoT teaches reasoning, suggesting instead a "task-reminding" effect.

  • Symbols are Secondary: Surprisingly, replacing all numbers in a math prompt with Greek letters ($\alpha, \beta, \gamma$) only caused a minor drop in the solve rate from 27.37% to 25.70%. This suggests the model isn't "learning" math from the prompt; it already knows how. The prompt just tells it which knowledge to activate.
  • Patterns are Paramount: While symbols are flexible, structure is not. Removing equations or consistent sentence structures caused performance to crater to 10.01%, nearly the same as direct prompting without any "thoughts."
  • The "Yoda" Effect: LLMs are sensitive to text styles frequent on the web. When prompts were rewritten in infrequent "Yoda-speak" syntax, performance dropped significantly, indicating that CoT relies on the model's ability to easily map the prompt to its training data.
  • Concise CoT (CCoT): A streamlined version of CoT that retained only essential information achieved similar or better results than standard CoT while using roughly 20% fewer tokens, proving that the logic of the steps matters more than verbosity.
Solve rates across different domains under various counterfactual conditions, demonstrating the impact of symbol abstraction and out-of-distribution data.

Discussion and Limitations

The authors argue that few-shot prompting is better described as "few-shot reminding." The prompt serves to communicate the what (task understanding) rather than the how (reasoning logic). CoT's biggest advantage is helping the model explicitly fill in missing information or retrieve internal commonsense knowledge it might otherwise skip.

However, the study is limited by the black-box nature of the models used (PaLM, GPT-3), which prevents probing internal weight-level interactions. Additionally, the findings are based on four specific reasoning domains and may vary for more creative or open-ended generation tasks.

Conclusion

By isolating the "active ingredients" of CoT, this research provides a clearer picture of why prompting works. The effectiveness of CoT lies not in the specific symbols used, but in the structural patterns that remind the model of the task at hand. These insights pave the way for more token-efficient and robust prompting strategies that focus on structural clarity rather than verbose explanations.

Summary updated

BibTeX
@inproceedings{madaan2023what,
  author = {Aman Madaan and Katherine Hermann and Amir Yazdanbakhsh},
  title = {{What Makes Chain-of-Thought Prompting Effective? A Counterfactual Study}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.101},
}
Figure