Software defect detection using large language models: a literature review

Read full text
Authors: Yu Chen, Yi Shen, Taiyan Wang, ShiWen Ou, Ruipeng Wang, Yuwei Li, Zulie Pan
Cited by: 1
References: 37

Abstract

Abstract As software systems grow in complexity, the importance of efficient defect detection escalates, becoming vital to maintain software quality. In recent years, artificial intelligence technology has boomed. In particular, with the proposal of Large Language Models (LLMs), researchers have found the huge potential of LLMs to enhance the performance of software defect detection. This review aims to elucidate the relationship between LLMs and software defect detection. We categorize and summarize existing research based on the distinct applications of LLMs in dynamic and static detection scenarios. Dynamic detection methods are categorized based on the different phases in which they employ LLMs, such as using them for test case generation, providing feedback guidance, and conducting output assessment. Static detection methods are classified according to whether they analyze the source code or the binary of the software under test. Furthermore, we investigate the prompt engineering and model fine-tuning strategies adopted within these studies. Finally, we summarize the emerging trend of integrating LLMs into software defect detection, identify challenges to be addressed and prospect for some potential research directions.

Fields of Study & Subjects

Software Engineering Research Software Testing and Debugging Techniques Advanced Malware Detection Techniques

Publication details

Journal / source
Frontiers of Computer Science
Publisher
Springer Science and Business Media LLC
Volume
20
Issue
6
Publication date
12 May 2026
Language
EN