DeepSeekMath and GRPO: 51.7% on MATH, and What the Figure Can Show (2402.03300)
GRPO DeepSeekMath paper reports 51.7% top-1 on MATH, up from 46.8% after RL. What the figure shows, and what it cannot separate.
The DeepSeekMath paper (arXiv 2402.03300) reports 51.7% top-1 accuracy on MATH, a competition-level math benchmark, for a 7B model that uses no external toolkits and no voting techniques, according to the arXiv paper. The authors credit two sources of gain: a data pipeline that collects 120 billion math tokens from Common Crawl, and Group Relative Policy Optimization (GRPO), a reinforcement learning method. The headline numbers do not separate the two effects. The 51.7% and 60.9% figures appear in the paper's abstract, and the training and reinforcement learning figures come from its full text (arXiv HTML v3).
What does the 51.7% figure measure?
The 51.7% is top-1 accuracy: the share of MATH problems answered correctly on the first attempt. The arXiv abstract attributes the score to "DeepSeekMath 7B," while the alphaXiv summary of the paper attributes the same 51.7% to DeepSeekMath-RL 7B. Both sources give the same number, so the naming is the only inconsistency between them.
| Model (name as written in the paper) | Protocol | MATH score | Source |
|---|---|---|---|
| DeepSeekMath-Instruct 7B | Top-1 | 46.8% | alphaXiv |
| DeepSeekMath-RL 7B | Top-1 | 51.7% | arXiv |
| DeepSeekMath 7B | Self-consistency over 64 samples | 60.9% | arXiv |
All three figures are the authors' own results, not independent replications. The 60.9% figure draws on 64 samples per problem, so it does not compare like for like with the top-1 score.
Does the data pipeline or GRPO drive the gain?
The headline numbers cannot split the 51.7% between the two. The only before-and-after pair for MATH is the reinforcement learning stage. Moving from DeepSeekMath-Instruct 7B to the RL model raised MATH from 46.8% to 51.7%, a gain of 4.9 percentage points. The arXiv full text attributes that stage's improvement to GRPO training.
The 4.9-point gain measures only the RL stage. It does not measure the corpus, which is already built into the 46.8% starting point. No GRPO-versus-PPO benchmark figure is reported in this post, so the paper's efficiency claim is not tested by a number here.
What does the data pipeline contribute?
The paper says DeepSeekMath 7B continues pre-training DeepSeek-Coder-Base-v1.5 7B on 120 billion math-related tokens from Common Crawl, alongside natural language and code data (arXiv PDF). The base model is initialized from DeepSeek-Coder-Base-v1.5 7B, according to the arXiv full text.
| Item | Stated figure | Source |
|---|---|---|
| DeepSeekMath Corpus, math tokens from Common Crawl | 120 billion | arXiv PDF |
| Base model training volume | 500 billion tokens | arXiv full text |
| Corpus size vs Minerva's math web pages | Almost 7 times (self-reported) | arXiv full text |
| Corpus size vs OpenWebMath | 9 times (self-reported) | arXiv PDF |
The 120 billion figure describes the corpus, while the 500 billion figure describes how much the base model trained on. The paper's published figures do not isolate how the corpus alone moves the MATH score. The size comparisons with Minerva and OpenWebMath are the authors' own framing, not an independent audit.
How does GRPO differ from PPO?
GRPO is a variant of Proximal Policy Optimization (PPO). The authors say it "enhances mathematical reasoning abilities while concurrently optimizing the memory usage of PPO" (arXiv PDF). The paper motivates the change by the high computational and memory costs of PPO's critic when applied to large language models.
The core change is the baseline. PPO relies on a learned value critic. GRPO drops the critic and estimates the baseline from group scores: for each prompt, it samples several completions and uses their rewards to compute advantages.
| PPO | GRPO | |
|---|---|---|
| Critic model | Separate learned model | None |
| Baseline | Critic's value estimate | Rewards of the sampled completions for the same prompt |
| Resource cost (the paper's comparison) | Higher | Significantly reduced |
Does the evidence hold up?
The evidence is clear on the number and thin on attribution. Three points matter:
- One benchmark. The headline comes from MATH. The abstract says DeepSeekMath 7B is "approaching the performance level of Gemini-Ultra and GPT-4." That is the authors' comparison, not an independent benchmark result.
- Two protocols. The 51.7% is top-1. The 60.9% uses self-consistency over 64 samples. Presenting them as one trend overstates the comparison.
- Authors' results only. Neither figure has an independent reproduction cited here.
How does this compare with later DeepSeek reasoning work?
Our DeepSeek-R1 explainer covers reinforcement learning applied to reasoning, which is the next step in the same line of work.
What should a working researcher take from this?
- Check the protocol before the score. Top-1 and 64-sample self-consistency are different measurements, and only one of them is in the headline.
- Separate the stage. A MATH gain from RL says nothing about the pre-training corpus, and a corpus effect cannot be read off the RL gain.
- Budget for group sampling. GRPO's baseline needs several completions per prompt. In our reading, the saving from dropping the critic is partly paid for in sampling.
- Treat the frontier comparison as a claim. The line about approaching Gemini-Ultra and GPT-4 is the authors' statement, not a benchmark result.
What's still unclear?
- Model naming. The abstract says DeepSeekMath 7B, while the RL results name DeepSeekMath-RL 7B. Both sources give 51.7%, but the paper's per-benchmark table is needed to confirm which model each figure describes.
- Data versus algorithm. The headline numbers do not isolate the data pipeline from the algorithm. A comparison that changes only one of them is what would attribute the final score to one cause or the other.
- Reward dependence. This is our analysis, not a measured result: because GRPO's baseline is built from the rewards themselves, the quality of the reward signal matters as much as the algorithm. The method description implies this, but the paper's figures here do not measure it.
- Weakest point. The headline rests on one benchmark, on the authors' own numbers, with no independent reproduction cited here.
Frequently asked questions
What does the 51.7% MATH score mean?
It is top-1 accuracy on MATH, a competition-level math benchmark, for DeepSeekMath 7B as the paper's abstract describes it. The paper reports it without external toolkits or voting techniques. The RL results text names the model DeepSeekMath-RL 7B and gives 46.8% for DeepSeekMath-Instruct 7B. The figure is the authors' own result, not an independent replication.
What is GRPO?
Group Relative Policy Optimization (GRPO) is a variant of Proximal Policy Optimization (PPO) introduced in the DeepSeekMath paper. It removes PPO's separate critic model. Instead, it samples several completions for each prompt and uses their rewards as the baseline for advantage computation. The authors say this enhances mathematical reasoning while reducing the memory and training resources PPO needs.
Does GRPO need a critic model?
No. According to the paper, GRPO eliminates the separate critic model that PPO uses, estimating the baseline from group scores instead. The trade-off is that each prompt needs multiple sampled completions to compute that baseline. The paper states that the method significantly reduces training resources compared with PPO, which is the authors' comparison.
How much did reinforcement learning add to the MATH score?
In the paper's figures, DeepSeekMath-Instruct 7B scored 46.8% on MATH and the RL model scored 51.7%, a gain of 4.9 percentage points. This gain measures the reinforcement learning stage only. It does not measure the 120 billion token math corpus, which is already part of the starting model.
Is the 60.9% score comparable to the 51.7% score?
No. The 51.7% figure is top-1 accuracy. The 60.9% figure is self-consistency over 64 samples per problem, a different protocol that uses more attempts. Both are the authors' results on MATH. Compare them only when the sampling protocol is the same.
What data did DeepSeekMath use?
According to the paper, DeepSeekMath 7B continues pre-training DeepSeek-Coder-Base-v1.5 7B on 120 billion math-related tokens from Common Crawl, together with natural language and code data. The authors say the corpus is almost 7 times the size of Minerva's math web pages and 9 times the size of OpenWebMath. Those comparisons are self-reported.
Sources
- DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models (arXiv:2402.03300), arXiv (2024-04-27)
- DeepSeekMath, arXiv:2402.03300v3 (HTML full text), arXiv (2024-04-27)
- DeepSeekMath (2402.03300), alphaXiv abstract page, alphaXiv (2024-04-27)
- Paper page: 2402.03300 (DeepSeekMath), Hugging Face (2024-02-05)