Paper notes

DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning

DeepSeek-R1 shows that large-scale reinforcement learning with automatically checkable rewards lets a base model grow long chains of thought; a cold start and four stages make it usable. We recompute the paper's data and cost tables, list what does not add up, and cover later corrections.

Published Updated 40 min read

On this page
  1. Why it is worth reading
  2. Two versions: say which one you cite
  3. The recipe: from R1-Zero to R1
  4. R1-Zero: rule-based rewards plus GRPO
  5. What grew during training
  6. R1: four stages that fix R1-Zero’s problems
  7. Results by stage
  8. Distillation: moving the ability to small models
  9. What the paper reports
  10. The limitations the paper lists
  11. Hands-on: checking the paper’s numbers
  12. Batch accounting: how many questions did 10,400 steps cover
  13. Table 5: the 800K SFT samples
  14. Table 7: training cost
  15. AIME has only 30 problems: granularity and noise
  16. Table 3: results per stage
  17. The GRPO loss: the KL estimator and clipping
  18. Questions the paper leaves open
  19. What to take from this paper
  20. Further reading
  21. FAQ

“DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning” (DeepSeek-AI, arXiv 2501.12948, later published in Nature 645; called the R1 paper below) answers a question that had no public answer at the time: if post-training uses no human-written solutions, only rewards that can be checked automatically, such as whether the final answer is right, can large-scale reinforcement learning teach a base model to reason on its own? The answer is yes. DeepSeek-R1-Zero starts from DeepSeek-V3-Base (a mixture-of-experts model with 671B parameters in total and 37B activated per token) and is trained with GRPO for 10,400 steps. Its AIME 2024 pass@1 rises from 15.6% to 77.9% (the arXiv v2 figure; v1 reported 71.0%), its responses keep getting longer, and it learns to go back and check its own work. A few thousand cold-start examples and a four-stage pipeline then give the usable DeepSeek-R1, and with supervised fine-tuning alone on the same roughly 800,000 samples, models from 1.5B to 70B parameters learn to reason too.

This page rereads the paper at its January 2026 arXiv v2 (86 pages including the supplementary material) and recomputes every number that can be checked: only arithmetic and an exact enumeration over a toy vocabulary of 8 tokens, two seconds on a CPU, with no model trained. Most of it matches: the total and the average token count of the 800K SFT data and the three rows of the cost table reproduce exactly. A few things do not. The text says 10,400 steps make 1.6 epochs, which implies a pool of 208,000 questions, 2.6 times the 80K reasoning questions in the data table; “about 4 days” disagrees with the cost table, which assumes 80 hours; and two AIME majority-vote scores are not multiples of 1/30. The final R1 is also not better than R1-Zero everywhere: R1-Zero scores at least as high on 6 of the 21 benchmarks.

Why it is worth reading

  • The recipe is public. OpenAI’s o1 did not publish how it was trained. The R1 paper gives the reward design, hyperparameters, data sizes, intermediate results of every stage and the training cost, and the model weights were released.
  • It stakes the conclusion on three things. Hard problems, a reliable verifier and enough compute (section 6), rather than large-scale human annotation. DAPO and GSPO, both covered on this site, refine the details of the algorithm inside this framework.
  • Its conclusions have been tested again and again. Whether the aha moment comes from RL, whether RL expands the capability boundary of the base model, and why even random rewards sometimes work all have follow-up studies (see below). Read the R1 paper together with these corrections.

Two versions: say which one you cite

The arXiv versions of the R1 paper differ a lot, so check which one a number such as an AIME score comes from:

v1 (2025-01-22)v2 (2026-01-04)
Length22 pages86 pages with the supplementary material
R1-Zero AIME 2024 pass@171.0%77.9%
Hyperparameters, data tables, cost tablenoneyes
Intermediate checkpoints (Dev1 to Dev3)noneyes (Table 3)

Both versions report the same final R1 result (79.8% pass@1 on AIME 2024); what changed is the R1-Zero number and the amount of detail disclosed. Every number on this page comes from v2.

The recipe: from R1-Zero to R1

R1-Zero: rule-based rewards plus GRPO

R1-Zero’s reinforcement-learning algorithm is GRPO (Group Relative Policy Optimization), introduced in DeepSeekMath. For each question qq it samples a group of responses {o1,…,oG}\{o_1,\dots,o_G\} from the old policy πθold\pi_{\theta_{\mathrm{old}}} and maximizes:

J(θ)=E[1G∑i=1G(min⁡(ρiAi, clip(ρi,1−ε,1+ε) Ai)−βDi)]\mathcal{J}(\theta)=\mathbb{E}\left[\frac{1}{G}\sum_{i=1}^{G}\Big(\min\big(\rho_i A_i,\ \mathrm{clip}(\rho_i,1-\varepsilon,1+\varepsilon)\,A_i\big)-\beta D_i\Big)\right]

where:

ρi=πθ(oi∣q)πθold(oi∣q),Ai=ri−mean(r1,…,rG)std(r1,…,rG),Di=πref(oi∣q)πθ(oi∣q)−log⁡πref(oi∣q)πθ(oi∣q)−1.\begin{aligned} \rho_i&=\frac{\pi_\theta(o_i\mid q)}{\pi_{\theta_{\mathrm{old}}}(o_i\mid q)},\qquad A_i=\frac{r_i-\mathrm{mean}(r_1,\dots,r_G)}{\mathrm{std}(r_1,\dots,r_G)},\\ D_i&=\frac{\pi_{\mathrm{ref}}(o_i\mid q)}{\pi_\theta(o_i\mid q)}-\log\frac{\pi_{\mathrm{ref}}(o_i\mid q)}{\pi_\theta(o_i\mid q)}-1. \end{aligned}

There is no value model: the GG responses to one question serve as each other’s baseline, and the advantage AiA_i is simply the standardized reward within the group. DiD_i is an estimator of the KL divergence, not the exact KL summed over the vocabulary (its properties are checked below). The paper writes the ratio over the probability of the whole response; for the per-token form, see the DeepSeekMath walkthrough.

The reward has only two terms, added with equal weight (Eq. 4 of the paper):

  • Accuracy reward. For math, the final answer must be put in a given format (for example inside a box) and a rule matches it against the reference; for code, a compiler runs test cases.
  • Format reward. The thinking must sit between <think> and </think>.

The paper deliberately uses no neural reward model, neither outcome-based nor process-based. Its reasons: such a model is easy to exploit (reward hacking) in large-scale RL, and retraining it costs extra compute and complicates the pipeline. The training prompt template is kept minimal as well; it fixes the structure and not the content (Table 1 of the paper, verbatim):

A conversation between User and Assistant. The user asks a question, and the
Assistant solves it. The assistant first thinks about the reasoning process in
the mind and then provides the user with the answer. The reasoning process and
answer are enclosed within <think>...</think> and <answer>...</answer> tags,
respectively, i.e., <think> reasoning process here </think> <answer> answer
here </answer>. User: prompt. Assistant:

