用程序生成的算术数据提升小模型的数学推理能力
Integrating Arithmetic Learning Improves Mathematical Reasoning in Smaller Models
- 用程序生成算术数据,训练小模型掌握基础计算
- 在GSM8k等基准上,小模型数学推理准确率显著提升
- 适合资源有限但需数学推理能力的场景
虽然在高质量数据上预训练的大模型在数学推理任务(如GSM8k、MultiArith)上表现优异,但将小模型专门化于此类任务仍具挑战性。现有方法包括从大模型中进行知识蒸馏和数据增强(如重述问题、生成合成解法),但小模型仍常因算术计算错误而失准。本文利用程序生成的合成算术数据,提升小模型的推理能力。研究了两种集成方式:(1) 先在算术数据上微调,再在推理数据上训练;(2) 将算术数据融入指令微调混合数据集,使模型同时学习算术与指令遵循能力。在多个推理基准上的实验表明,无论采用哪种方式,引入算术数据均能有效提升模型算术能力,从而改善数学推理性能。
原文摘要 · Abstract (English)
While large models pre-trained on high-quality data exhibit excellent performance on mathematical reasoning (e.g., GSM8k, MultiArith), it remains challenging to specialize smaller models for these tasks. Common approaches to address this challenge include knowledge distillation from large teacher models and data augmentation (e.g., rephrasing questions and generating synthetic solutions). Despite these efforts, smaller models struggle with arithmetic computations, leading to errors in mathematical reasoning. In this work, we leverage a synthetic arithmetic dataset generated programmatically to enhance the reasoning capabilities of smaller models. We investigate two key approaches to incorporate this dataset: (1) intermediate fine-tuning, in which a model is fine-tuned on the arithmetic dataset before training it on a reasoning dataset, and (2) integrating the arithmetic dataset into an instruction-tuning mixture, allowing the model to learn arithmetic skills alongside general instruction-following abilities. Our experiments on multiple reasoning benchmarks demonstrate that incorporating an arithmetic dataset, whether through targeted fine-tuning or within an instruction-tuning mixture, enhances models' arithmetic capabilities, thereby improving their mathematical reasoning performance.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。