paper-with-me

홈 › Papers

LocAgent: Graph-Guided LLM Agents for Code Localization

2025-03-12 · Zhaoling Chen, Xiangru Tang, Gangda Deng, Fang Wu, Jialong Wu, Zhiwei Jiang, Viktor Prasanna, Arman Cohan, Xingyao Wang

Code localization--identifying precisely where in a codebase changes need to be made--is a fundamental yet challenging task in software maintenance. Existing approaches struggle to efficiently navigate complex codebases when identifying relevant code sections. The challenge lies in bridging natural language problem descriptions with the appropriate code elements, often requiring reasoning across hierarchical structures and multiple dependencies. We introduce LocAgent, a framework that addresses code localization through graph-based representation. By parsing codebases into directed heterogeneous graphs, LocAgent creates a lightweight representation that captures code structures (files, classes, functions) and their dependencies (imports, invocations, inheritance), enabling LLM agents to effectively search and locate relevant entities through powerful multi-hop reasoning. Experimental results on real-world benchmarks demonstrate that our approach significantly enhances accuracy in code localization. Notably, our method with the fine-tuned Qwen-2.5-Coder-Instruct-32B model achieves comparable results to SOTA proprietary models at greatly reduced cost (approximately 86% reduction), reaching up to 92.7% accuracy on file-level localization while improving downstream GitHub issue resolution success rates by 12% for multiple attempts (Pass@10). Our code is available at https://github.com/gersteinlab/LocAgent.

📄 PDF Abstract BibTeX arXiv:2503.09089

Code (1)

gersteinlab/locagent 공식 구현

Tasks

GitHub issue resolutionNavigate

Similar Papers 제목 키워드 기반

Improving Code Localization with Repository Memory

2025-10-01 · Boshi Wang, Weijian Xu, Yunsheng Li, Mei Gao 외 arxiv

Code localization is a fundamental challenge in repository-level software engineering tasks such as bug fixing. While existing methods equip language agents with comprehensive tools/interfaces to fetch information from t…

HOLO: Homography-Guided Pose Estimator Network for Fine-Grained Visual Localization on SD Maps

2026-01-06 · Xuchang Zhong, Xu Cao, Jinke Feng, Hao Fang arxiv

Visual localization on standard-definition (SD) maps has emerged as a promising low-cost and scalable solution for autonomous driving. However, existing regression-based approaches often overlook inherent geometric prior…

Visual LocalizationAutonomous Driving

OrcaLoca: An LLM Agent Framework for Software Issue Localization

2025-02-01 · Zhongming Yu, Hejia Zhang, Yujie Zhao, Hanxian Huang 외

Recent developments in Large Language Model (LLM) agents are revolutionizing Autonomous Software Engineering (ASE), enabling automated coding, problem fixes, and feature improvements. However, localization -- precisely i…

Code SearchLanguage ModelingLanguage ModellingLarge Language Model+1

LARGER: Lexically Anchored Repository Graph Exploration and Retrieval

2026-05-08 · Yuntong Hu, Tongli Su, Liang Zhao, Bowen Zhu 외 arxiv

Repository-level coding agents must first localize the files and symbols relevant to a task; failures at this stage can cascade across downstream objectives ranging from patch generation to test writing and codebase ques…

Question Answering

WaveGraphNet: Physics-Consistent Guided-Wave Damage Localization through Coupled Inverse-Forward Graph Learning

2026-05-19 · Vinay Sharma, Aditya Bharade, Olga Fink arxiv

Guided-wave structural health monitoring enables damage localization in composite plates using sparse networks of bonded piezoelectric transducers. However, inferring the spatial location of defects from pitch-catch meas…

Graph Learning