Leveraging Training Data in Few-Shot Prompting for Numerical Reasoning
On the map: LLM reasoning → Prompting and chain-of-thought reasoning
Abstract (arXiv)
Chain-of-thought (CoT) prompting with large language models has proven effective in numerous natural language processing tasks, but designing prompts that generalize well to diverse problem types can be challenging, especially in the context of math word problem (MWP) solving. Additionally, it is common to have a large amount of training data that have a better diversity coverage but CoT annotations are not available, which limits the use of supervised learning techniques. To address these issues, we investigate two approaches to leverage the training data in a few-shot prompting scenario: dynamic program prompting and program distillation. Our approach is largely inspired by Gao et al., (2022), where they proposed to replace the CoT with the programs as the intermediate reasoning step. Such a prompting strategy allows us to accurately verify the answer correctness through program execution in MWP solving. Our dynamic program prompting involves annotating the training data by sampling correct programs from a large language model, while program distillation involves adapting a smaller model to the program-annotated training data. Our experiments on three standard MWP datasets demonstrate the effectiveness of these approaches, yielding significant improvements over previous baselines for prompting and fine-tuning. Our results suggest that leveraging a large amount of training data can improve the generalization ability of prompts and boost the performance of fine-tuned small models in MWP solving.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Placed in Prompting and chain-of-thought reasoning, one of 17 directions in LLM reasoning. Builds on 27 of its 37 references that are in the map. First posted on arXiv 29 May 2023.
Builds on
27 of 37 references.
Closest ancestors · 4
Same direction, newest first
- 2022Teaching Small Language Models to Reason16 Dec
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Models21 May
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Models21 Mar
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Models28 Jan
Other references · 23
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2022Solving math word problems with process- and outcome-based feedbackcited by 871
- 2022Galactica: A Large Language Model for Sciencecited by 736
- 2022Large Language Models Can Self-Improvecited by 656
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
11 more
- 2022PAL: Program-aided Language Modelscited by 635
- 2022Text and Code Embeddings by Contrastive Pre-Trainingcited by 358
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
- 2022Making Large Language Models Better Reasoners with Step-Aware Verifiercited by 231
- 2022Generating Training Data with Language Models: Towards Zero-Shot Language Understandingcited by 199
- 2022ROSCOE: A Suite of Metrics for Scoring Step-by-Step Reasoningcited by 175
- 2022Repository-Level Prompt Generation for Large Language Models of Codecited by 106
- 2023ReCEval: Evaluating Reasoning Chains via Correctness and Informativenesscited by 76
- 2022Chaining Simultaneous Thoughts for Numerical Reasoningcited by 14
- 2022Lila: A Unified Benchmark for Mathematical Reasoningcited by 13
- 2021LiST: Lite Prompted Self-training Makes Parameter-Efficient Few-shot Learnerscited by 9
Built on by
Citing papers per year: 2023: 5; 2024: 5; 2025: 1.
11 papers.
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 352
- 2024ReFT: Reasoning with Reinforced Fine-Tuningcited by 236
- 2023Learning From Mistakes Makes LLM Better Reasonercited by 97
- 2024Model Compression and Efficient Inference for Large Language Models: A Surveycited by 62
- 2024Survey on Knowledge Distillation for Large Language Models: Methods, Evaluation, and Applicationcited by 55
- 2025A Survey on Large Language Models for Mathematical Reasoningcited by 52
- 2023Learning Multi-Step Reasoning by Solving Arithmetic Taskscited by 12
- 2023Prompt Space Optimizing Few-shot Reasoning Success with Large Language Modelscited by 11
- 2023Exploring Equation as a Better Intermediate Meaning Representation for Numerical Reasoningcited by 7
- 2023Modeling Complex Mathematical Reasoning via Large Language Model based MathAgentcited by 3
- 2024MultiLingPoT: Enhancing Mathematical Reasoning with Multilingual Program Fine-tuningcited by 1
- 2025A Survey on Large Language Models for Mathematical Reasoning10 Jun 2025
- 2024MultiLingPoT: Enhancing Mathematical Reasoning with Multilingual Program Fine-tuning17 Dec 2024
- 2024Survey on Knowledge Distillation for Large Language Models: Methods, Evaluation, and Application2 Jul 2024
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Survey29 Feb 2024
- 2024Model Compression and Efficient Inference for Large Language Models: A Survey15 Feb 2024
- 2024ReFT: Reasoning with Reinforced Fine-Tuning17 Jan 2024
- 2023Modeling Complex Mathematical Reasoning via Large Language Model based MathAgent14 Dec 2023
- 2023Learning From Mistakes Makes LLM Better Reasoner31 Oct 2023
- 2023Exploring Equation as a Better Intermediate Meaning Representation for Numerical Reasoning21 Aug 2023
- 2023Prompt Space Optimizing Few-shot Reasoning Success with Large Language Models6 Jun 2023
- 2023Learning Multi-Step Reasoning by Solving Arithmetic Tasks2 Jun 2023
Similar, not cited
Close in wording, no citation either way
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Tasks
- 2024Unveiling the Statistical Foundations of Chain-of-Thought Prompting Methods
- 2023Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Models
- 2026Soft Guidance Starts to Outperform CoT Prompting as LLMs Improve
- 2022Large Language Models are Zero-Shot Reasoners
- 2022Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango
- 2025Leveraging Large Language Models for Bengali Math Word Problem Solving with Chain of Thought Reasoning
- 2025Prompting Science Report 2: The Decreasing Value of Chain of Thought in Prompting