arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.08224cs.SE
收藏

Flow-of-Action:基于SOP增强的大语言模型多智能体系统用于根因分析

Flow-of-Action: SOP Enhanced LLM-Based Multi-Agent System for Root Cause Analysis

Changhua Pei, Zexin Wang, Fengrui Liu, Zeyan Li, Yang Liu, Xiao He, Rong Kang, Tieying Zhang, Jianjun Chen, Jianhui Li, Gaogang Xie, Dan Pei

AI总结:

针对微服务架构中RCA依赖专家耗时久、现有ReAct框架存在幻觉问题的挑战,提出基于SOP增强的多智能体系统Flow-of-Action,通过SOP流工具和辅助智能体优化过程,将准确率从ReAct的35.50%提升至64.01%。

摘要:

在微服务架构领域,频繁发生的事件需要采用根因分析(RCA)来快速解决问题。通常,严重事件可能需要多位领域专家花费数小时才能确定根本原因。因此,当前趋势是利用大型语言模型(LLMs)作为RCA的自动化智能体。尽管最近的ReAct框架因其思考-行动-观察范式与站点可靠性工程师(SREs)的工作方式高度契合,但其幻觉问题往往导致无关行动,直接影响后续结果。此外,事件复杂多变的线索会进一步让模型不堪重负。为应对这些挑战,我们提出Flow-of-Action,这是一个开创性的基于标准操作程序(SOP)增强的大语言模型多智能体系统。通过明确总结SREs的诊断步骤,SOP在关键节点对LLMs施加约束,引导RCA过程走向正确轨迹。为促进SOP的合理有效利用,我们设计了一个以SOP为中心的框架,称为SOP流。SOP流包含一系列工具,包括一个用于为事件查找相关SOP的工具、一个为没有相关SOP的事件自动生成SOP的工具,以及一个将SOP转换为代码的工具。这显著缓解了ReAct在RCA任务中的幻觉问题。我们还设计了多个辅助智能体,通过去除无用噪声、缩小搜索空间并告知主智能体RCA程序是否可以停止来协助主智能体。与ReAct方法35.50%的准确率相比,我们的Flow-of-Action方法达到了64.01%,满足了实际系统中RCA的准确率要求。

英文摘要:

In the realm of microservices architecture, the occurrence of frequent incidents necessitates the employment of Root Cause Analysis (RCA) for swift issue resolution. It is common that a serious incident can take several domain experts hours to identify the root cause. Consequently, a contemporary trend involves harnessing Large Language Models (LLMs) as automated agents for RCA. Though the recent ReAct framework aligns well with the Site Reliability Engineers (SREs) for its thought-action-observation paradigm, its hallucinations often lead to irrelevant actions and directly affect subsequent results. Additionally, the complex and variable clues of the incident can overwhelm the model one step further. To confront these challenges, we propose Flow-of-Action, a pioneering Standard Operation Procedure (SOP) enhanced LLM-based multi-agent system. By explicitly summarizing the diagnosis steps of SREs, SOP imposes constraints on LLMs at crucial junctures, guiding the RCA process towards the correct trajectory. To facilitate the rational and effective utilization of SOPs, we design an SOP-centric framework called SOP flow. SOP flow contains a series of tools, including one for finding relevant SOPs for incidents, another for automatically generating SOPs for incidents without relevant ones, and a tool for converting SOPs into code. This significantly alleviates the hallucination issues of ReAct in RCA tasks. We also design multiple auxiliary agents to assist the main agent by removing useless noise, narrowing the search space, and informing the main agent whether the RCA procedure can stop. Compared to the ReAct method's 35.50% accuracy, our Flow-of-Action method achieves 64.01%, meeting the accuracy requirements for RCA in real-world systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