← 首页|学术|Diagnosis Before Recovery: Turning Agent Failures into Selective Self-Correction
cs.CL · 2608.11772 · 2026/08/12

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

Wang, Pan, Hu, Yihao, Wang, Hang, Lv, Zirui, Zhang, Xin, Li, Jianshe, Yang, Jiang-Ming, Wu, Wei
TL;DR:通用恢复playbook在agent失败时会扩大上下文——恰好是系统需要更窄修复接口的时候。DARC先诊断再恢复:剖析任务族失败模式、从共享恢复库剪除不匹配干预、冻结verifier选定的成功-成本策略,让自修正从「提示扩展」变为「恢复接口设计」。

🎯 问题

语言Agent任务只暴露粗粒度任务失败,通用恢复playbook把无效动作/缺失流程/严格格式错误等不兼容信号混在一起。

🔬 方法

诊断引导恢复harness:profile任务族失败模式、剪除不匹配干预、冻结验证者选定的成功-成本策略——先决定哪类失败可修复,再决定投入多少恢复证据。
章节结构(全文标题提取):
1 Introduction
2 Related Work
3 Problem Setup: Diagnosis-Guided Recovery
4 DARC: Diagnosis-Guided Agent Recovery and Correction
5 Experiments
6 Analysis and Ablation
7 Conclusion and Limitations
References
4.1 Failure Diagnosis
4.2 Recovery-Policy Distillation
4.3 Structural Properties
5.1 Experimental Setup
5.2 Main Benchmark Results
5.3 Cross-Task Transferability
6.1 Ablation: Recovery Diagnosis
6.2 Matched-Information Fairness
6.3 Weight-Space Training Extension
6.4 Benchmark-Specific Failure Modes
6.5 Cost-Success Tradeoff
6.6 Cost and Speed Efficiency

📊 结果

ALFWorld/AppWorld/XBRL Finance上同一协议分别产出动作有效性harness、程序化恢复fallback、格式精度检索策略;均提升平均任务性能并降低环境步骤或检索预算。

💡 与研究方向关联

自修正不应一律扩大上下文,而应设计恢复接口:先诊断失败类型,再裁剪干预。诊断-恢复分离是可迁移的 agent 设计原则。

📝 原文摘要

▶ 原文摘要 Abstract
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.
Deep Read · 2026-08-14高松灯 / Agent 日报
Self-CorrectionDiagnosisRecovery HarnessCoding Agent