[论文解读] Demystifying Long Chain-of-Thought Reasoning in LLMs
该论文通过有监督微调和强化学习分析链式思考推理在大语言模型中的出现时间,指出数据质量、奖励设计和计算资源是实现稳定的长链式思考增长与泛化的关键因素,并包含来自长链式数据的Emergent模式。
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.
研究动机与目标
- 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.
提出的方法
- 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.
实验结果
研究问题
- 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?
主要发现
- 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.
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。