agent-readings / Training Agents
DeepSeek-R1
Verifiable rewards as reasoning infrastructure
---
The one sentence
DeepSeek-R1 shows that large-scale reinforcement learning with verifiable rewards can elicit long-chain reasoning, then packages the result into a stronger cold-start-plus-RL model and distilled smaller models.
For agents, DeepSeek-R1 made verifiable reward reinforcement learning a concrete infrastructure pattern: if correctness can be checked, post-training can optimize trajectories at scale without hand-labeling every reasoning path.
---
Core idea
Use verifiable tasks as the reward source for RL, observe what reasoning behaviors emerge without supervised traces, then add cold-start data and staged...
Use verifiable tasks as the reward source for RL, observe what reasoning behaviors emerge without supervised traces, then add cold-start data and staged post-training to improve readability, language control, general capability, and smaller-model transfer.
Modelreason
Runtimeact
Worldobserve
01
Train R1-Zero by applying GRPO to DeepSeek-V3-Base on reasoning tasks with rule-based accuracy and format rewards.
02
Track whether longer reasoning, self-reflection, verification, and strategy adaptation emerge during RL.
03
For R1, collect thousands of cold-start examples to make initial reasoning traces more readable and controlled.
04
Run reasoning-oriented RL from the cold-start model.
---
Executable shape
The mechanism should fit on one screen.
```python
base = DeepSeekV3Base()
r1_zero = grpo_train(
policy=base,
tasks=verifiable_reasoning_tasks,
reward=accuracy_reward + format_reward,
)
cold = sft(base, curated_cold_start_reasoning_examples)
reasoner = grpo_train(cold, verifiable_reasoning_tasks, accuracy_reward)
wide = sft(reasoner, rejection_sample(reasoner) + non_reasoning_instruction_data)
r1 = rl_align(wide, helpfulness_reward + harmlessness_reward)
distill_data = sample(r1, count=800000)
distilled_models = [sft(student, distill_data) for student in qwen_and_llama_students]
```
---