MathFusion: Enhancing Mathematic Problem-solving of LLM through Instruction Fusion
该论文提出了一种名为MathFusion的数学问题融合框架,通过跨问题指令合成来增强大型语言模型(LLM)的数学推理能力。
更新于 2025-03-21。作者:Qizhi Pei、Lijun Wu、Zhuoshi Pan、Yu Li、Honglin Lin、Chenlin Ming、Xin Gao、Conghui He、Rui Yan。
中文摘要
大型语言模型(LLMs)在数学推理方面取得了令人瞩目的进展。尽管数据增强有望提高解决数学问题的能力,但当前的方法主要限于实例级别的修改——例如改写或生成句法变体——这些方法未能捕捉并利用数学知识中固有的内在关系结构。受到人类学习过程的启发,数学能力是通过系统地接触相互关联的概念而发展的,我们引入了MathFusion,这是一个新颖的框架,通过跨问题指令合成来增强数学推理。MathFusion通过以下三种融合策略实现这一目标:(1)顺序融合,通过链接相关问题来模拟解决方案之间的依赖关系;(2)并行融合,通过结合类似问题来强化概念理解;(3)条件融合,创建上下文感知的选择性问题来增强推理灵活性。通过应用这些策略,我们生成了一个新数据集MathFusionQA,随后在该数据集上微调了模型(DeepSeekMath-7B、Mistral-7B、Llama3-8B)。实验结果表明,MathFusion在数学推理方面取得了实质性的提升,同时保持了高数据效率,在多个基准测试中准确率提升了18.0点,而只需要额外的45K个合成指令,这相对于传统的单一指令方法是一个巨大的进步。我们的数据集、模型和代码在https://github.com/QizhiPei/mathfusion上公开发布。
英文摘要
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, 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.
解读
一句话总结
该论文提出了一种名为MathFusion的数学问题融合框架,通过跨问题指令合成来增强大型语言模型(LLM)的数学推理能力。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:现有数学问题解决方法主要集中于实例级修改,如重述或生成句法变体,这些方法未能捕捉和利用数学知识中固有的内在关系结构。
- 现有方案不足:实例级修改方法未能有效捕捉和利用数学知识中的内在关系结构。
- 研究目标:通过数学问题融合,增强LLM的数学推理能力。
问题2:论文的核心创新点是什么?
- 技术创新:提出了一种名为MathFusion的数学问题融合框架,包括顺序融合、并行融合和条件融合三种策略。
- 方法改进:通过融合相关数学问题,MathFusion能够更有效地捕捉数学知识中的内在关系结构。
- 优势:MathFusion在数学推理准确率上比传统单指令方法提高了18.0点,同时保持了高数据效率。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在多个基准测试中,使用MathFusion对LLM进行微调。
- 性能提升:MathFusion在多个基准测试中实现了显著的性能提升,平均准确率提高了18.0点。
- 对比结果:MathFusion在准确率上优于基线方法,同时所需合成指令数量更少。
问题4:这个研究的实际应用价值是什么?
- 应用场景:MathFusion可以应用于教育、数学研究、自动问答系统等领域。
- 实施建议:MathFusion可以与现有数据增强技术结合使用,以进一步提高数学推理能力。
- 局限与展望:MathFusion的生成问题可能包含错误或不明确的内容,未来研究可以探索更有效的融合策略和问题生成方法。