[Paper Review] Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvement
The paper introduces Qwen2.5-Math, a series of math-specialized LLMs trained with self-improvement loops (pre-training, post-training with reward models, and inference guidance) to achieve state-of-the-art math reasoning in English and Chinese, including CoT and Tool-Integrated Reasoning.
In this report, we present a series of math-specific large language models: Qwen2.5-Math and Qwen2.5-Math-Instruct-1.5B/7B/72B. The core innovation of the Qwen2.5 series lies in integrating the philosophy of self-improvement throughout the entire pipeline, from pre-training and post-training to inference: (1) During the pre-training phase, Qwen2-Math-Instruct is utilized to generate large-scale, high-quality mathematical data. (2) In the post-training phase, we develop a reward model (RM) by conducting massive sampling from Qwen2-Math-Instruct. This RM is then applied to the iterative evolution of data in supervised fine-tuning (SFT). With a stronger SFT model, it's possible to iteratively train and update the RM, which in turn guides the next round of SFT data iteration. On the final SFT model, we employ the ultimate RM for reinforcement learning, resulting in the Qwen2.5-Math-Instruct. (3) Furthermore, during the inference stage, the RM is used to guide sampling, optimizing the model's performance. Qwen2.5-Math-Instruct supports both Chinese and English, and possess advanced mathematical reasoning capabilities, including Chain-of-Thought (CoT) and Tool-Integrated Reasoning (TIR). We evaluate our models on 10 mathematics datasets in both English and Chinese, such as GSM8K, MATH, GaoKao, AMC23, and AIME24, covering a range of difficulties from grade school level to math competition problems.
Motivation & Objective
- Demonstrate that self-improvement techniques across pre-training, post-training, and inference can significantly boost mathematical reasoning in LLMs.
- Build math-specialized base and instruct models (Qwen2.5-Math-1.5B/7B/72B) and a math-specific rewards model (RM).
- Showcase CoT and Tool-Integrated Reasoning (TIR) capabilities and bilingual (English/Chinese) performance on diverse math benchmarks.
- Evaluate against open-source and closed-source baselines to establish performance gains on GSM8K, MATH, GaoKao, AMC, AIME, and related datasets.
Proposed method
- Create Qwen Math Corpus v1 (~700B tokens) via data recall, filtering, deduplication, and synthetic data generation.
- Train Qwen2-Math base models on Corpus v1 (1.5B/7B/72B).
- Iteratively train Qwen2-Math-RM from sampled data to guide SFT; use RM to steer further data and RL (GRPO) for final models.
- Expand to Qwen Math Corpus v2 (>1T tokens) and initialize Qwen2.5-Math models from Qwen2.5 series bases.
- In post-training, generate CoT and TIR datasets; train using SFT with rejection sampling and RL with GRPO; incorporate a rule-based verifier for reward shaping.
- During inference, apply RM-guided sampling and GRPO-based policy optimization; enable Python Interpreter-based computation for TIR.
Experimental results
Research questions
- RQ1How can self-improvement loops (data synthesis, reward modeling, and reinforcement learning) improve mathematical reasoning in LLMs?
- RQ2What is the impact of bilingual data (English/Chinese), CoT, and Tool-Integrated Reasoning on math benchmarks?
- RQ3How do Qwen2.5-Math models compare with leading open-source and closed-source math models across multiple datasets and tasks?
- RQ4What is the effect of different model sizes (1.5B/7B/72B) when enhanced with RM and TIR during pre-training, post-training, and inference?
- RQ5Can Python-based tool use during reasoning significantly boost numerical accuracy and problem-solving on math tasks?
Key findings
- Qwen2.5-Math-72B-Instruct achieves state-of-the-art on MATH, CMATH, Gaokao Math Cloze, and Gaokao Math QA among open-source math models.
- Qwen2.5-Math-72B-Instruct outperforms Qwen2-Math-72B-Instruct by a meaningful margin (avg gains reported), and smaller 1.5B/7B variants show strong performance, especially with Python Interpreter support.
- In CoT mode, Qwen2.5-Math-1.5B-Instruct surpasses many open-source models; the 7B variant nearly matches the 72B instruct model in several metrics.
- In TIR mode, the 72B model nears 90 on MATH and the 1.5B model reaches around 80, demonstrating strong demand for tool-based reasoning across sizes.
- Qwen2.5-Math models exhibit notably improved Chinese math problem-solving capabilities across benchmarks.
- The end-to-end self-improvement pipeline (pre-training data synthesis, RM-driven post-training, and RM-guided inference) yields tangible performance gains over predecessors.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.