Abstract
Mathematical reasoning remains a significant challenge for Large Language Models (LLMs). This paper investigates the efficacy of different data types and training methodologies, demonstrating that Continued Pre-Training (CPT) on problem-solving data is superior to general mathematical corpora. We introduce "tutorship amplification," a novel data synthesis method that significantly boosts reasoning capabilities. Our findings indicate that CPT is more efficient than Supervised Fine-Tuning (SFT) for developing core reasoning tasks. These strategies culminate in MathGPT-8B, a model that achieves state-of-the-art performance relative to its parameter count.
Introduction
While LLMs have excelled in diverse domains, mathematical reasoning persists as a "boss level" challenge. The conventional approach involves Continued Pre-Training (CPT) on vast mathematical texts followed by Supervised Fine-Tuning (SFT) on specific Q&A pairs. However, researchers have observed diminishing returns from massive CPT datasets compared to smaller SFT sets. This study investigates whether the type of data used in CPT and the traditional reliance on SFT for reasoning are optimal.
Methodology
The researchers conducted controlled experiments using Llama2 and Llama3 to address three primary research questions:
- Data Type: Comparing general mathematical corpora (textbooks, web pages) against problem-solving data (questions with step-by-step reasoning).
- Data Synthesis: Evaluating four methods for generating synthetic training data: Response Diversification, Query Expansion, Retrospective Enhancement, and Tutorship Amplification.
- Training Stage: Directly comparing the efficiency of CPT versus SFT using identical problem-solving datasets.
Data Synthesis and Tutorship Amplification
Among the tested synthesis methods, "Tutorship Amplification" emerged as the most effective. In this approach, a "strong" teacher model identifies errors in a "weak" student model's reasoning and provides corrections, simulating a tutoring session. This process helps the model develop a self-correction framework.
Key Insights and Analysis
Problem-Solving vs. General Knowledge
A critical finding is that for mathematics, the process of reasoning is more vital than static knowledge. CPT using problem-solving data significantly outperformed CPT using general mathematical text, even with identical token counts. Furthermore, training on more complex problems (8+ reasoning steps) yielded higher performance gains than simpler problems.
The SFT "Instruction Trap"
The study reveals that while SFT is excellent for teaching models to format answers and follow instructions, it is less efficient than CPT for building deep reasoning capabilities. The learning capacity of SFT for multi-step problems is notably weaker than that of CPT.
Results: MathGPT-8B
The application of these insights led to the development of MathGPT-8B (based on Llama3-8B). Despite its 8B parameter size, the model achieved:
- Superiority over specialized 7B models: Outperforming DeepSeekMath-Base-7B and Qwen2-Math-7B across standard benchmarks.
- Competitiveness with large-scale models: Achieving performance comparable to Qwen2-Math-72B on several benchmarks, despite using only 1/10th of the training tokens (140B vs 1T).
- Significant Efficiency Gains: An average score of 70.62% across benchmarks, a substantial increase from the base Llama3-8B's 32.91%.
Conclusion
This research underscores the importance of problem-solving data and efficient training stages in developing mathematical LLMs. While "Tutorship Amplification" and CPT-focused training provide a strong foundation, future work will explore more sophisticated synthesis methods and the integration of reinforcement learning (e.g., RLHF or DPO) to further refine reasoning and alignment.
Reference: Chen, Z., et al. (2025). Advancing Mathematical Reasoning in Language Models: The Impact of Problem-Solving Data, Data Synthesis Methods, and Training Stages. ICLR 2025.
Summary updated