arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.14002cs.CLcs.AI
收藏

提升语言模型的数学推理能力:解题数据、数据合成方法与训练阶段的影响

Advancing Mathematical Reasoning in Language Models: The Impact of Problem-Solving Data, Data Synthesis Methods, and Training Stages

Jinan University(暨南大学);TAL Education Group(好未来教育集团);ShanghaiTech University(上海科技大学);Guangdong Institute of Smart Education(广东省智慧教育研究院)

Zui Chen, Tianqiao Liu, Mi Tian, Qing Tong, Weiqi Luo, Zitao Liu

AI总结:

该研究针对大语言模型持续预训练数学推理提升弱于监督微调的问题,探究解题数据、合成方法及训练阶段的影响,发现解题数据更有效、辅导扩增合成法最优,最终开发出MathGPT-8B数学基础模型。

摘要:

数学推理仍是大语言模型(LLM)面临的一大挑战,这推动了LLEMMA、DeepSeekMath、Qwen2-Math等数学专用LLM的发展。这类模型通常遵循两阶段训练范式:利用数学相关语料进行预训练,再基于问题数据集开展后训练以进行监督微调(SFT)。尽管已有诸多努力,与通过监督微调(SFT)获得的提升相比,持续预训练(CPT)带来的数学推理能力提升往往不够显著。本研究针对这一差异,探索预训练阶段的替代策略,重点关注解题数据相较于通用数学语料的应用价值。我们围绕三个核心研究问题展开探究:(1)在持续预训练(CPT)阶段,解题数据能否比通用数学语料更有效地增强模型的数学推理能力?(2)来自同源的合成数据效果是否相当?哪种合成方法效率最高?(3)相同的解题数据在持续预训练(CPT)和监督微调(SFT)阶段培养出的能力有何差异?造成这些差异的因素有哪些?研究结果表明,与通用数学语料相比,解题数据能显著提升模型的数学能力。我们还确定了有效的数据合成方法,证实辅导扩增合成法(tutorship amplification synthesis method)可实现最佳性能。此外,尽管监督微调(SFT)能提升指令遵循能力,但在使用相同数据的情况下,其表现不及持续预训练(CPT),部分原因在于SFT对难度更高的解题数据的学习能力较弱。这些见解为优化LLM的数学推理能力提供了宝贵指导,最终我们开发出了性能强大的数学基础模型MathGPT-8B。

英文摘要:

Mathematical reasoning remains a challenging area for large language models (LLMs), prompting the development of math-specific LLMs such as LLEMMA, DeepSeekMath, and Qwen2-Math, among others. These models typically follow a two-stage training paradigm: pre-training with math-related corpora and post-training with problem datasets for supervised fine-tuning (SFT). Despite these efforts, the improvements in mathematical reasoning achieved through continued pre-training (CPT) are often less significant compared to those obtained via SFT. This study addresses this discrepancy by exploring alternative strategies during the pre-training phase, focusing on the use of problem-solving data over general mathematical corpora. We investigate three primary research questions: (1) Can problem-solving data enhance the model's mathematical reasoning capabilities more effectively than general mathematical corpora during CPT? (2) Are synthetic data from the same source equally effective, and which synthesis methods are most efficient? (3) How do the capabilities developed from the same problem-solving data differ between the CPT and SFT stages, and what factors contribute to these differences? Our findings indicate that problem-solving data significantly enhances the model's mathematical capabilities compared to general mathematical corpora. We also identify effective data synthesis methods, demonstrating that the tutorship amplification synthesis method achieves the best performance. Furthermore, while SFT facilitates instruction-following abilities, it underperforms compared to CPT with the same data, which can be partially attributed to its poor learning capacity for more challenging problem-solving data. These insights provide valuable guidance for optimizing the mathematical reasoning capabilities of LLMs, culminating in our development of a powerful mathematical base model called MathGPT-8B.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