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

视觉即修复:基于多模态大语言模型的视觉软件问题修复

Seeing is Fixing: Cross-Modal Reasoning with Multimodal LLMs for Visual Software Issue Fixing

Technical University of Munich(慕尼黑工业大学);Nanyang Technological University(南洋理工大学);Singapore Management University(新加坡管理大学)

Kai Huang, Jian Zhang, Xiaofei Xie, Chunyang Chen

AI总结:

本文提出GUIRepair方法,通过多模态推理解决视觉软件问题,结合图像到代码和代码到图像的组件提升故障理解和修复验证。

摘要:

基于大语言模型(LLM)的自动程序修复(APR)技术在解决真实世界GitHub问题任务中表现出有前景的结果。现有APR系统主要在单模态设置(例如SWE-bench)中进行评估。然而,这些自主系统在处理多模态问题场景(例如SWE-bench M)时面临困难,因为它们在解释和利用视觉信息方面存在局限。在多模态场景中,LLM需要依赖图形用户界面(GUI)中的视觉信息来理解故障并生成修复。为了弥合这一差距,我们提出了GUIRepair,一种用于解决多模态问题场景的跨模态推理方法,通过理解和捕捉视觉信息。具体而言,GUIRepair集成了两个关键组件,Image2Code和Code2Image,以增强故障理解和修复验证。Image2Code根据问题报告提取相关的项目文档,然后应用该领域知识生成负责视觉症状的重现代码,有效地将GUI图像转换为可执行上下文以更好地理解故障。Code2Image通过重现的代码回放视觉问题场景,并捕获修复程序的GUI渲染以评估修复是否在视觉上解决了问题,为修复验证提供反馈。我们评估了GUIRepair在SWE-bench M上的表现,该方法显示出显著的有效性。当使用GPT-4o作为基础模型时,GUIRepair解决了157个实例,优于最佳开源基线26个实例。此外,当使用o4-mini作为基础模型时,GUIRepair可以实现甚至更好的结果,解决了175个实例,优于顶级商业系统22个实例。这强调了我们新视角的成功,即通过理解和捕捉视觉信息来解决多模态问题。

英文摘要:

Large language model-(LLM) based automated program repair (APR) techniques have shown promising results in resolving real-world GitHub issue tasks. Existing APR systems are primarily evaluated in unimodal settings (e.g., SWE-bench). However, these autonomous systems struggle to resolve multimodal problem scenarios (e.g., SWE-bench M) due to limitations in interpreting and leveraging visual information. In multimodal scenarios, LLMs need to rely on visual information in the graphical user interface (GUI) to understand bugs and generate fixes. To bridge this gap, we propose GUIRepair, a cross-modal reasoning approach for resolving multimodal issue scenarios by understanding and capturing visual information. Specifically, GUIRepair integrates two key components, Image2Code and Code2Image, to enhance fault comprehension and patch validation. Image2Code extracts relevant project documents based on the issue report, then applies this domain knowledge to generate the reproduced code responsible for the visual symptoms, effectively translating GUI images into executable context for better fault comprehension. Code2Image replays the visual issue scenario using the reproduced code and captures GUI renderings of the patched program to assess whether the fix visually resolves the issue, providing feedback for patch validation. We evaluate GUIRepair on SWE-bench M, and the approach demonstrates significant effectiveness. When utilizing GPT-4o as the base model, GUIRepair solves 157 instances, outperforming the best open-source baseline by 26 instances. Furthermore, when using o4-mini as the base model, GUIRepair can achieve even better results and solve 175 instances, outperforming the top commercial system by 22 instances. This emphasizes the success of our new perspective on incorporating cross-modal reasoning by understanding and capturing visual information to resolve multimodal issues.

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

↑