Bandit-Based Prompt Design Strategy Selection Improves Prompt Optimizers

Prompt optimization aims to search for effective prompts that enhance the performance of large language models (LLMs).Although existing prompt optimization methods have discovered effective prompts, they often differ from sophisticated prompts carefully designed by human experts.Prompt design strategies, representing best practices for improving prompt performance, can be key to improving prompt optimization.Recently, a method termed the Autonomous Prompt Engineering Toolbox (APET) has incorporated various prompt design strategies into the prompt optimization process.In APET, the LLM is needed to implicitly select and apply the appropriate strategies because prompt design strategies can have negative effects.This implicit selection may be suboptimal due to the limited optimization capabilities of LLMs.This paper introduces Optimizing Prompts with sTrategy Selection (OPTS), which implements explicit selection mechanisms for prompt design.We propose three mechanisms, including a Thompson sampling-based approach, and integrate them into EvoPrompt, a well-known prompt optimizer.Experiments optimizing prompts for two LLMs, Llama-3-8B-Instruct and GPT-4o mini, were conducted using BIG-Bench Hard.Our results show that the selection of prompt design strategies improves the performance of EvoPrompt, and the Thompson samplingbased mechanism achieves the best overall results.Our experimental code is provided at https://github.com/shiralab/OPTS. K descriptions of prompt design strategiesOption not using prompt design strategies Meta-prompt: e.g.) Modify the prompt using prompt design strategy. The description of selected prompt design strategyPrompt: e.g.) Evaluate the result of a random Boolean expression.

Authors

Institutions

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.findings-acl.1070
Primary Topic
AI-based Problem Solving and Planning
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Bandit-Based Prompt Design Strategy Selection Improves Prompt Optimizers

Shinichi Shirakawa, Nozomu Yoshinari, Yoichi Hirose, Kento Uchida et al.
AI-based Problem Solving and Planning
article

Bandit-Based Prompt Design Strategy Selection Improves Prompt Optimizers

Shinichi Shirakawa, Nozomu Yoshinari, Yoichi Hirose, Kento Uchida, Rin Ashizawa
article en

Abstract

Prompt optimization aims to search for effective prompts that enhance the performance of large language models (LLMs).Although existing prompt optimization methods have discovered effective prompts, they often differ from sophisticated prompts carefully designed by human experts.Prompt design strategies, representing best practices for improving prompt performance, can be key to improving prompt optimization.Recently, a method termed the Autonomous Prompt Engineering Toolbox (APET) has incorporated various prompt design strategies into the prompt optimization process.In APET, the LLM is needed to implicitly select and apply the appropriate strategies because prompt design strategies can have negative effects.This implicit selection may be suboptimal due to the limited optimization capabilities of LLMs.This paper introduces Optimizing Prompts with sTrategy Selection (OPTS), which implements explicit selection mechanisms for prompt design.We propose three mechanisms, including a Thompson sampling-based approach, and integrate them into EvoPrompt, a well-known prompt optimizer.Experiments optimizing prompts for two LLMs, Llama-3-8B-Instruct and GPT-4o mini, were conducted using BIG-Bench Hard.Our results show that the selection of prompt design strategies improves the performance of EvoPrompt, and the Thompson samplingbased mechanism achieves the best overall results.Our experimental code is provided at https://github.com/shiralab/OPTS. K descriptions of prompt design strategiesOption not using prompt design strategies Meta-prompt: e.g.) Modify the prompt using prompt design strategy. The description of selected prompt design strategyPrompt: e.g.) Evaluate the result of a random Boolean expression.

Yokohama National University (JP)
Japan Society for the Promotion of Science
Openalex Percentile: Top 90%
AI-based Problem Solving and Planning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.