跳到主要导航 跳到搜索 跳到主要内容

A Study on C Code Defect Detection with Fine-Tuned Large Language Models

  • Yue Wang
  • , Xu Wang
  • , Hongwei Yu*
  • , Fei Gao
  • , Xueshi Liu
  • , Xiaoling Wang
  • *此作品的通讯作者
  • Beihang University
  • Zhongguancun Laboratory
  • Beijing Aerospace Automatic Control Institute

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

Large Language Models(LLMs) have demonstrated excellent capabilities in many areas of software engineering(SE), including code completion, code generation, code understanding, code repair, etc., and the most prominent performer in this regard is ChatGPT. However, its cost of use makes the integration of ChatGPT into code defect detection techniques costly. In this paper, we focus on low-cost-of-use, fine-tunable, open-source large language models with less than 10B parameters, and study their capabilities of C code defect detection when fine-tuned with real-world data and improved with prompt engineering. We studied LLaMa3-8B, DeepSeek-Coder-7b and Qwen2-7B, as they are the typical models with prompt capabilities, whose performance in SE is close to ChatGPT, and they are open-source models. Experimental results show that our method can significantly improve the performance of LLMs within 10B parameters on code defect detection, and the output of the models can be applied to several downstream tasks, such as improving the report quality of static analysis tools.

源语言英语
主期刊名Proceedings - 2024 31st Asia-Pacific Software Engineering Conference, APSEC 2024
出版商IEEE Computer Society
437-441
页数5
ISBN(电子版)9798331534011
DOI
出版状态已出版 - 2024
活动31st Asia-Pacific Software Engineering Conference, APSEC 2024 - Chongqing, 中国
期限: 3 12月 20246 12月 2024

丛书

姓名Proceedings - Asia-Pacific Software Engineering Conference, APSEC
ISSN(印刷版)1530-1362

会议

会议31st Asia-Pacific Software Engineering Conference, APSEC 2024
国家/地区中国
Chongqing
时期3/12/246/12/24

学术指纹

探究 'A Study on C Code Defect Detection with Fine-Tuned Large Language Models' 的科研主题。它们共同构成独一无二的学术指纹。

引用此