mlsanityData to 14 Oct 2026

Prompt Selection and Augmentation for Few Examples Code Generation in Large Language Model and its Application in Robotics Control

arXiv 2403.12999 ↗First posted 11 Mar 2024cs.RO cs.AI cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

Few-shot prompting and step-by-step reasoning have enhanced the capabilities of Large Language Models (LLMs) in tackling complex tasks including code generation. In this paper, we introduce a prompt selection and augmentation algorithm aimed at improving mathematical reasoning and robot arm operations. Our approach incorporates a multi-stage example augmentation scheme combined with an example selection scheme. This algorithm improves LLM performance by selecting a set of examples that increase diversity, minimize redundancy, and increase relevance to the question. When combined with the Program-of-Thought prompting, our algorithm demonstrates an improvement in performance on the GSM8K and SVAMP benchmarks, with increases of 0.3% and 1.1% respectively. Furthermore, in simulated tabletop environments, our algorithm surpasses the Code-as-Policies approach by achieving a 3.4% increase in successful task completions and a decrease of over 70% in the number of examples used. Its ability to discard examples that contribute little to solving the problem reduces the inferencing time of an LLM-powered robotics system. This algorithm also offers important benefits for industrial process automation by streamlining the development and deployment process, reducing manual programming effort, and enhancing code reusability.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). First posted on arXiv 11 Mar 2024.

Builds on

0 of 0 references.

No references here yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2024Task-oriented Prompt Enhancement via Script Generation
  2. 2024Towards Generalist Prompting for Large Language Models by Mental Models
  3. 2024LADEV: A Language-Driven Testing and Evaluation Platform for Vision-Language-Action Models in Robotic Manipulation
  4. 2025In-Context Iterative Policy Improvement for Dynamic Manipulation
  5. 2025Leveraging Pre-trained Large Language Models with Refined Prompting for Online Task and Motion Planning
  6. 2026Hierarchical Prompting with Dual LLM Modules for Robotic Task and Motion Planning ↗
  7. 2023StrategyLLM: Large Language Models as Strategy Generators, Executors, Optimizers, and Evaluators for Problem Solving
  8. 2024Natural Language as Policies: Reasoning for Coordinate-Level Embodied Control with LLMs