arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.05289cs.SE
收藏

FLARE:基于LLM的多智能体系统代理覆盖引导模糊测试

FLARE: Agentic Coverage-Guided Fuzzing for LLM-Based Multi-Agent Systems

Xidian University(西安电子科技大学);Peking University(北京大学);East China Normal University(华东师范大学);Shanghai Innovation Institute(上海创新研究院)

Mingxuan Hui, Xinyue Li, Lu Wang, Chengcheng Wan, Yifan Wang, Yimian Wang, Feiyue Song, Beining Shi, Yixi Li, Yaxiao Li

AI总结:

FLARE通过代理定义提取规范和行为空间,构建测试或acles进行覆盖引导模糊测试,发现多智能体系统中的失败案例,实现96.9%的代理间覆盖和91.1%的代理内覆盖。

摘要:

多智能体LLM系统(MAS)通过分解任务为子任务来自动化复杂的人类工作流程。然而,由于LLM代理的非确定性行为和智能体间的复杂交互,MAS应用经常遇到失败,包括无限循环和失败的工具调用。传统软件测试技术无法检测此类失败,因为缺乏LLM代理规范、MAS行为空间大以及基于语义的正确性判断。本文提出了FLARE,一种针对MAS的新型测试框架。FLARE以MAS的源代码为输入,并从代理定义中提取规范和行为空间。基于这些规范,FLARE构建测试或acles并进行覆盖引导模糊测试以暴露失败。然后分析执行日志以判断每个测试是否通过并生成失败报告。在16个不同的开源应用上的评估表明,FLARE实现了96.9%的代理间覆盖和91.1%的代理内覆盖,优于基线9.5%和1.0%。FLARE还发现了56个此前未被发现的仅存在于MAS中的失败案例。

英文摘要:

Multi-Agent LLM Systems (MAS) have been adopted to automate complex human workflows by breaking down tasks into subtasks. However, due to the non-deterministic behavior of LLM agents and the intricate interactions between agents, MAS applications frequently encounter failures, including infinite loops and failed tool invocations. Traditional software testing techniques are ineffective in detecting such failures due to the lack of LLM agent specification, the large behavioral space of MAS, and semantic-based correctness judgment. This paper presents FLARE, a novel testing framework tailored for MAS. FLARE takes the source code of MAS as input and extracts specifications and behavioral spaces from agent definitions. Based on these specifications, FLARE builds test oracles and conducts coverage-guided fuzzing to expose failures. It then analyzes execution logs to judge whether each test has passed and generates failure reports. Our evaluation on 16 diverse open-source applications demonstrates that FLARE achieves 96.9% inter-agent coverage and 91.1% intra-agent coverage, outperforming baselines by 9.5% and 1.0%. FLARE also uncovers 56 previously unknown failures unique to MAS.

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

↑