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

理解现代代理框架中的缺陷:对症状、根本原因和触发条件的研究

Understanding Bugs in Modern Agentic Frameworks: A Study of Symptoms, Root Causes, and Triggering Conditions

Concordia University(康科迪亚大学)

Xiaowen Zhang, Hannuo Zhang, Shin Hwei Tan

AI总结:

本文研究现代代理框架中的缺陷,通过分析409个修复的bug,提出五层抽象模型,揭示独特的症状和根本原因,并识别可转移的bug触发模式,提升代理系统的可靠性。

摘要:

现代代理框架(如CrewAI和AutoGen)已发展为复杂的自主多代理系统,带来了超出早期管道式LLM库的可靠性挑战。然而,现有实证研究主要关注早期LLM库或任务级bug,未深入探讨这些代理框架的独特复杂性。本文通过分析五个代表性代理框架中的409个修复bug,提出五层抽象模型,涵盖从编排到基础设施的结构复杂性。研究揭示了独特的症状,如意外的执行序列和被忽略的用户配置,这些症状专属于自主编排。进一步识别了代理特定的根本原因,包括模型相关故障、认知上下文管理失误和编排故障。统计分析揭示了这些bug维度在不同框架间的一致性和显著关联。最后,我们的自动化模式挖掘识别了频繁的bug触发模式(如模型后端-ID组合),并展示了其在不同框架设计中的可转移性。本文发现有助于跨平台测试,提高代理系统的可靠性。

英文摘要:

Modern agentic frameworks such as CrewAI and AutoGen have evolved into complex, autonomous multi-agent systems, introducing reliability challenges that go beyond earlier pipeline-based LLM libraries. However, existing empirical studies focus on earlier LLM libraries or task-level bugs, leaving the unique complexities of these agentic frameworks unexplored. We present a comprehensive study of 409 fixed bugs across five representative agentic frameworks, proposing a five-layer architectural abstraction. Our taxonomy identifies previously unreported symptom categories---Unexpected Execution Sequence, User Configuration Ignored, and Incomplete/Incorrect Trace---and isolates agent-specific root causes including Model-Related Fault, Cognitive Context Mismanagement, and Orchestration Fault. Notably, the model integration layer is the most bug-prone yet receives disproportionately low test inclusion rate during bug fixing (47%), revealing a critical validation gap. Despite varying design paradigms, bug symptoms, root causes, and bug-prone components show substantial cross-framework consistency (JS similarity 0.62--0.88). Finally, we present the first systematic study of bug-triggering conditions, identifying error-prone factor combinations across element configurations, input patterns, and operations, and demonstrate their transferability across frameworks, providing a foundation for test oracle design and cross-framework benchmark.

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

↑