ESPO: Error-Structured Prompt Optimization via Diagnose, Diversify, and Stabilize

Lihao Liu, Peng Tang, Kunwar Yashraj Singh, Shabnam Ghadar


Abstract
Evolutionary prompt optimizers such as GEPA suffer from prompt bloat: each iteration appends rules and caveats, producing prompts that are 2–3× 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 wins 6/7 datasets with +3.76% average accuracy over the state-of-the-art (74.67% vs. 70.91% for GEPA), 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% → 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%).
Anthology ID:
2026.findings-emnlp.876
Volume:
Findings of the Association for Computational Linguistics: EMNLP 2026
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Hung-Yi Lee, Sunipa Dev, Jessy Li, Desmond Elliott
Venue:
Findings
SIG:
SIGDAT
Publisher:
Association for Computational Linguistics
Note:
Pages:
18502–18518
Language:
URL:
https://aclanthology.org/2026.findings-emnlp.876/
DOI:
Bibkey:
Cite (ACL):
Lihao Liu, Peng Tang, Kunwar Yashraj Singh, and Shabnam Ghadar. 2026. ESPO: Error-Structured Prompt Optimization via Diagnose, Diversify, and Stabilize. In Findings of the Association for Computational Linguistics: EMNLP 2026, pages 18502–18518, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
ESPO: Error-Structured Prompt Optimization via Diagnose, Diversify, and Stabilize (Liu et al., Findings 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.findings-emnlp.876.pdf