《计算机应用》唯一官方网站

• •    下一篇

AgentJury:数据聚类驱动的多智能体故障归因框架

张喜顺1,2,谭海波3,赵赫4,周桐4,程昊天5,牛梓轩5,尚艺5,吕晶璞5   

  1. 1. 安徽大学物科院
    2. 合肥市置地创新大厦23楼中科晶格
    3. 中科院合肥研究院
    4. 中国科学院合肥物质科学研究院
    5. 中国科学技术大学
  • 收稿日期:2026-05-12 修回日期:2026-07-05 接受日期:2026-07-27 发布日期:2026-08-05 出版日期:2026-08-05
  • 通讯作者: 赵赫
  • 基金资助:
    安徽省科技创新攻坚计划项目:《人工智能高质量数据开放关键技术研究及平台开发应用》

AgentJury: Clustering-Driven Failure Attribution in Multi-Agent Systems

  • Received:2026-05-12 Revised:2026-07-05 Accepted:2026-07-27 Online:2026-08-05 Published:2026-08-05

摘要: 摘 要: 在大语言模型驱动的多智能体系统(Multi-Agent Systems,MAS)中,将任务失败精确定位至具体执行步骤是一项核心挑战。现有方法面临2类结构性瓶颈:其一,长程序列极易触发LLM固有的“中间迷失”效应,导致模型在步骤级精确定位的性能严重退化。现有公开基准Who&When原文献中的最优提示法步骤级准确率仅为14.2%;其二,现有评测体系以Top-1精确匹配为唯一目标,忽视了标注歧义性和错误在因果链上的扩散现象,导致方法的真实归因能力被系统性低估。为此,本文提出一种数据聚类驱动的多智能体仲裁故障归因框架AgentJury。在架构层面,分层上下文滑动窗口机制以非对称上下文构造将模型推理焦点收紧至局部高保真区间,有效缓解长文本的中间迷失效应;在推理层面,双轨无监督聚类从历史失败案例中提取差异化语义结构,将其转化为仲裁者的差异化先验知识,经软投票机制聚合为高召回的候选区间。实验结果表明,在Who&When基准的算法生成子集上,AgentJury的步骤级准确率达50.8%(较最优提示基线提升22.0个百分点),在无需模型微调下超越基于模型微调的AgenTracer;在手工构建子集上准确率达29.3%,且在无先验真值辅助的推理条件下显示出较强的步骤级定位能力。引入置信度加权的Top-N区间覆盖评估准则后,算法生成子集Top-2步骤准确率跃升至71.4%(提升20.6个百分点)。消融实验充分验证了各核心模块的独立贡献。

关键词: 多智能体系统, 大语言模型, 故障归因, 上下文滑动窗口, 无监督聚类

Abstract: Abstract: Localizing task failures to specific execution steps in LLM-driven Multi-Agent Systems (MAS) remains a core challenge. Two structural bottlenecks limit existing methods: (1) long interaction logs trigger the "lost-in-the-middle" effect—the best prompting method in the original literature of the existing public benchmark Who&When achieves a step-level accuracy of merely 14.2%; (2) Top-1 exact-match evaluation ignores annotation ambiguity and error diffusion across causally equivalent nodes, systematically underestimating true attribution capability. We present AgentJury, a data clustering-driven multi-agent arbitration framework. At the architectural level, a Hierarchical Context Sliding Window (HCSW) mechanism constructs asymmetric contexts, narrowing the reasoning focus to local high-fidelity intervals to effectively mitigate the lost-in-the-middle effect. At the reasoning level, dual-track unsupervised clustering extracts differentiated semantic structures from historical failure cases, translating them into distinct prior knowledge for arbitrators; outputs are aggregated via confidence-weighted soft voting, which preserves probabilistic evidence from different arbitrators and forms a high-recall candidate interval. Experimental results demonstrate that on the algorithm-generated subset of the Who&When benchmark, AgentJury achieves a 50.8% step-level accuracy (22.0 percentage points above the best prompting baseline for this subset), surpassing the fine-tuned AgenTracer without model fine-tuning. On the hand-crafted subset, it achieves an accuracy of 29.3%, ranking first among comparable methods under oracle-free reasoning conditions. By introducing a confidence-weighted Top-N interval coverage evaluation criterion, the Top-2 step accuracy on the algorithm-generated subset surges to 71.4% (+20.6 percentage points). Ablation studies fully validate the independent contributions of each core module.

Key words: multi-agent system, large language model, failure attribution, context sliding window, unsupervised clustering

中图分类号: