Analysis of the Effectiveness of Large Language Model Feature in Source Code Defect Detection

The defects in software source code threaten the usage of software. With the increase in the quantity and complexity of software, traditional methods of source code defect detection are unable to meet the needs of software security testing, leading to the emergence of machine learning-based source code defect detection methods. The effectiveness of machine learning-based method is closely related to the input features. This paper investigates the impact of using outputs from large language model as input features for machine learning models on the task of source code defect detection. Experimental results demonstrate that adding feature from large language model to machine learning models can enhance the effectiveness of source code defect detection. Furthermore, among different strategies for constructing prompt words, few-shot prompting shows relatively better performance.

Authors

Institutions

Publication Details

Published
2024-09-20
DOI
https://doi.org/10.1109/aicit62434.2024.10730232
Primary Topic
Advanced Decision-Making Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Analysis of the Effectiveness of Large Language Model Feature in Source Code Defect Detection

Yun Chen, Wei Ping Hu, Tao He, Meini Yang
Advanced Decision-Making Techniques
article

Analysis of the Effectiveness of Large Language Model Feature in Source Code Defect Detection

Yun Chen, Wei Ping Hu, Tao He, Meini Yang
article en

Abstract

The defects in software source code threaten the usage of software. With the increase in the quantity and complexity of software, traditional methods of source code defect detection are unable to meet the needs of software security testing, leading to the emergence of machine learning-based source code defect detection methods. The effectiveness of machine learning-based method is closely related to the input features. This paper investigates the impact of using outputs from large language model as input features for machine learning models on the task of source code defect detection. Experimental results demonstrate that adding feature from large language model to machine learning models can enhance the effectiveness of source code defect detection. Furthermore, among different strategies for constructing prompt words, few-shot prompting shows relatively better performance.

Naval University of Engineering (CN)
Openalex Percentile: Top 70%
Advanced Decision-Making Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.