LPML: LLM-Prompting Markup Language for Mathematical Reasoning
On the map: LLM reasoning → Mathematical reasoning
Abstract (arXiv)
In utilizing large language models (LLMs) for mathematical reasoning, addressing the errors in the reasoning and calculation present in the generated text by LLMs is a crucial challenge. In this paper, we propose a novel framework that integrates the Chain-of-Thought (CoT) method with an external tool (Python REPL). We discovered that by prompting LLMs to generate structured text in XML-like markup language, we could seamlessly integrate CoT and the external tool and control the undesired behaviors of LLMs. With our approach, LLMs can utilize Python computation to rectify errors within CoT. We applied our method to ChatGPT (GPT-3.5) to solve challenging mathematical problems and demonstrated that combining CoT and Python REPL through the markup language enhances the reasoning capability of LLMs. Our approach enables LLMs to write the markup language and perform advanced mathematical reasoning using only zero-shot prompting.
Key facts. Cited by 15 papers in the map (data through 13 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 13 of its 14 references that are in the map. First posted on arXiv 21 Sep 2023.
Builds on
13 of 14 references.
Closest ancestors · 1
Same direction, newest first
Other references · 12
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,376
- 2021Training Verifiers to Solve Math Word Problemscited by 9,916
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,502
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,657
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,270
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,348
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,117
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,404
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,066
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 878
- 2022PAL: Program-aided Language Modelscited by 647
Built on by
Citing papers per year: 2023: 1; 2024: 8; 2025: 6.
15 papers.
Sort:
By area:
- 2024Large Language Models for Mathematical Reasoning: Progresses and Challengescited by 284
- 2025ZeroSearch: Incentivize the Search Capability of LLMs without Searchingcited by 205
- 2024GraphCLIP: Enhancing Transferability in Graph Foundation Models for Text-Attributed Graphscited by 58
- 2024How Numerical Precision Affects Arithmetical Reasoning Capabilities of LLMscited by 24
- 2025Graph-Augmented Reasoning: Evolving Step-by-Step Knowledge Graph Retrieval for LLM Reasoningcited by 8
- 2024PersonaMath: Boosting Mathematical Reasoning via Persona-Driven Data Augmentationcited by 7
- 2025More or Less Wrong: A Benchmark for Directional Bias in LLM Comparative Reasoningcited by 6
- 2024DCR: Divide-and-Conquer Reasoning for Multi-choice Question Answering with LLMscited by 5
- 2024Retrieved In-Context Principles from Previous Mistakescited by 5
- 2025Beyond Passive Critical Thinking: Fostering Proactive Questioning to Enhance Human-AI Collaborationcited by 5
- 2024MathDivide: Improved mathematical reasoning by large language modelscited by 3
- 2023The Tyranny of Possibilities in the Design of Task-Oriented LLM Systems: A Scoping Surveycited by 2
3 more
- 2025DecoupleSearch: Decouple Planning and Search via Hierarchical Reward Modeling7 Sep 2025
- 2025Error Detection and Correction for Interpretable Mathematics in Large Language Models5 Aug 2025
- 2025Beyond Passive Critical Thinking: Fostering Proactive Questioning to Enhance Human-AI Collaboration31 Jul 2025
- 2025More or Less Wrong: A Benchmark for Directional Bias in LLM Comparative Reasoning4 Jun 2025
- 2025ZeroSearch: Incentivize the Search Capability of LLMs without Searching7 May 2025
- 2025Graph-Augmented Reasoning: Evolving Step-by-Step Knowledge Graph Retrieval for LLM Reasoning3 Mar 2025
- 2024How Numerical Precision Affects Arithmetical Reasoning Capabilities of LLMs17 Oct 2024
- 2024GraphCLIP: Enhancing Transferability in Graph Foundation Models for Text-Attributed Graphs14 Oct 2024
- 2024PersonaMath: Boosting Mathematical Reasoning via Persona-Driven Data Augmentation2 Oct 2024
- 2024A Dataset for Evaluating LLM-based Evaluation Functions for Research Question Extraction Task10 Sep 2024
- 2024Retrieved In-Context Principles from Previous Mistakes8 Jul 2024
- 2024MathDivide: Improved mathematical reasoning by large language models12 May 2024
- 2024Large Language Models for Mathematical Reasoning: Progresses and Challengescited by 284
- 2024How Numerical Precision Affects Arithmetical Reasoning Capabilities of LLMscited by 24
- 2025Graph-Augmented Reasoning: Evolving Step-by-Step Knowledge Graph Retrieval for LLM Reasoningcited by 8
- 2024PersonaMath: Boosting Mathematical Reasoning via Persona-Driven Data Augmentationcited by 7
- 2025More or Less Wrong: A Benchmark for Directional Bias in LLM Comparative Reasoningcited by 6
- 2024DCR: Divide-and-Conquer Reasoning for Multi-choice Question Answering with LLMscited by 5
- 2024MathDivide: Improved mathematical reasoning by large language modelscited by 3
- 2025Error Detection and Correction for Interpretable Mathematics in Large Language Modelscited by 1
- 2025Error Detection and Correction for Interpretable Mathematics in Large Language Models5 Aug 2025
- 2025More or Less Wrong: A Benchmark for Directional Bias in LLM Comparative Reasoning4 Jun 2025
- 2025Graph-Augmented Reasoning: Evolving Step-by-Step Knowledge Graph Retrieval for LLM Reasoning3 Mar 2025
- 2024How Numerical Precision Affects Arithmetical Reasoning Capabilities of LLMs17 Oct 2024
- 2024PersonaMath: Boosting Mathematical Reasoning via Persona-Driven Data Augmentation2 Oct 2024
- 2024MathDivide: Improved mathematical reasoning by large language models12 May 2024
- 2024Large Language Models for Mathematical Reasoning: Progresses and Challenges31 Jan 2024
- 2024DCR: Divide-and-Conquer Reasoning for Multi-choice Question Answering with LLMs10 Jan 2024
- 2025ZeroSearch: Incentivize the Search Capability of LLMs without Searchingcited by 205
- 2024GraphCLIP: Enhancing Transferability in Graph Foundation Models for Text-Attributed Graphscited by 58
- 2024Retrieved In-Context Principles from Previous Mistakescited by 5
- 2025Beyond Passive Critical Thinking: Fostering Proactive Questioning to Enhance Human-AI Collaborationcited by 5
- 2024A Dataset for Evaluating LLM-based Evaluation Functions for Research Question Extraction Taskcited by 0
- 2025Beyond Passive Critical Thinking: Fostering Proactive Questioning to Enhance Human-AI Collaboration31 Jul 2025
- 2025ZeroSearch: Incentivize the Search Capability of LLMs without Searching7 May 2025
- 2024GraphCLIP: Enhancing Transferability in Graph Foundation Models for Text-Attributed Graphs14 Oct 2024
- 2024A Dataset for Evaluating LLM-based Evaluation Functions for Research Question Extraction Task10 Sep 2024
- 2024Retrieved In-Context Principles from Previous Mistakes8 Jul 2024
Similar, not cited
Close in wording, no citation either way
- 2024Gap-Filling Prompting Enhances Code-Assisted Mathematical Reasoning
- 2025Thinking Machines: Mathematical Reasoning in the Age of LLMs
- 2025Can LLMs textitunderstand Math? -- Exploring the Pitfalls in Mathematical Reasoning
- 2024Arithmetic Reasoning with LLM: Prolog Generation & Permutation
- 2025Premise-Augmented Reasoning Chains Improve Error Identification in Math reasoning with LLMs
- 2024MARIO: MAth Reasoning with code Interpreter Output -- A Reproducible Pipeline
- 2024LLM Reasoning Engine: Specialized Training for Enhanced Mathematical Reasoning
- 2025Do LLMs Overthink Basic Math Reasoning? Benchmarking the Accuracy-Efficiency Tradeoff in Language Models