Vibe Engines
YouTube
Paper Breakdowns  /  DeepSeek-R1
Paper 29~9 min readDeepSeek · 2025
Paper Breakdown

DeepSeek-R1,
explained.

Most models are taught to reason by showing them thousands of worked solutions to copy. DeepSeek-R1 tried something bolder: don't show it how to think at all. Just reward it for getting the final answer right, over and over, and see what happens. What happened surprised everyone — the model taught itself to slow down, work step by step, and even catch its own mistakes. Reasoning wasn't programmed in. It grew.

The delta

What changes against o1: outcome reward alone, and everything published

Rung 4 establishes that reasoning can be trained and does not say how. This rung's change is to show that the recipe can be far simpler than anyone expected and to publish it. The starkest version is the variant trained with no supervised fine-tuning at all: reinforcement learning applied directly to a base model, with a reward that checks only whether the final answer is correct and whether the output is in the required format. No human reasoning demonstrations, no step-level labels, no learned reward model to game.

What emerges under that reward is the finding. The model's responses get longer on their own over training — nothing rewards length — and behaviours the ladder below had to scaffold appear inside a single generated stream: reconsidering an approach, checking its own work, backtracking from a line that is not working. Rung 3 built that with an external search; here it is a policy the model arrived at because it raised the probability of being right.

Stated in the units this ladder compares on: rung 9 of the post-training ladder argues that supervising the process beats supervising the outcome, and buys that with an enormous annotation effort. This rung reaches comparable reasoning behaviour with outcome supervision only, paying in reinforcement-learning compute instead of in labels. The released version adds a small amount of cold-start data before the reinforcement learning, for reasons the standing block explains, and the weights and method are open.

01

The reasoning gap

A standard chat model answers fast — it predicts a response in one flowing pass. That's fine for "summarize this email," but it stumbles on problems that need genuine multi-step work: hard math, tricky code, layered logic. Answering such a question well requires thinking — trying an approach, checking it, backing up, trying another — before committing to a final answer.

OpenAI's o1 had shown that letting a model generate a long internal chain of thought before answering dramatically boosts reasoning — but the recipe was closed. The open question DeepSeek-R1 set out to answer: how do you actually train a model to think like that? And could you do it without a mountain of hand-written reasoning examples?

02

R1-Zero: reward, and nothing else

The boldest experiment came first: DeepSeek-R1-Zero. Take a base model and skip the usual supervised fine-tuning on example reasoning entirely. Instead, apply reinforcement learning directly, with a shockingly simple reward — mostly just: is the final answer correct? (checkable for math and code), plus a small reward for putting the reasoning in the right format.

Pure RL — reward only the outcome, not the steps
Problem
→
Model generates
a full attempt
→
Reward
answer correct?
↺
Update policy

Crucially, nothing rewards the reasoning itself — no human ranks the steps, no example solutions are copied. The model is only ever told whether it landed on the right answer. Everything about how to get there is left for it to discover. It's the leanest possible teaching signal: outcome only.

03

Reasoning emerges on its own

The result was the paper's headline. Left to maximize correctness, the model discovered — with no instruction to do so — that thinking longer helps. Over training, its responses grew from short guesses into extended chains of reasoning: laying out steps, computing intermediate results, and exploring more than one path before answering. Accuracy on hard math and coding benchmarks climbed steeply alongside this growing "thinking time."

This is a striking demonstration that a complex skill can be incentivized rather than imitated. Nobody wrote reasoning examples for R1-Zero to copy; the reasoning behavior was an emergent strategy for earning more reward. Give a capable base model the right pressure, and the sophisticated behavior falls out.

The key idea

Imitation learning teaches by showing examples. R1-Zero shows reasoning can instead be discovered — the model invents chain-of-thought because thinking step by step is simply the strategy that gets more answers right.

You can see the emergence fall out of the numbers. If expected accuracy rises with thinking length but each step costs a little compute, reward pressure drives the chain to exactly the length where the next step stops paying for itself:

No one wrote a single reasoning example; long chains appeared purely because they earn more reward. The runnable version below grows the chain and shows the reward is ungameable.

