DeepSeekMath: Pushing the Limits of Mathematical Reasoning
The research team behind DeepSeek has released DeepSeekMath, a new model designed to advance the capabilities of artificial intelligence in mathematical reasoning. Initialized with the DeepSeek-Coder-v1.5 7B model, DeepSeekMath underwent extensive pre-training on 500 billion tokens, including math-related content sourced from Common Crawl, as well as natural language and code data. The result is a 7B parameter model that achieves a 51.7% score on the competition-level MATH benchmark, a performance level that approaches that of much larger models like Gemini-Ultra and GPT-4.
DeepSeekMath demonstrates superior reasoning capabilities by generating self-contained solutions without relying on external toolkits. Furthermore, it exhibits strong tool-use abilities, allowing it to solve and prove complex mathematical problems by writing and executing code. The researchers have released three versions of the model: Base, Instruct, and RL (Reinforcement Learning). The RL model, trained using a novel Group Relative Policy Optimization (GRPO) algorithm, has achieved nearly 60% accuracy on the MATH benchmark when utilizing tools, surpassing existing open-source counterparts.
The development process involved a rigorous data collection strategy. The team utilized a seed corpus of high-quality mathematical web texts to train a FastText model, which was then used to retrieve and filter 35.5 million mathematical web pages from the Common Crawl database. This iterative process ensured the model was trained on high-quality, relevant data. The team has made the checkpoints for the Base, Instruct, and RL models publicly available on HuggingFace for both academic and commercial research, subject to the terms outlined in their license.