Automatic Prompt Selection for Large Language Models
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) can perform various natural language processing tasks with suitable instruction prompts. However, designing effective prompts manually is challenging and time-consuming. Existing methods for automatic prompt optimization either lack flexibility or efficiency. In this paper, we propose an effective approach to automatically select the optimal prompt for a given input from a finite set of synthetic candidate prompts. Our approach consists of three steps: (1) clustering the training data and generating candidate prompts for each cluster using an LLM-based prompt generator; (2) synthesizing a dataset of input-prompt-output tuples for training a prompt evaluator to rank the prompts based on their relevance to the input; (3) using the prompt evaluator to select the best prompt for a new input at test time. Our approach balances prompt generality-specificity and eliminates the need for resource-intensive training and inference. It demonstrates competitive performance on zero-shot question-answering datasets: GSM8K, MultiArith, and AQuA.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 15 of its 25 references that are in the map. First posted on arXiv 3 Apr 2024.
Builds on
15 of 25 references.
References · 15
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2017Deep reinforcement learning from human preferencescited by 3,846
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
- 2017Program Induction by Rationale Generation : Learning to Solve and Explain Algebraic Word Problemscited by 642
- 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 612
- 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 599
- 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 376
3 more
Built on by
Citing papers per year: 2024: 4; 2025: 2; 2026: 3.
9 papers.
- 2024AgentSquare: Automatic LLM Agent Search in Modular Design Spacecited by 141
- 2024Smoothie: Label Free Language Model Routingcited by 31
- 2025CAPO: Cost-Aware Prompt Optimizationcited by 6
- 2025DynaServe: Unified and Elastic Execution for Dynamic Disaggregated LLM Servingcited by 5
- 2024LLMs Prompted for Graphs: Hallucinations and Generative Capabilitiescited by 3
- 2024Automatic deductive coding in discourse analysis: an application of large language models in learning analyticscited by 2
- 2026Continual Fine-Tuning of Large Language Models via Program Memorycited by 1
- 2026Reinforced Reasoning for End-to-End Retrosynthetic Planningcited by 0
- 2026Automated Instruction Revision (AIR): A Structured Comparison of Task Adaptation Strategies for LLMcited by 0
- 2026Continual Fine-Tuning of Large Language Models via Program Memory13 May 2026
- 2026Automated Instruction Revision (AIR): A Structured Comparison of Task Adaptation Strategies for LLM10 Apr 2026
- 2026Reinforced Reasoning for End-to-End Retrosynthetic Planning31 Mar 2026
- 2025CAPO: Cost-Aware Prompt Optimization22 Apr 2025
- 2025DynaServe: Unified and Elastic Execution for Dynamic Disaggregated LLM Serving12 Apr 2025
- 2024Smoothie: Label Free Language Model Routing6 Dec 2024
- 2024AgentSquare: Automatic LLM Agent Search in Modular Design Space8 Oct 2024
- 2024Automatic deductive coding in discourse analysis: an application of large language models in learning analytics2 Oct 2024
- 2024LLMs Prompted for Graphs: Hallucinations and Generative Capabilities30 Aug 2024