SDE & MLE Prep

Reasoning Models & Test-Time Compute

Q: What makes "reasoning" models different, and how do you spend more compute at inference?

  • Chain-of-thought: generating intermediate steps before the answer improves multi-step problems (math, code, planning).
  • Test-time compute scaling: accuracy keeps rising with more inference compute — longer thinking, self-consistency (sample many solutions, majority vote), best-of-N with a verifier/reward model, tree search over partial solutions.
  • Training reasoners: reinforcement learning with verifiable rewards (unit tests pass, math answer correct) teaches models to produce long, self-correcting reasoning (e.g. PPO or GRPO — group-relative advantages over several samples per prompt, no separate value model). Outcome reward models score final answers; process reward models score each step.
  • Distillation: reasoning traces from a large model fine-tune smaller ones cheaply.
  • Trade-offs: latency and cost grow with thinking tokens → route easy queries to fast models, cap reasoning budgets; reasoning can still be wrong — verify with tools (code execution, search) where possible.