多智能体LLM系统中浪费计算资源的早期诊断:基于故障感知的可观测性
Early Diagnosis of Wasted Computation in Multi-Agent LLM Systems via Failure-Aware Observability
AI总结:
提出一种故障感知的可观测性框架,通过在线轨迹信号诊断多智能体LLM系统中的浪费计算,并在GAIA验证集上评估,揭示不同故障机制及其与资源消耗的关系。
摘要:
使用工具的多智能体大语言模型(LLM)系统在产生答案之前,通过模型令牌、工具调用、重试和代码执行来消耗计算资源。当运行失败时,最终答案评估揭示了终点,但通常无法揭示轨迹停止可恢复进展的时间点。本文引入了一个故障感知的可观测性框架,用于诊断多智能体LLM轨迹中的浪费计算。该框架将重复出现的故障模式映射到在线轨迹信号,包括工具可靠性、执行恢复、编排循环、证据可用性、信息变化和预算压力。我们在一个三智能体问答系统中实例化该框架,并在相同的执行上限下对165条GAIA验证轨迹进行评估。操作故障仍然常见:22/53的1级运行、33/86的2级运行和12/26的3级运行未能产生可用的最终答案。轨迹揭示了这些结果背后的不同机制,包括证据不足、重复动作循环、最大步数终止、工具故障连续以及成功执行但无有用输出的调用。平均令牌使用量从1级的8,152个令牌上升到3级的16,389个令牌,而证据可用性和句子级支持则出现分歧。一项缓存的10条轨迹LLM评判基础审计表明,廉价的在线信号和更深入的语义指标捕捉了故障的互补层面。结果将故障感知可观测性定位为原始执行日志与最终答案准确性之间的诊断层。
英文摘要:
Failure-aware observability diagnoses wasted computation in multi-agent LLM systems before final-answer evaluation can explain what went wrong. We propose a trace-based framework for a three-agent architecture -- orchestrator, search agent, and execution agent -- that converts structured events into online signals for loops, budget pressure, low information gain, and tool instability, then adds offline semantic grounding metrics and selective LLM-as-judge evaluation. On 165 GAIA validation traces under identical caps, 98 runs produce usable final answers and 67 fail or stop without one. Among warned failed runs, 58.1% of tokens are spent after the first warning on average, indicating substantial opportunity for intervention. A 10-task Level-2 pilot uses warnings to diversify search or require evidence, reducing post-warning token fraction from 0.638 in the baseline to 0.304. The results support a layered design: cheap online signals help the orchestrator redirect or halt redundant behavior, while deeper semantic checks identify whether completed answers are grounded enough to trust.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。