arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2403.14274cs.SEcs.AI
收藏

面向漏洞检测的基于大语言模型讨论的多角色共识方法

Multi-role Consensus through LLMs Discussions for Vulnerability Detection

Waseda University(早稻田大学);Peking University(北京大学);Dalian Maritime University(大连海事大学);Tokyo Institute of Technology(东京工业大学)

Zhenyu Mao, Jialong Li, Dongming Jin, Munan Li, Kenji Tei

AI总结:

针对现有大语言模型漏洞检测多局限于单一测试角色视角的问题,提出多角色LLM讨论共识方法,模拟真实代码评审的多角色讨论以判定漏洞,显著提升了检测的精确率、召回率和F1值。

摘要:

大语言模型(LLMs)的最新进展凸显了其在漏洞检测这一软件质量保障关键环节中的应用潜力。尽管已有相关进展,但多数研究仅局限于单一角色(通常为测试人员)的视角,缺乏典型软件开发生命周期中包括开发人员和测试人员在内的不同角色的多元观点。为此,本文提出一种多角色方法,利用LLMs扮演不同角色,模拟真实代码评审流程,通过讨论就代码中漏洞的存在性及分类达成共识。初步评估显示,该方法的精确率提升13.48%,召回率提升18.25%,F1值提升16.13%。

英文摘要:

Recent advancements in large language models (LLMs) have highlighted the potential for vulnerability detection, a crucial component of software quality assurance. Despite this progress, most studies have been limited to the perspective of a single role, usually testers, lacking diverse viewpoints from different roles in a typical software development life-cycle, including both developers and testers. To this end, this paper introduces a multi-role approach to employ LLMs to act as different roles simulating a real-life code review process and engaging in discussions toward a consensus on the existence and classification of vulnerabilities in the code. Preliminary evaluation of this approach indicates a 13.48% increase in the precision rate, an 18.25% increase in the recall rate, and a 16.13% increase in the F1 score.

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

↑