arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.12855cs.CLcs.AIcs.LG
收藏

整合算术学习提升小型模型的数学推理能力

Integrating Arithmetic Learning Improves Mathematical Reasoning in Smaller Models

Electrical and Computer Engineering University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校电子与计算机工程系)

Neeraj Gangwar, Suma P Bhat, Nickvash Kani

AI总结:

本文通过整合合成算术数据集提升小型模型的数学推理能力,采用中间微调和指令微调混合两种方法,实验表明能有效增强模型的算术能力与推理性能。

摘要:

尽管预训练在高质量数据上的大型模型在数学推理(例如GSM8k、MultiArith)上表现出色,但将小型模型专门化到这些任务仍具有挑战性。常见的解决方法包括从大型教师模型中进行知识蒸馏和数据增强(例如重新表述问题和生成合成解决方案)。尽管有这些努力,小型模型在算术计算上仍存在困难,导致数学推理出错。在本文中,我们利用程序生成的合成算术数据集来增强小型模型的推理能力。我们研究了两种关键方法来整合此数据集:(1)中间微调,即在训练推理数据集之前,模型在算术数据集上进行微调;(2)将算术数据集整合到指令微调混合中,使模型能够同时学习算术技能和通用的指令遵循能力。我们在多个推理基准上的实验表明,无论通过针对性微调还是在指令微调混合中整合算术数据集,都能提升模型的算术能力,从而提高其数学推理性能。

英文摘要:

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.

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

↑