Reproduce “From Errors to Rules: Iterative Prompt Optimization for Text Classification” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Yueying Cui, Renhao Xue, Yi Zhang, Mukul Prasad

ERGO improves text-classification prompts by diagnosing batches of its errors alongside correct predictions, then rewriting instructions, examples, and decision rules. Its benefit depends on whether errors reveal a recurring distinction that can be expressed as a rule without harming already-correct cases. On TREC, it reaches 90.0% accuracy versus GEPA’s 85.3%; across eight tasks it does not outperform alternatives significantly.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.