Understanding Reasoning from Pretraining to Post-Training
Abstract
Reinforcement learning (RL) improves reasoning in large language models (LLMs), but how pretraining choices shape the returns to RL compute and how RL changes model behavior remain poorly understood. Studying these questions in standard LLMs is challenging because pretraining data are uncontrolled and systematic compute sweeps across pretraining and RL are prohibitively expensive. To address these challenges, we use chess as a controlled testbed for studying reasoning across the pretraining-to-post-training (pre-to-post) pipeline. We follow this pre-to-post pipeline by pretraining language models from 5M to 1B parameters on human chess games, supervised fine-tuning on synthetic reasoning traces, and running RL on chess puzzles with verifiable rewards. Using this framework, we establish a scaling law connecting pretraining and RL: the post-RL performance at given RL compute level is well-predicted from the pretraining loss, and slope of the RL reward curves improves approximately linearly with the pretraining tokens. Beyond scaling, we find that RL does not simply sharpen the SFT policy: on easy puzzles it amplifies correct moves the SFT policy already preferred, while on hard puzzles it surfaces correct moves that were nearly absent under SFT. We further test whether our findings beyond chess by training a 1B language model on math domain, where the same predictive pattern emerges: longer-pretrained checkpoints reach higher post-RL performance and improve faster under RL. In sum, we provide a quantitative account of the pretraining-to-RL interface and a testbed for studying the science of reasoning across the full pre-to-post pipeline.