arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.01504cs.CL
收藏

PersonaMath:通过角色驱动的数据增强提升数学推理能力

PersonaMath: Boosting Mathematical Reasoning via Persona-Driven Data Augmentation

Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究院);University of Chinese Academy of Sciences(中国科学院大学);Shenzhen University of Advanced Technology(深圳理工大学);South China University of Technology(华南理工大学);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Zhejiang University(浙江大学);Shenzhen MSU-BIT University(深圳北理莫斯科大学);UNSW Sydney(新南威尔士大学悉尼分校)
Jing Luo, Longze Chen, Run Luo, Liang Zhu, Chang Ao, Jiaming Li, Yukun Chen, Xin Cheng, Wen Yang, Jiayuan Su, Ahmadreza Argha, Hamid Alinejad-Rokny, Chengming L… 展开作者

Jing Luo, Longze Chen, Run Luo, Liang Zhu, Chang Ao, Jiaming Li, Yukun Chen, Xin Cheng, Wen Yang, Jiayuan Su, Ahmadreza Argha, Hamid Alinejad-Rokny, Chengming Li, Shiwen Ni, Min Yang

AI总结:

针对开源大模型数学推理能力弱的问题,提出角色驱动的两阶段数据增强方法,构建小而精的PersonaMathQA数据集,训练的PersonaMath-7B模型在MATH和GSM8K上达到SOTA性能并开源相关资源。

摘要:

尽管闭源大语言模型(LLM)展现出了强大的数学解题能力,但开源模型在这类任务上仍面临挑战。为缩小这一差距,我们提出了一种数据增强方法,并推出了衍生自MATH和GSM8K的数据集PersonaMathQA,我们在该数据集上训练了PersonaMath模型。我们的方法包含两个阶段:第一阶段聚焦于从角色多样化中学习,第二阶段强调从反思中学习。在第一阶段,我们使用闭源LLM重新生成详细的思维链(CoT)解答作为指令,并引入了角色驱动的数据增强技术。该技术创新性地按职业对角色进行分类,显著提升了数据集的多样性和质量。在第二阶段,我们引入反思机制以充分利用更具挑战性和价值的问题。我们在MATH和GSM8K上对PersonaMath模型进行了评估,结果显示PersonaMath-7B模型(基于Qwen2.5-7B)在MATH上的准确率达到61.2%,在GSM8K上达到87.8%,超越了所有基线方法,实现了当前最优性能。值得注意的是,我们的数据集仅包含128.9K个数据点——仅为MetaMathQA的32.6%、MathInstruct的49.5%——但我们的模型性能优于这些基线,证明了我们的数据集具备高质量和多样性,能够实现更高效的模型训练。我们开源了PersonaMathQA数据集、PersonaMath模型以及我们的代码,供公众使用。

英文摘要:

While closed-source Large Language Models (LLMs) demonstrate strong mathematical problem-solving abilities, open-source models still face challenges with such tasks. To bridge this gap, we propose a data augmentation approach and introduce PersonaMathQA, a dataset derived from MATH and GSM8K, on which we train the PersonaMath models. Our approach consists of two stages: the first stage focuses on learning from Persona Diversification, and the second stage emphasizes learning from Reflection. In the first stage, we regenerate detailed chain-of-thought (CoT) solutions as instructions using a closed-source LLM and introduce a persona-driven data augmentation technique. This technique innovatively classifies personas based on occupations, significantly enhancing the dataset's diversity and quality. In the second stage, we incorporate reflection to fully leverage more challenging and valuable questions. Evaluation of our PersonaMath models on MATH and GSM8K reveals that the PersonaMath-7B model (based on Qwen2.5-7B) achieves an accuracy of 61.2% on MATH and 87.8% on GSM8K, surpassing all baseline methods and achieving state-of-the-art performance. Notably, our dataset contains only 128.9K data points-merely 32.6% of MetaMathQA and 49.5% of MathInstruct-yet our model outperforms these baselines, demonstrating the high quality and diversity of our dataset, which enables more efficient model training. We open-source the PersonaMathQA dataset, PersonaMath models, and our code for public usage.

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

↑