SVRepair: Structured Visual Reasoning for Automated Program Repair

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Tang, Xiaoxuan, Wang, Jincheng, Luo, Liwei, Xu, Jingxuan, Zhou, Sheng, Chen, Dajun, Jiang, Wei, Li, Yong
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910013366206464
author Tang, Xiaoxuan
Wang, Jincheng
Luo, Liwei
Xu, Jingxuan
Zhou, Sheng
Chen, Dajun
Jiang, Wei
Li, Yong
author_facet Tang, Xiaoxuan
Wang, Jincheng
Luo, Liwei
Xu, Jingxuan
Zhou, Sheng
Chen, Dajun
Jiang, Wei
Li, Yong
contents Large language models (LLMs) have recently shown strong potential for Automated Program Repair (APR), yet most existing approaches remain unimodal and fail to leverage the rich 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. SVRepair first fine-tunes a vision-language model, \textbf{Structured Visual Representation (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. Extensive experiments across multiple benchmarks demonstrate state-of-the-art performance: SVRepair achieves \textbf{36.47\%} accuracy on SWE-Bench M, \textbf{38.02\%} on MMCode, and \textbf{95.12\%} on CodeVision, validating the effectiveness of SVRepair for multimodal program repair.
format Preprint
id arxiv_https___arxiv_org_abs_2602_06090
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle SVRepair: Structured Visual Reasoning for Automated Program Repair
Tang, Xiaoxuan
Wang, Jincheng
Luo, Liwei
Xu, Jingxuan
Zhou, Sheng
Chen, Dajun
Jiang, Wei
Li, Yong
Software Engineering
Artificial Intelligence
Computer Vision and Pattern Recognition
Large language models (LLMs) have recently shown strong potential for Automated Program Repair (APR), yet most existing approaches remain unimodal and fail to leverage the rich 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. SVRepair first fine-tunes a vision-language model, \textbf{Structured Visual Representation (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. Extensive experiments across multiple benchmarks demonstrate state-of-the-art performance: SVRepair achieves \textbf{36.47\%} accuracy on SWE-Bench M, \textbf{38.02\%} on MMCode, and \textbf{95.12\%} on CodeVision, validating the effectiveness of SVRepair for multimodal program repair.
title SVRepair: Structured Visual Reasoning for Automated Program Repair
topic Software Engineering
Artificial Intelligence
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2602.06090