Skip to main content
QUICK REVIEW

[Paper Review] A Theoretical Understanding of Chain-of-Thought: Coherent Reasoning and Error-Aware Demonstration

Yingqian Cui, Pengfei He|arXiv (Cornell University)|Oct 21, 2024
Distributed systems and fault toleranceComputer Science3 citations
TL;DR

This paper proposes a theoretical framework to understand Chain-of-Thought (CoT) prompting in large language models, showing that coherent reasoning—where later steps integrate earlier reasoning—improves error correction and prediction accuracy over stepwise isolation. It demonstrates that models are more sensitive to errors in intermediate reasoning steps than final answers, leading to a novel prompt design that includes both correct and incorrect reasoning paths to enhance robustness and performance on reasoning tasks.

ABSTRACT

Few-shot Chain-of-Thought (CoT) prompting has demonstrated strong performance in improving the reasoning capabilities of large language models (LLMs). While theoretical investigations have been conducted to understand CoT, the underlying transformer used in these studies isolates the CoT reasoning process into separated in-context learning steps (Stepwise ICL). In this work, we theoretically show that, compared to Stepwise ICL, the transformer gains better error correction ability and more accurate predictions if the reasoning from earlier steps (Coherent CoT) is integrated. Given that this coherent reasoning changes the behavior of the transformer, we further investigate the sensitivity of the transformer with Coherent CoT when the demonstration examples are corrupted at the inference stage. Our theoretical results indicate that the transformer is more sensitive to errors in intermediate reasoning steps than the final outcome. Building upon this observation, we propose an improvement on CoT by incorporating both correct and incorrect reasoning paths in the demonstration. Our experiments validate the effectiveness of the proposed approach.

Motivation & Objective

  • To theoretically analyze how coherent reasoning in CoT differs from stepwise in-context learning (Stepwise ICL) in transformer models.
  • To investigate the sensitivity of Coherent CoT models to errors in intermediate reasoning steps versus final answers during inference.
  • To develop a prompt composition method that improves CoT performance by incorporating both correct and incorrect reasoning paths in demonstrations.
  • To validate through experiments that the proposed method enhances reasoning accuracy and robustness in few-shot CoT settings.

Proposed method

  • Theoretical analysis compares Stepwise ICL (isolated step-by-step reasoning) with Coherent CoT (holistic integration of all reasoning steps) in transformer models.
  • Sensitivity analysis is conducted to measure model response to random perturbations at different reasoning steps in demonstration examples.
  • A new prompt composition strategy is proposed that includes both correct and incorrect reasoning paths in demonstrations to improve accuracy of intermediate steps.
  • The method leverages the insight that intermediate steps are more sensitive to errors, so enhancing their quality through diverse examples boosts overall performance.
  • Experiments are conducted on GSM8K and BBH benchmarks to validate the effectiveness of the proposed prompting approach.
  • Theoretical framework extends prior work by modeling how holistic reasoning affects model behavior and error resilience.
Figure 1: Comparison of Coherent CoT and Stepwise ICL
Figure 1: Comparison of Coherent CoT and Stepwise ICL

Experimental results

Research questions

  • RQ1How does coherent reasoning (Coherent CoT) compare to stepwise in-context learning (Stepwise ICL) in terms of prediction accuracy and error correction?
  • RQ2How sensitive is a Coherent CoT model to perturbations in intermediate reasoning steps versus final answers during inference?
  • RQ3Can incorporating both correct and incorrect reasoning paths in demonstrations improve the robustness and accuracy of CoT reasoning?
  • RQ4What theoretical properties of transformers underlie the improved performance of Coherent CoT over Stepwise ICL?

Key findings

  • Coherent CoT leads to better prediction performance and enhanced error correction compared to Stepwise ICL, due to holistic integration of reasoning steps.
  • The model is significantly more sensitive to errors in intermediate reasoning steps than in final answers, indicating intermediate steps are critical for accuracy.
  • Including both correct and incorrect reasoning paths in demonstrations improves the model’s ability to learn and correct errors in intermediate steps.
  • Experiments on GSM8K and BBH benchmarks confirm that the proposed prompting method improves reasoning accuracy over standard CoT and Stepwise ICL baselines.
  • Theoretical analysis confirms that coherent reasoning alters model behavior by enabling self-correction across steps, improving robustness.
  • Sensitivity analysis reveals that intermediate step errors propagate more strongly than final answer errors, justifying targeted improvement of intermediate reasoning quality.
Figure 2: CoT’s sensitivity to different steps (The green and red lines overlap because the results for adding noise to $y$ and the case of no noise are very close to each other.)
Figure 2: CoT’s sensitivity to different steps (The green and red lines overlap because the results for adding noise to $y$ and the case of no noise are very close to each other.)

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.