Yayın:
Repository-Level Code Understanding by LLMs via Hierarchical Summarization: Improving Code Search and Bug Localization

dc.contributor.authorOskooei, A. R.
dc.contributor.authorYukcu, Selcan
dc.contributor.authorBozoglan, Mehmet Cevheri
dc.contributor.authorAktas, Mehmet S.
dc.date.accessioned2026-06-27T15:23:37Z
dc.date.issued2026
dc.description.abstractBug 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.sponsorshipScientific and Technological Research Council of Turkey (TUBTAK) [3240105]
dc.description.urihttps://doi.org/10.1007/978-3-031-97576-9_6
dc.identifier.doi10.1007/978-3-031-97576-9_6
dc.identifier.eissn1611-3349
dc.identifier.endpage105
dc.identifier.isbn978-3-031-97575-2; 978-3-031-97576-9
dc.identifier.issn0302-9743
dc.identifier.startpage88
dc.identifier.urihttps://hdl.handle.net/20.500.14981/70440
dc.identifier.volume15886
dc.identifier.wos001563938300006
dc.language.isoeng
dc.publisherSPRINGER INTERNATIONAL PUBLISHING AG
dc.relation.conference25th International Conference on Computational Science and Applications-ICCSA-Annual
dc.relation.ispartofCOMPUTATIONAL SCIENCE AND ITS APPLICATIONS-ICCSA 2025 WORKSHOPS, PT I
dc.subjectSoftware Engineering
dc.subjectLarge Language Models (LLMs)
dc.subjectSemantic Code Search
dc.subjectAutomatic Program Repair
dc.subjectDefect Detection
dc.subjectApplied Machine Learning
dc.subjectSERVICES
dc.subjectComputer Science
dc.titleRepository-Level Code Understanding by LLMs via Hierarchical Summarization: Improving Code Search and Bug Localization
dc.typeProceedings Paper
dspace.entity.typePublication
local.import.sourceWOS

Dosyalar

Koleksiyonlar