FALAT: 通过依赖引导搜索追踪LLM智能体轨迹中的失败
FALAT: Tracing Failures in LLM Agent Trajectories via Dependency-Guided Search
AI总结:
提出FALAT框架,通过依赖引导搜索方法,在LLM智能体轨迹中识别导致失败的关键步骤和责任智能体。
摘要:
基于LLM的智能体越来越多地通过包含推理步骤、工具调用和智能体间通信的长轨迹来解决复杂任务。然而,当这些智能体失败时,通常不清楚是哪个智能体导致了失败,以及哪个步骤引入了决定性错误。这个归因问题具有挑战性,因为错误可以在轨迹中传播:后续动作可能看起来不正确,但仅仅是因为它们依赖于先前被破坏的状态。因此,失败归因不能被视为独立的步骤级分类。 我们提出FALAT,一个用于LLM智能体轨迹中失败归因的诊断框架。FALAT将归因问题框架化为一个依赖引导的搜索问题。它首先构建任务应如何解决的期望,并利用该期望识别轨迹中的可疑区域。然后,它追踪决策、工具输出和智能体消息之间的依赖关系,以区分引入错误的步骤和仅仅继承或传播先前错误的步骤。最后,FALAT评估纠正候选步骤是否足以恢复预期结果,从而能够识别责任智能体和决定性失败步骤。 我们在Who&When基准上评估FALAT,该基准包括算法生成和手工制作的多智能体失败轨迹。结果表明,FALAT持续改进了责任智能体和决定性步骤的归因。其最佳配置在算法生成轨迹上达到46.0%的步骤级准确率,在更具挑战性的手工制作轨迹上达到29.1%,优于专门的归因基线和直接提示的独立LLM。这些发现表明,依赖感知推理对于LLM智能体系统中可靠的失败诊断至关重要。
英文摘要:
LLM-based agents increasingly solve complex tasks through long trajectories involving reasoning steps, tool calls, and inter-agent communication. However, when these agents fail, it is often unclear which agent caused the failure and which step introduced the decisive error. This attribution problem is challenging because mistakes can propagate across the trajectory: later actions may appear incorrect, but only because they depend on an earlier corrupted state. Therefore, failure attribution cannot be treated as independent step-level classification. We propose FALAT, a diagnostic framework for failure attribution in LLM agent trajectories. FALAT frames attribution as a dependency-guided search problem. It first constructs an expectation of how the task should be solved and uses this expectation to identify suspicious regions in the trajectory. It then traces dependencies among decisions, tool outputs, and agent messages to distinguish error-introducing steps from steps that merely inherit or propagate prior mistakes. Finally, FALAT evaluates whether correcting a candidate step would be sufficient to recover the expected outcome, allowing it to identify both the responsible agent and the decisive failure step. We evaluate FALAT on the Who&When benchmark, which includes both algorithm-generated and hand-crafted multi-agent failure trajectories. The results show that FALAT consistently improves responsible-agent and decisive-step attribution. Its best configurations achieve 46.0% step-level accuracy on algorithm-generated trajectories and 29.1% on the more challenging hand-crafted trajectories, outperforming specialized attribution baselines and direct prompting with standalone LLMs. These findings suggest that dependency-aware reasoning is essential for reliable failure diagnosis in LLM agent systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。