arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2401.15468cs.SE
收藏

用于漏洞检测的大语言模型:新兴成果与未来方向

Large Language Model for Vulnerability Detection: Emerging Results and Future Directions

Xin Zhou, Ting Zhang, David Lo

AI总结:

本文探究大语言模型在软件漏洞检测中的效果,通过测试GPT-3.5和GPT-4在不同提示下的表现,发现GPT-3.5性能与现有最优方法相当,GPT-4更优,填补了相关研究空白。

摘要:

以往基于学习的漏洞检测方法要么依赖中等规模预训练模型,要么从零构建小型神经网络。大型预训练语言模型(LLMs)的最新进展已在各类任务中展现出卓越的少样本学习能力。然而,LLMs在软件漏洞检测中的有效性在很大程度上尚未被探索。本文旨在通过探究LLMs在不同提示下的表现来填补这一空白,重点关注两款前沿LLM:GPT-3.5和GPT-4。实验结果表明,GPT-3.5的性能与现有最先进的漏洞检测方法相当,而GPT-4始终优于该最先进方法。

英文摘要:

Previous learning-based vulnerability detection methods relied on either medium-sized pre-trained models or smaller neural networks from scratch. Recent advancements in Large Pre-Trained Language Models (LLMs) have showcased remarkable few-shot learning capabilities in various tasks. However, the effectiveness of LLMs in detecting software vulnerabilities is largely unexplored. This paper aims to bridge this gap by exploring how LLMs perform with various prompts, particularly focusing on two state-of-the-art LLMs: GPT-3.5 and GPT-4. Our experimental results showed that GPT-3.5 achieves competitive performance with the prior state-of-the-art vulnerability detection approach and GPT-4 consistently outperformed the state-of-the-art.

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

↑