Teach Better or Show Smarter? On Instructions and Exemplars in Automatic Prompt Optimization
Xingchen Wan, Ruoxi Sun, Hootan Nakhost, Sercan O. Arik

TL;DR
This paper compares instruction and exemplar optimization techniques in automatic prompt optimization for large language models, revealing that exemplar reuse and simple strategies can outperform complex instruction optimization, and that their combination yields the best results.
Contribution
It provides a comprehensive comparison of instruction and exemplar optimization methods, highlighting the importance of exemplar reuse and their synergistic effects in prompt engineering.
Findings
Exemplar reuse improves performance over instruction optimization.
Simple exemplar selection can outperform advanced instruction methods.
Combining instruction and exemplar optimization yields the best results.
Abstract
Large language models have demonstrated remarkable capabilities, but their performance is heavily reliant on effective prompt engineering. Automatic prompt optimization (APO) methods are designed to automate this and can be broadly categorized into those targeting instructions (instruction optimization, IO) vs. those targeting exemplars (exemplar optimization, EO). Despite their shared objective, these have evolved rather independently, with IO receiving more research attention recently. This paper seeks to bridge this gap by comprehensively comparing the performance of representative IO and EO techniques both isolation and combination on a diverse set of challenging tasks. Our findings reveal that intelligently reusing model-generated input-output pairs obtained from evaluating prompts on the validation set as exemplars, consistently improves performance on top of IO methods but is…
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
TopicsTeaching and Learning Programming
MethodsSoftmax · Attention Is All You Need · Sparse Evolutionary Training · Focus · Random Search
