mlsanityData to 7 Oct 2026

Leveraging Training Data in Few-Shot Prompting for Numerical Reasoning

arXiv 2305.18170 ↗First posted 29 May 2023cs.CLcited by 11

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

  1. 2022Teaching Small Language Models to Reason16 Dec
  2. 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Models21 May
  3. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Models21 Mar
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Models28 Jan

Other references · 23

  1. 2022Training language models to follow instructions with human feedbackcited by 15,712
  2. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  5. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  6. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
  7. 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
  8. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  9. 2022Solving math word problems with process- and outcome-based feedbackcited by 871
  10. 2022Galactica: A Large Language Model for Sciencecited by 736
  11. 2022Large Language Models Can Self-Improvecited by 656
  12. 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
11 more
  1. 2022PAL: Program-aided Language Modelscited by 635
  2. 2022Text and Code Embeddings by Contrastive Pre-Trainingcited by 358
  3. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
  4. 2022Making Large Language Models Better Reasoners with Step-Aware Verifiercited by 231
  5. 2022Generating Training Data with Language Models: Towards Zero-Shot Language Understandingcited by 199
  6. 2022ROSCOE: A Suite of Metrics for Scoring Step-by-Step Reasoningcited by 175
  7. 2022Repository-Level Prompt Generation for Large Language Models of Codecited by 106
  8. 2023ReCEval: Evaluating Reasoning Chains via Correctness and Informativenesscited by 76
  9. 2022Chaining Simultaneous Thoughts for Numerical Reasoningcited by 14
  10. 2022Lila: A Unified Benchmark for Mathematical Reasoningcited by 13
  11. 2021LiST: Lite Prompted Self-training Makes Parameter-Efficient Few-shot Learnerscited by 9

Built on by

Cited by year

Citing papers per year: 2023: 5; 2024: 5; 2025: 1.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Tasks
  2. 2024Unveiling the Statistical Foundations of Chain-of-Thought Prompting Methods
  3. 2023Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Models
  4. 2026Soft Guidance Starts to Outperform CoT Prompting as LLMs Improve
  5. 2022Large Language Models are Zero-Shot Reasoners
  6. 2022Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango
  7. 2025Leveraging Large Language Models for Bengali Math Word Problem Solving with Chain of Thought Reasoning
  8. 2025Prompting Science Report 2: The Decreasing Value of Chain of Thought in Prompting