PromptWizard: Task-Aware Prompt Optimization Framework

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Agarwal, Eshaan, Singh, Joykirat, Dani, Vivek, Magazine, Raghav, Ganu, Tanuja, Nambi, Akshay
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866916421172199424
author Agarwal, Eshaan
Singh, Joykirat
Dani, Vivek
Magazine, Raghav
Ganu, Tanuja
Nambi, Akshay
author_facet Agarwal, Eshaan
Singh, Joykirat
Dani, Vivek
Magazine, Raghav
Ganu, Tanuja
Nambi, Akshay
contents Large language models (LLMs) have transformed AI across diverse domains, with prompting being central to their success in guiding model outputs. However, manual prompt engineering is both labor-intensive and domain-specific, necessitating the need for automated solutions. We introduce PromptWizard, a novel, fully automated framework for discrete prompt optimization, utilizing a self-evolving, self-adapting mechanism. Through a feedback-driven critique and synthesis process, PromptWizard achieves an effective balance between exploration and exploitation, iteratively refining both prompt instructions and in-context examples to generate human-readable, task-specific prompts. This guided approach systematically improves prompt quality, resulting in superior performance across 45 tasks. PromptWizard excels even with limited training data, smaller LLMs, and various LLM architectures. Additionally, our cost analysis reveals a substantial reduction in API calls, token usage, and overall cost, demonstrating PromptWizard's efficiency, scalability, and advantages over existing prompt optimization strategies.
format Preprint
id arxiv_https___arxiv_org_abs_2405_18369
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle PromptWizard: Task-Aware Prompt Optimization Framework
Agarwal, Eshaan
Singh, Joykirat
Dani, Vivek
Magazine, Raghav
Ganu, Tanuja
Nambi, Akshay
Computation and Language
Artificial Intelligence
Machine Learning
Large language models (LLMs) have transformed AI across diverse domains, with prompting being central to their success in guiding model outputs. However, manual prompt engineering is both labor-intensive and domain-specific, necessitating the need for automated solutions. We introduce PromptWizard, a novel, fully automated framework for discrete prompt optimization, utilizing a self-evolving, self-adapting mechanism. Through a feedback-driven critique and synthesis process, PromptWizard achieves an effective balance between exploration and exploitation, iteratively refining both prompt instructions and in-context examples to generate human-readable, task-specific prompts. This guided approach systematically improves prompt quality, resulting in superior performance across 45 tasks. PromptWizard excels even with limited training data, smaller LLMs, and various LLM architectures. Additionally, our cost analysis reveals a substantial reduction in API calls, token usage, and overall cost, demonstrating PromptWizard's efficiency, scalability, and advantages over existing prompt optimization strategies.
title PromptWizard: Task-Aware Prompt Optimization Framework
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2405.18369