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

你的指令并非总是有用:评估指令微调在软件漏洞检测中的有效性

Your Instructions Are Not Always Helpful: Assessing the Efficacy of Instruction Fine-tuning for Software Vulnerability Detection

Singapore Management University(新加坡管理大学)

Imam Nur Bani Yusuf, Lingxiao Jiang

AI总结:

本文研究指令微调对软件漏洞检测模型跨编程语言泛化能力的影响,通过在真实数据集上的实验评估自然语言指令的作用,并总结关键经验与见解。

摘要:

软件虽然有益,但由于固有的漏洞,可能带来潜在的网络安全风险。检测这些漏洞至关重要,而深度学习因其无需大量特征工程即可表现良好的能力,已显示出作为该任务有效工具的前景。然而,在漏洞检测中部署深度学习面临的一个挑战是训练数据的可用性有限。最近的研究突显了深度学习在多种任务中的有效性。这一成功归因于指令微调,而该技术在漏洞检测背景下仍未得到充分探索。本文研究了模型(特别是最近的一种语言模型)在超越其训练数据所用编程语言进行泛化的能力。本文还考察了自然语言指令在增强这种泛化能力方面的作用。我们的研究评估了模型在真实世界数据集上预测易受攻击代码的性能。我们提出了关键见解和经验教训,有助于理解深度学习在软件漏洞检测中的应用。

英文摘要:

Software, while beneficial, poses potential cybersecurity risks due to inherent vulnerabilities. Detecting these vulnerabilities is crucial, and deep learning has shown promise as an effective tool for this task due to its ability to perform well without extensive feature engineering. However, a challenge in deploying deep learning for vulnerability detection is the limited availability of training data. Recent research highlights the deep learning efficacy in diverse tasks. This success is attributed to instruction fine-tuning, a technique that remains under-explored in the context of vulnerability detection. This paper investigates the capability of models, specifically a recent language model, to generalize beyond the programming languages used in their training data. It also examines the role of natural language instructions in enhancing this generalization. Our study evaluates the model performance on a real-world dataset to predict vulnerable code. We present key insights and lessons learned, contributing to understanding the deep learning application in software vulnerability detection.

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

↑