04

The 'aha moment'

The most talked-about observation: during training, the model spontaneously learned to stop and reconsider. Mid-solution, it would effectively say "wait — let me rethink this," abandon a flawed approach, and try again. It also learned to spend more thinking on harder problems and less on easy ones, budgeting its own effort.

… so the value would be 12.
Wait. Let me re-check that step — the substitution was wrong.
Reconsidering: if x = 3, then the correct value is 15. ✓

None of this self-correction was designed in. It emerged because catching your own mistakes gets more answers right, and the reward found it. The authors called it an "aha moment" — a genuinely surprising sign that reflective, self-checking behavior can arise from pure outcome-based reinforcement.

05

Fixing R1-Zero's rough edges

R1-Zero reasoned impressively but communicated poorly. With only correctness rewarded, its chains of thought were often hard to read and sometimes mixed languages mid-answer — nobody had rewarded clean, human-friendly output. Powerful, but not pleasant to use.

So the full DeepSeek-R1 added structure around the pure-RL core. First, fine-tune the base model on a small batch of high-quality cold-start reasoning examples to instill a clean style. Then run the large-scale RL for reasoning. Then a round of rejection sampling and more training to polish helpfulness and readability. The emergent reasoning is preserved; the output becomes coherent and well-behaved.

06

Distilling reasoning into small models

Running large-scale RL is expensive, so DeepSeek showed a cheaper path to spread the capability: distillation. Use the strong R1 to generate many high-quality reasoning traces, then simply fine-tune smaller open models (in the 1.5B–70B range) on those traces. No RL needed for the small models — they learn to reason by imitating R1's worked solutions.

ModelHow it got reasoning
R1-Zeropure RL, outcome reward
R1cold-start + RL + polish
Distilled 1.5B–70Bfine-tuned on R1's traces

The distilled models inherited a large share of R1's reasoning — small models that punch far above their size on math and code. It's strong evidence that reasoning skill, once created, transfers cheaply, putting capable reasoners within reach on modest hardware.

07

The limits

The clean RL recipe works best where answers are automatically checkable — math, code, formal logic. For open-ended tasks with no crisp "correct" signal (writing, judgment, taste), outcome-based RL is far harder to apply, so R1's edge is narrower there. Long chains of thought also cost real test-time compute: thinking longer means more tokens, more latency, more money per answer.

And reasoning fluency isn't truthfulness — a confident, well-structured chain of thought can still reach a wrong conclusion, and the visible "thinking" doesn't guarantee the model actually followed that logic. Emergent self-correction reduces errors; it doesn't eliminate them.

08

Why it still matters

DeepSeek-R1 opened the reasoning era to everyone. It reproduced o1-class reasoning with an openly published recipe and open weights, and — through R1-Zero — showed something conceptually deep: advanced reasoning can be incentivized into existence by rewarding correct outcomes, not painstakingly demonstrated. That reframes how we think about teaching models hard skills.

It also cemented test-time compute — letting a model think longer at inference — as a first-class lever alongside making models bigger. Together with the cheap distillation of reasoning into small models, R1 pushed the whole field toward reasoning-first systems and made them broadly accessible, not just a frontier-lab privilege.

Read next

R1 builds on chain-of-thought prompting (the behavior it grows) and the RLHF lineage from InstructGPT (the RL machinery it repurposes toward correctness).

Since then

What the authors admit, and what happened next

The admissions are unusually concrete. The pure-reinforcement-learning variant produces reasoning that is hard to read and mixes languages mid-chain — which is exactly what a reward that only checks the final answer should be expected to produce, since nothing in it ever asks the reasoning to be legible to a human. The cold-start data exists to fix that, and the paper says so. It also reports being weaker on some non-reasoning capabilities, so this is a trade rather than a free gain.

The most interesting reported negative concerns small models: distilling from the large reasoning model beat running the same reinforcement learning directly on a small one. The reasoning behaviour did not bootstrap itself at small scale — it had to be produced by something large and then transferred. That is a finding about where this capability comes from, and it echoes rung 1's threshold from the other end of the ladder.

