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

基于多任务的开源 LLM 软件漏洞评估

Multitask-based Evaluation of Open-Source LLM on Software Vulnerability

Xin Yin, Chao Ni, Shaohua Wang

AI总结:

提出基于公开数据集 Big-Vul 的定量评估流水线,从检测、评估、定位和描述四类任务考察开源 LLM 的软件漏洞处理能力及局限。

摘要:

本文提出一种使用公开数据集定量评估交互式大型语言模型(LLM)的流水线。我们利用 Big-Vul 对 LLM 开展了广泛的技术评估,涵盖四种不同的常见软件漏洞任务。该评估基于此数据集考查 LLM 的多任务能力。我们发现,现有最先进方法和预训练语言模型(LM)在软件漏洞检测方面通常优于 LLM。然而,在软件漏洞评估与定位中,某些 LLM(例如 CodeLlama 和 WizardCoder)表现出优于预训练 LM 的性能,并且提供更多上下文信息可以增强 LLM 的漏洞评估能力。此外,LLM 展现出较强的漏洞描述能力,但其产生过多输出的倾向显著削弱了它们相较预训练 LM 的性能。总体而言,尽管 LLM 在某些方面表现良好,它们仍需提升对代码漏洞细微差异的理解以及描述漏洞的能力,以充分释放潜力。我们的评估流水线为认识 LLM 处理软件漏洞的能力提供了宝贵洞见。

英文摘要:

This paper proposes a pipeline for quantitatively evaluating interactive Large Language Models (LLMs) using publicly available datasets. We carry out an extensive technical evaluation of LLMs using Big-Vul covering four different common software vulnerability tasks. This evaluation assesses the multi-tasking capabilities of LLMs based on this dataset. We find that the existing state-of-the-art approaches and pre-trained Language Models (LMs) are generally superior to LLMs in software vulnerability detection. However, in software vulnerability assessment and location, certain LLMs (e.g., CodeLlama and WizardCoder) have demonstrated superior performance compared to pre-trained LMs, and providing more contextual information can enhance the vulnerability assessment capabilities of LLMs. Moreover, LLMs exhibit strong vulnerability description capabilities, but their tendency to produce excessive output significantly weakens their performance compared to pre-trained LMs. Overall, though LLMs perform well in some aspects, they still need improvement in understanding the subtle differences in code vulnerabilities and the ability to describe vulnerabilities to fully realize their potential. Our evaluation pipeline provides valuable insights into the capabilities of LLMs in handling software vulnerabilities.

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

↑