Qwen2.5-Math 技术报告:通过自我改进迈向数学专家模型

Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvement

杨安 An Yang · Qwen Team, Alibaba · 2024-09-18 · arXiv:2409.12122 ↗ · 被引 1029

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

本报告介绍了一系列数学专用大语言模型:Qwen2.5-Math 和 Qwen2.5-Math-Instruct-1.5B/7B/72B。Qwen2.5 系列的核心创新在于将自我改进理念贯穿整个流程,从预训练、后训练到推理:(1)在预训练阶段,利用 Qwen2-Math-Instruct 生成大规模、高质量的数学数据。(2)在后训练阶段,我们通过对 Qwen2-Math-Instruct 进行大量采样来开发奖励模型(RM)。然后将该 RM 应用于监督微调(SFT)数据的迭代演化。有了更强的 SFT 模型,就可以迭代训练和更新 RM,进而指导下一轮 SFT 数据迭代。在最终的 SFT 模型上,我们使用最终的 RM 进行强化学习,得到 Qwen2.5-Math-Instruct。(3)此外,在推理阶段,使用 RM 指导采样,优化模型性能。Qwen2.5-Math-Instruct 支持中文和英文,并具备先进的数学推理能力,包括思维链(CoT)和工具集成推理(TIR)。我们在 10 个英文和中文数学数据集上评估了模型,包括 GSM8K、MATH、高考、AMC23 和 AIME24,涵盖了从小学水平到数学竞赛问题的各种难度。

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.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 12)

阅读逐段中英对照全文 →