arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.02393cs.SEcs.AIcs.CL
收藏

以过程为中心的代理软件系统分析

Process-Centric Analysis of Agentic Software Systems

University of Illinois Urbana–Champaign(伊利诺伊大学厄巴纳-香槟分校);IBM Research(IBM研究院)

Shuyang Liu, Yang Chen, Rahul Krishna, Saurabh Sinha, Jatin Ganhotra, Reyhan Jabbarvand

AI总结:

本文提出Graphectory用于分析代理软件系统的时序和语义关系,通过自动分析4000条轨迹发现代理策略随问题难度和LLM变化,揭示代理行为的复杂性与效率问题。

摘要:

代理系统是现代软件系统:由编排模块组成,暴露接口,并部署在软件流水线中。与传统程序不同,其执行轨迹本质上是随机且适应性地变化的。此类系统的评估往往以结果为中心,这种狭隘的关注忽略了详细的洞察,未能解释代理如何推理、规划、行动或改变策略。受传统软件系统结构化表示为图的启发,我们引入Graphectory来系统编码此类系统的时序和语义关系。使用Graphectory,我们自动分析了两个主流代理编程工作流(SWE-agent和OpenHands)的4000条轨迹,使用四个核心大语言模型(LLMs)尝试解决SWE-bench问题。我们的自动化分析(在四分钟内完成)揭示了:(1)使用更丰富提示或更强LLM的代理表现出更复杂的Graphectory,反映了更深入的探索、更广泛的上下文收集和更彻底的验证;(2)代理策略随问题难度和底层LLM变化——对于解决的问题,策略通常遵循一致的本地化-修补-验证步骤,而对于未解决的问题,策略表现出混乱或回溯行为;(3)即使成功的代理系统也常显示低效过程。我们还实现了一种新的技术,用于实时构建和分析Graphectory和Langutory,以在代理执行期间检测轨迹问题。一旦检测到此类问题,该技术会向代理发送诊断信息,并在适用时回滚轨迹。实验表明,实时监控和干预在问题实例上将解决率提高6.9%-23.5%,同时显著缩短轨迹,且几乎无开销。

英文摘要:

Agentic systems are modern software systems: they consist of orchestrated modules, expose interfaces, and are deployed in software pipelines. Unlike conventional programs, their execution, i.e., trajectories, is inherently stochastic and adaptive to the problems they solve. Evaluation of such systems is often outcome-centric. This narrow focus overlooks detailed insights, failing to explain how agents reason, plan, act, or change their strategies. Inspired by the structured representation of conventional software systems as graphs, we introduce Graphectory to systematically encode the temporal and semantic relations in such systems. Using Graphectory, we automatically analyze 4000 trajectories of two dominant agentic programming workflows, SWE-agent and OpenHands, with four backbone Large Language Models (LLMs), attempting to resolve SWE-bench issues. Our automated analyses (completed within four minutes) reveal that: (1) agents using richer prompts or stronger LLMs exhibit more complex Graphectory, reflecting deeper exploration, broader context gathering, and more thorough validation; (2) agents' strategies vary with problem difficulty and the underlying LLM - for resolved issues, strategies often follow coherent localization-patching-validation steps, while unresolved ones exhibit chaotic or backtracking behaviors; and (3) even successful agentic systems often display inefficient processes. We also implement a novel technique for real-time construction and analysis of Graphectory and Langutory during agent execution to flag trajectory issues. Upon detecting such issues, the technique notifies the agent with a diagnostic message and, when applicable, rolls back the trajectory. Experiments show that online monitoring and interventions improve resolution rates by 6.9%-23.5% across models for problematic instances, while significantly shortening trajectories with near-zero overhead.

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

↑