Lune

EMNLP2024顶会

MuMath-Code: Combining Tool-Use Large Language Models with Multi-perspective Data Augmentation for Mathematical Reasoning

Shuo Yin, Weihao You, Zhilong Ji, Guoqiang Zhong, Jinfeng Bai

摘要

The tool-use Large Language Models (LLMs) that integrate with external Python interpreters have significantly enhanced mathematical reasoning capabilities for open-source LLMs, while tool-free methods chose another track: augmenting math reasoning data. However, a great method to integrate the above two research paths and combine their advantages remains to be explored. In this work, we firstly include new math questions via multi-perspective data augmenting methods and then synthesize code-nested solutions to them. The open LLMs (e.g., Llama-2) are finetuned on the augmented dataset to get the resulting models, MuMath-Code (µ-Math-Code). During the inference phase, our MuMath-Code generates code and interacts with the external python interpreter to get the execution results. Therefore, MuMath-Code leverages the advantages of both the external tool and data augmentation. To fully leverage the advantages of our augmented data, we propose a two-stage training strategy: In Stage-1, we finetune Llama-2 on pure CoT data to get an intermediate model, which then is trained on the code-nested data in Stage-2 to get the resulting MuMath-Code. Our MuMath-Code-7B achieves 83.8% on GSM8K and 52.4% on MATH, while MuMath-Code-70B model achieves new state-of-the-art performance among open methods-achieving 90.7% on GSM8K and 55.1% on MATH. Extensive experiments validate the combination of tool use and data augmentation, as well as our two-stage training strategy. We release the proposed dataset along with the associated code for public use: https://github.com/ youweihao-tal/MuMath-Code .

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • The Flan Collection: Designing Data and Methods for Effective Instruction Tuning 引用了 Solving Quantitative Reasoning Problems with Language Models
  • The Flan Collection: Designing Data and Methods for Effective Instruction Tuning 引用了 Language Models are Few-Shot Learners
  • SBSC: Step-by-Step Coding for Improving Mathematical Olympiad Performance 引用了 Solving Quantitative Reasoning Problems with Language Models
  • SBSC: Step-by-Step Coding for Improving Mathematical Olympiad Performance 引用了 Language Models are Few-Shot Learners
  • SBSC: Step-by-Step Coding for Improving Mathematical Olympiad Performance 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Teaching Large Language Models to Self-Debug 引用了 Language Models are Few-Shot Learners
  • Teaching Large Language Models to Self-Debug 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • ControlMath: Controllable Data Generation Promotes Math Generalist Models 引用了 The Flan Collection: Designing Data and Methods for Effective Instruction Tuning
  • ControlMath: Controllable Data Generation Promotes Math Generalist Models 引用了 Teaching Large Language Models to Self-Debug
  • ControlMath: Controllable Data Generation Promotes Math Generalist Models 引用了 Language Models are Few-Shot Learners
  • Solving Quantitative Reasoning Problems with Language Models 引用了 Language Models are Few-Shot Learners
  • Solving Quantitative Reasoning Problems with Language Models 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Drag-and-Drop LLMs: Zero-Shot Prompt-to-Weights 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper7

  1. Drag-and-Drop LLMs: Zero-Shot Prompt-to-WeightsZhiyuan Liang, Dongwen Tang, Yuhao Zhou, Xuanlei Zhao 等NeurIPS 2025 · 22 次引用
  2. Unknown Claims: Generation of Fact-Checking Training Examples from Unstructured and Structured DataJean-Flavien Bussotti, Luca Ragazzi, Giacomo Frisoni, Gianluca Moro 等EMNLP 2024 · 3 次引用
  3. Learning to Solve Complex Problems via Dataset DecompositionWanru Zhao, Lucas Page-Caccia, Zhengyan Shi, Minseon Kim 等NeurIPS 2025 · 3 次引用
  4. ControlMath: Controllable Data Generation Promotes Math Generalist ModelsNuo Chen, Ning Wu, Jianhui Chang, Linjun Shou 等EMNLP 2024 · 2 次引用
  5. SBSC: Step-by-Step Coding for Improving Mathematical Olympiad PerformanceKunal Singh, Ankan Biswas, Sayandeep Bhowmick, Pradeep Moturi 等ICLR 2025

它引用的 Paper15

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma 等NeurIPS 2022 · 22,562 次引用
  3. Solving Quantitative Reasoning Problems with Language ModelsAitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer 等NeurIPS 2022 · 2,039 次引用
  4. Teaching Large Language Models to Self-DebugXinyun Chen, Maxwell Lin, Nathanael Schärli, Denny ZhouICLR 2024 · 1,085 次引用
  5. The Flan Collection: Designing Data and Methods for Effective Instruction TuningShayne Longpre, Le Hou, Tu Vu, Albert Webson 等ICML 2023 · 908 次引用

相关 Paper

  1. MetaMath: Bootstrap Your Own Mathematical Questions for Large Language ModelsLonghui Yu, Weisen Jiang, Han Shi, Jincheng Yu 等ICLR 2024 · 637 次引用
  2. MuggleMath: Assessing the Impact of Query and Response Augmentation on Math ReasoningChengpeng Li, Zheng Yuan, Hongyi Yuan, Guanting Dong 等ACL 2024 · 4 次引用
  3. OpenMathInstruct-2: Accelerating AI for Math with Massive Open-Source Instruction DataShubham Toshniwal, Wei Du, Ivan Moshkov, Branislav Kisacanin 等ICLR 2025
  4. MARIO: MAth Reasoning with code Interpreter Output - A Reproducible PipelineMinpeng Liao, Chengxi Li, Wei Luo, Jing Wu 等ACL Findings 2024 · 2 次引用
  5. MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical ReasoningKe Wang, Houxing Ren, Aojun Zhou, Zimu Lu 等ICLR 2024 · 188 次引用
黄昏的海面,两侧是细线勾勒的悬崖