arXiv:2606.22110cs.SEcs.AI2026-06被引 1

可视化大模型修复代码的思考过程,帮助开发者快速定位失败原因。

TraceView: Interactive Visualization of Agentic Program Repair Trajectories

论文配图:TraceView: Interactive Visualization of Agentic Program Repair Trajectories
图 1 · 摘自论文原文
  • 将代码修复过程拆解为思考-动作-结果三部分,构建可交互图谱
  • 支持多层级追踪,能发现重复、偏离任务等异常行为模式
  • 适合开发人员调试大模型自动修复系统,尤其在失败案例分析时

基于大语言模型的自动化程序修复(APR)代理在极少人工干预下生成补丁修复软件漏洞。这些代理常产生包含推理、工具调用和反馈的长轨迹,最终补丁结果仅显示成功或失败,无法揭示其决策路径或何时陷入循环、偏离目标。这使得修复失败难以诊断、复现与预防。为此,我们提出TraceView,一个用于标注与可视化APR系统修复轨迹的交互式工具。TraceView将原始及预标注的代理运行数据按思考(Thought)、动作(Action)、结果(Result)组织,支持语义关系标注与故障诊断,并以图形式呈现轨迹。同时提供关系过滤器、补丁结果概览、度量指标与节点级证据面板,帮助用户分析各步骤间推理、动作与反馈的关联。通过五名研究人员的问卷式用户研究评估,参与者表示TraceView使轨迹更易扫描,其由概览到细节的工作流有助于深入理解修复行为。源码已公开于https://github.com/SOAR-Lab/agent-traj-visualization,演示视频见https://youtu.be/9ZCh7Ifj2AQ。

原文摘要 · Abstract (English)

LLM-based automated program repair (APR) agents generate patches to fix software bugs with minimal human intervention. These agents often produce long trajectories of reasoning, tool use, and feedback to produce candidate patches. Final patch outcomes show whether a repair attempt succeeded or failed, but they do not show how the agent reached that outcome, or where the process became repetitive or misaligned with the task. This makes agentic repair failures difficult to diagnose, reproduce, and prevent. To help developers address these challenges, we present TraceView, an interactive tool for labeling and visualizing repair trajectories from APR systems. TraceView organizes raw and pre-labeled agentic runs with Thought, Action, and Result components to support semantic relation labeling and diagnosis, and renders the resulting trajectory as graph views. Furthermore, TraceView provides relation filters, patch outcome summaries, metrics, and node-level evidence panels to help users inspect how reasoning, actions, and feedback connect across the various steps of an agentic repair attempt. We evaluate TraceView with five researchers through a survey-based user study. Participants reported that TraceView made trajectories easier to scan and that its overview-to-detail workflow helped them better understand repair behavior. The TraceView source code is available at https://github.com/SOAR-Lab/agent-traj-visualization. A screencast of TraceView is available at https://youtu.be/9ZCh7Ifj2AQ.

程序修复LLM可视化交互分析

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。