Skip to main content
QUICK REVIEW

[论文解读] Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvement

Yang An, Beichen Zhang|arXiv (Cornell University)|Sep 18, 2024
Intelligent Tutoring Systems and Adaptive LearningComputer Science被引用 11
一句话总结

该论文推出 Qwen2.5-Math,一系列专注于数学的大语言模型,通过自我提升循环(预训练、带奖励模型的后训练和推理引导)进行训练,在英语和中文实现最先进的数学推理能力,包括思考步骤(CoT)与工具集成推理。

ABSTRACT

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.

研究动机与目标

  • 证明在预训练、后训练和推理阶段的自我提升技术可以显著提升LLM的数学推理能力。
  • 构建面向数学的基础和指令模型(Qwen2.5-Math-1.5B/7B/72B)以及一个数学专用奖励模型(RM)。
  • 展示思考步骤(CoT)和工具集成推理(TIR)的能力,以及英语/中文双语在多样数学基准上的表现。
  • 评估与开源及闭源基线的对比,在GSM8K、MATH、高考、AMC、AIME及相关数据集上确立性能提升。

提出的方法

  • 通过数据回忆、筛选、去重和合成数据生成来创建 Qwen Math 语料库 v1(约7000亿标记)。
  • 在语料库 v1 上训练 Qwen2-Math 基础模型(1.5B/7B/72B)。
  • 从抽样数据迭代训练 Qwen2-Math-RM 以引导 SFT;利用 RM 指导后续数据和强化学习(GRPO)用于最终模型。
  • 扩展到 Qwen Math 语料库 v2(>1T 标记),并从 Qwen2.5 系列底座初始化 Qwen2.5-Math 模型。
  • 在后训练阶段,生成 CoT 和 TIR 数据集;使用带拒绝采样的 SFT 进行训练,使用 GRPO 的 RL;并引入基于规则的验证器进行奖励塑形。
  • 推理阶段,应用 RM 指导的采样与基于 GRPO 的策略优化;启用 Python 解释器计算以实现 TIR。

实验结果

研究问题

  • RQ1自我提升循环(数据合成、奖励建模和强化学习)如何提升LLM的数学推理能力?
  • RQ2双语数据(英语/中文)、思考步骤和工具集成推理对数学基准的影响?
  • RQ3Qwen2.5-Math 模型在多个数据集和任务上与领先的开源和闭源数学模型相比如何?
  • RQ4不同模型尺寸(1.5B/7B/72B)在预训练、后训练和推理阶段结合 RM 与 TIR 时的效果如何?
  • RQ5在推理阶段使用 Python 工具是否能显著提升数值准确性和数学题解?

主要发现

  • Qwen2.5-Math-72B-Instruct 在开源数学模型中,在 MATH、CMATH、Gaokao Math Cloze 和 Gaokao Math QA 上达到最先进水平。
  • Qwen2.5-Math-72B-Instruct 在与 Qwen2-Math-72B-Instruct 的对比中有显著的提升(报道的平均增益),且1.5B/7B较小变体在强劲表现,尤其在 Python 解释器支持下。
  • 在 CoT 模式下,Qwen2.5-Math-1.5B-Instruct 超过了许多开源模型;7B 变体在若干指标上几乎赶上 72B instruct 模型。
  • 在 TIR 模式下,72B 模型在 MATH 上接近 90,1.5B 模型约达 80,显示跨尺寸对工具型推理的强烈需求。
  • Qwen2.5-Math 模型在各基准上的中文解题能力显著提升。
  • 端到端的自我提升流程(预训练数据合成、由 RM 驱动的后训练、以及 RM 指导的推理)相对于前代带来实实在在的性能提升。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。