The hyperparameters (section 2.1, section 3.2 and Supplementary B.4; “not given” means the paper does not say):

SettingR1-ZeroR1, first RL stageR1, second RL stage
Learning rate, KL coefficient3e-6, 0.0013e-6, 0.001most settings as in the first stage
Clip ratio ε\varepsilonnot given10as before
Samples per question × questions per step16 × 3216 × 32as before
Sampling temperature110.7
Maximum response length32,768 (65,536 after step 8.2k)32,768as before
Reference modelreplaced by the latest policy every 400 stepssameas before
Steps10,400not given1,700

Each rollout generates 8,192 responses, which are randomly split into 16 mini-batches and trained for a single inner epoch. In other words each mini-batch is one step, and the batch size is 512.

What grew during training

Figure 1 of the paper shows two curves. The AIME 2024 pass@1 climbs from 15.6% to 77.9%, and with self-consistency decoding (a majority vote over many responses) to 86.7%. The average response length grows steadily; the paper says the responses grew from a few hundred to several thousand tokens and attributes this to the model’s own adaptation rather than to any external change.

As the responses get longer, the behavior changes too. Supplementary C.2 counts a list of “reflective words” drawn up by three experts (wait, mistake, however, but, retry, error, verify, wrong, evaluate, check), and their counts rise 5 to 7 times compared with the start of training. The word “wait” is almost absent early on, appears occasionally between steps 4,000 and 7,000, and spikes clearly after step 8,000. The paper calls the example in which an intermediate version writes “Wait, wait. Wait. That’s an aha moment I can flag here.” the aha moment and presents it as evidence of the model evolving on its own.

Three points to keep in mind when reading this:

  1. The paper counts words (Figure 9(a) labels it frequency) and does not say whether the counts are normalized by response length. Responses grew over the same period, so “5 to 7 times” cannot be read as “reflection per hundred words became denser”.
  2. At step 8.2k the maximum response length was raised from 32,768 to 65,536. The paper says that both the score and the response length jump noticeably at this point, and the spike of “wait” also comes after step 8,000. Raising the length cap and learning new ways of reflecting happened at the same time, and the paper does not separate them.
  3. Later work disputes where the aha moment comes from (see “Questions the paper leaves open” below).

R1: four stages that fix R1-Zero’s problems

The paper states R1-Zero’s problems plainly: poor readability and a mix of Chinese and English (V3-Base’s pretraining corpus is mostly Chinese and English). R1 uses four stages to fix them while keeping the reasoning ability, and to add general abilities (Figure 1 here).

The DeepSeek-R1 training pipeline Row one is R1-Zero: reinforcement learning applied directly to DeepSeek-V3-Base. Row two is the four stages of R1: cold-start SFT, reasoning-oriented RL, rejection sampling plus SFT, and RL for all scenarios, giving Dev1, Dev2, Dev3 and R1 in turn. Row three is distillation: SFT only on the same data of about 800K samples, giving six small models. R1-Zero: RL straight from the base model DeepSeek-V3-Base 671B total, 37B active the base of the V3 paper RL with GRPO reward = accuracy + format 10,400 steps x 512 samples DeepSeek-R1-Zero AIME 2024: 15.6% to 77.9% (v1 reported 71.0%) R1: four stages 1. Cold-start SFT thousands of long CoTs from R1-Zero, rewritten plus human checks gives Dev1 2. Reasoning RL rule and language rewards about 80K reasoning prompts (Table 4) gives Dev2 3. Rejection + SFT sample and filter with Dev2 800K samples (Table 5) fine-tune V3-Base again gives Dev3 4. RL for all tasks rules for reasoning, reward models for chat 1,700 steps in all gives DeepSeek-R1 sample, filter, rewrite Distillation: SFT only the same 800K samples as in Table 5 SFT, 2-3 epochs lr 2e-5 to 1e-4 six student models Qwen 1.5B-32B, Llama 8B/70B the same data
Figure 1: The R1 pipeline, after Figure 2 of the paper, Supplementary B.3 and B.4, and Tables 4 to 6. The dashed gray lines show where data comes from, not weights being passed on: stage three fine-tunes V3-Base again on the sampled data.
  1. Cold-start SFT, giving Dev1. A few thousand long chain-of-thought examples. R1-Zero first samples many responses at temperature 1.0 on a set of reasoning questions; only those with a correct answer (math checked by comparing expressions with sympy) and a readable format (repetition and language mixing removed by rules) are kept. DeepSeek-V3 then rewrites the thinking and the summary into conversational, first-person text in the same language as the question. Human annotators first rewrite a batch of examples, which are used to prompt the LLM to rewrite more, and all LLM output goes through one round of human checking (Appendix B.3.2). The paper says this is for the sake of the product experience, and stresses that the human-like thinking style is a heuristic DeepSeek designed, not a sign that the model has become human-like.
  2. Reasoning-oriented RL, giving Dev2. The rule rewards are the same as for R1-Zero, plus a language-consistency reward: the share of target-language words in the chain of thought (Eq. 7). The paper’s own ablation (Appendix B.6) says this reward lowers performance slightly but matches human preference better and reads better, and it is applied to both reasoning and non-reasoning data. The clip ratio ε\varepsilon is set to 10, which the paper says plays a crucial role: too low a value truncates the gradients of many tokens, too high a value may destabilize training.
  3. Rejection sampling plus SFT, giving Dev3. The stage-2 checkpoint samples a large set of reasoning questions and only the correct responses are kept. For questions without a rule-based check, the reference answer and the model’s prediction are given to DeepSeek-V3 as a generative reward model, and chains of thought with language mixing, overlong paragraphs or code blocks are filtered out. This gives about 600K reasoning samples. About 200K non-reasoning samples are added: writing, factual QA, self-cognition and translation reused from V3’s SFT data, plus software-engineering data such as program repair and front-end development. These roughly 800K samples restart fine-tuning from V3-Base for 2 to 3 epochs, with the learning rate cosine-decayed from 5e-5 to 5e-6, batch size 128 and maximum length 32,768 (Appendix B.4.2). It does not continue from Dev2: the gray dashed arrows in Figure 1 show where the data comes from, not a transfer of weights.
  4. All-scenario RL, giving R1. Reasoning questions still use rule rewards; general data (66K helpfulness prompts and another 12K harmlessness prompts) use two reward models; the temperature drops to 0.7; there are 1,700 steps in total, and the general instruction data and the preference rewards are added only for the last 400 steps. The paper found that training too long on a model-based preference reward gets exploited and lowers the scores on complex reasoning tasks (Appendix B.5).

Results by stage

Table 3 gives the results of R1-Zero, Dev1, Dev2, Dev3 and the final R1 on 21 benchmarks; Figure 2 here shows 6 of them.

