ArXiv TLDR

GALA: Multimodal Graph Alignment for Bug Localization in Automated Program Repair

🐦 Tweet
2604.08089

Zhuoyao Liu, Zhengran Zeng, Shu-Dong Huang, Yang Liu, Shikun Zhang + 1 more

cs.SE

TLDR

GALA uses multimodal graph alignment to precisely localize bugs reported with GUI screenshots for automated program repair, outperforming text-only methods.

Key contributions

  • Introduces GALA, a framework for multimodal bug localization in Automated Program Repair (APR).
  • Constructs an Image UI Graph and performs hierarchical alignment (file-level, function-level) with code.
  • Leverages structural reasoning and cross-modal consistency for precise visual-to-code mapping.
  • Achieves state-of-the-art performance on the SWE-bench Multimodal benchmark.

Why it matters

This paper addresses a critical limitation of LLM-based APR by enabling effective bug localization in multimodal scenarios involving GUI screenshots. By introducing a novel graph alignment framework, it significantly improves the precision of visual-to-code mapping. This advancement is crucial for developing more robust and versatile automated program repair systems.

Original Abstract

Large Language Model (LLM)-based Automated Program Repair (APR) has shown strong potential on textual benchmarks, yet struggles in multimodal scenarios where bugs are reported with GUI screenshots. Existing methods typically convert images into plain text, which discards critical spatial relationships and causes a severe disconnect between visual observations and code components, leading localization to degrade into imprecise keyword matching. To bridge this gap, we propose GALA (Graph Alignment for Localization in APR), a framework that shifts multimodal APR from implicit semantic guessing to explicit structural reasoning. GALA operates in four stages: it first constructs an Image UI Graph to capture visual elements and their structural relationships; then performs file-level alignment by cross-referencing this UI graph with repository-level structures (e.g., file references) to locate candidate files; next conducts function-level alignment by reasoning over fine-grained code dependencies (e.g., call graphs) to precisely ground visual elements to corresponding code components; and finally performs patch generation within the grounded code context based on the aligned files and functions. By systematically enforcing both semantic and relational consistency across modalities, GALA establishes a highly accurate visual-to-code mapping. Evaluations on the SWE-bench Multimodal benchmark demonstrate that GALA achieves state-of-the-art performance, highlighting the effectiveness of hierarchical structural alignment.

📬 Weekly AI Paper Digest

Get the top 10 AI/ML arXiv papers from the week — summarized, scored, and delivered to your inbox every Monday.