mlsanityData to 14 Oct 2026

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

arXiv 2405.07551 ↗First posted 13 May 2024cs.CL cs.AIcited by 22

On the map: LLM reasoning → Mathematical reasoning

also in 1 more
Abstract (arXiv)

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 (i.e., 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.

Key facts. Cited by 22 papers in the map (data through 14 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 31 of its 45 references that are in the map. First posted on arXiv 13 May 2024.

Builds on

31 of 45 references.

Closest ancestors · 7

Same direction, newest first

  1. 2024Common 7B Language Models Already Possess Strong Math Capabilities7 Mar
  2. 2023MuggleMath: Assessing the Impact of Query and Response Augmentation on Math Reasoning9 Oct
  3. 2023MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical Reasoning5 Oct
  4. 2023ToRA: A Tool-Integrated Reasoning Agent for Mathematical Problem Solving29 Sep
  5. 2023WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instruct18 Aug
  6. 2023Forward-Backward Reasoning in Large Language Models for Mathematical Verification15 Aug
  7. 2023Scaling Relationship on Learning Mathematical Reasoning with Large Language Models3 Aug

Other references · 24

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  5. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  6. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  7. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  8. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  9. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  10. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  11. 2023PaLM 2 Technical Reportcited by 1,162
  12. 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,125
12 more
  1. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
  2. 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 739
  3. 2023MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Modelscited by 735
  4. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
  5. 2022Large Language Models Can Self-Improvecited by 664
  6. 2022PAL: Program-aided Language Modelscited by 652
  7. 2023MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuningcited by 487
  8. 2022Large Language Models Are Reasoning Teacherscited by 329
  9. 2022Teaching Small Language Models to Reasoncited by 284
  10. 2023Specializing Smaller Language Models towards Multi-Step Reasoningcited by 251
  11. 2022Explanations from Large Language Models Make Small Reasoners Bettercited by 124
  12. 2023Chain-of-Thought Hub: A Continuous Effort to Measure Large Language Models' Reasoning Performancecited by 102

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 4; 2025: 15; 2026: 3.

22 papers.

Sort:

By area:

  1. 2025A Survey of Context Engineering for Large Language Modelscited by 126
  2. 2025A Survey of Frontiers in LLM Reasoning: Inference Scaling, Learning to Reason, and Agentic Systemscited by 111
  3. 2025Towards System 2 Reasoning in LLMs: Learning How to Think With Meta Chain-of-Thoughtcited by 109
  4. 2024Formal Mathematical Reasoning: A New Frontier in AIcited by 81
  5. 2025Long-Short Chain-of-Thought Mixture Supervised Fine-Tuning Eliciting Efficient Reasoning in Large Language Modelscited by 39
  6. 2024ErrorRadar: Benchmarking Complex Mathematical Reasoning of Multimodal Large Language Models Via Error Detectioncited by 37
  7. 2024Unleashing LLM Reasoning Capability via Scalable Question Synthesis from Scratchcited by 24
  8. 2025Drag-and-Drop LLMs: Zero-Shot Prompt-to-Weightscited by 20
  9. 2025Reasoning Beyond Limits: Advances and Open Problems for LLMscited by 16
  10. 2025Advancing Mathematical Reasoning in Language Models: The Impact of Problem-Solving Data, Data Synthesis Methods, and Training Stagescited by 13
  11. 2025A Survey on Mathematical Reasoning and Optimization with Large Language Modelscited by 12
  12. 2024ControlMath: Controllable Data Generation Promotes Math Generalist Modelscited by 9
10 more
  1. 2025Teaching LLMs According to Their Aptitude: Adaptive Reasoning for Mathematical Problem Solvingcited by 4
  2. 2025"To Survive, I Must Defect": Jailbreaking LLMs via the Game-Theory Scenarioscited by 3
  3. 2025Can Large Models Teach Student Models to Solve Mathematical Problems Like Human Beings? A Reasoning Distillation Method via Multi-LoRA Interactioncited by 2
  4. 2025Can Large Reasoning Models Improve Accuracy on Mathematical Tasks Using Flawed Thinking?cited by 2
  5. 2025Small Models, Smarter Learning: The Power of Joint Task Trainingcited by 1
  6. 2025Distilling Tool Knowledge into Language Models via Back-Translated Tracescited by 1
  7. 2026Think-Augmented Function Calling: Improving LLM Parameter Accuracy Through Embedded Reasoningcited by 1
  8. 2025Reasoning About Reasoning: Towards Informed and Reflective Use of LLM Reasoning in HCIcited by 0
  9. 2026Learning to Solve Complex Problems via Dataset Decompositioncited by 0
  10. 2026When Tokenization is Secretly Output Supervisioncited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024MARIO: MAth Reasoning with code Interpreter Output -- A Reproducible Pipeline
  2. 2025A Toolbox, Not a Hammer -- Multi-TAG: Scaling Math Reasoning with Multi-Tool Aggregation
  3. 2024MATHSENSEI: A Tool-Augmented Large Language Model for Mathematical Reasoning
  4. 2024MindStar: Enhancing Math Reasoning in Pre-trained LLMs at Inference Time
  5. 2024SIaM: Self-Improving Code-Assisted Mathematical Reasoning of Large Language Models
  6. 2024DotaMath: Decomposition of Thought with Code Assistance and Self-correction for Mathematical Reasoning
  7. 2025MegaMath: Pushing the Limits of Open Math Corpora
  8. 2025Do LLMs Overthink Basic Math Reasoning? Benchmarking the Accuracy-Efficiency Tradeoff in Language Models