arXiv:2503.16212cs.CLcs.AI2025-03ACL被引 38

通过融合多题解法提升大模型数学推理能力

MathFusion: Enhancing Mathematical Problem-solving of LLM through Instruction Fusion

  • 将相关题目串联、并联、条件化生成新指令,挖掘数学知识内在关联
  • 在多个基准上提升18.0分准确率,仅需45K条合成指令即达效果
  • 适合研究数学推理增强或数据高效训练的开发者使用

大型语言模型在数学推理方面已取得显著进展。尽管数据增强有助于提升数学求解能力,但现有方法主要局限于实例级修改——如改写或生成语法变化——无法捕捉和利用数学知识中固有的关系结构。受人类学习过程启发,数学能力通过系统接触相互关联的概念逐步建立,我们提出MathFusion框架,通过跨问题指令合成增强数学推理。该框架采用三种融合策略:(1) 顺序融合,将相关问题串联以建模解法依赖;(2) 并行融合,合并相似问题以强化概念理解;(3) 条件融合,生成上下文感知的选择性问题以提升推理灵活性。基于此策略,我们构建了新数据集MathFusionQA,并在DeepSeekMath-7B、Mistral-7B、Llama3-8B上进行微调。实验表明,MathFusion在多个基准上实现显著性能提升,准确率平均提高18.0分,且仅需45K条额外合成指令,远优于传统单指令方法。相关数据集、模型与代码已公开于https://github.com/QizhiPei/mathfusion。

原文摘要 · Abstract (English)

Large Language Models (LLMs) have shown impressive progress in mathematical reasoning. While data augmentation is promising to enhance mathematical problem-solving ability, current approaches are predominantly limited to instance-level modifications-such as rephrasing or generating syntactic variations-which fail to capture and leverage the intrinsic relational structures inherent in mathematical knowledge. Inspired by human learning processes, where mathematical proficiency develops through systematic exposure to interconnected concepts, we introduce MathFusion, a novel framework that enhances mathematical reasoning through cross-problem instruction synthesis. MathFusion implements this through three fusion strategies: (1) sequential fusion, which chains related problems to model solution dependencies; (2) parallel fusion, which combines analogous problems to reinforce conceptual understanding; and (3) conditional fusion, which creates context-aware selective problems to enhance reasoning flexibility. By applying these strategies, we generate a new dataset, \textbf{MathFusionQA}, followed by fine-tuning models (DeepSeekMath-7B, Mistral-7B, Llama3-8B) on it. Experimental results demonstrate that MathFusion achieves substantial improvements in mathematical reasoning while maintaining high data efficiency, boosting performance by 18.0 points in accuracy across diverse benchmarks while requiring only 45K additional synthetic instructions, representing a substantial improvement over traditional single-instruction approaches. Our datasets, models, and code are publicly available at https://github.com/QizhiPei/mathfusion.

数学推理指令融合数据增强大模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。