Skip to main content
QUICK REVIEW

[Paper Review] Demystifying Long Chain-of-Thought Reasoning in LLMs

Edward Yeo, Tong Yang|ArXiv.org|Feb 5, 2025
Semantic Web and OntologiesComputer Science3 citations
TL;DR

The paper analyzes how long chain-of-thought reasoning emerges in LLMs via supervised fine-tuning and reinforcement learning, identifying data quality, reward design, and compute as key factors for stable long CoT growth and generalization, including emergent patterns from long CoT data.

ABSTRACT

Scaling inference compute enhances reasoning in large language models (LLMs), with long chains-of-thought (CoTs) enabling strategies like backtracking and error correction. Reinforcement learning (RL) has emerged as a crucial method for developing these capabilities, yet the conditions under which long CoTs emerge remain unclear, and RL training requires careful design choices. In this study, we systematically investigate the mechanics of long CoT reasoning, identifying the key factors that enable models to generate long CoT trajectories. Through extensive supervised fine-tuning (SFT) and RL experiments, we present four main findings: (1) While SFT is not strictly necessary, it simplifies training and improves efficiency; (2) Reasoning capabilities tend to emerge with increased training compute, but their development is not guaranteed, making reward shaping crucial for stabilizing CoT length growth; (3) Scaling verifiable reward signals is critical for RL. We find that leveraging noisy, web-extracted solutions with filtering mechanisms shows strong potential, particularly for out-of-distribution (OOD) tasks such as STEM reasoning; and (4) Core abilities like error correction are inherently present in base models, but incentivizing these skills effectively for complex tasks via RL demands significant compute, and measuring their emergence requires a nuanced approach. These insights provide practical guidance for optimizing training strategies to enhance long CoT reasoning in LLMs. Our code is available at: https://github.com/eddycmu/demystify-long-cot.

Motivation & Objective

  • Investigate factors enabling long chain-of-thought (CoT) reasoning in LLMs.
  • Compare long CoT versus short CoT data for SFT and RL initialization.
  • Assess reward designs and verifiable signals for stabilizing CoT length growth and performance.
  • Explore how emergent long CoT abilities arise and how to measure them.

Proposed method

  • Fine-tune LLMs with long vs short CoT data using SFT.
  • Apply PPO-based RL with a rule-based verifier and verifiable rewards to optimize long CoT generation.
  • Introduce a cosine length-scaling reward with a repetition penalty to stabilize CoT length growth.
  • Experiment with noisy, web-extracted data (WebInstruct) as silver supervision for SFT and RL.
  • Distill emergent long CoT patterns from strong teachers and compare with constructed patterns.
  • Analyze RL from base models versus long CoT SFT to study emergence and compute requirements.

Experimental results

Research questions

  • RQ1What factors enable the emergence and stabilization of long CoT reasoning in LLMs?
  • RQ2How do SFT and RL initialization with long CoT data compare to short CoT data in terms of performance and RL gains?
  • RQ3What reward designs stabilize CoT length growth and promote beneficial reasoning behaviors (e.g., branching, backtracking)?
  • RQ4Can noisy verifiable data (silver supervision) effectively scale RL signals for long CoT across benchmarks?
  • RQ5Do emergent long CoT abilities arise from base models, and under what conditions?

Key findings

  • Long CoT SFT enables higher accuracy and scales further with more SFT tokens than short CoT, with gains persisting up to 3.5B tokens in MATH-500.
  • RL can significantly improve long CoT models initialized from long CoT SFT, while short CoT SFT yields limited RL gains.
  • Emergent long CoT patterns distilled from strong teachers generalize better and yield larger RL gains on OOD benchmarks than constructed patterns.
  • Cosine length-scaling reward with a repetition penalty stabilizes CoT length growth during RL and improves downstream task performance.
  • Using noisy verifiable data (WebInstruct) with appropriate filtering and RL setup can boost OOD benchmark performance and overall averages.
  • Noisy data with a rule-based verifier works best when filtered to short-form answers for RL rewards.

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.