R1 results per stage on six benchmarks Six small charts show AIME 2024, LiveCodeBench, GPQA Diamond, IF-Eval, AlpacaEval 2.0 and ArenaHard across R1-Zero, Dev1, Dev2, Dev3 and the final R1. AIME drops to 59.0 at Dev1 and recovers, R1-Zero is highest on GPQA Diamond, and the three general benchmarks rise mostly in the last two stages. AIME 2024, pass@1 50 70 90 R1-Zero Dev1 Dev2 Dev3 R1 77.9 59.0 74.0 78.1 79.8 LiveCodeBench, pass@1 50 60 70 R1-Zero Dev1 Dev2 Dev3 R1 50.0 57.5 63.5 64.6 65.9 GPQA Diamond, pass@1 60 70 80 R1-Zero Dev1 Dev2 Dev3 R1 75.8 66.1 70.7 71.2 71.5 IF-Eval, prompt strict 40 65 90 R1-Zero Dev1 Dev2 Dev3 R1 46.6 71.7 72.0 78.1 83.3 AlpacaEval 2.0, LC win rate 20 60 100 R1-Zero Dev1 Dev2 Dev3 R1 24.7 50.1 55.8 62.1 87.6 ArenaHard, GPT-4-1106 judge 50 75 100 R1-Zero Dev1 Dev2 Dev3 R1 53.6 77.0 73.2 75.6 92.3
Figure 2: Results at each stage of R1, from Table 3 of the paper (6 of the 21 benchmarks; the numbers are read from the paper's text layer by a script). Each chart has its own vertical range.

Reading the paper’s account together with the numbers:

  • The cold start improves instruction following but hurts reasoning. Dev1’s IF-Eval rises from 46.6 to 71.7 and ArenaHard from 53.6 to 77.0, while AIME 2024 drops from 77.9 to 59.0 and CNMO 2024 from 88.1 to 58.0. The paper blames the small amount of cold-start data.
  • Reasoning RL brings the reasoning back. Dev2 scores 74.0 on AIME and 63.5 on LiveCodeBench, with a Codeforces rating of 1687; the paper says it gives only marginal improvements on preference benchmarks such as AlpacaEval (50.1 to 55.8).
  • The stage-3 SFT adds general ability and code engineering. AlpacaEval 2.0 goes from 55.8 to 62.1 and Aider-Polyglot from 25.6 to 44.8, which the paper credits to the large non-reasoning corpus and the code-engineering data.
  • The final all-scenario RL mainly lifts the preference benchmarks. AIME only goes from 78.1 to 79.8, while AlpacaEval 2.0 goes from 62.1 to 87.6 and ArenaHard from 75.6 to 92.3. The text says AlpacaEval 2.0 improved by 25% and ArenaHard by 17%, but these are percentage points (the relative gains are in the check below).
  • Not better everywhere. On 6 of the 21 benchmarks R1-Zero scores at least as high as the final R1 (checked below), so the price paid for readability and generality does show up in some benchmarks.

Distillation: moving the ability to small models

Distillation uses exactly the roughly 800K samples of stage 3 and does only SFT on the base model, with no RL: 2 to 3 epochs, batch size 64, maximum length 32,768, with the learning rate cosine-decayed to one tenth of its initial value. The base models and their initial learning rates (Table 6): Qwen2.5-Math-1.5B (1e-4), Qwen2.5-Math-7B (8e-5), Qwen2.5-14B (7e-5), Qwen2.5-32B (6e-5), Llama-3.1-8B (5e-5) and Llama-3.3-70B-Instruct (2e-5). The paper leaves an RL stage on top of the distilled models to the community.

The results of Table 15 (AIME is pass@1; GPQA means GPQA Diamond; LCB is LiveCodeBench; CF is the Codeforces rating):

ModelAIMEMATH-500GPQALCBCF
GPT-4o-05139.374.649.932.9759
Claude-3.5-Sonnet-102216.078.365.038.9717
R1-Distill-Qwen-1.5B28.983.933.816.9954
R1-Distill-Qwen-7B55.592.849.137.61189
R1-Distill-Qwen-14B69.793.959.153.11481
R1-Distill-Qwen-32B72.694.362.157.21691
R1-Distill-Llama-8B50.489.149.039.61205
R1-Distill-Llama-70B70.094.565.257.51633

The 1.5B model beats GPT-4o and Claude-3.5-Sonnet on AIME, MATH-500 and the Codeforces rating, and is still below them on GPQA and LiveCodeBench: what distillation moves over is mostly math and competition-style reasoning, and on knowledge benchmarks the small model still lags.

The direct comparison between distillation and RL is in Appendix F.1 (Table 16). Qwen2.5-32B was trained with large-scale RL on math, code and STEM data for more than 10K steps (learning rate 2e-6, the rest as for R1-Zero), giving Qwen2.5-32B-Zero.

ModelAIME pass@1AIME cons@64MATH-500GPQALCB
QwQ-32B-Preview50.060.090.654.541.9
Qwen2.5-32B-Zero47.060.091.655.040.2
R1-Distill-Qwen-32B72.683.394.362.157.2

The paper draws two conclusions: distillation is both economical and effective, and a small model trained with large-scale RL needs a huge amount of compute and may still not catch up with distillation; to push past the limits of today’s intelligence, stronger base models and larger-scale RL are still needed. The comparison needs two additions. It does not count the cost of training the teacher R1 itself, and later work found different answers to whether RL expands the capability boundary (see below).

What the paper reports

The table below is part of the paper’s Table 8 (pass@1 and similar metrics, numbers copied as printed; “—” means the paper gives none):

BenchmarkDeepSeek-V3o1-1217R1
AIME 2024 (pass@1)39.279.279.8
MATH-500 (pass@1)90.296.497.3
GPQA Diamond (pass@1)59.175.771.5
LiveCodeBench (pass@1, CoT)36.263.465.9
Codeforces (rating)113420612029
SWE-bench Verified (resolved)42.048.949.2
Aider-Polyglot (accuracy)49.661.753.3
MMLU (EM)88.591.890.8
SimpleQA (correct)24.947.030.1
IF-Eval (strict prompt)86.1—83.3
AlpacaEval 2.0 (LC win rate)70.0—87.6

R1 is slightly above o1-1217 on AIME 2024, MATH-500, LiveCodeBench and SWE-bench Verified, and below it on GPQA Diamond, the Codeforces rating, Aider-Polyglot and SimpleQA. AIME has only 30 problems, and the gap of 79.8 against 79.2 is less than one problem (one problem is 3.33 points, see the check below). The gains over V3 are concentrated in the reasoning benchmarks; IF-Eval is actually lower than V3’s, and AlpacaEval 2.0 is much higher.

Read this table together with the evaluation protocol the paper discloses:

  • The o1-1217 numbers come from the official report, not from the paper’s own runs (the paper says that accessing the o1-1217 API from mainland China was difficult), so the evaluation settings may differ.
  • No greedy decoding. The paper found that greedy decoding of a long-output reasoning model has a higher repetition rate and varies a lot between checkpoints. Everything therefore uses temperature 0.6 and top-p 0.95, samples kk responses per question and averages them to get pass@1 (k=64k=64 for AIME and GPQA, 16 for MATH and Codeforces, 8 for LiveCodeBench), with a maximum generation length of 32,768. AIME 2024 also reports cons@64, the majority vote over 64 responses.
  • Decontamination is n-gram only. Both the pretraining and the post-training data were filtered for texts that share a 10-gram with an evaluation question or reference solution (about six million pretraining texts were removed for math alone); the math SFT data and the RL prompts come only from competitions before 2023. The paper itself admits that n-gram decontamination cannot catch paraphrased test questions, so benchmarks released before 2024 may still be contaminated.

The limitations the paper lists

Section 6 and Appendix G of the paper list these problems:

  • Structured output and tool use. R1’s structured output is weaker than existing models’, and it cannot call tools such as a search engine or a calculator. The paper thinks that building RL environments for these abilities is not hard and leaves it to the next version.
  • Token efficiency. R1 allocates its thinking length dynamically according to the difficulty of the question, but still overthinks simple questions.
  • Language mixing. R1 is optimized for Chinese and English; with questions in other languages it may reason and answer in English. The paper suspects a link to the base model being mostly Chinese and English.
  • Sensitivity to prompts. Few-shot prompting consistently lowers the scores; the paper recommends describing the problem directly and using zero-shot instructions for the output format.
  • Software engineering tasks. Evaluation takes long, and RL was not applied at scale to such tasks, so the gain over V3 is small.
  • Tasks without a reliable verifier. Tasks such as writing lack a reliable rule-based reward, and if the reward comes from a model, the policy finds shortcuts. R1 handles this part with human-annotated SFT data plus a few hundred steps of RL, and the paper admits that scaling pure RL to such tasks remains an open problem.

Appendix G also reports three attempts that did not work:

  • Small base models. RL on a 7B dense model and on a 16B MoE never gave a substantial gain on AIME; the responses tended to repeat as they grew longer, and the long chain of thought was not used well. Clear gains only appeared with a 32B dense model, a 230B MoE and a 671B MoE. The paper therefore recommends that follow-up studies use sufficiently large models to test RL directly from the base model.
  • Process reward models (PRMs). Three obstacles: fine-grained steps are hard to define in general reasoning; judging whether an intermediate step is right is hard, automatic annotation by a model works poorly and human annotation cannot scale; and any model-based PRM gets exploited, and retraining it takes extra resources. The paper concedes that a PRM can rerank the top-N responses and help guide search, but in large-scale RL this advantage does not offset the extra cost. For the history of PRMs see the Let’s Verify Step by Step walkthrough.
  • Monte Carlo tree search (MCTS). The search space of token generation is much larger than that of chess, limiting the number of expansions per node tends to get stuck in local optima, and a fine-grained value model is hard to train, so the path to AlphaGo’s success is hard to reproduce here.

On safety, the paper’s own assessment is that R1’s inherent safety is at a moderate level overall, comparable to GPT-4o-0513. It also warns that an open model can be fine-tuned further in ways that break its existing safeguards.

Hands-on: checking the paper’s numbers

The paper gives many numbers: batch sizes, the data table, the cost table, the results by stage. They should agree with one another, and the script below recomputes them one by one. This is checking, not reproduction: no model is trained, and the paper’s experimental conclusions are neither confirmed nor refuted here. The script contains only arithmetic and an exact enumeration over a toy vocabulary of 8 tokens. The environment is the CPU of an Apple M2 Max with Python 3.14.3 and PyTorch 2.10.0, and it runs in about 2 seconds; the Monte Carlo sampling in part 6 uses fixed seeds, so a rerun prints identical output. I read the paper’s numbers (Tables 3, 4, 5, 15 and others) from the arXiv v2 PDF and typed them into the script, and all the output on this page comes from one complete run.

Full code (about 196 lines)
"""Recheck the DeepSeek-R1 paper (arXiv v2, Jan 2026): training
bookkeeping, data table, cost table, AIME granularity and noise, the stage
table, and the KL estimator and clipping inside GRPO"""
import math

import torch


def pad(s, width):
    """pad to a display width (CJK counts two)"""
    return s + " " * (width - sum(2 if ord(c) > 0x2e80 else 1 for c in s))


# ---- 1 ----
print("1. RL bookkeeping (Section 2.3, Supplementary B.3 and B.4)")
STEPS, Q, G, ROLL, MINI, EPOCHS = 10_400, 32, 16, 8_192, 16, 1.6
print(f"   per step: {Q} questions x {G} samples = {Q * G} (paper: 512)")
print(f"   per rollout: {ROLL} samples / {MINI} mini-batches = {ROLL // MINI}")
drawn = STEPS * Q
print(f"   {STEPS:,} steps / {MINI} = {STEPS // MINI} rollouts")
print(f"   question draws {drawn:,}, samples {drawn * G:,}")
print(f"   paper: {EPOCHS} epochs, so a pool of {drawn / EPOCHS:,.0f}")
pool = {"math": 26, "code": 17, "STEM": 22, "logic": 15}
total = sum(pool.values()) * 1000
names = "+".join(map(str, pool.values()))
ep, ep2 = drawn / total, drawn / (total + 8000)
K4 = total // 1000
print(f"   Table 4 reasoning: {names} = {K4}K -> {ep:.2f} epochs")
print(f"   with the 8K bug-fix tasks from the text: {ep2:.2f}")
print(f"   implied pool is {drawn / EPOCHS / total:.1f}x Table 4")

# ---- 2 ----
print("\n2. Table 5: the roughly 800K SFT samples")
SFT = {"math": (395285, 6094.2), "code": (211129, 7435.7),
       "STEM": (10124, 4928.8), "logic": (10395, 2739.0),
       "general": (177812, 1419.8)}
n_all = sum(n for n, _ in SFT.values())
tok_all = sum(n * t for n, t in SFT.values())
print("   " + pad("domain", 9) + pad("samples", 11)
      + pad("avg tokens", 14) + "total tokens")
for name, (n, t) in SFT.items():
    print("   " + pad(name, 9) + pad(f"{n:,}", 11) + pad(f"{t:,.1f}", 14)
          + f"{n * t / 1e9:.2f}B ({n * t / tok_all:.0%})")
mean, other = tok_all / n_all, SFT["general"][0]
reason = n_all - other
print(f"   total {n_all:,} (paper 804,745)")
print(f"   mean {mean:,.1f} tokens (paper 5,355.3), {tok_all / 1e9:.2f}B")
g2, g3 = 2 * tok_all / 1e9, 3 * tok_all / 1e9
print(f"   2-3 epochs: {g2:.1f}B to {g3:.1f}B tokens")
print(f"   reasoning {reason:,} (text: about 600K)")
print(f"   other {other:,} (text: about 200K)")

# ---- 3 ----
print("\n3. Table 7: training cost (H800 at 2 USD per GPU hour)")
GPUS = 64 * 8
zero, r1, sft_h = GPUS * 198, GPUS * 80, 5000
print(f"   R1-Zero: {GPUS} GPU x 198 h = {zero:,} GPU-h -> {2 * zero:,} USD"
      f" (paper 101K, 202K)")
print(f"   R1: {GPUS} GPU x 80 h = {r1:,} GPU-h -> {2 * r1:,} USD"
      f" (paper 41K, 82K)")
print(f"   if it were the text's 'about 4 days' (96 h): "
      f"{GPUS * 96:,} GPU-h -> {2 * GPUS * 96:,} USD")
tot_k = 101 + 5 + 41
print(f"   total {tot_k}K GPU-h -> {2 * tot_k}K USD (paper 147K, 294K)")
sec = 198 * 3600 / STEPS
per = sec * GPUS / (Q * G)
print(f"   if all 198 h went into {STEPS:,} steps: {sec:.1f} s each")
print(f"   batch 512 = GPU count: {per:.1f} GPU-s per sample")

# ---- 4 ----
print("\n4. AIME 2024 has 30 problems: granularity and noise")
K, NQ = 64, 30
res = 100 / (NQ * K)
print(f"   one problem = {100 / NQ:.2f} points; pass@1 step {res:.3f} points")
REPORTED = (("GPT-4o-0513", 13.4), ("Claude-3.5-Sonnet-1022", 26.7),
            ("R1-Distill-Qwen-1.5B", 52.7), ("R1-Distill-Qwen-7B", 83.3),
            ("R1-Distill-Qwen-14B", 80.0), ("R1-Distill-Qwen-32B", 83.3),
            ("R1-Distill-Llama-8B", 80.0), ("R1-Distill-Llama-70B", 86.7),
            ("QwQ-32B-Preview", 60.0), ("Qwen2.5-32B-Zero", 60.0),
            ("DeepSeek-R1 cons@64", 86.7), ("DeepSeek-R1 pass@64", 90.0))
print("   12 per-problem scores (cons@64, pass@64) must be k/30:")
bad = []
for name, v in REPORTED:
    k = round(v * NQ / 100)
    exact = 100 * k / NQ
    ok = abs(v - exact) <= 0.05
    if not ok:
        bad.append(name)
        print(f"   {pad(name, 24)}{v:5.1f}   k={k:2d}  100k/30={exact:5.2f}"
              f"   off by {v - exact:+.2f}")
print(f"   the other {len(REPORTED) - len(bad)} match")
se = 100 * 0.5 / math.sqrt(K * NQ)
sd = se * math.sqrt(2)
print(f"   sampling noise only: SE of the 30-problem mean <= {se:.2f} points")
print(f"   SE of the difference of two evaluations <= {sd:.2f} points")
AIME = (77.9, 59.0, 74.0, 78.1, 79.8)
STAGES = ("R1-Zero", "Dev1", "Dev2", "Dev3", "R1")
print("   AIME change per stage: points, multiples of sigma, problems")
for a, b, na, nb in zip(AIME, AIME[1:], STAGES, STAGES[1:]):
    d = b - a
    print(f"   {pad(na + ' -> ' + nb, 18)}{d:+6.1f}  {abs(d) / sd:5.1f}"
          f"  {abs(d) / (100 / NQ):5.2f}")

# ---- 5 ----
print("\n5. Table 3: results per stage")
T3 = {  # R1-Zero, Dev1, Dev2, Dev3, R1
    "MMLU": (88.8, 89.1, 91.2, 91.0, 90.8),
    "MMLU-Redux": (85.6, 90.0, 93.0, 93.1, 92.9),
    "MMLU-Pro": (68.9, 74.1, 83.8, 83.1, 84.0),
    "DROP": (89.1, 89.8, 91.1, 88.7, 92.2),
    "IF-Eval": (46.6, 71.7, 72.0, 78.1, 83.3),
    "GPQA Diamond": (75.8, 66.1, 70.7, 71.2, 71.5),
    "SimpleQA": (30.3, 17.8, 28.2, 24.9, 30.1),
    "FRAMES": (82.3, 78.5, 81.8, 81.9, 82.5),
    "AlpacaEval 2.0": (24.7, 50.1, 55.8, 62.1, 87.6),
    "ArenaHard": (53.6, 77.0, 73.2, 75.6, 92.3),
    "LiveCodeBench": (50.0, 57.5, 63.5, 64.6, 65.9),
    "Codeforces pct": (80.4, 84.5, 90.5, 92.1, 96.3),
    "Codeforces rating": (1444, 1534, 1687, 1746, 2029),
    "SWE Verified": (43.2, 39.6, 44.6, 45.6, 49.2),
    "Aider-Polyglot": (12.2, 6.7, 25.6, 44.8, 53.3),
    "AIME 2024": (77.9, 59.0, 74.0, 78.1, 79.8),
    "MATH-500": (95.9, 94.2, 95.9, 95.4, 97.3),
    "CNMO 2024": (88.1, 58.0, 73.9, 77.3, 78.8),
    "CLUEWSC": (93.1, 92.8, 92.6, 91.6, 92.8),
    "C-Eval": (92.8, 85.7, 91.9, 86.4, 91.8),
    "C-SimpleQA": (66.4, 58.8, 64.2, 66.9, 63.7),
}
assert T3["AIME 2024"] == AIME
back = [(k, v[0], v[4]) for k, v in T3.items() if v[0] >= v[4]]
print(f"   of {len(T3)} benchmarks R1-Zero >= final R1 on {len(back)}:")
for k, z, f in back:
    print(f"   {pad(k, 14)}R1-Zero {z:5.1f}   R1 {f:5.1f}   {z - f:+.1f}")
for k in ("AlpacaEval 2.0", "ArenaHard"):
    a, b = T3[k][3], T3[k][4]
    print(f"   {pad(k, 15)}Dev3 {a} -> R1 {b}: {b - a:+.1f} points, relative "
          f"{(b / a - 1):+.1%}")
print("   (the text says 'improved by 25% and 17%': these are points)")

# ---- 6 ----
print("\n6. The KL estimator and the clip inside the GRPO loss")
gen = torch.Generator().manual_seed(0)
V = 8
theta0 = torch.randn(V, generator=gen)
noise = torch.randn(V, generator=gen)


def estimators(ref_scale):
    th = theta0.clone().requires_grad_()
    ref = (theta0 + ref_scale * noise).softmax(0)
    p = th.softmax(0)
    k1 = (p / ref).log()  # log-ratio
    k3 = ref / p - (ref / p).log() - 1  # GRPO's estimator
    kl_fwd = (p * k1).sum()
    kl_rev = (ref * (ref / p).log()).sum()
    g_fwd, = torch.autograd.grad(kl_fwd, th, retain_graph=True)
    g_rev, = torch.autograd.grad(kl_rev, th, retain_graph=True)
    # samples drawn from p stay fixed; differentiate only through p inside k3
    loss = (p.detach() * k3).sum()
    g_k3, = torch.autograd.grad(loss, th)
    return (p.detach(), ref, k1.detach(), k3.detach(), kl_fwd.item(),
            g_fwd, g_rev, g_k3)


cos = torch.nn.functional.cosine_similarity
print("   " + pad("reference distance", 22)
      + pad("KL(pi||ref)", 13) + pad("E[k1]", 9) + pad("E[k3]", 9)
      + pad("min k1", 9) + pad("min k3", 9))
for scale in (0.15, 0.8, 2.0):
    p, ref, k1, k3, kl, g_fwd, g_rev, g_k3 = estimators(scale)
    print("   " + pad(f"noise x {scale}", 22) + pad(f"{kl:.4f}", 13)
          + pad(f"{(p * k1).sum():.4f}", 9) + pad(f"{(p * k3).sum():.4f}", 9)
          + pad(f"{k1.min():.3f}", 9) + pad(f"{k3.min():.4f}", 9))
    draws = torch.multinomial(p, 200_000, replacement=True, generator=gen)
    s1, s3 = k1[draws], k3[draws]
    print(f"      200,000 samples: k1 {s1.mean():.4f} +- {s1.std():.4f}, "
          f"k3 {s3.mean():.4f} +- {s3.std():.4f}")
    c_rev, c_fwd = cos(g_k3, g_rev, 0), cos(g_k3, g_fwd, 0)
    for lab, c in (("KL(ref||pi)", c_rev), ("KL(pi||ref)", c_fwd)):
        print(f"      k3-loss gradient vs {lab} "
              f"gradient: cos {c:.4f}")


def flows(r, adv, eps):
    x = torch.tensor(r, requires_grad=True)
    obj = torch.minimum(x * adv, x.clamp(1 - eps, 1 + eps) * adv)
    obj.backward()
    return "yes" if x.grad.item() != 0 else "no"


print("   does the gradient survive at ratio r (A=+1 / A=-1)")
print("   " + pad("r", 6) + pad("eps=0.2", 12) + "eps=10")
for r in (0.5, 0.9, 1.1, 1.5, 5.0, 12.0):
    print("   " + pad(f"{r}", 6)
          + pad(f"{flows(r, 1., 0.2)} / {flows(r, -1., 0.2)}", 12)
          + f"{flows(r, 1., 10.)} / {flows(r, -1., 10.)}")

Batch accounting: how many questions did 10,400 steps cover

1. RL bookkeeping (Section 2.3, Supplementary B.3 and B.4)
   per step: 32 questions x 16 samples = 512 (paper: 512)
   per rollout: 8192 samples / 16 mini-batches = 512
   10,400 steps / 16 = 650 rollouts
   question draws 332,800, samples 5,324,800
   paper: 1.6 epochs, so a pool of 208,000
   Table 4 reasoning: 26+17+22+15 = 80K -> 4.16 epochs
   with the 8K bug-fix tasks from the text: 3.78
   implied pool is 2.6x Table 4

Each step has 32 questions × 16 samples = 512; the 8,192 samples of a rollout, split into 16 mini-batches, are also 512 per mini-batch; and 10,400 steps make 650 rollouts. All of this adds up. What does not add up is the size of the question pool. The paper says 10,400 steps are 1.6 epochs, with 32 distinct questions per step, so there are 332,800 draws in all and the implied pool is 208,000 questions. But the reasoning questions in Table 4 are 26K, 17K, 22K and 15K, 80K in all (88K with the 8K bug-fix questions mentioned in the text), which gives 4.16 epochs (3.78). The implied pool is 2.6 times Table 4. Table 4 does not separate R1-Zero from R1, and the paper does not say which pool R1-Zero used, so one possible explanation is that the two used different pools; this is only a guess, the paper does not say.

Table 5: the 800K SFT samples

2. Table 5: the roughly 800K SFT samples
   domain   samples    avg tokens    total tokens
   math     395,285    6,094.2       2.41B (56%)
   code     211,129    7,435.7       1.57B (36%)
   STEM     10,124     4,928.8       0.05B (1%)
   logic    10,395     2,739.0       0.03B (1%)
   general  177,812    1,419.8       0.25B (6%)
   total 804,745 (paper 804,745)
   mean 5,355.3 tokens (paper 5,355.3), 4.31B
   2-3 epochs: 8.6B to 12.9B tokens
   reasoning 626,933 (text: about 600K)
   other 177,812 (text: about 200K)

Table 5’s total of 804,745 samples and its average of 5,355.3 tokens are both reproduced exactly by the rows, so the table is internally consistent. The total is about 4.31B tokens, of which math is 56% and code 36%; the general data has 177.8K samples but only 6% of the tokens. The 2 to 3 epochs of distillation are 8.6B to 12.9B tokens of SFT, far lighter than the 5,324,800 responses generated by R1-Zero’s RL (part 1). What does not match is the split: the text says about 600K reasoning samples and about 200K non-reasoning samples, while Table 5 adds up by domain to 626,933 plus 177,812. Both statements are within “about”, but the dividing line differs. It may be that the software-engineering data, which the text counts as non-reasoning, is counted in the code row of the table; this is a guess as well, the paper does not say.

Table 7: training cost

3. Table 7: training cost (H800 at 2 USD per GPU hour)
   R1-Zero: 512 GPU x 198 h = 101,376 GPU-h -> 202,752 USD (paper 101K, 202K)
   R1: 512 GPU x 80 h = 40,960 GPU-h -> 81,920 USD (paper 41K, 82K)
   if it were the text's 'about 4 days' (96 h): 49,152 GPU-h -> 98,304 USD
   total 147K GPU-h -> 294K USD (paper 147K, 294K)
   if all 198 h went into 10,400 steps: 68.5 s each
   batch 512 = GPU count: 68.5 GPU-s per sample

All three rows of the cost table add up: R1-Zero is 512 × 198 = 101,376 GPU hours, which at 2 USD per hour is 202,752 USD; R1 is 512 × 80 = 40,960 GPU hours; adding the 5K GPU hours for building the SFT data gives 147K GPU hours and 294K USD in total. What is inconsistent is a sentence in the same appendix: it says R1’s training took “about 4 days, or roughly 80 hours”, but 4 days is 96 hours, which would be 49,152 GPU hours; the table is computed with 80 hours, so “4 days” is just loose wording. One more derived number: if all 198 hours went into the 10,400 steps, each step takes 68.5 seconds, and since the batch size of 512 equals the GPU count, each response costs 68.5 GPU seconds on average. Note that the table excludes the pretraining of the V3 base model and the early 30B small-model experiments on A100 GPUs (mentioned in Appendix B.4.4).

AIME has only 30 problems: granularity and noise

4. AIME 2024 has 30 problems: granularity and noise
   one problem = 3.33 points; pass@1 step 0.052 points
   12 per-problem scores (cons@64, pass@64) must be k/30:
   GPT-4o-0513              13.4   k= 4  100k/30=13.33   off by +0.07
   R1-Distill-Qwen-1.5B     52.7   k=16  100k/30=53.33   off by -0.63
   the other 10 match
   sampling noise only: SE of the 30-problem mean <= 1.14 points
   SE of the difference of two evaluations <= 1.61 points
   AIME change per stage: points, multiples of sigma, problems
   R1-Zero -> Dev1    -18.9   11.7   5.67
   Dev1 -> Dev2       +15.0    9.3   4.50
   Dev2 -> Dev3        +4.1    2.5   1.23
   Dev3 -> R1          +1.7    1.1   0.51

AIME 2024 has only 30 problems, so one problem is 3.33 points. Sampling 64 responses per problem and averaging gives pass@1 a resolution of 0.052 points, but a fine scale is not the same as high precision. Counting only the sampling noise of “the same 30 problems, 64 samples each”, the standard error is at most 1.14 points (at its maximum when every problem has a success rate of 0.5) and the standard error of the difference between two independent evaluations is at most 1.61 points. This estimate does not include the uncertainty of why these 30 problems were the ones used.

Using it to judge the changes between stages: R1-Zero to Dev1 drops 18.9 points and Dev1 to Dev2 rises 15.0 points, both far above the noise; the 4.1 points from Dev2 to Dev3 are only 2.5 standard errors; and for the last step, the AIME gain of 1.7 points from Dev3 to the final R1 is about 1.1 standard errors, or 0.51 of a problem, and cannot be taken as evidence of improvement. The paper does say the last stage gives only marginal improvement on math and code.

One more small finding: the 12 per-problem scores (cons@64 and pass@64) must have the form k/30k/30, and 10 of them do; the 13.4 of GPT-4o-0513 and the 52.7 of R1-Distill-Qwen-1.5B do not (the nearest multiples are 13.33 and 53.33). The paper gives no explanation; it may score ties in the majority vote proportionally, which is again a guess. Also, the paper’s Figure 1 labels its curve cons@16 while Supplementary D.1 defines cons@64; both give 86.7%, which is exactly 26/30, so the number itself is fine and the label is what is inconsistent.

Table 3: results per stage

5. Table 3: results per stage
   of 21 benchmarks R1-Zero >= final R1 on 6:
   GPQA Diamond  R1-Zero  75.8   R1  71.5   +4.3
   SimpleQA      R1-Zero  30.3   R1  30.1   +0.2
   CNMO 2024     R1-Zero  88.1   R1  78.8   +9.3
   CLUEWSC       R1-Zero  93.1   R1  92.8   +0.3
   C-Eval        R1-Zero  92.8   R1  91.8   +1.0
   C-SimpleQA    R1-Zero  66.4   R1  63.7   +2.7
   AlpacaEval 2.0 Dev3 62.1 -> R1 87.6: +25.5 points, relative +41.1%
   ArenaHard      Dev3 75.6 -> R1 92.3: +16.7 points, relative +22.1%
   (the text says 'improved by 25% and 17%': these are points)

On six benchmarks R1-Zero scores at least as high as the final R1: GPQA Diamond (75.8 against 71.5), SimpleQA (30.3 against 30.1), CNMO 2024 (88.1 against 78.8), CLUEWSC, C-Eval and C-SimpleQA, three of them Chinese-language benchmarks. One possible link is the language-consistency reward of the first stage (the paper’s ablation says it lowers performance slightly), but the paper does not break these six down, so this is only a hypothesis. The 25% and 17% for AlpacaEval 2.0 and ArenaHard are percentage points; as relative gains they are 41.1% and 22.1%. The paper’s Table 8 labels ArenaHard as GPT-4-1106 while Table 3 gives no metric, and Figure 2 here follows Table 8.

The GRPO loss: the KL estimator and clipping

6. The KL estimator and the clip inside the GRPO loss
   reference distance    KL(pi||ref)  E[k1]    E[k3]    min k1   min k3   
   noise x 0.15          0.0029       0.0029   0.0029   -0.223   0.0000   
      200,000 samples: k1 0.0029 +- 0.0761, k3 0.0029 +- 0.0038
      k3-loss gradient vs KL(ref||pi) gradient: cos 1.0000
      k3-loss gradient vs KL(pi||ref) gradient: cos 0.9997
   noise x 0.8           0.0887       0.0887   0.0887   -1.116   0.0037   
      200,000 samples: k1 0.0905 +- 0.4056, k3 0.0885 +- 0.1301
      k3-loss gradient vs KL(ref||pi) gradient: cos 1.0000
      k3-loss gradient vs KL(pi||ref) gradient: cos 0.9890
   noise x 2.0           0.5979       0.5979   0.5979   -2.415   0.1235   
      200,000 samples: k1 0.5960 +- 1.0181, k3 0.6024 +- 1.1090
      k3-loss gradient vs KL(ref||pi) gradient: cos 1.0000
      k3-loss gradient vs KL(pi||ref) gradient: cos 0.8792
   does the gradient survive at ratio r (A=+1 / A=-1)
   r     eps=0.2     eps=10
   0.5   yes / no    yes / yes
   0.9   yes / yes   yes / yes
   1.1   yes / yes   yes / yes
   1.5   no / yes    yes / yes
   5.0   no / yes    yes / yes
   12.0  no / yes    no / yes

The paper says GRPO adds an estimator of the KL (Eq. 2; written k3k_3 here) directly to the loss. On a toy vocabulary of 8 tokens the expectation can be computed exactly. For three settings of how far the reference model is from the policy, the expectation of k3k_3 equals KL(π∥πref)\mathrm{KL}(\pi\|\pi_{\mathrm{ref}}) exactly (0.0029, 0.0887, 0.5979) and each sample is nonnegative; the naive log ratio k1k_1 has the same expectation, but single samples can be negative (minimum −0.223, −1.116, −2.415). Variance is another matter. When the two distributions are close, k3k_3 has a much smaller standard deviation (0.0038 against 0.0761 at KL 0.0029); when they are far apart the advantage disappears, and at KL 0.5979 the standard deviation of k3k_3 (1.1090) is actually larger than that of k1k_1 (1.0181).

The direction of the gradient is also worth a look. With the samples held fixed, using k3k_3 as the loss gives exactly the gradient of KL(πref∥π)\mathrm{KL}(\pi_{\mathrm{ref}}\|\pi) (cosine 1.0000), not the gradient of KL(π∥πref)\mathrm{KL}(\pi\|\pi_{\mathrm{ref}}) that Eq. 2 estimates; the two are close only when the distributions are close (cosines 0.9997, 0.9890, 0.8792). This is the same issue discussed in the DeepSeek-V3.2 walkthrough (this site calls KL(πref∥π)\mathrm{KL}(\pi_{\mathrm{ref}}\|\pi) the reverse KL; the literature is not consistent about which direction gets that name, so go by the formula). R1 replaces the reference model with the latest policy every 400 steps, which resets the distance between policy and reference, and while that distance is small the two gradients point almost the same way.

Finally, clipping. The paper sets ε\varepsilon to 10 in the first stage. In the table, yes / no tells whether a token whose advantage is +1 or −1 still has a gradient at importance ratio rr. With ε=0.2\varepsilon=0.2, a token with r=1.5r=1.5 and a positive advantage has no gradient left, and neither has one with r=0.5r=0.5 and a negative advantage; with ε=10\varepsilon=10 only positive-advantage tokens with rr above 11 are cut off, which is effectively no clipping. What limits each update then is mostly the 3e-6 learning rate, the 0.001 KL term and the single inner epoch per rollout. This is my reading; the paper gives no ablation on ε\varepsilon.

Questions the paper leaves open

Since the R1 paper appeared, several studies have tested its conclusions directly (the numbers in the table come from each paper’s abstract; this page did not reproduce them):

QuestionWhat later work foundSource
Does the aha moment come from RL?DeepSeek-V3-Base already shows the aha moment before RL; Qwen2.5 base models reason strongly even without a prompt template, which suggests pretraining data already carries such a biasLiu et al., 2025, arXiv 2503.20783
Is GRPO’s optimization biased?Yes: GRPO artificially lengthens responses, wrong ones most; the proposed Dr. GRPO keeps the scores while improving token efficiency, and a 7B base reaches 43.3% on AIME 2024same
Does RL expand the capability boundary of the base model?Measured by pass@k at large k, RL models beat the base at small k, but the base model is higher at large k; reasoning ability comes from, and is bounded by, the base model; distillation can bring in new reasoning patterns from the teacherYue et al., 2025, arXiv 2504.13837
Must the reward be “true”?Training Qwen2.5-Math-7B with random rewards raises MATH-500 by 21.4 points (true rewards: 29.1 points); the explanation is that GRPO’s clipping bias amplifies high-prior behaviors from pretraining; it often fails on Llama3, OLMo2 and othersShao et al., 2025, arXiv 2506.10947
What was the contemporary alternative?Kimi k1.5 (released the same day): long-context RL with improved policy optimization, with no MCTS, value function or process reward model; AIME 77.5, MATH-500 96.2arXiv 2501.12599
How can GRPO’s details be improved?DAPO changes the details of clipping, sampling and loss one by one; GSPO moves the importance ratio from token level to sequence levelthis site’s DAPO and GSPO walkthroughs

Taken together, the R1 paper’s main conclusion, that verifiable rewards and a large enough base model can grow long chains of thought, has not been overturned. What was corrected is the attribution: much of the ability comes from the base model and RL acts more as an amplifier and filter; the RL algorithm itself has biases that can be improved; and whether the reward signal needs to be true depends on the model family.

What to take from this paper

  1. Rule rewards and a minimal template. Accuracy plus format, equally weighted; the paper deliberately gives up neural reward models and stakes the source of the reasoning ability on a base model, verifiable rewards and compute.
  2. The base model has a threshold. The paper’s own failed attempts show that RL on a 7B dense model and a 16B MoE gave no substantial AIME gain, and later findings that Qwen models are unusually affected by pretraining narrow the conclusion further.
  3. Every stage of the pipeline has a job. The cold start keeps the output readable, reasoning RL recovers the ability, rejection sampling plus SFT adds general and code ability, and the last RL aligns preferences; the final R1 gives up some benchmark scores for generality (Table 3).
  4. Distillation is the best value, RL pushes the ceiling. But the idea of a ceiling is itself disputed (Yue et al.).
  5. Read the numbers with the version and the noise in mind. v1 and v2 report different R1-Zero scores; one AIME problem is 3.33 points, and a difference of 1.7 points is less than one problem.

Further reading

FAQ

What is the difference between DeepSeek-R1-Zero and DeepSeek-R1?
R1-Zero starts from DeepSeek-V3-Base and does no SFT at all in post-training: it uses only rule-based rewards (is the answer right, is the thinking inside the agreed tags) in large-scale reinforcement learning. It shows that pure RL can grow long chains of thought, but its output is hard to read and mixes Chinese and English. R1 goes through four stages instead: a few thousand cold-start examples for SFT, reasoning-oriented RL with a language-consistency reward, rejection sampling plus SFT on about 800K samples (fine-tuning again from V3-Base), and an all-scenario RL. They restore readability and general ability while keeping the reasoning. R1 is not better everywhere, though: on 6 of the 21 benchmarks in Table 3, R1-Zero scores at least as high as the final R1.
How much did DeepSeek-R1 cost to train?
The paper's cost table (Table 7 in the supplementary material of arXiv v2) assumes an H800 rental price of 2 USD per GPU hour: R1-Zero took about 198 hours on 512 H800 GPUs, which is 101K GPU hours or about 202K USD; R1 took about 80 hours, 41K GPU hours or about 82K USD; building the SFT data took another 5K GPU hours; the total is about 147K GPU hours and 294K USD. The figure excludes the pretraining of the DeepSeek-V3 base model and early small-model experiments on A100 GPUs. We recomputed it and the three rows and the total check out. The text, however, says R1's training took about 4 days, which is 96 hours and does not match the 80 hours in the table.
Which RL algorithm and which rewards does R1 use?
GRPO (Group Relative Policy Optimization): for each question it samples a group of responses (16 in the R1 paper), turns the rewards into advantages by standardizing them within the group, and needs no value model. R1-Zero's reward has just two rule-based parts, added with equal weight: an accuracy reward (for math, the final answer in a given format is matched by rules; for code, a compiler runs test cases) and a format reward (thinking inside think tags). The paper deliberately avoids neural reward models because they are easily exploited in large-scale RL and cost extra training. R1's first stage adds a language-consistency reward (the share of target-language words in the chain of thought), and its last stage uses reward models for general data.
Should a small model do reinforcement learning itself or distill from a large model?
The paper concludes that distillation pays off more: SFT of Qwen2.5-32B on about 800K samples generated by R1 gives 72.6% pass@1 on AIME 2024, whereas the same base trained with RL for more than 10K steps reaches only 47.0%, comparable to QwQ-32B-Preview. Two caveats: the comparison does not count the cost of training the teacher R1 itself, and later work (Yue et al., 2025) found that RL-trained models do not beat their base model at large k in pass@k, while distillation can bring in the teacher's new reasoning patterns. The paper itself says that going beyond the boundary of today's models still takes stronger base models and larger-scale RL.
Was the “aha moment” in R1-Zero real?
The paper shows an intermediate R1-Zero version writing “Wait, wait. Wait. That’s an aha moment I can flag here.” and counts a spike of the word “wait” after step 8,000. The causality is disputed: Liu et al. (2025, arXiv 2503.20783) found that DeepSeek-V3-Base already writes such self-reflective sentences before any reinforcement learning, and the paper raised the maximum response length from 32,768 to 65,536 at step 8.2k, exactly where the score and the response length jump, without separating the two events. The current evidence favors “RL amplified and selected reflective behavior already present in the base model” over “RL created it from nothing”.