Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

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

  • Problem Reasoning gains in LLMs so far depend on human-written reasoning traces, which are costly to produce and can cap performance at human-style reasoning.
  • Method Applies GRPO-based reinforcement learning to DeepSeek-V3-Base with rule-based rewards and no supervised stage, then adds rejection sampling, supervised fine-tuning and a final RL round to produce DeepSeek-R1.
  • Results During RL, DeepSeek-R1-Zero's AIME 2024 pass@1 rose from 15.6% to 77.9%. The final DeepSeek-R1 reached 79.8 on AIME 2024 pass@1 and 97.3 on MATH-500 pass@1.

Why human-labeled reasoning traces are a bottleneck

Chain-of-thought prompting and training on multi-step reasoning trajectories both raise LLM performance on hard tasks, but both rely on reasoning written by humans. That dependence makes scaling expensive, and it fixes the model to human-style reasoning, so performance is bounded by the quality of the demonstrations.

The study asks whether reasoning can emerge from reinforcement learning alone, starting from DeepSeek-V3-Base and skipping a supervised stage before RL. The reward depends only on whether the final prediction matches the ground-truth answer, so the reasoning process itself is not constrained. The authors' hypothesis is that human-defined reasoning patterns limit exploration, while unrestricted RL can encourage new strategies.

How GRPO scores a group of responses

For each question, GRPO samples a group of outputs from the old policy and updates the current policy so that the outputs are scored against each other rather than against a learned value estimate. GRPO was proposed to simplify training and reduce the resource use of PPO, which is common in LLM RL stages.

The advantage of output \( o_i \) is its reward minus the mean reward of the group, divided by the standard deviation of the group rewards. \[ A_i = \frac{r_i - \mathrm{mean}(\{r_1,r_2,\ldots,r_G\})}{\mathrm{std}(\{r_1,r_2,\ldots,r_G\})} \] An output that scores above its group gets a positive advantage, and one below the group gets a negative advantage.

The objective in equation (1) maximizes a clipped importance ratio \( \pi_\theta(o_i|q)/\pi_{\theta_{old}}(o_i|q) \) multiplied by the advantage, with clipping range \( \varepsilon \), and subtracts \( \beta \) times a KL term against the reference policy \( \pi_{ref} \). The KL term uses the estimator \( \frac{\pi_{ref}(o_i|q)}{\pi_\theta(o_i|q)} - \log\frac{\pi_{ref}(o_i|q)}{\pi_\theta(o_i|q)} - 1 \) and is added directly to the loss rather than folded into the reward.

For DeepSeek-R1-Zero the learning rate was 3e-6, the KL coefficient 0.001, and rollout sampling temperature 1. Training ran for 10,400 steps, each with 32 unique questions, giving a batch size of 512, and the reference model was replaced with the latest policy every 400 steps.

Rule-based rewards for DeepSeek-R1-Zero

The reward is rule-based and has two parts: an accuracy reward that checks correctness and a format reward that checks structure. For math, the final answer must appear in a specified format, such as inside a box, so a rule can verify it; for code, a compiler runs predefined test cases. The format reward asks the model to place its reasoning between think tags, which makes the reasoning easy to separate from the answer.

The total rule-based reward is the sum of the accuracy and format rewards, which the authors combine with equal weight. \[ \mathrm{Reward}_{\mathrm{rule}} = \mathrm{Reward}_{\mathrm{acc}} + \mathrm{Reward}_{\mathrm{format}} \] Neural outcome-based and process-based reward models are not used on reasoning tasks, because the authors observed them to be open to reward hacking in large-scale RL and because retraining them adds cost and complexity.

The prompt template asks the model to reason first and then give the answer, with the reasoning in think tags and the answer in answer tags. The template imposes only this structure, so that content-specific bias does not enter the RL signal.

What RL alone produced in DeepSeek-R1-Zero

AIME 2024 pass@1 for DeepSeek-R1-Zero rose from 15.6% at the start of training to 77.9%. Cons@16 is also plotted over the same training steps, and the curve shows average response length growing as training proceeds. The authors read the length growth as the model spending more thinking time on reasoning problems.