How it held up: it was reproduced widely and quickly, which is the strongest possible contrast with rung 4's position, and it turned reasoning training from a frontier-lab capability into something many groups could run. The tension it leaves open is genuine and unresolved: outcome-only reward at sufficient scale produced what process supervision was designed to produce, and whether that means process supervision was unnecessary or that expensive reinforcement learning is rediscovering it the slow way is not settled by either result.

SOLVE IT YOURSELF

Grow reasoning from reward alone

R1-Zero's teaching signal is almost nothing: a rule-based reward for a correct answer plus a small format bonus. Two things fall out, and you can run both. First, the reward is ungameable — a wrong-but-fluent answer earns only the format crumb, never the accuracy point. Second, reasoning emerges: since longer thinking raises expected accuracy, pure reward pressure grows the chain from 1 step to ~29 with no examples to copy. Watch the length climb and the accuracy follow. Change the per-step cost or the accuracy curve.

YOUR TASK

Write the body of rl_grow. Everything else in the file is already written; this is the function the paper is about. Press ▶ Run to check it against the 5 assertions below — they start red.

WHAT IT HAS TO SATISFY — 5 ASSERTIONS
  1. Accuracy rises with reasoning length
  2. Expected accuracy saturates below 1
  3. Reward pressure grows the chain far past its start
  4. A correct answer out-rewards a fluent wrong one
  5. The reward is ungameable: fluent-but-wrong earns only the format bonus
CPython · WebAssembly
Check yourself

5 questions on this paper

Answer each one out loud before you open it. Recalling an answer is what makes it stick; recognising one you have just read is not. Your score is kept on this device.

What is DeepSeek-R1?

Show answer

DeepSeek-R1 is a 2025 open-weight reasoning model from DeepSeek. It is trained largely with reinforcement learning to produce long chains of thought before answering, achieving performance competitive with leading proprietary reasoning models on math, code, and logic — and it was released openly along with the training recipe.

How did reasoning emerge without being taught?

Show answer

In DeepSeek-R1-Zero, the base model was trained with reinforcement learning that rewarded only correct final answers and proper formatting — never the reasoning steps themselves. To get answers right more often, the model spontaneously learned to think longer: it began writing out step-by-step reasoning, checking itself, and exploring alternatives, purely because doing so earned more reward.

What is the 'aha moment'?

Show answer

The 'aha moment' is a striking behavior the authors observed during R1-Zero training: the model learned, on its own, to pause and reconsider its approach mid-solution — effectively saying 'wait, let me rethink this' — and to allocate more thinking time to harder problems. This self-correction was never explicitly programmed; it emerged from the reward for correctness.

Why did DeepSeek-R1 add cold-start data?

Show answer

R1-Zero reasoned well but its outputs were messy — poor readability and mixed languages. So DeepSeek-R1 first fine-tuned the base model on a small amount of high-quality example reasoning ('cold-start' data) to establish a clean style, then applied the large-scale reinforcement learning. This kept the emergent reasoning while making the outputs readable and well-behaved.

What is reasoning distillation?

Show answer

DeepSeek used the strong R1 model to generate high-quality reasoning traces, then fine-tuned much smaller models on those traces. These distilled small models inherited a large share of R1's reasoning ability without needing their own expensive RL, showing that reasoning skill can be transferred cheaply — and putting capable reasoning models within reach on modest hardware.

Where this sits

Reasoning you can prompt, then train

It began as a prompting trick and ended as a training objective. Read in order, the progression from "let's think step by step" to a model trained to.

  1. 1Chain-of-Thought Prompting2022
  2. 2Self-Consistency2022
  3. 3Tree of Thoughts2023
  4. 4OpenAI o12024
  5. 5DeepSeek-R12025

All 110 papers, in 19 ladders →

Finished this one? 0 / 110 Paper Breakdowns done

Explore the topic

See this alongside everything else on the same subject — handbooks, system designs, challenges and tools, in one place.

More Paper Breakdowns