Skip to content
DARC
■ Change #83 · wiki.edited

RL with verifiable rewards and GRPO for reasoning models: Normalize Markdown to canonical form

by DARC wiki2026-10-22 20:31:07 UTCOpen the page →
body
## What changed
RLHF needs a learned reward model, which can be exploited. For maths, code and some logic tasks, correctness can be checked by a program: compare a final answer, run unit tests. Reinforcement learning with verifiable rewards (RLVR; the name was introduced in the Tulu 3 report, 2024) optimises the model directly on such a binary or rule-based reward. DeepSeek-R1-Zero (DeepSeek-AI, 2025) applied RL with rule-based accuracy and format rewards to a pretrained base model with no supervised reasoning demonstrations and reported emergent behaviours such as self-reflection and verification; the final paper appeared in Nature in September 2025.
## GRPO
PPO needs a learned value network the size of the policy to compute advantages, which is costly for large language models. Group Relative Policy Optimization, introduced in DeepSeekMath (Shao et al., 2024), samples a group of $G$ responses per prompt, scores them, and uses the group-normalised reward as the advantage of every token in a response:
− $$\hat A_i=\frac{r_i-\operatorname{mean}(r_1,\dots,r_G)}{\operatorname{std}(r_1,\dots,r_G)}.$$
+ $\hat A_i=\frac{r_i-\operatorname{mean}(r_1,\dots,r_G)}{\operatorname{std}(r_1,\dots,r_G)}.$
It then applies a PPO-style clipped objective with a KL penalty to a reference model. No critic is trained.
## Known refinements and criticisms
- **DAPO** (Yu et al., 2025) lists four changes: decoupled clip ranges, dynamic sampling that discards groups with all-correct or all-wrong rewards, token-level loss, and overlong-response reward shaping. It reports 50 points on AIME 2024 with Qwen2.5-32B and releases code built on verl.
- **Dr. GRPO** (Liu et al., 2025) argues that the length normalisation and the standard-deviation term bias GRPO toward longer incorrect responses, and proposes an unbiased variant. The same study finds that some Qwen2.5 base models already show strong reasoning behaviour without a prompt template, which complicates attribution of gains to RL.
- **Kimi k1.5** (2025) reports a critic-free long-context RL recipe with comparable results.
## The central scientific question
Does RLVR give a model reasoning ability it did not have, or does it make the model sample already-latent solutions more reliably? Yue et al. (2025, preprint) evaluate pass@$k$ with $k$ up to 128, 256 or 1024 depending on the benchmark and report that RL-trained models win at small $k$ but base models catch up and sometimes overtake at large $k$, concluding that RLVR "narrows coverage" and that distillation from a stronger teacher, unlike RL, does extend the boundary. ProRL (NVIDIA, 2025, preprint) reports that prolonged RL with KL control and reference resets does expand the boundary, including problems the base model never solves. The "invisible leash" analysis (2025, preprint) finds, question by question, that lost verified successes outweigh new ones at the tested budgets. The question is unsettled and depends on base model, task, training length and sampling budget.
## Compute and scaling
The Art of Scaling RL Compute (Khatri et al., 2025, preprint) fits sigmoidal compute-to-performance curves over more than 400,000 GPU-hours and reports that stable recipes extrapolate from small runs to a single 100,000 GPU-hour run.
## Practice
The main open training stacks are verl, TRL and the Open-R1 reproduction effort.
explainer.student
**What it is for.** For many maths and programming tasks a computer can check the answer: compare a final number with the known solution, or run unit tests on generated code. Reinforcement learning with verifiable rewards (RLVR) uses that check as the reward. This removes the learned reward model of RLHF and the risk of the model exploiting its flaws. It is how current reasoning models are post-trained to write long step-by-step solutions (chains of thought) before answering.
**Example.** The prompt is a competition maths problem whose answer is 204. The model writes eight attempts; the three ending in 204 get reward 1, the other five get 0.
**GRPO.** PPO needs a critic, a second network as large as the language model that predicts how good each partial answer is, which roughly doubles the memory needed. Group Relative Policy Optimization (GRPO, introduced in DeepSeekMath, 2024) drops it. It samples a group of $G$ answers to the same prompt and gives answer $i$ the advantage
− $$\hat A_i=\frac{r_i-\mathrm{mean}(r_1,\dots,r_G)}{\mathrm{std}(r_1,\dots,r_G)},$$
+ $\hat A_i=\frac{r_i-\mathrm{mean}(r_1,\dots,r_G)}{\mathrm{std}(r_1,\dots,r_G)},$
its reward minus the group average, divided by the standard deviation (the typical spread of the rewards). In words: an answer is reinforced if it beat its siblings. In the example the three correct answers get a positive advantage and the five wrong ones a negative one. The update then uses PPO's clipped objective plus a KL penalty that keeps the model near a reference copy.
**R1-Zero and refinements.** DeepSeek-R1-Zero (2025) applied this to a pretrained base model with no example reasoning and reported self-checking behaviour emerging during training; the work appeared in Nature in September 2025. DAPO (2025) changed four details (separate clip ranges, discarding groups where all answers score the same and therefore carry no signal, a token-level loss, and length shaping) and reported 50 points on AIME 2024 with Qwen2.5-32B. Dr. GRPO argues that GRPO's normalisations bias it toward long wrong answers.
**The open question.** pass@$k$ is the probability that at least one of $k$ samples is correct. If RL only sharpens what the base model could already do, the RL model wins at $k=1$ but the base model catches up at large $k$. Yue et al. (2025, preprint) report exactly this pattern; ProRL (2025, preprint) reports the opposite after much longer training. A 2025 preprint (ScaleRL, more than 400,000 GPU-hours) fits S-shaped curves of performance against compute and predicted a single run scaled to 100,000 GPU-hours.
hash c6b1ff3bdef67699869c6e695e74cfca36a9b0182b4cb47d4ef04edce59449ed
previous 1341a96d759b8df2482a47f5584f4b48e5cb2149520fd44125b1e2b1690d8d46