Responses grow longer and include verification, reflection and alternative attempts, although the training never explicitly teaches these behaviours. Table 2 shows an intermediate R1-Zero response that stops mid-derivation with the phrase 'Wait, wait. Wait.' and rechecks its own steps, which the authors call an aha moment.

Despite these results, DeepSeek-R1-Zero has poor readability and sometimes mixes English and Chinese in one chain-of-thought. Its RL stage targets reasoning tasks only, so performance on writing and open-domain questions is limited.

Reflection words and difficulty levels across training

Frequencies of ten reflective words, including 'wait', 'mistake', 'verify' and 'check', were counted, and the word list was built by three human experts. The count of these words rises 5- to 7-fold from the start of training, and the authors suggest RL plays a key role in generating long intermediate token sequences.

The word 'wait' was nearly absent early in training, appeared occasionally between steps 4000 and 7000, and spiked after step 8000. The authors read this as the model learning different forms of reflection at different stages of training.

Accuracy was tracked on MATH by difficulty level from 1 to 5. Level 4 problems improved from near 0.78 to 0.95 and level 5 problems from near 0.55 to 0.90, while level 1 to 3 problems reached high accuracy early. Level 1 contains only 43 of the 500 examples, so 95 to 97% accuracy on it corresponds to one or two unsolved problems, mostly in geometry.

The multi-stage pipeline behind DeepSeek-R1

DeepSeek-R1 integrates rejection sampling, reinforcement learning and supervised fine-tuning, which fixes the readability and language-mixing issues while keeping the reasoning of DeepSeek-R1-Zero. A small cold-start dataset is used before the RL stage, and the authors note that its limited size partly explains the weaker AIME result of Dev1.

Responses are sampled from the first-stage RL checkpoint, and only correct ones are kept, with some answers judged by a generative reward model that compares them with the ground truth. Mixed-language chains, long paragraphs and code blocks are filtered out, and roughly 600k reasoning samples were collected. About 200k non-reasoning samples were also collected from the DeepSeek-V3 pipeline, covering writing, factual QA, self-cognition and translation.

Most of these samples are single-turn, which the authors say may limit multi-turn conversation ability.

The RL data has 26K math prompts, 17K algorithm competition coding prompts plus 8K bug-fixing prompts, 22K STEM choice questions and 15K logic questions, along with 66K general prompts. Math rewards are 1 for a match with the reference answer and 0 otherwise, and STEM rewards are binary on the chosen option. A final RL round then runs on DeepSeek-R1 Dev3 with a mix of reasoning-focused and general-purpose data.

Scores at each DeepSeek-R1 stage

Table 3 lists the scores of R1-Zero, Dev1, Dev2, Dev3 and the final DeepSeek-R1 across English, code, math and Chinese benchmarks.

Dev1 raised IF-Eval from 46.6 to 71.7 and ArenaHard from 53.6 to 77.0, but its AIME 2024 pass@1 fell from 77.9 to 59.0. The authors attribute the AIME drop to the limited size of the cold-start dataset.

Dev2 raised LiveCodeBench Pass@1-COT from 57.5 to 63.5 and Codeforces rating from 1534 to 1687 over Dev1, with AIME 2024 at 74.0.

Dev3 adds non-reasoning and code engineering data to the SFT stage and reaches 62.1 on AlpacaEval 2.0 and 44.8 on Aider-Polyglot. The final DeepSeek-R1 reaches 87.6 on AlpacaEval 2.0 and 92.3 on ArenaHard, and the authors state gains of 25% and 17% on those two benchmarks. Its reasoning numbers are 79.8 on AIME 2024, 97.3 on MATH-500, 65.9 on LiveCodeBench and a Codeforces rating of 2029.

Table 3 marks bold entries as statistically significant by a t-test with p below 0.01.

PPO versus GRPO on MATH

PPO uses a learned value model and adds a per-token KL penalty as a dense reward, while GRPO adds the KL term directly to its loss. The authors argue that PPO's cumulative KL penalty may implicitly penalize response length and so restrain its growth. Because the reference policy is periodically replaced with the latest policy, the KL term does not hold the policy near its starting point.

