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

SVRepair: 结构化视觉推理用于自动化程序修复

SVRepair: Structured Visual Reasoning for Automated Program Repair

Ant Group(蚂蚁集团);Zhejiang Key Laboratory of Accessible Perception and Intelligent Systems(浙江可感知智能系统重点实验室)

Jincheng Wang, Liwei Luo, Xiaoxuan Tang, Jingxuan Xu, Sheng Zhou, Dajun Chen, Wei Jiang, Yong Li

AI总结:

SVRepair 通过结构化视觉表示框架,结合多模态信息提升程序修复的准确性与效率。

摘要:

大型语言模型(LLMs)近期在自动化程序修复(APR)中展示了强大的潜力,但大多数现有方法仍为单模态,未能利用视觉 artifacts 中丰富的诊断信号,如截图和控制流图。在实践中,许多错误报告通过视觉方式传达关键信息(例如布局破坏或缺失的组件),但直接使用此类密集的视觉输入往往会导致上下文丢失和噪声,使 MLLMs 难以将视觉观察准确地定位为故障并生成可执行的补丁。为弥合这一语义鸿沟,我们提出了 SVRepair,一种具有结构化视觉表示的多模态 APR 框架。SVRepair 首先微调一个视觉语言模型,即结构化视觉表示(SVR),将异构的视觉 artifacts 转换为统一的语义场景图,该图捕捉 GUI 元素及其结构关系(例如层次结构),为下游修复提供标准化、代码相关的上下文。基于该图,SVRepair 驱动一个编码代理来定位故障并合成补丁,并进一步引入一种迭代的视觉 artifacts 分割策略,逐步缩小输入到与错误相关的区域,以抑制无关的上下文并减少幻觉。在多个基准测试中的广泛实验表明,SVRepair 在多个基准测试中实现了最先进的性能:SVRepair 在 SWE-Bench M 上达到 36.47% 的准确率,在 MMCode 上达到 38.02% 的准确率,在 CodeVision 上达到 95.12% 的准确率,验证了 SVRepair 在多模态程序修复中的有效性。

英文摘要:

Large language models (LLMs) have recently been applied to Automated Program Repair (APR), yet most existing approaches remain unimodal and fail to use diagnostic signals contained in visual artifacts such as screenshots and control-flow graphs. In practice, many bug reports convey critical information visually (e.g., layout breakage or missing widgets), but directly using such dense visual inputs often causes context loss and noise, making it difficult for MLLMs to ground visual observations into precise fault localization and executable patches. To bridge this semantic gap, we propose \textbf{SVRepair}, a multimodal APR framework with Structured Visual Representation (SVR). SVRepair first fine-tunes a vision-language model, SVR, to uniformly transform heterogeneous visual artifacts into a \emph{semantic scene graph} that captures GUI elements and their structural relations (e.g., hierarchy), providing normalized, code-relevant context for downstream repair. Building on the graph, SVRepair drives a coding agent to localize faults and synthesize patches, and further introduces an iterative visual-artifact segmentation strategy that progressively narrows the input to bug-centered regions to suppress irrelevant context and reduce hallucinations. Across primary repository-level APR benchmarks, SVRepair resolves \textbf{186/517} SWE-Bench M instances (\textbf{35.98\%} over all instances; \textbf{36.47\%} over submitted runs) and \textbf{4/19} visual OmniGIRL instances (\textbf{21.05\%}). On supplementary structured multimodal code reasoning benchmarks, SVRepair reaches \textbf{38.02\%} on MMCode and \textbf{95.73\%} on CodeVision. Code is available at https://github.com/codefuse-ai/CodeFuse-SVR.

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

↑