Understanding Reasoning from Pretraining to Post-Training

Jingyan Shen, Ang Li, Salman Rahman, Yifan Sun, Micah Goldblum, Matus Telgarsky, Pavel IzmailovNeurIPS 2026

TL;DR

When building reasoning AI, how should you split your compute budget between reading the internet (pretraining) and learning from trial-and-error (reinforcement learning)? By treating chess as a clean, miniature laboratory for LLM training, researchers discovered a mathematical scaling law that connects pretraining directly to RL returns—and settled a heated debate by showing that RL doesn't just polish existing skills, it actually uncovers hidden solutions on hard problems. Best of all, these exact rules hold up when tested on real-world math language models.

What Problem Does This Paper Address?

Modern reasoning LLMs follow a standard recipe: massive pretraining on text, supervised fine-tuning (SFT) on step-by-step examples, and reinforcement learning (RL) where rewards are given for verifiable, correct answers.

Right now, AI labs face a trillion-dollar dilemma: if you have a fixed compute budget, should you spend more of it building a smarter base model (pretraining), or give a smaller base model more time to practice and figure things out via trial-and-error (RL)? Relatedly, researchers passionately disagree on what RL actually does under the hood. Does it merely "sharpen" the model's distribution—amplifying good habits the base model already knew—or does it genuinely discover new reasoning behaviors?

Answering these questions on frontier natural language models is nearly impossible. Compute sweeps are astronomically expensive, internet pretraining data is messy and unverified, and grading intermediate reasoning sentences is subjective. We lacked a clean "model organism" to isolate how pretraining and RL interact.

Methods

To get clean, exact answers, the authors recreated the entire LLM training pipeline inside the game of chess—where the vocabulary is tiny (81 tokens) and every single reasoning step can be objectively verified.

Figure 1: Overview. (a) We introduce a synthetic framework for studying reasoning across the pre- to-post pipeline in the chess domain. (b) Using this framework, we establish a joint pretraining–RL scaling law, showing that pretraining performance provides predictive signal for RL performance under a fixed compute budget. (c) Through mechanistic analysis of policy evolution, we show that RL can surface moves that were nearly absent under the SFT policy.
  1. Pretraining: Dense Qwen3-style models (ranging from 5M to 1B parameters) are trained via standard next-token prediction on billions of serialized human chess moves. No natural language is used—just raw move tokens.
  2. SFT with Synthetic Chain-of-Thought (CoT): Instead of attaching an external search engine like Monte Carlo Tree Search, the authors force the LLM to "think out loud" in move tokens. They sample candidate continuations from a pretrained model, merge shared opening moves into a prefix tree, and serialize that tree depth-first inside <T>...</T> thinking tags before outputting the final chosen move.
  3. Reinforcement Learning: Using standard Group Relative Policy Optimization (GRPO), the model solves multi-step tactical puzzles against an environment. It earns a strict binary reward: 1 if every move in the multi-step sequence is optimal, and 0 for a single mistake.

Datasets

  • Chess Pretraining: A 54B-token corpus of human Blitz and Rapid games played on Lichess in 2022.
  • Chess Post-Training & Evaluation: 156K quality-filtered Lichess puzzles for SFT and RL, plus a newly curated, contamination-free benchmark of 1,480 tactical puzzles spanning five difficulty bins (B1–B5) balanced by theme and length.
  • Math Transfer Case Study: To verify that chess insights apply to natural language, a 1B OLMo-2 model was pretrained on a 200B-token mix (70% Nemotron-CC-Math-v1, 30% Dolma3) and evaluated on a 500-problem held-out set, GSM8K, and MATH.

