arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.10490cs.SE
收藏

代码漏洞检测:新兴大语言模型的比较分析

Code Vulnerability Detection: A Comparative Analysis of Emerging Large Language Models

Shaznin Sultana, Sadia Afreen, Nasir U. Eisty

AI总结:

针对软件开发依赖开源项目引发的漏洞问题,本文对比了Llama、CodeGemma等新兴LLM与BERT、GPT-3等现有模型的代码漏洞检测性能,发现CodeGemma的F1分数和召回率在新兴模型中最高,为提升软件安全实践提供参考。

摘要:

当前软件开发因高度依赖开源项目而导致漏洞问题日益增多,这一趋势近期受到了广泛关注。本文研究了大语言模型(LLM)在代码库中识别漏洞的有效性,重点关注LLM技术的最新进展。通过比较分析,我们评估了新兴LLM(具体为Llama、CodeLlama、Gemma和CodeGemma)与已有的主流先进模型(如BERT、RoBERTa和GPT-3)的性能。本研究旨在阐明LLM在漏洞检测方面的能力,为提升各类开源仓库中的软件安全实践提供助力。我们观察到,在近期新增的用于检测软件安全漏洞的大语言模型中,CodeGemma取得了最高的F1分数(58%)和召回率(87%)。

英文摘要:

The growing trend of vulnerability issues in software development as a result of a large dependence on open-source projects has received considerable attention recently. This paper investigates the effectiveness of Large Language Models (LLMs) in identifying vulnerabilities within codebases, with a focus on the latest advancements in LLM technology. Through a comparative analysis, we assess the performance of emerging LLMs, specifically Llama, CodeLlama, Gemma, and CodeGemma, alongside established state-of-the-art models such as BERT, RoBERTa, and GPT-3. Our study aims to shed light on the capabilities of LLMs in vulnerability detection, contributing to the enhancement of software security practices across diverse open-source repositories. We observe that CodeGemma achieves the highest F1-score of 58\ and a Recall of 87\, amongst the recent additions of large language models to detect software security vulnerabilities.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