The Impact of Reasoning Step Length on Large Language Models

Mingyu Jin, Qinkai Yu, Dong Shu, Haiyan Zhao, Wenyue Hua, Yanda Meng, Yongfeng Zhang, Mengnan Du

Abstract

Chain of Thought (CoT) is significant in improving the reasoning abilities of large language models (LLMs). However, the correlation between the effectiveness of CoT and the length of reasoning steps in prompts remains largely unknown. This paper presents empirical experiments exploring these relations by expanding and compressing rationale reasoning steps within CoT demonstrations. Key findings indicate that lengthening reasoning steps, even without adding new information, considerably enhances LLM reasoning abilities. Conversely, shortening steps diminishes performance. Surprisingly, even incorrect rationales can improve outcomes if they maintain sufficient length. These results suggest that the number of steps is a critical factor in CoT effectiveness, particularly for complex tasks.

Introduction

Chain of Thought (CoT) prompting has revolutionized how we interact with Large Language Models (LLMs), enabling them to tackle complex reasoning tasks by "thinking aloud." While the benefits are clear, the underlying mechanism is still debated. Is it the logical rigor, the specific knowledge, or perhaps something more structural?

This research investigates a specific variable: the length of the reasoning chain. The authors hypothesize that the number of intermediate steps is a primary driver of performance, independent of information density or factual correctness.

Conceptual overview showing that increasing the number of reasoning steps leads to higher accuracy levels.

Methodology

To isolate the effect of length, the researchers employed two primary techniques across eight diverse datasets spanning arithmetic, commonsense, and symbolic reasoning.

1. Rationale Expansion

Five strategies were developed to "stretch" reasoning without introducing external knowledge:

  • Think About The Word: Defining and reinterpreting key terms.
  • Read the Question Again: Explicitly restating the prompt to reduce interference.
  • Repeat State: Summarizing the current problem state mid-logic.
  • Self-Verification: Adding internal logic checks.
  • Make Equation: Translating word problems into formal mathematical notation.

2. Rationale Compression

Conversely, GPT-4 was used to merge consecutive sentences in existing CoT prompts, creating highly concise versions that preserved all essential logic but reduced the total step count.

Key Results

The experiments, conducted primarily using GPT-3.5 and GPT-4, revealed a consistent trend: performance scales with the number of reasoning steps.

Empirical results across eight datasets showing the correlation between the number of added reasoning steps and model accuracy.
  • Zero-Shot Boost: Simply appending "you must think more steps" to a standard zero-shot prompt increased GSM8K accuracy from 64.1% to 76.1%.
  • Linear Correlation: In few-shot scenarios, a direct linear relationship was observed between step count and accuracy.
  • Task Dependency: While simple tasks reach a performance ceiling quickly, complex problems continue to benefit from increasingly long reasoning chains.

Discussion: Why Length Matters

The most striking insight is that length can outweigh accuracy. In specific tests, even when intermediate reasoning steps contained factual or mathematical errors, the models often reached the correct final answer—provided the chain remained long. This suggests that longer sequences provide a form of "computational buffer" that helps the model maintain the correct reasoning pattern.

Furthermore, the study found that compression is destructive. When reasoning was made more "efficient" by merging steps, performance dropped significantly, often regressing toward zero-shot levels. This implies that the verbosity of CoT is a functional necessity for the model's internal processing.

Conclusion

This study highlights the importance of reasoning step length as a critical hyperparameter in CoT prompting. For practitioners, the takeaway is clear: when facing complex reasoning challenges, encouraging the model to be more verbose—even redundantly so—can unlock significant performance gains. Future work will look into the internal neuronal activation patterns to better understand how these longer sequences influence the transformer's latent representations.

Summary updated

BibTeX
@inproceedings{jin2024impact,
  author = {Mingyu Jin and Qinkai Yu and Dong Shu and Haiyan Zhao and Wenyue Hua and Yanda Meng and Yongfeng Zhang and Mengnan Du},
  title = {{The Impact of Reasoning Step Length on Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.108},
}
Figure