Reproduce “Demystifying Long Chain-of-Thought Reasoning in LLMs” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Edward Yeo, Yuxuan Tong, Morry Niu, Graham Neubig, Xiang Yue

Researchers at IN.AI, Tsinghua University, and Carnegie Mellon University systematically investigated the underlying mechanics of long Chain-of-Thought (CoT) reasoning in large language models (LLMs). Their work identified key factors influencing the emergence, stability, and efficient training of long CoTs, demonstrating methods to improve performance on complex reasoning tasks and challenging common notions of 'emergent' behaviors by tracing CoT-like patterns to pre-training data.

Key insights

  • Supervised Fine-tuning (SFT) on high-quality, emergent long Chain-of-Thought (CoT) patterns is crucial for models to achieve higher performance limits and effectively leverage subsequent Reinforcement Learning (RL).
  • Tailored reward shaping, such as the Cosine Length-Scaling Reward with N-gram repetition penalty, is necessary to stabilize CoT length growth in RL and prevent issues like unstable scaling or 'reward hacking'.
  • Many advanced reasoning capabilities, including error correction and self-reflection, may be latent within large language models' pre-training data, with RL serving primarily to reinforce and elicit these existing skills rather than creating entirely new ones.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.