Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

PromptWizard: Task-Aware Prompt Optimization Framework

About

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.

Eshaan Agarwal, Joykirat Singh, Vivek Dani, Raghav Magazine, Tanuja Ganu, Akshay Nambi• 2024

Related benchmarks

TaskDatasetResultRank
Mathematical ReasoningGSM8K (test)
Accuracy48.67
751
Text ClassificationAG News (test)
Accuracy63.47
210
Sentiment AnalysisSST-5 (test)
Accuracy39.73
173
Subjectivity ClassificationSubj (test)
Accuracy64.93
125
Commonsense ReasoningCOPA (test)
Accuracy98.13
46
Showing 5 of 5 rows

Other info

Follow for update