arXiv:2608.11772cs.CL2026-08

让智能体先诊断故障再修复,提升纠错精准度

Diagnosis Before Recovery: Turning Agent Failures into Selective Self-Correction

论文配图:Diagnosis Before Recovery: Turning Agent Failures into Selective Self-Correction
图 1 · 摘自论文原文
  • 先诊断故障类型,再选择可修复的修正策略
  • 在多个任务中提升平均表现,减少环境步数或检索预算
  • 适合缺乏编译器反馈的通用语言任务场景

自纠正对约束后续修复的失败尤为有效。编码代理受益于编译器、测试和执行轨迹提供的类型化恢复信号,但广义语言任务常仅暴露粗粒度任务失败。这导致通用恢复手册面临矛盾:在需要更窄修复接口时反而扩大上下文,混杂无效动作、缺失流程与格式错误的信号。本文提出DARC,一种诊断引导的恢复框架,通过分析开发集失败模式,从共享恢复库中剔除不匹配干预,并冻结验证器选择的成功成本策略。该因果顺序使纠正更具选择性:先判断何种失败可修,再决定投入多少恢复证据。在ALFWorld、AppWorld和XBRL Finance中,同一协议实现动作有效性校验、流程恢复回退和格式精度检索策略;在各评估场景中均提升平均任务性能,同时降低环境步数或检索预算。实验表明,失败无需统一扩展上下文:DARC将自纠正从提示扩展转为修复接口设计,为缺乏编译器反馈的领域提供可靠智能体的实用路径。

原文摘要 · Abstract (English)

Self-correction is particularly useful when a failure constrains the next repair. Coding agents benefit from this property because compilers, tests, and execution traces turn many failures into typed recovery signals, but broad language-agent tasks often expose only a coarse task failure. This creates a tension for generic recovery playbooks: they broaden the agent's context precisely when the system needs a narrower repair interface, mixing incompatible signals for invalid actions, missing procedures, and strict-format errors. Our insight is that development-set failures can recover part of the missing diagnostic substrate by deciding which recovery interventions are admissible before test-time correction. We propose DARC, a diagnosis-guided recovery harness that profiles task-family failure modes, prunes mismatched interventions from a shared recovery library, and freezes a verifier-selected success-cost policy for deployment. This causal order makes correction selective: the harness first determines what kind of failure can be repaired, then decides how much recovery evidence to spend. In ALFWorld, AppWorld, and XBRL Finance, the same protocol yields an action-validity harness, a procedural-recovery fallback, and a format-precision retrieval policy; in each evaluated setting it improves average task performance over base agents and broad playbooks while reducing environment steps or retrieval budget. Our experiments show that failures need not trigger uniformly more context: DARC turns self-correction from prompt expansion into recovery-interface design. DARC provides a practical route toward more reliable agents in domains where compiler-like feedback is absent: making failures actionable before making contexts larger.

自纠正智能体故障诊断任务优化

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