Lesson 8.6advanced2 h 30 min

Reasoning models and test-time compute

Models that think before they answer — and what that buys

Since late 2024 the biggest capability jumps have come not from bigger pretraining runs but from teaching models to reason — spending more tokens at inference, trained by reinforcement learning on problems that can be checked. This changed how models are prompted (8.4 Prompting as programming), priced, evaluated (8.7 Evaluating LLMs) and used as planners inside agents (10.3 Reasoning and planning for agents). The mechanics are the GRPO and verifiable rewards of 8.3 Alignment: RLHF, PPO, DPO, GRPO and Constitutional AI; the new idea is a second scaling axis: compute at test time.

You'll be able to

  • Explain how reasoning models are trained with RL on verifiable rewards and what behaviors emerge
  • Distinguish outcome and process reward models and the role of verifiers
  • Describe inference-time scaling methods: longer thinking, best-of-N, majority voting, search
  • Use reasoning models appropriately — budgets, prompting style, routing — and know their failure modes
  • Summarize the open questions about what RL teaches versus elicits

Key ideas

  1. Reasoning models are trained with RL (GRPO-style) on verifiable rewards to produce long thinking traces before answering; o1 and DeepSeek-R1 established the approach.
  2. Verifiable rewards (answer checks, unit tests) avoid the reward hacking of learned reward models; ORMs score answers, PRMs score steps.
  3. Emergent behaviors from pure RL include self-verification, backtracking and growing trace length — nobody wrote them into the data.
Show 4 more key ideas
  1. Test-time compute is a second scaling axis: longer thinking, majority voting, best-of-N with verifiers, search and budget forcing.
  2. Distilling traces into small models spreads reasoning cheaply; ~1k well-chosen examples can go a long way.
  3. Reasoning models still hallucinate, can overthink, cost far more per answer, and their traces are not guaranteed to be faithful.
  4. Prompt them with goals and budgets, route easy queries elsewhere, and keep sampling at defaults.

Suggested path through this lesson