Reinforcement learning for reasoning

Draft

Draft

This page is a skeleton for review: a short opening, planned headings, diagrams and references. The article is not written yet. It is listed here so the chapter can be checked as a whole. (Quarto’s draft: true would hide the page from the preview, so we mark the draft in this callout instead.)

Learning from a tick, not only from a teacher

Distillation copies a teacher’s written solution. Reinforcement learning with a verifiable reward (RLVR) does something different: the model tries, a checker says whether the final answer is right, and that tick or cross becomes the training signal. This page will explain that idea, and the GRPO-style updates used in Raschka’s chapters 6 and 7, in Albert’s classroom voice. The large DeepSeek-R1 training story belongs here; the later step where a big model teaches a small one already lives in What is distillation?.

A verifier as the marking scheme

  • Everyday analogy: a student who practises past papers and is told only whether the boxed answer is correct. They must invent the working; nobody hands them a model solution.
  • That is why this page depends on Evaluating reasoning: without a checker, there is no reward.

From a reward to an update: GRPO in outline

  • The model writes several attempts at the same problem (a group). The ones the verifier likes are reinforced; the others are not. GRPO (Group Relative Policy Optimisation) is a way of doing that comparison without a separate critic network.
  • Raschka’s chapters 6 and 7 are the place we will walk through the loop in code later; the draft only fixes the idea and the vocabulary (policy, reward, group, clip, a KL term toward a reference model).

What DeepSeek-R1 showed, at a high level

  • A large model can be trained to reason with this kind of verifiable reward, and then used as a teacher for smaller models. Keep the training story here, and point to the distillation article for the student side.
  • Be honest about scope: maths and code have checkers; many open-ended tasks do not.

What this page will not do

  • It will not run GRPO in the browser, and it will not retell chapter 8. A later lab, if Albert wants one, can sit under Labs the way Lab#LL01-1 does.

Planned diagrams

  • Own light and dark: several attempts at one problem, a verifier marking each final answer, and a group update that strengthens the better traces.
  • Own light and dark: a two-step map of the R1-style pipeline — RLVR on the large model, then an arrow off-page to distillation for the smaller ones.

Planned references

See also

Back to top