Automatic Prompt Selection for Large Language Models
Viet-Tung Do, Van-Khanh Hoang, Duy-Hung Nguyen, Shahab Sabahi, Jeff, Yang, Hajime Hotta, Minh-Tien Nguyen, Hung Le

TL;DR
This paper introduces an automatic prompt selection method for large language models that efficiently chooses the best prompt from synthetic candidates, improving performance on question-answering tasks without extensive training.
Contribution
It presents a novel three-step approach combining clustering, prompt generation, and prompt evaluation to automatically select optimal prompts for LLMs.
Findings
Achieves competitive results on GSM8K, MultiArith, and AQuA datasets.
Eliminates the need for resource-intensive training.
Balances prompt generality and specificity effectively.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNatural Language Processing Techniques · Topic Modeling
MethodsSparse Evolutionary Training
