Error Taxonomy-Guided Prompt Optimization

Mayank Singh, Vikas Yadav, Eduardo Blanco
2/1/2026
cs.AIcs.CLcs.LG

No official code found. Best implementation: mayanks43/etgpo (0 stars, MIT, last commit 2026-01-30).

Abstract

Automatic Prompt Optimization (APO) is a powerful approach for extracting performance from large language models without modifying their weights. Many existing methods rely on trial-and-error, testing different prompts or in-context examples until a good configuration emerges, often consuming substantial compute. Recently, natural language feedback derived from execution logs has shown promise as a way to identify how prompts can be improved. However, most prior approaches operate in a bottom-up manner, iteratively adjusting the prompt based on feedback from individual problems, which can cause them to lose the global perspective. In this work, we propose Error Taxonomy-Guided Prompt Optimization (ETGPO), a prompt optimization algorithm that adopts a top-down approach. ETGPO focuses on the global failure landscape by collecting model errors, categorizing them into a taxonomy, and augmenting the prompt with guidance targeting the most frequent failure modes. Across multiple benchmarks spanning mathematics, question answering, and logical reasoning, ETGPO achieves accuracy that is comparable to or better than state-of-the-art methods, while requiring roughly one third of the optimization-phase token usage and evaluation budget.

View on arXivView PDF

Code Implementations(1)

mayanks43/etgpoCommunity66%
MIT

Code for the paper "Error Taxonomy-Guided Prompt Optimization"

00Jan 30, 20268 months agoMIT

Cite this paper

@article{singh2026error,
  title  = {Error Taxonomy-Guided Prompt Optimization},
  author = {Mayank Singh and Vikas Yadav and Eduardo Blanco},
  year   = {2026},
  eprint = {2602.00997},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.00997v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.00997.svg)](https://codeofpaper.com/paper/2602.00997)

Discussion