DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models
Authors:
- Zhihong ShaoZSZhihong Shao
- Peiyi WangPWPeiyi Wang
- Y. K. LiYLY. K. Li
- Daya GuoDGDaya Guo
Preprint
Abstract
Mathematical reasoning poses a significant challenge for language models due to its complex and structured nature. In this paper, we introduce DeepSeekMath 7B, which continues pre-training DeepSeek-Coder-Base-v1.5 7B with 120B math-related tokens sourced from Common Crawl, together with natural language and code data. DeepSeekMath 7B has achieved an impressive score of 51.7% on the competition-level MATH benchmark without relying on external toolkits and voting techniques, approaching the performance level of Gemini-Ultra and GPT-4. Self-consistency over 64 samples from DeepSeekMath 7B achieves 60.9% on MATH. The mathematical reasoning capability of DeepSeekMath is attributed to two key factors: First, we harness the significant potential of publicly available web data through a meticulously engineered data selection pipeline. Second, we introduce Group Relative Policy Optimization (GRPO), a variant of Proximal Policy Optimization (PPO), that enhances mathematical reasoning abilities while concurrently optimizing the memory usage of PPO.Keywords
All Related Versions
This publication has 9 references indexed in Scilit:
- Preference Ranking Optimization for Human AlignmentProceedings of the AAAI Conference on Artificial Intelligence, 2024
- Solving olympiad geometry without human demonstrationsNature, 2024
- Math-Shepherd: Verify and Reinforce LLMs Step-by-step without Human Annotations2024
- Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decoding2024
- AGIEval: A Human-Centric Benchmark for Evaluating Foundation Models2024
- Speculative Decoding: Exploiting Speculative Execution for Accelerating Seq2seq Generation2023
- Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Them2023
- LILA: A Unified Benchmark for Mathematical Reasoning2022
- The Isabelle Framework2008