跳到正文
arXiv:cs.LG· Changxiu Ji, Amy Lu, Qizheng Zhang, Kunle Olukotun·· 3 小时前AI 评分50

Sentry:让 LLM 智能体在测试时从失败中恢复

Sentry: Learning to Recover from LLM Agent Failures at Test Time

AI 导读

Sentry 是一个与 LLM 智能体并行运行的失败管理模块,检测到失败时从外部 playbook 检索匹配的经验来指导恢复,并在确认恢复后写入新经验,完整 playbook 从不进入智能体上下文。

正文

View PDF HTML (experimental)

Abstract:LLM agents often fail mid-task due to invalid tool calls, repeated actions, or poorly grounded reasoning, and learning from these failures is a path to reliability. We find that how failure knowledge reaches the agent matters as much as what it contains. Failure lessons are conditional: kept in the agent's context, they misfire when their failure is absent, and removing them from an evolving playbook improves performance. Runtime interventions, in contrast, act only when a failure occurs but do not learn from their repairs. We argue that failure knowledge is conditional knowledge and should be conditionally exposed, and instantiate this principle in Sentry, a failure-management layer that runs alongside the agent. When Sentry detects a failure, it retrieves matching lessons from an external playbook to guide recovery, verifies without access to task rewards whether the agent recovered, and stores a new lesson only if it did; the full playbook never enters the agent's context. Across multiple agentic benchmarks, Sentry outperforms the strongest runtime-intervention baseline on every benchmark, by 37\% on average, and the strongest context-evolution baseline by 39\% on the two benchmarks where both are evaluated; combining Sentry with context evolution yields further gains. Learned lessons transfer to held-out tasks, and controlled experiments show that exposing the full playbook to the agent lowers performance even when relevant lessons remain available on demand.
Subjects: Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Computation and Language (cs.CL)
Cite as: arXiv:2610.02994 [cs.LG]
  (or arXiv:2610.02994v1 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2610.02994

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Changxiu Ji [view email]
[v1] Fri, 2 Oct 2026 08:26:47 UTC (422 KB)

来源:arXiv:cs.LG · arxiv.org