Reasoning models and test-time compute
RL for long chains, pass@n and best-of-n, PRMs, and distilling reasoning.
From prompting to trained chains
Chain of thought prompted a fixed model to write steps; Reinforcement learning for language models trained with rewards a program can check. Put them together, let the chain grow as long as the model wants, and reward only the final answer: the model learns chains of thousands of tokens with checks and retries inside. Such reasoning models (OpenAI o1, DeepSeek-R1) turn test-time tokens into a second axis of scaling next to training compute.
On AIME 2024, GPT-4o reached about with one sample and with a vote over 64 — accuracy did not scale with inference compute, because nothing in training rewarded using that compute well.
Training to reason
Key idea. Train with RL on checkable problems, reward only the final answer, and leave chain length free. Behaviours that raise accuracy — checking a step, trying another approach, continuing after a wrong first attempt — are reinforced when the model ever does them.
DeepSeek-R1-Zero: GRPO on DeepSeek-V3-Base with rule-based accuracy and format rewards, no SFT first. AIME 2024 pass@1 rose ; response length grew to thousands of tokens with no length reward. R1 adds cold-start SFT, language-consistency reward, rejection sampling into ~800k SFT samples, a second RL stage, and distillation into smaller models.
Caveats: base models already show some self-reflection; RLVR improves small- metrics more than pass@ at large (sharpening); some length growth can come from the GRPO length factor.
Parallel test-time compute
Given a model, parallel methods draw samples. Coverage is — the ceiling when a perfect verifier picks any success. Majority vote needs no verifier and converges when the correct answer is the mode. Best-of- by a scoring verifier (ORM) is
and is decided by the top tail of scores: a biased verifier that overrates a shared misconception can make best-of- fall with while the vote still climbs.
Worked example: , misconception , slips ; scores , , . At , coverage , best-of-, vote .
Sequential revision and allocation
Sequential revision conditions new attempts on earlier ones; reasoning models revise inside one chain. Budget forcing (s1) appends “Wait” to extend thinking: AIME .
Compute-optimal allocation (Snell et al.): bin questions by difficulty; revisions help easy ones, search helps medium, hardest need a better model. With perfect verifier and 800 samples over 100 questions of graded , uniform 8 each solves expected; allocating by true difficulty .
Process rewards
A process reward model scores every step so search can prune early. On MATH, PRM800K’s PRM selected best of 1,860 samples at vs ORM and vote . Toy: steps each right with , so ; verifier , . Ceiling for accepted solutions ; for step-level search . DeepSeek-R1 found PRMs useful for re-ranking but not worth their cost as large-scale RL rewards (hackable, hard to define steps).
Distillation and the cost of length
Distilling R1’s traces by SFT into Qwen2.5-32B beat large-scale RL on the same base ( vs AIME). Overthinking: on “”, o1-like models used ~ more tokens; among responses that contained a correct answer, the first solution was already correct in of cases. Latency is length / decode speed: tokens at tok/s takes s before the answer starts.
Toward agentic episodes
Benchmarks age; faithfulness of long chains is still not guaranteed. Everything so far trains one response. An agent’s episode interleaves tool outputs written by the environment, with reward after dozens of actions. Next: training agents with reinforcement learning.
Check your understanding
The same questions as in Pulse. Answers are shared between modes.
Answers are saved on the server and tied to this browser until you sign in.