EUVIMEDEUVIMED entdecken
Open Access · CC BY-NC-ND 4.0

iCoRe: An Iterative Correlation-Aware Retriever for Bug Reproduction Test Generation

Junyi Wang, Jialun Cao, Zhongxin Liu

Proceedings of the ACM on Software Engineering · 30.06.2026 · 3 (FSE) · 4231-4252

DOI: 10.1145/3808193 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Proceedings of the ACM on Software Engineering, online erschienen am 30.06.2026. Verfasst von Junyi Wang und 2 weiteren Autor:innen. Die Arbeit wurde bisher 3-mal zitiert (Crossref) und nennt 39 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY-NC-ND 4.0). Gefördert von: National Natural Science Foundation of China, Hong Kong SAR Research Grant Council.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Automatically generating bug reproduction tests (BRT) from issue descriptions is crucial for facilitating software maintenance. Large Language Model (LLM)-based approaches have shown great potential for this task. Their effectiveness heavily relies on retrieving high-quality context from the codebase. The retrieval phase of existing approaches relies on either traditional methods like BM25 or modern LLM-driven strategies. The LLM-based retrieval strategies typically involve equipping an LLM with tools to autonomously explore the code repository or having it select the most relevant files and code snippets from a provided list as context. However, these retrieval methods suffer from three key limitations: (1) They often employ a unified strategy for retrieving both source code and test cases, overlooking their distinct retrieval requirements. (2) They focus solely on semantic similarity, ignoring function call relationships that reflect behavioral relevance, which often leads to the retrieval of irrelevant context. (3) The retrieval lacks a feedback loop from the generation phase, preventing it from refining the context based on execution results. These limitations collectively result in low-quality context, thereby hindering the accuracy of bug reproduction. To address these challenges, we propose iCoRe, an iterative, correlation-aware context retrieval approach. iCoRe is explicitly designed to be aware of three key correlations: 1) the correlation between source code and test cases, which requires differentiated retrieval, 2) the correlation between textual semantics and function call structures for accurate relevance assessment, and 3) the correlation between the retrieval and generation phases, which enables iterative feedback and refinement. To evaluate iCoRe, we integrate it with an LLM-based BRT generator and conduct a comprehensive evaluation on the SWT-bench Lite and TDD-bench Verified benchmarks. Experimental results show that our method achieves a Fail-to-Pass rate of 42.0% and 52.8% respectively, representing significant 19.7%--31.7% relative improvements over existing retrieval methods.

Förderung

  • National Natural Science Foundation of China
  • Hong Kong SAR Research Grant Council

Zitieren

APA

Wang, J., Cao, J., & Liu, Z. (2026). iCoRe: An Iterative Correlation-Aware Retriever for Bug Reproduction Test Generation. Proceedings of the ACM on Software Engineering, 3(FSE), 4231-4252. https://doi.org/10.1145/3808193

Vancouver

Wang J, Cao J, Liu Z. iCoRe: An Iterative Correlation-Aware Retriever for Bug Reproduction Test Generation. Proceedings of the ACM on Software Engineering. 2026;3(FSE):4231-4252. doi:10.1145/3808193

BibTeX
@article{Wang2026,
  author = {Wang, Junyi and Cao, Jialun and Liu, Zhongxin},
  title = {iCoRe: An Iterative Correlation-Aware Retriever for Bug Reproduction Test Generation},
  journal = {Proceedings of the ACM on Software Engineering},
  year = {2026},
  volume = {3},
  number = {FSE},
  pages = {4231--4252},
  doi = {10.1145/3808193}
}
Kostenlos starten →