PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
April 3, 20241 citationsOpen Access

Automatic Prompt Selection for Large Language Models

View Full Paper
VDViet-Tung DoVHVan-Khanh HoangDNDuy‐Hung Nguyen

Key Points

  • The proposed method selects the best prompt, improving efficiency and effectiveness when using large language models.
  • It achieves competitive performance on zero-shot question-answering datasets like GSM8K and AQuA, showcasing its utility.
  • A method involving clustering, prompt generation, and ranking enhances prompt optimization compared to existing models based on manual design alone. This framework effectively streamlines the prompt selection process, reducing time and resource demands.

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 eliminates the need for resource-intensive training and inference. It demonstrates competitive performance on zero-shot question-answering datasets: GSM8K, MultiArith, and AQuA.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Do et al. (2024) studied this question.

synapsesocial.com/papers/68e708e7b6db643587683036https://doi.org/10.48550/arxiv.2404.02717
Ask AI
Helpful
Bookmark
Share
View Full Paper