The comparison runs on the MATH task with DeepSeek-Coder-V2-Lite, a 16B MoE model with 2.4B active parameters. PPO is very sensitive to the lambda coefficient of GAE: at 0.95, the default in most open-source implementations, it performs considerably worse than GRPO. At lambda 1.0, PPO improves substantially and approaches GRPO.

Reaching that PPO level needs extra hyperparameter tuning and a value model, which adds memory and compute overhead, so the authors consider GRPO more practical for large models under limited resources.

Effect of the Language Consistency reward

The ablation uses DeepSeek-R1-Distill-Qwen-7B, which starts from the same cold-start data as DeepSeek-R1. Runs are compared with and without the Language Consistency reward during RL.

Without the LC reward, language consistency deteriorates as training steps increase; with it, consistency stays stable across training. Math benchmark performance stays comparable with the reward, while the coding benchmark shows a slight drop.

The authors accept this slight drop because the reward matches human preference for more readable output.

Training cost of DeepSeek-R1

Before the main runs, experiments were done on a smaller model with 30B parameters on A100 GPUs, and the authors then scaled to the 660B R1-Zero and R1. DeepSeek-R1-Zero training used 64*8 H800 GPUs for about 198 hours, and DeepSeek-R1 training used the same setup for about 80 hours.

In GPU hours, R1-Zero used 101K, SFT data creation 5K and DeepSeek-R1 41K, giving 147K in total. At an assumed rental price of 2 USD per H800 GPU hour, the total is 294K USD.

Evaluation setup and decontamination

Evaluations cover MMLU, MMLU-Redux, MMLU-Pro, C-Eval, IFEval, FRAMES, GPQA Diamond, SimpleQA, Codeforces, LiveCodeBench, SWE-Bench Verified, Aider, CNMO 2024 and AIME 2024, among others. DeepSeek-R1 outputs were capped at 32,768 tokens for each benchmark.

The authors acknowledge that n-gram filtering cannot catch paraphrased test sets, so benchmarks released before 2024 may still be contaminated.

Jailbreak robustness and the risk control system

The authors rate the inherent safety of DeepSeek-R1 at a moderate level, comparable to GPT-4o (2024-05-13), and state that a risk control system raises it to a higher standard. Under jailbreak attacks, DeepSeek-R1's unsafe ratio rises from 25.2 on the origin set to 85.9.

With the risk control system, DeepSeek-R1's unsafe ratio falls to 4.3 under jailbreak, while its rejected ratio on the jailbreak set rises to 87.3. The authors note that open-source models lack such a control in local deployments and advise developers to add comparable measures.

Limitations

Reward hacking appeared when the helpful reward model was used, with the LLM producing responses the model rated highly but that diverged from human preferences. In one training run the reward rises while CodeForces test Pass@1 falls, so the reward trend stops tracking performance.

Most SFT samples are single-turn, which may limit multi-turn conversational ability of DeepSeek-R1, and the authors leave multi-turn data to future work. The n-gram decontamination cannot rule out paraphrased test items, as noted above.

The PPO comparison covers one model, DeepSeek-Coder-V2-Lite, and one task, MATH.

Paper info

