Yayın: Repository-Level Code Understanding by LLMs via Hierarchical Summarization: Improving Code Search and Bug Localization
| dc.contributor.author | Oskooei, A. R. | |
| dc.contributor.author | Yukcu, Selcan | |
| dc.contributor.author | Bozoglan, Mehmet Cevheri | |
| dc.contributor.author | Aktas, Mehmet S. | |
| dc.date.accessioned | 2026-06-27T15:23:37Z | |
| dc.date.issued | 2026 | |
| dc.description.abstract | Bug localization and semantic code search within large software repositories is a significant and time-consuming challenge for developers, particularly when dealing with bug reports from end-users who lack technical expertise. Traditional similarity-based code search methods struggle with the inherent domain and vocabulary mismatch between end-user reports and codebase semantics, while directly applying Large Language Models (LLMs) is hampered by their limited context windows and lack of repository-level understanding. To address these limitations, this paper introduces a novel, structure-aware methodology for creating repository-aware LLMs using hierarchical summarization. Our approach comprises a pre-processing phase that constructs an abstract repository tree, creates a context-aware LLM primed with project knowledge, and generates hierarchical summaries at project, directory, and file levels. The inference phase employs a top-down search strategy, guiding the LLM to progressively narrow down the search space from directory-level to file-level, effectively localizing bug-relevant code. This method mitigates the context window bottleneck and leverages LLMs' semantic understanding to overcome domain gap issues. Evaluated on a real-world dataset of Jira issues from a large-scale industrial project, our approach significantly outperforms both Flat Retrieval baselines and state-of-the-art LLM + Retrieval-Augmented Generation (RAG) systems, achieving a Pass@10 of 0.89 and Recall@10 of 0.33. The results demonstrate the efficacy of hierarchical summarization in enabling scalable, task-agnostic, and structure-aware repository-level code comprehension for improved bug localization and code search, particularly in scenarios involving non-technical end-user bug reports. | en |
| dc.description.sponsorship | Scientific and Technological Research Council of Turkey (TUBTAK) [3240105] | |
| dc.description.uri | https://doi.org/10.1007/978-3-031-97576-9_6 | |
| dc.identifier.doi | 10.1007/978-3-031-97576-9_6 | |
| dc.identifier.eissn | 1611-3349 | |
| dc.identifier.endpage | 105 | |
| dc.identifier.isbn | 978-3-031-97575-2; 978-3-031-97576-9 | |
| dc.identifier.issn | 0302-9743 | |
| dc.identifier.startpage | 88 | |
| dc.identifier.uri | https://hdl.handle.net/20.500.14981/70440 | |
| dc.identifier.volume | 15886 | |
| dc.identifier.wos | 001563938300006 | |
| dc.language.iso | eng | |
| dc.publisher | SPRINGER INTERNATIONAL PUBLISHING AG | |
| dc.relation.conference | 25th International Conference on Computational Science and Applications-ICCSA-Annual | |
| dc.relation.ispartof | COMPUTATIONAL SCIENCE AND ITS APPLICATIONS-ICCSA 2025 WORKSHOPS, PT I | |
| dc.subject | Software Engineering | |
| dc.subject | Large Language Models (LLMs) | |
| dc.subject | Semantic Code Search | |
| dc.subject | Automatic Program Repair | |
| dc.subject | Defect Detection | |
| dc.subject | Applied Machine Learning | |
| dc.subject | SERVICES | |
| dc.subject | Computer Science | |
| dc.title | Repository-Level Code Understanding by LLMs via Hierarchical Summarization: Improving Code Search and Bug Localization | |
| dc.type | Proceedings Paper | |
| dspace.entity.type | Publication | |
| local.import.source | WOS |