mlsanityData to 7 Oct 2026

Gap-Filling Prompting Enhances Code-Assisted Mathematical Reasoning

arXiv 2411.05407 ↗First posted 8 Nov 2024cs.CLcited by 1

On the map: LLM reasoning → Mathematical reasoning

Abstract (arXiv)

Despite the strong performance of large language models (LLMs) in tasks like mathematical reasoning, their practical use is limited by high computational demands and proprietary restrictions. Chain-of-thought (CoT) and program-of-thought (PoT) fine-tuning are common methods to transfer LLM knowledge to small language models (SLMs). However, CoT often leads to calculation errors in SLMs, while PoT has shown more promise. While most PoT-based approaches focus on direct problem-to-code conversion or extracting only the key information from questions and then providing code solution for it, this work emphasizes filling the gaps in the question to clearly illustrate the solution path, which can be challenging for an SLM to understand when such information is not explicitly provided. Therefore, this paper introduces Gap-Filling Prompting (GFP), a novel two-step prompting strategy designed to enhance the problem-solving process for SLMs. The first step identifies these gaps and provides hints for filling them, while the second step adds the hints to the question to generate a final code solution. Experimental results on two benchmark datasets demonstrate that GFP significantly improves the mathematical reasoning abilities of SLMs.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 10 of its 23 references that are in the map. First posted on arXiv 8 Nov 2024.

Builds on

10 of 23 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024Achieving >97% on GSM8K: Deeply Understanding the Problems Makes LLMs Better Solvers for Math Word Problems23 Apr

Other references · 9

  1. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  2. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  3. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  4. 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
  5. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,057
  6. 2023Platypus: Quick, Cheap, and Powerful Refinement of LLMscited by 150
  7. 2023Progressive-Hint Prompting Improves Reasoning in Large Language Modelscited by 147
  8. 2024Hint-before-Solving Prompting: Guiding LLMs to Effectively Utilize Encoded Knowledgecited by 10
  9. 2024Key-Point-Driven Mathematical Reasoning Distillation of Large Language Modelcited by 1

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025A Survey on Feedback-based Multi-step Reasoning for Large Language Models on Mathematics
  2. 2024Small Language Models are Equation Reasoners
  3. 2025A Survey on Large Language Models for Mathematical Reasoning
  4. 2024Expanding Search Space with Diverse Prompting Agents: An Efficient Sampling Approach for LLM Mathematical Reasoning
  5. 2024Teaching-Inspired Integrated Prompting Framework: A Novel Approach for Enhancing Reasoning in Large Language Models
  6. 2026HintMR: Eliciting Stronger Mathematical Reasoning in Small Language Models
  7. 2025MathFimer: Enhancing Mathematical Reasoning by Expanding Reasoning Steps through Fill-in-the-Middle Task
  8. 2023From Good to Great: Improving Math Reasoning with Tool-Augmented Interleaf Prompting