MathDivide: Improved mathematical reasoning by large language models
On the map: LLM reasoning → Mathematical reasoning
Abstract (arXiv)
Large language models have been proven to be capable of handling complex linguistic and cognitive tasks. Therefore their usage has been extended to tasks requiring logical reasoning ability such as Mathematics. In this paper, we propose a prompting technique called MathDivide that breaks down the mathematical problem into simpler subproblems. Each of the subproblems is formulated as an algebraic expression whose value is evaluated by the Python code generated by the LLM for the corresponding algebraic expression. The values fed to the Python code are the numerical values provided in the problem statement. The solutions for the subproblems are composed together to obtain the final answer for the problem statement. Finally, the final answer is compared to the correct answer. If the final answer matches the correct answer, it is produced as output else a refinement prompt is fed to the LLM. We experiment with this prompting technique on both closed-source LLM models and open-source LLM models using GSM8K dataset. The results obtained demonstrate that MathDivide was able to significantly outperform the leading prompting technique called Math-prompter.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 25 of its 34 references that are in the map. First posted on arXiv 12 May 2024.
Builds on
25 of 34 references.
Closest ancestors · 5
Same direction, newest first
- 2023Novice Learner and Expert Tutor: Evaluating Math Reasoning Abilities of Large Language Models with Misconceptions3 Oct
- 2023LPML: LLM-Prompting Markup Language for Mathematical Reasoning21 Sep
- 2023Scaling Relationship on Learning Mathematical Reasoning with Large Language Models3 Aug
- 2023MathPrompter: Mathematical Reasoning using Large Language Models4 Mar
- 2022Solving Quantitative Reasoning Problems with Language Models29 Jun
Other references · 20
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2023PaLM 2 Technical Reportcited by 1,154
8 more
- 2023The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Onlycited by 755
- 2023Logic-LM: Empowering Large Language Models with Symbolic Solvers for Faithful Logical Reasoningcited by 379
- 2016Solving General Arithmetic Word Problemscited by 353
- 2022Distilling Reasoning Capabilities into Smaller Language Modelscited by 155
- 2023PREFER: Prompt Ensemble Learning via Feedback-Reflect-Refinecited by 28
- 2021Pretrained Language Models are Symbolic Mathematics Solvers too!cited by 17
- 2023Improving Large Language Models in Event Relation Logical Predictioncited by 17
- 2024Supervisory Prompt Trainingcited by 1
Built on by
Citing papers per year: 2025: 3.
3 papers.
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Modelscited by 381
- 2025A Technical Survey of Reinforcement Learning Techniques for Large Language Modelscited by 19
- 2025A Survey on Feedback-based Multi-step Reasoning for Large Language Models on Mathematicscited by 11
- 2025A Technical Survey of Reinforcement Learning Techniques for Large Language Models5 Jul 2025
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Models12 Mar 2025
- 2025A Survey on Feedback-based Multi-step Reasoning for Large Language Models on Mathematics20 Feb 2025
Similar, not cited
Close in wording, no citation either way
- 2024MARIO: MAth Reasoning with code Interpreter Output -- A Reproducible Pipeline
- 2025A Survey on Large Language Models for Mathematical Reasoning
- 2024Logic Contrastive Reasoning with Lightweight Large Language Model for Math Word Problems
- 2023Reasoning in Large Language Models Through Symbolic Math Word Problems
- 2024Benchmarking Large Language Models for Math Reasoning Tasks
- 2023From Good to Great: Improving Math Reasoning with Tool-Augmented Interleaf Prompting
- 2024MathGenie: Generating Synthetic Data with Question Back-translation for Enhancing Mathematical Reasoning of LLMs
- 2024Gap-Filling Prompting Enhances Code-Assisted Mathematical Reasoning