ESPO:错误结构化提示优化方法
ESPO: Error-Structured Prompt Optimization via Diagnose, Diversify, and Stabilize
ESPO方法让提示更短更准,在Qwen3 GSM8K上从15%提升到91.4%,比GEPA短47%还更准。
ESPO是一种新的提示优化方法,通过诊断、多样化和稳定化三个阶段解决传统进化式提示优化器的提示膨胀问题。该方法在七个NLP基准测试上,平均准确率比GEPA提高3.
76个百分点,同时提示长度缩短47%。在Gemma 3 12B、Mistral 14B、Qwen3 32B和Claude Haiku 4.
5四个学生模型上均取得最佳平均准确率。
ESPO: Error-Structured Prompt Optimization via Diagnose, Diversify, and Stabilize
Evolutionary prompt optimizers such as GEPA suffer from prompt bloat: each iteration appends rules and caveats, producing prompts up to 3$\times$ longer yet no more accurate. We trace this to three deficiencies - incomplete error observation, limited search diversity, and unreliable selection - and propose ESPO (Error-Structured Prompt Optimization), which decomposes prompt optimization into three phases: Diagnose clusters all training errors into structural patterns in one round; Propose generates candidates via four complementary strategies with independent biases; Select applies bootstrap stability selection. On seven public NLP benchmarks - Tweet, MMLU, GSM8K, HotpotQA, ScoNe, HoVer, and PUPA - ESPO improves average accuracy by $+$3.76 pp over the state-of-the-art (74.67% vs 70.91% for GEPA), matching or exceeding GEPA on every dataset while producing prompts 47% shorter (1,004 vs 1,878 chars) and faster at inference. Cross-model experiments across four additional student models (Gemma 3 12B, Mistral 14B, Qwen3 32B, Claude Haiku 4.5) show ESPO yields the best average accuracy on every model tested, with the largest gap on Qwen3 GSM8K (15.00% $\to$ 91.40%). A generalization bound (Appendix) grounds each phase in a corresponding term of the test-time gap, and the ablation confirms a key prediction: adding diversity without bootstrap selection actually hurts performance ($-$1.20%).
This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include ESPO, prompt engineering, NLP, Qwen3.
Source attribution: curated from arXiv cs.AI (@Lihao Liu, Peng Tang, Kunwar Yashraj Singh, Shabnam Ghadar).