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

A Theoretical Understanding of Chain-of-Thought: Coherent Reasoning and Error-Aware Demonstration

Yingqian Cui, Pengfei He, Xianfeng Tang, Qi He, Chen Luo, Jiliang Tang, Yue Xing · DOI

Introduction

Chain-of-Thought (CoT) prompting has become a cornerstone of Large Language Model (LLM) performance, yet the theoretical mechanisms behind its success have remained largely opaque. This research provides a formal foundation for CoT, arguing that its power lies in "coherent" reasoning—a process where the model uses the entire context window to self-correct intermediate errors.

The Coherence Advantage

Traditional theoretical views often treat CoT as "Stepwise In-Context Learning," where each reasoning step is predicted in isolation. This paper demonstrates that LLMs actually perform "Coherent CoT," integrating the original problem statement with all previous steps. This holistic view acts as a safety net; by maintaining a connection to the initial input, the transformer can mitigate the impact of "hallucinated" or noisy intermediate steps that might otherwise derail the logic.

A critical insight from this analysis is the Intermediate Fragility Principle: models are significantly more sensitive to errors in intermediate reasoning steps than to noise in final labels. This suggests that while an LLM can tolerate a few wrong answers in its context, a single logical slip in a reasoning chain is catastrophic.

Error-Aware Demonstration (EAD)

To combat this fragility, the authors introduce Error-Aware Demonstration (EAD). This prompting strategy moves beyond simple "Question-Answer" pairs by including incorrect reasoning paths followed by explicit error analyses.

The Error-Aware Demonstration (EAD) prompting format compared to standard CoT.

By showing the model "what an error looks like" and explaining why it is wrong, EAD stabilizes the reasoning process. The researchers found that the "Error Explanation" is vital; without it, the model can become confused by the incorrect logic.

Empirical Performance

The EAD method was validated across multiple state-of-the-art models, including GPT-4o-mini, Gemini Pro, and DeepSeek 67B, on challenging benchmarks like Big-Bench Hard (BBH) and GSM8k.

Performance improvements across various datasets and models using Error-Aware Demonstration (w/ IR).

As shown in the results, the inclusion of Incorrect Reasoning (IR) paths led to consistent performance gains. For example, on the "Tracking Shuffled Objects" task, Gemini Pro's accuracy improved from 58.20% to 64.80%. Notably, using model-generated errors that were then manually explained often yielded the best results, suggesting that models benefit most from seeing the types of mistakes they are prone to making.

Conclusion

This work transitions our understanding of Chain-of-Thought from empirical observation to theoretical rigor. By identifying the importance of coherence and the fragility of intermediate steps, the authors provide a clear path forward for more robust prompting techniques. Error-Aware Demonstration represents a practical application of these theories, significantly enhancing the reasoning capabilities of modern LLMs.

Summary updated

BibTeX
@inproceedings{cui2025theoretical,
  author = {Yingqian Cui and Pengfei He and Xianfeng Tang and Qi He and Chen Luo and Jiliang Tang and Yue Xing},
  title = {{A Theoretical Understanding of Chain-of-Thought: Coherent Reasoning and Error-Aware Demonstration}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=2vtbbM2iqm},
}
Figure