Authors
DeepSeek-AI, Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, Xiaokang Zhang, Xingkai Yu, Yu Wu, Z. F. Wu, Zhibin Gou, Zhihong Shao, Zhuoshu Li, Ziyi Gao, Aixin Liu, Bing Xue, Bingxuan Wang, Bochao Wu, Bei Feng, Chengda Lu, Chenggang Zhao, Chengqi Deng, Chenyu Zhang, Chong Ruan, Damai Dai, Deli Chen, Dongjie Ji, Erhang Li, Fangyun Lin, Fucong Dai, Fuli Luo, Guangbo Hao, Guanting Chen, Guowei Li, H. Zhang, Han Bao, Hanwei Xu, Haocheng Wang, Honghui Ding, Huajian Xin, Huazuo Gao, Hui Qu, Hui Li, Jianzhong Guo, Jiashi Li, Jiawei Wang, Jingchang Chen, Jingyang Yuan, Junjie Qiu, Junlong Li, J. L. Cai, Jiaqi Ni, Jian Liang, Jin Chen, Kai Dong, Kai Hu, Kaige Gao, Kang Guan, Kexin Huang, Kuai Yu, Lean Wang, Lecong Zhang, Liang Zhao, Litong Wang, Liyue Zhang, Lei Xu, Leyi Xia, Mingchuan Zhang, Minghua Zhang, Minghui Tang, Meng Li, Miaojun Wang, Mingming Li, Ning Tian, Panpan Huang, Peng Zhang, Qiancheng Wang, Qinyu Chen, Qiushi Du, Ruiqi Ge, Ruisong Zhang, Ruizhe Pan, Runji Wang, R. J. Chen, R. L. Jin, Ruyi Chen, Shanghao Lu, Shangyan Zhou, Shanhuang Chen, Shengfeng Ye, Shiyu Wang, Shuiping Yu, Shunfeng Zhou, Shuting Pan, S. S. Li, Shuang Zhou, Shaoqing Wu, Shengfeng Ye, Tao Yun, Tian Pei, Tianyu Sun, T. Wang, Wangding Zeng, Wanjia Zhao, Wen Liu, Wenfeng Liang, Wenjun Gao, Wenqin Yu, Wentao Zhang, W. L. Xiao, Wei An, Xiaodong Liu, Xiaohan Wang, Xiaokang Chen, Xiaotao Nie, Xin Cheng, Xin Liu, Xin Xie, Xingchao Liu, Xinyu Yang, Xinyuan Li, Xuecheng Su, Xuheng Lin, X. Q. Li, Xiangyue Jin, Xiaojin Shen, Xiaosha Chen, Xiaowen Sun, Xiaoxiang Wang, Xinnan Song, Xinyi Zhou, Xianzu Wang, Xinxia Shan, Y. K. Li, Y. Q. Wang, Y. X. Wei, Yang Zhang, Yanhong Xu, Yao Li, Yao Zhao, Yaofeng Sun, Yaohui Wang, Yi Yu, Yichao Zhang, Yifan Shi, Yiliang Xiong, Ying He, Yishi Piao, Yisong Wang, Yixuan Tan, Yiyang Ma, Yiyuan Liu, Yongqiang Guo, Yuan Ou, Yuduan Wang, Yue Gong, Yuheng Zou, Yujia He, Yunfan Xiong, Yuxiang Luo, Yuxiang You, Yuxuan Liu, Yuyang Zhou, Y. X. Zhu, Yanhong Xu, Yanping Huang, Yaohui Li, Yi Zheng, Yuchen Zhu, Yunxian Ma, Ying Tang, Yukun Zha, Yuting Yan, Z. Z. Ren, Zehui Ren, Zhangli Sha, Zhe Fu, Zhean Xu, Zhenda Xie, Zhengyan Zhang, Zhewen Hao, Zhicheng Ma, Zhigang Yan, Zhiyu Wu, Zihui Gu, Zijia Zhu, Zijun Liu, Zilin Li, Ziwei Xie, Ziyang Song, Zizheng Pan, Zhen Huang, Zhipeng Xu, Zhongyu Zhang, Zhen Zhang
Venue
arXiv · Preprint
First published
2025-1-22
Added
2026-10-20
Updated
2026-1-4
Version
v2
arXiv
2501.12948
DOI
10.1038/s41586-025-09422-z
Category
cs.CL · cs.AI · cs.LG
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

DeepSeek-AI, Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, Xiaokang Zhang, Xingkai Yu, Yu Wu, Z. F. Wu, Zhibin Gou, Zhihong Shao, Zhuoshu Li, Ziyi Gao, Aixin Liu et al. (2025). DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning. arXiv:2501.12948v2. https://doi.org/10.1038/s41586-025-09422-z

