Skip to content
English

Switch theme

// Stage 5 · Post-training, Alignment & Reasoning Models

Reasoning Models: RLVR, GRPO & Test-Time Compute

Chain-of-thought and zero-shot CoT, self-consistency, Tree of Thoughts and self-refinement; outcome vs process supervision (PRM800K) and STaR; RL with verifiable rewards (RLVR); GRPO group-relative advantages and DAPO's four techniques; the DeepSeek-R1-Zero / R1 recipe and distillation; compute-optimal test-time scaling and budget forcing (s1); chain-of-thought faithfulness and monitoring.

about 12 hours12 algorithms18 paperslesson text ready

01Goals

Do these first: Alignment: RLHF, DPO & Constitutional AI

02Read on this site

03Algorithms to master

Each card has the original paper, prerequisites and resources.

04Must-read papers

05Courses & videos

06Hands-on: project, code & exercises

Free, official or author-published pages. Most run in the browser or on a free Colab GPU.

PROJECT

Train a 0.5B–1.5B model on GSM8K with GRPO and a rule-based reward, and track how response length and accuracy change over training steps.

  1. 1
    github.com ↗Reference code

    Reproduce R1-Zero-style “aha” reasoning on an arithmetic game with RL (needs a rented GPU).

  2. 2
    TRL:GRPO Trainer ↗Official docs

    Train a small maths model with TRL’s GRPOTrainer and a verifiable reward.

  3. 3
    huggingface/open-r1 ↗Reference code

    Follow Open-R1’s reproduction steps to see what distillation and RL each contribute.

07Self-test

Answer in your head, then open to check.

Where does the reward in RLVR come from?

From programmatically checkable outcomes, such as a maths answer matching the reference or code passing unit tests. Tulu 3 coined the name; DeepSeek-R1-Zero likewise uses rule-based accuracy and format rewards rather than a neural reward model, which the paper notes can suffer reward hacking in large-scale RL.

Which PPO component does GRPO drop, and how is the advantage computed?

It drops the value network (critic). For each question it samples a group of responses and uses each reward minus the group mean, divided by the group standard deviation, as the advantage. If every response in a group is right (or wrong), all advantages are 0 and there is no learning signal — which is why DAPO’s dynamic sampling filters such groups.

Is self-consistency voting a training or an inference method?

Inference (test-time compute). It samples several reasoning paths for the same question and takes a majority vote over the final answers, without updating model parameters.

How do process and outcome supervision differ, and what did Lightman et al. conclude?

Outcome supervision rewards only the final answer; process supervision scores each reasoning step. Lightman et al. (2023) released PRM800K (about 800,000 step-level human labels) and found that selecting solutions with a process reward model clearly outperforms an outcome reward model on MATH.

Why can a chain of thought not be taken as a faithful record of the model’s reasoning?

Turpin et al. (2023) found models are swayed by biasing features in prompts but systematically fail to mention them in their CoT; Chen et al. (2025) found reasoning models often do not verbalize hints they use. Baker et al. (2025) also found that too much optimization pressure on the CoT leads models to hide their intent.

On these routes: Algorithm Researchers · Product Managers & Leaders

Data updated: AI algorithms & curriculum(UTC+8)