{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,18]],"date-time":"2026-10-18T04:40:13Z","timestamp":1792298413780,"version":"4.4.0"},"reference-count":56,"publisher":"MDPI AG","issue":"10","license":[{"start":{"date-parts":[[2026,10,1]],"date-time":"2026-10-01T00:00:00Z","timestamp":1790812800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Information"],"abstract":"<jats:p>Accurate fault localization plays a critical role in reducing software maintenance costs. Although LLMs exhibit strong code comprehension capabilities, their effectiveness remains limited when applied to large-scale software projects, primarily due to the lack of runtime execution information and insufficient retrieval precision. This paper proposes a novel fault localization approach that integrates the evolutionary testing tool EvoSuite with LLMs, enhanced by a mechanism termed TGAR-HB (taxonomy-guided adaptive retrieval with hierarchical backtracking). The framework first leverages EvoSuite to automatically generate unit tests, thereby capturing dynamic runtime context. It then introduces a confidence-driven hierarchical backtracking mechanism to adaptively refine the retrieval process. Specifically, the input fault information is categorized into three hierarchical levels\u2014code domain, functional module, and fault type\u2014enabling more precise matching with historical fault-localization experiences stored in a knowledge base. This design aims to reduce the risk of hallucination by grounding LLM reasoning in retrieved knowledge. Experimental results on the Defects4J benchmark demonstrate that the proposed method significantly outperforms traditional spectrum-based fault localization (SBFL) techniques such as Ochiai, as well as plain LLM and standard RAG baselines. Notably, the DeepSeek + TGAR-HB combination achieves the best performance, with a Top-1 accuracy of 34.73% and a Top-10 hit rate of 78.18%, while maintaining a low Mean Average Rank (MAR) of 3.13. Furthermore, ablation studies confirm the effectiveness of the TGAR-HB framework for code retrieval. Overall, this work presents a new approach for automated software debugging by synergistically combining dynamic testing with LLM-based semantic reasoning.<\/jats:p>","DOI":"10.3390\/info17100960","type":"journal-article","created":{"date-parts":[[2026,10,1]],"date-time":"2026-10-01T10:25:44Z","timestamp":1790850344000},"page":"960","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["TGAR-HB: A Taxonomy-Guided Retrieval Framework for Java Fault Localization via Evolutionary Testing and LLMs"],"prefix":"10.3390","volume":"17","author":[{"given":"Fei","family":"Xu","sequence":"first","affiliation":[{"name":"Wuhan Digital Engineering Institute, No. 709 Zanglong Avenue, Donghu New Technology Development Zone, Jiangxia District, Wuhan 430205, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Chenhan","family":"Wu","sequence":"additional","affiliation":[{"name":"Wuhan Digital Engineering Institute, No. 709 Zanglong Avenue, Donghu New Technology Development Zone, Jiangxia District, Wuhan 430205, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Rui","family":"Xu","sequence":"additional","affiliation":[{"name":"Wuhan Digital Engineering Institute, No. 709 Zanglong Avenue, Donghu New Technology Development Zone, Jiangxia District, Wuhan 430205, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2026,10,1]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"707","DOI":"10.1109\/TSE.2016.2521368","article-title":"A survey on software fault localization","volume":"42","author":"Wong","year":"2016","journal-title":"IEEE Trans. Softw. Eng."},{"key":"ref_2","doi-asserted-by":"crossref","unstructured":"Pearson, S., Campos, J., Just, R., Fraser, G., Abreu, R., Ernst, M.D., Pang, D., and Keller, B. (2017). Evaluating and improving fault localization. Proceedings of the 39th International Conference on Software Engineering (ICSE), Buenos Aires, Argentina, 20\u201328 May 2017, IEEE.","DOI":"10.1109\/ICSE.2017.62"},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Parnin, C., and Orso, A. (2011). Are automated debugging techniques actually helping programmers?. Proceedings of the 2011 International Symposium on Software Testing and Analysis (ISSTA), Toronto, ON, Canada, 17\u201321 July 2011, ACM.","DOI":"10.1145\/2001420.2001445"},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"222","DOI":"10.1145\/3787202","article-title":"Survey on Learning-based Dynamic Fault Localization: From Traditional Machine Learning to Large Language Models","volume":"58","author":"Liu","year":"2026","journal-title":"ACM Comput. Surv."},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Fraser, G., and Arcuri, A. (2011). EvoSuite: Automatic test suite generation for object-oriented software. Proceedings of the 19th ACM SIGSOFT Symposium and the 13th European Conference on Foundations of Software Engineering (ESEC\/FSE), Szeged, Hungary, 5\u20139 September 2011, ACM.","DOI":"10.1145\/2025113.2025179"},{"key":"ref_6","doi-asserted-by":"crossref","unstructured":"Galindo-Gutierrez, G., Sandoval Alcocer, J.P., Jimenez-Fuentes, N., Bergel, A., and Fraser, G. (2025). Increasing the effectiveness of automatically generated tests by improving class observability. Proceedings of the 2025 IEEE\/ACM 47th International Conference on Software Engineering (ICSE), Ottawa, ON, Canada, 26 April\u20136 May 2025, IEEE.","DOI":"10.1109\/ICSE55347.2025.00156"},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Plein, L., Ou\u00e9draogo, W.C., Klein, J., and Bissyand\u00e9, T.F. (2024). Automatic generation of test cases based on bug reports: A feasibility study with large language models. Proceedings of the 2024 IEEE\/ACM 46th International Conference on Software Engineering: Companion Proceedings (ICSE-Companion), Lisbon, Portugal, 14\u201320 April 2024, ACM.","DOI":"10.1145\/3639478.3643119"},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Liu, Y., Wang, X., Liu, H., Huang, R., and Wu, Y. (2025). Empirical evaluation of LLMs for automated program fault localisation. Proceedings of the 2025 25th International Conference on Software Quality, Reliability, and Security Companion (QRS-C), Hangzhou, China, 16\u201320 July 2025, IEEE.","DOI":"10.1109\/QRS-C65679.2025.00063"},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"852","DOI":"10.1109\/TKDE.2017.2782697","article-title":"Diagnosing and minimizing semantic drift in iterative bootstrapping extraction","volume":"30","author":"Li","year":"2018","journal-title":"IEEE Trans. Knowl. Data Eng."},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"30","DOI":"10.1007\/s11219-025-09728-1","article-title":"ReAPR: Automatic program repair via retrieval-augmented large language models","volume":"33","author":"Liu","year":"2025","journal-title":"Softw. Qual. J."},{"key":"ref_11","doi-asserted-by":"crossref","unstructured":"Zhou, J., Zhang, H., and Lo, D. (2012). Where should the bugs be fixed? More accurate information retrieval-based bug localization based on bug reports. Proceedings of the 2012 34th International Conference on Software Engineering (ICSE), Zurich, Switzerland, 2\u20139 June 2012, IEEE.","DOI":"10.1109\/ICSE.2012.6227210"},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Saha, R.K., Lease, M., Khurshid, S., and Perry, D.E. (2013). Improving bug localization using structured information retrieval. Proceedings of the 2013 28th IEEE\/ACM International Conference on Automated Software Engineering (ASE), Silicon Valley, CA, USA, 11\u201315 November 2013, IEEE.","DOI":"10.1109\/ASE.2013.6693093"},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"921","DOI":"10.1002\/smr.1801","article-title":"AmaLgam+: Composing rich information sources for accurate bug localization","volume":"28","author":"Wang","year":"2016","journal-title":"J. Softw. Evol. Process."},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"Akbar, S.A., and Kak, A.C. (2020). A large-scale comparative evaluation of IR-based tools for bug localization. Proceedings of the 17th International Conference on Mining Software Repositories (MSR), Seoul, Republic of Korea, 29\u201330 June 2020, ACM.","DOI":"10.1145\/3379597.3387474"},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Xiao, Y.J., Gong, W., Huang, J., Hu, R., Li, H., Jie, A., and Yang, B. (2026). Large Language Models for Fault Localization: An Empirical Study. Int. J. Softw. Eng. Knowl. Eng.","DOI":"10.1142\/S021819402650052X"},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Galeotti, J.P., Fraser, G., and Arcuri, A. (2013). Improving search-based test suite generation with dynamic symbolic execution. Proceedings of the 24th IEEE International Symposium on Software Reliability Engineering (ISSRE), Pasadena, CA, USA, 4\u20137 November 2013, IEEE.","DOI":"10.1109\/ISSRE.2013.6698889"},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"275","DOI":"10.1016\/bs.adcom.2018.03.015","article-title":"Mutation testing advances: An analysis and survey","volume":"Volume 112","author":"Papadakis","year":"2019","journal-title":"Advances in Computers"},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Shamshiri, S., Just, R., Rojas, J.M., Fraser, G., McMinn, P., and Arcuri, A. (2015). Do automatically generated unit tests find real faults? An empirical study of effectiveness and challenges. Proceedings of the 30th IEEE\/ACM International Conference on Automated Software Engineering (ASE), Lincoln, NE, USA, 9\u201313 November 2015, IEEE.","DOI":"10.1109\/ASE.2015.86"},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"85","DOI":"10.1007\/s10664-025-10635-z","article-title":"Enriching automatic test case generation by extracting relevant test inputs from bug reports","volume":"30","author":"Plein","year":"2025","journal-title":"Empir. Softw. Eng."},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Xia, C.S., Wei, Y., and Zhang, L. (2023). Automated program repair in the era of large pre-trained language models. Proceedings of the 2023 IEEE\/ACM 45th International Conference on Software Engineering (ICSE), Melbourne, Australia, 14\u201320 May 2023, IEEE.","DOI":"10.1109\/ICSE48619.2023.00129"},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Kang, S., Yoon, J., and Yoo, S. (2023). Large language models are few-shot testers: Exploring LLM-based general bug reproduction. Proceedings of the 2023 IEEE\/ACM 45th International Conference on Software Engineering (ICSE), Melbourne, Australia, 14\u201320 May 2023, IEEE.","DOI":"10.1109\/ICSE48619.2023.00194"},{"key":"ref_22","unstructured":"Subramanian, V.N. (2024). BugLLM: Explainable Bug Localization Through LLMs. [Master\u2019s Thesis, University of Waterloo]."},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Haroon, S., Khan, A.F., Humayun, A., Gill, W., Amjad, A.H., Butt, A.R., Khan, M.T., and Gulzar, M.A. (2025). Assessing the impact of code changes on the fault localizability of large language models. arXiv.","DOI":"10.1109\/ICST69053.2026.00045"},{"key":"ref_24","doi-asserted-by":"crossref","first-page":"26","DOI":"10.1007\/s10515-025-00549-x","article-title":"Assessing the effectiveness of recent closed-source large language models in fault localization and automated program repair","volume":"33","author":"Wang","year":"2026","journal-title":"Autom. Softw. Eng."},{"key":"ref_25","first-page":"9459","article-title":"Retrieval-augmented generation for knowledge-intensive NLP tasks","volume":"Volume 33","author":"Lewis","year":"2020","journal-title":"Advances in Neural Information Processing Systems (NeurIPS)"},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Vinayan Kozhipuram, A., Shailendra, S., and Kadel, R. (2025). Retrieval-Augmented Generation vs. Baseline LLMs: A Multi-Metric Evaluation for Knowledge-Intensive Content. Information, 16.","DOI":"10.3390\/info16090766"},{"key":"ref_27","unstructured":"Gao, Y., Xiong, Y., Gao, X., Jia, K., Pan, J., Bi, Y., Dai, Y., Sun, J., Wang, M., and Wang, H. (2023). Retrieval-augmented generation for large language models: A survey. arXiv."},{"key":"ref_28","unstructured":"Nicoletti, S., and Ciancarini, P. (2025). Using LLMs and Essence to support software practice adoption. arXiv."},{"key":"ref_29","unstructured":"Muehlburger, H., and Wotawa, F. (2024). FLEX: Fault localization and explanation using open-source large language models in powertrain systems. Proceedings of the 35th International Conference on Principles of Diagnosis and Resilient Systems (DX 2024), Vienna, Austria, 4\u20137 November 2024, Schloss Dagstuhl\u2013Leibniz-Zentrum f\u00fcr Informatik."},{"key":"ref_30","unstructured":"Shi, X., Li, Z., and Chen, A.R. (2025). Enhancing LLM-based fault localization with a functionality-aware retrieval-augmented generation framework. arXiv."},{"key":"ref_31","doi-asserted-by":"crossref","unstructured":"Hlava, M.M.K. (2015). The Taxobook: Applications, Implementation, and Integration in Search (Part 3). Synthesis Lectures on Information Concepts, Retrieval, and Services, Springer International Publishing.","DOI":"10.1007\/978-3-031-02290-6"},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"296","DOI":"10.1145\/3734217","article-title":"When deep learning meets information retrieval-based bug localization: A survey","volume":"57","author":"Niu","year":"2025","journal-title":"ACM Comput Surv."},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"112741","DOI":"10.1016\/j.jss.2025.112741","article-title":"HiFlaky: Hierarchy-aware flakiness classification","volume":"234","author":"Li","year":"2026","journal-title":"J. Syst. Softw."},{"key":"ref_34","doi-asserted-by":"crossref","unstructured":"Binkhonain, M., and Zhao, L. (2023). A machine learning approach for hierarchical classification of software requirements. arXiv.","DOI":"10.1016\/j.mlwa.2023.100457"},{"key":"ref_35","doi-asserted-by":"crossref","first-page":"112588","DOI":"10.1016\/j.jss.2025.112588","article-title":"Hierarchical multi-label classification for concrete defects: An industrial case study at Vermeg","volume":"231","author":"Nour","year":"2026","journal-title":"J. Syst. Softw."},{"key":"ref_36","doi-asserted-by":"crossref","unstructured":"Du, B., Kang, X., Xu, H., Wu, Y., and Liu, Y. (2025). Leveraging retrieval augmented generation to enhance LLM-based fault localization for novice programs. Proceedings of the 2025 25th International Conference on Software Quality, Reliability and Security (QRS), Hangzhou, China, 16\u201320 July 2025, IEEE.","DOI":"10.1109\/QRS65678.2025.00016"},{"key":"ref_37","doi-asserted-by":"crossref","first-page":"25","DOI":"10.1613\/jair.1","article-title":"Dynamic Backtracking","volume":"1","author":"Ginsberg","year":"1993","journal-title":"J. Artif. Intell. Res."},{"key":"ref_38","doi-asserted-by":"crossref","first-page":"147","DOI":"10.1016\/S0004-3702(02)00120-0","article-title":"Backjump-based backtracking for constraint satisfaction problems","volume":"136","author":"Dechter","year":"2002","journal-title":"Artif. Intell."},{"key":"ref_39","doi-asserted-by":"crossref","unstructured":"Yao, S., Yu, D., Zhao, J., Shafran, I., Griffiths, T.L., Cao, Y., and Narasimhan, K. (2023). Tree of Thoughts: Deliberate Problem Solving with Large Language Models. Advances in Neural Information Processing Systems (NeurIPS), Curran Associates, Inc.","DOI":"10.52202\/075280-0517"},{"key":"ref_40","doi-asserted-by":"crossref","unstructured":"Tyen, G., Mansoor, H., C\u0103rbune, V., Chen, P., and Mak, T. (2024). LLMs cannot find reasoning errors, but can correct them given the error location. Findings of the Association for Computational Linguistics: ACL 2024, Association for Computational Linguistics.","DOI":"10.18653\/v1\/2024.findings-acl.826"},{"key":"ref_41","unstructured":"Feng, H., Yao, Z., Zheng, J., and Ma, Q. (2025, January 24\u201328). Training Large Language Models for Retrieval-Augmented Question Answering through Backtracking Correction. Proceedings of the Thirteenth International Conference on Learning Representations (ICLR), Singapore."},{"key":"ref_42","doi-asserted-by":"crossref","first-page":"31","DOI":"10.1007\/s10618-010-0175-9","article-title":"A survey of hierarchical classification across different application domains","volume":"22","author":"Silla","year":"2011","journal-title":"Data Min. Knowl. Discov."},{"key":"ref_43","doi-asserted-by":"crossref","first-page":"2348","DOI":"10.1109\/TLA.2016.7530432","article-title":"A taxonomy-based approach for fault localization in service-oriented applications","volume":"14","author":"Scott","year":"2016","journal-title":"IEEE Lat. Am. Trans."},{"key":"ref_44","doi-asserted-by":"crossref","unstructured":"Fan, A., Gokkaya, B., Harman, M., Lyubarskiy, M., Sengupta, S., Yoo, S., and Zhang, J.M. (2023). Large language models for software engineering: Survey and open problems. Proceedings of the 45th IEEE\/ACM International Conference on Software Engineering (ICSE)\u2014Software Engineering in Practice, Melbourne, Australia, 14\u201320 May 2023, ACM.","DOI":"10.1109\/ICSE-FoSE59343.2023.00008"},{"key":"ref_45","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1111\/exsy.12047","article-title":"Architecture-driven assistance for fault-localization tasks","volume":"32","author":"Soria","year":"2015","journal-title":"Expert Syst."},{"key":"ref_46","doi-asserted-by":"crossref","unstructured":"Li, H., and Wang, Y. (2026). Reliability of LLM inference engines from a static perspective: Root cause analysis and repair suggestion via natural language reports. Big Data Cogn. Comput., 10.","DOI":"10.3390\/bdcc10020060"},{"key":"ref_47","doi-asserted-by":"crossref","unstructured":"Pan, T., Liu, P., and Li, Y. (2025). Review of Large Language Model-Based Software Fault Localization Techniques. 2025 12th International Conference on Dependable Systems and Their Applications (DSA), IEEE.","DOI":"10.1109\/DSA66321.2025.00021"},{"key":"ref_48","doi-asserted-by":"crossref","unstructured":"Just, R., Ernst, M.D., and Fraser, G. (2014). Defects4J: A database of existing faults to enable controlled testing studies for Java programs. Proceedings of the 2014 International Symposium on Software Testing and Analysis (ISSTA), San Jose, CA, USA, 21\u201325 July 2014, ACM.","DOI":"10.1145\/2610384.2628055"},{"key":"ref_49","doi-asserted-by":"crossref","unstructured":"Lee, J.Y., Kang, S., Yoon, J., and Yoo, S. (2024). The GitHub recent bugs dataset for evaluating LLM-based debugging applications. Proceedings of the 2024 IEEE Conference on Software Testing, Verification and Validation (ICST), Toronto, ON, Canada, 27\u201331 May 2024, IEEE.","DOI":"10.1109\/ICST60714.2024.00049"},{"key":"ref_50","doi-asserted-by":"crossref","unstructured":"Zubkova, H., Park, J.H., and Lee, S.W. (2025). SUGAR: Leveraging contextual confidence for smarter retrieval. Proceedings of the ICASSP 2025\u20142025 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Hyderabad, India, 6\u201311 April 2025, IEEE.","DOI":"10.1109\/ICASSP49660.2025.10890064"},{"key":"ref_51","unstructured":"OpenAI (2025, December 20). Introducing GPT-4.1 in the API. Available online: https:\/\/openai.com\/index\/gpt-4-1\/."},{"key":"ref_52","unstructured":"DeepSeek-AI, Liu, A., Feng, B., Xue, B., Wang, B., Wu, B., Lu, C., Zhao, C., Deng, C., and Zhang, C. (2024). DeepSeek-V3 Technical Report. arXiv."},{"key":"ref_53","unstructured":"He, J., Bai, R.H., Williamson, S., Pan, J.Z., Jaitly, N., and Zhang, Y. (2025). CLaRa: Bridging retrieval and generation with continuous latent reasoning. arXiv."},{"key":"ref_54","unstructured":"Szatm\u00e1ri, A., Sarhan, Q.I., Soha, P.A., Balogh, G., and Besz\u00e9des, \u00c1. (2024). On the integration of spectrum-based fault localization tools into IDEs. Proceedings of the 1st ACM\/IEEE Workshop on Integrated Development Environments (IDE 2024), ACM."},{"key":"ref_55","doi-asserted-by":"crossref","unstructured":"Treude, C., Barzilay, O., and Storey, M.A. (2011). How do programmers ask and answer questions on the web?: NIER track. Proceedings of the 2011 33rd International Conference on Software Engineering (ICSE), Honolulu, HI, USA, 21\u201328 May 2011, ACM.","DOI":"10.1145\/1985793.1985907"},{"key":"ref_56","doi-asserted-by":"crossref","unstructured":"Kalliamvakou, E., Gousios, G., Blincoe, K., Singer, L., German, D.M., and Damian, D. (2014). The promises and perils of mining GitHub. Proceedings of the 11th Working Conference on Mining Software Repositories (MSR), Hyderabad, India, 31 May\u20131 June 2014, ACM.","DOI":"10.1145\/2597073.2597074"}],"container-title":["Information"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2078-2489\/17\/10\/960\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,10,18]],"date-time":"2026-10-18T04:10:23Z","timestamp":1792296623000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2078-2489\/17\/10\/960"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,10,1]]},"references-count":56,"journal-issue":{"issue":"10","published-online":{"date-parts":[[2026,10]]}},"alternative-id":["info17100960"],"URL":"https:\/\/doi.org\/10.3390\/info17100960","relation":{},"ISSN":["2078-2489"],"issn-type":[{"value":"2078-2489","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,10,1]]}}}