arXiv:2607.20497cs.AI2026-07

通过错误诊断迭代优化提示,让模型学会从失败中提炼判别规则。

From Errors to Rules: Iterative Prompt Optimization for Text Classification

论文配图:From Errors to Rules: Iterative Prompt Optimization for Text Classification
图 1 · 摘自论文原文
  • 基于错误模式诊断分类失败,分批迭代生成针对性决策规则。
  • 在边界可学任务上表现最优:TREC准确率90.0%,CLINC150达94.4%。
  • 适合需要可解释规则的场景,尤其当错误集中在特定标签对时。

文本分类中的提示优化方法多样,包括示范选择、探索式搜索和错误驱动诊断,各有优劣但未被充分理解。我们在涵盖2到150类的不同分类基准上进行系统评估,通过定量与定性分析优化过程,发现每种方法在不同任务结构上表现最佳,无单一方法全面领先。基于此,我们提出错误引导优化(ERGO):在非重叠批次中遍历训练集,诊断分类失败,并通过‘诊断-处方-重写’反馈循环生成目标决策规则。ERGO在错误集中于特定混淆标签对的任务(称为边界可学任务)上表现最佳:TREC准确率达90.0%,CLINC150达94.4%,3-5次迭代收敛,并生成可解释规则。尽管整体平均性能非最高,但其填补了互补空白——示范式ICL擅长覆盖率依赖任务,探索式搜索适用于多类意图,而ERGO则在决策边界可从错误模式学习时占优。我们构建了任务特性与最优范式匹配的互补框架,为实践者提供指导。

原文摘要 · Abstract (English)

Prompt optimization for text classification spans diverse approaches, from demonstration selection to exploration-based search to error-driven diagnosis, each with known but incompletely characterized strengths and limitations. We conduct a comprehensive empirical study across diverse classification benchmarks (2 to 150 classes) comparing these paradigms through both quantitative evaluation and qualitative analysis of optimization traces, revealing that each paradigm excels on structurally different task types and that no single method dominates. Guided by these insights, we propose Error-Guided Optimization (ERGO), an error-driven method that iterates over the full training set in non-overlapping batches, diagnoses classification failures, and generates targeted decision rules through a diagnose-prescribe-rewrite feedback loop. ERGO achieves the best accuracy on tasks where errors concentrate in specific confused label pairs (which we term boundary-learnable tasks): TREC: 90.0%, CLINC150: 94.4%, converges in 3-5 iterations, and produces interpretable decision rules. While ERGO does not achieve the highest overall average, it fills a complementary role: demonstration-based ICL wins on coverage-dependent tasks, exploration-based search wins on many-class intent, and ERGO wins where decision boundaries are learnable from error patterns. We provide a complementarity framework linking task characteristics to optimal paradigm selection, offering practical guidance for practitioners.

提示优化错误诊断可解释规则文本分类

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。