arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.05941cs.SEcs.AI
收藏

代码代理故障的可解释性AI:将原始执行轨迹转化为可操作的见解

XAI for Coding Agent Failures: Transforming Raw Execution Traces into Actionable Insights

Independent Researcher(独立研究者);Islington College(伊斯林顿学院)

Arun Joshi

AI总结:

本文提出了一种基于XAI的方法,通过结构化解释和可视化技术,帮助开发者更高效地理解和修复代码代理的故障问题。

摘要:

基于大型语言模型(LLM)的代码代理在自动化软件开发任务中展现出潜力,但它们经常以难以让开发者理解和调试的方式失败。尽管通用目的LLM如GPT可以提供临时的失败解释,但原始执行轨迹即使对有经验的开发者来说也难以解读。我们提出了一种系统化的可解释性AI(XAI)方法,将原始代理执行轨迹转化为结构化、可由人解读的解释。我们的方法包含三个关键组成部分:(1)从分析真实代理失败中得出的领域特定失败分类法,(2)一个自动注释系统,该系统使用定义的注释方案对失败进行分类,(3)一个混合解释生成器,能够生成可视化执行流程、自然语言解释和可操作的建议。通过与20名参与者(10名技术人员,10名非技术人员)进行用户研究,我们证明了我们的方法使用户能够比原始执行轨迹快2.8倍识别故障的根本原因,并且能够以73%更高的准确性提出正确的修复建议。重要的是,我们的结构化方法优于随机最先进的模型解释,因为它提供了一致、领域特定的见解,并集成了可视化。我们的工作建立了一个系统化的代理故障分析框架,解决了软件开发工作流程中对可解释AI系统的关键需求。

英文摘要:

Large Language Model (LLM)-based coding agents show promise in automating software development tasks, yet they frequently fail in ways that are difficult for developers to understand and debug. While general-purpose LLMs like GPT can provide ad-hoc explanations of failures, raw execution traces remain challenging to interpret even for experienced developers. We present a systematic explainable AI (XAI) approach that transforms raw agent execution traces into structured, human-interpretable explanations. Our method consists of three key components: (1) a domain-specific failure taxonomy derived from analyzing real agent failures, (2) an automatic annotation system that classifies failures using defined annotation schema, (3) a hybrid explanation generator that produces visual execution flows, natural language explanations, and actionable recommendations. Through a user study with 20 participants (10 technical, 10 non-technical), we demonstrate that our approach enables users to identify failure root causes 2.8 times faster and propose correct fixes with 73% higher accuracy compared to raw execution traces. Importantly, our structured approach outperforms ad-hoc state of the art models explanations by providing consistent, domain-specific insights with integrated visualizations. Our work establishes a framework for systematic agent failure analysis, addressing the critical need for interpretable AI systems in software development workflows

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

↑