Key Insights and Ideas

  • More pretraining makes RL learn faster: Pretraining doesn't just give RL a higher starting floor; it steepens the learning curve. The more tokens a model sees during pretraining, the more reward it extracts per unit of RL compute.
  • Scale shifts the budget toward RL: RL is heavily initialization-limited—if your base model is too weak, throwing RL compute at it is a waste. However, once the base model crosses a competence threshold, pretraining hits diminishing returns. As your total compute budget grows, you should allocate an increasingly larger percentage of it to RL.
  • RL is not just sharpening: On easy puzzles, RL acts as an amplifier, boosting correct moves the SFT model already liked. On hard puzzles, however, RL performs "tail discovery"—rescuing brilliant moves that had less than a 5% probability under SFT—while also occasionally falling into traps and reinforcing confident, wrong moves. This explains why single-try accuracy (pass@1) skyrockets during RL while multi-try coverage (pass@16) often stays flat!
  • Wider thinking, not deeper thinking: Watching the model's CoT evolve during RL reveals that it learns to brainstorm broader variations (higher branching factor) and propose higher-quality moves, rather than calculating significantly deeper down a single line.

Key Results

Across 36 pretraining–RL sweeps, the authors formulated a Joint Pretraining–RL Scaling Law that predicts post-RL performance ($R$) in the non-saturated regime: $$R(C_{\text{RL}}, N, T) = f(L_{\text{pt}}) + g(N, T) \log_{10}(C_{\text{RL}} / C_{\text{ref}})$$

Pretraining properties accurately predict both post-RL reward levels and the local RL scaling slope.
  • Near-perfect predictability: Pretraining validation loss ($L_{\text{pt}}$) predicts post-RL pass@1 with a Spearman correlation tightening from $|\rho| = 0.93$ to $0.99$ ($R^2 = 0.98$) at high RL compute. Meanwhile, a joint linear fit of log pretraining tokens ($\log_{10} T$) and log model size ($\log_{10} N$) predicts the RL learning slope with $R^2 = 0.84$ ($r = +0.92$), dominated primarily by token exposure.
  • Optimal Compute Splits: Extrapolating their scaling law alongside Chinchilla pretraining laws, the optimal RL share of total compute rises steadily with scale—growing from ~20% for a 50M model up to 28% for a 680M model.
Figure 2: Empirical frontier of puzzle benchmark performance across pretraining-RL sweeps for four model sizes (20M, 50M, 200M, 680M). Each point is a checkpoint evaluated on the puzzle benchmark. Color indicates pretraining compute; open rings mark the pre-RL baseline. Black curves mark the Pareto frontier. For the pass@1 curves, we label the fraction of RL compute at which each run first reaches the frontier (excluding the smallest and largest compute ranges). For pass@1, RL consistently improves performance and the labeled RL ratio shows an increasing trend as total compute increases across models. For pass@16, gains from RL are smaller.
  • Transfer to Math LLMs: On the 1B math language model pretrained from 10B to 200B tokens, the exact same physics emerged: pretraining loss predicted high-compute RL accuracy with $R^2 = 1.00$ ($\rho = -0.99$), and the RL improvement slope grew linearly with $\log_{10} T$ ($R^2 = 0.90$).

Limitations and Future Work

  • Local vs. Global Scaling: Because total compute budgets were capped, most RL runs operated in the early, non-saturated regime. When strong models approach saturation on easy benchmarks, their learning slopes compress, breaking the linear approximation.
  • FLOPs vs. Wall-Clock Time: Compute is measured in algorithmic FLOPs rather than wall-clock time. Because RL requires autoregressive rollout generation, an RL FLOP can be much slower and pricier in real hardware hours than a pretraining FLOP.
  • Long-Horizon Struggles: Even after RL, models struggle to solve chess continuations requiring more than 5 moves, expanding search breadth rather than depth. Future work could use these structural insights to engineer synthetic SFT reasoning traces that explicitly teach deeper, systematic long-horizon planning.

Summary updated

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.
BibTeX
@inproceedings{shen2026understanding,
  author = {Jingyan Shen and Ang Li and Salman Rahman and Yifan Sun and Micah Goldblum and Matus Telgarsky and Pavel Izmailov},
  title = {{Understanding Reasoning from Pretraining to Post-Training}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=PALFTMGRb5},
}
Figure