BibTeX
@article{deepseekai2025deepseek,
  title = {{DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning}},
  author = {DeepSeek-AI and Daya Guo and Dejian Yang and Haowei Zhang and Junxiao Song and Peiyi Wang and Qihao Zhu and Runxin Xu and Ruoyu Zhang and Shirong Ma and Xiao Bi and Xiaokang Zhang and Xingkai Yu and Yu Wu and Z. F. Wu and Zhibin Gou and Zhihong Shao and Zhuoshu Li and Ziyi Gao and Aixin Liu and Bing Xue and Bingxuan Wang and Bochao Wu and Bei Feng and Chengda Lu and Chenggang Zhao and Chengqi Deng and Chenyu Zhang and Chong Ruan and Damai Dai and Deli Chen and Dongjie Ji and Erhang Li and Fangyun Lin and Fucong Dai and Fuli Luo and Guangbo Hao and Guanting Chen and Guowei Li and H. Zhang and Han Bao and Hanwei Xu and Haocheng Wang and Honghui Ding and Huajian Xin and Huazuo Gao and Hui Qu and Hui Li and Jianzhong Guo and Jiashi Li and Jiawei Wang and Jingchang Chen and Jingyang Yuan and Junjie Qiu and Junlong Li and J. L. Cai and Jiaqi Ni and Jian Liang and Jin Chen and Kai Dong and Kai Hu and Kaige Gao and Kang Guan and Kexin Huang and Kuai Yu and Lean Wang and Lecong Zhang and Liang Zhao and Litong Wang and Liyue Zhang and Lei Xu and Leyi Xia and Mingchuan Zhang and Minghua Zhang and Minghui Tang and Meng Li and Miaojun Wang and Mingming Li and Ning Tian and Panpan Huang and Peng Zhang and Qiancheng Wang and Qinyu Chen and Qiushi Du and Ruiqi Ge and Ruisong Zhang and Ruizhe Pan and Runji Wang and R. J. Chen and R. L. Jin and Ruyi Chen and Shanghao Lu and Shangyan Zhou and Shanhuang Chen and Shengfeng Ye and Shiyu Wang and Shuiping Yu and Shunfeng Zhou and Shuting Pan and S. S. Li and Shuang Zhou and Shaoqing Wu and Shengfeng Ye and Tao Yun and Tian Pei and Tianyu Sun and T. Wang and Wangding Zeng and Wanjia Zhao and Wen Liu and Wenfeng Liang and Wenjun Gao and Wenqin Yu and Wentao Zhang and W. L. Xiao and Wei An and Xiaodong Liu and Xiaohan Wang and Xiaokang Chen and Xiaotao Nie and Xin Cheng and Xin Liu and Xin Xie and Xingchao Liu and Xinyu Yang and Xinyuan Li and Xuecheng Su and Xuheng Lin and X. Q. Li and Xiangyue Jin and Xiaojin Shen and Xiaosha Chen and Xiaowen Sun and Xiaoxiang Wang and Xinnan Song and Xinyi Zhou and Xianzu Wang and Xinxia Shan and Y. K. Li and Y. Q. Wang and Y. X. Wei and Yang Zhang and Yanhong Xu and Yao Li and Yao Zhao and Yaofeng Sun and Yaohui Wang and Yi Yu and Yichao Zhang and Yifan Shi and Yiliang Xiong and Ying He and Yishi Piao and Yisong Wang and Yixuan Tan and Yiyang Ma and Yiyuan Liu and Yongqiang Guo and Yuan Ou and Yuduan Wang and Yue Gong and Yuheng Zou and Yujia He and Yunfan Xiong and Yuxiang Luo and Yuxiang You and Yuxuan Liu and Yuyang Zhou and Y. X. Zhu and Yanhong Xu and Yanping Huang and Yaohui Li and Yi Zheng and Yuchen Zhu and Yunxian Ma and Ying Tang and Yukun Zha and Yuting Yan and Z. Z. Ren and Zehui Ren and Zhangli Sha and Zhe Fu and Zhean Xu and Zhenda Xie and Zhengyan Zhang and Zhewen Hao and Zhicheng Ma and Zhigang Yan and Zhiyu Wu and Zihui Gu and Zijia Zhu and Zijun Liu and Zilin Li and Ziwei Xie and Ziyang Song and Zizheng Pan and Zhen Huang and Zhipeng Xu and Zhongyu Zhang and Zhen Zhang},
  year = {2025},
  eprint = {2501.12948},
  archivePrefix = {arXiv},
  doi = {10.1038/s41586-025-09422-z},
  url = {https://arxiv.org/abs/2501.12948v2}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up