arrow
返回

Few-VulD: A Few-shot learning framework for software vulnerability detection☆ ☆

delete2024-09-01
delete0
PRE
AI
T
Tianming Zheng
H
Haojun Liu
H
Hang Xu
陈祥 封面图
陈祥 (Xiang Chen)
易
易平 (Ping Yi)
Y
Yue Wu *
DOI:10.1016/j.cose.2024.103992delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
The rapid development of artificial intelligence (AI) has led to the introduction of numerous software vulnerability detection methods based on deep learning algorithms. However, a significant challenge is their dependency on large volumes of code samples for effective training. This requirement poses a considerable hurdle, particularly when adapting to diverse software application scenarios and various vulnerability types, where gathering sufficient and relevant training data for different classification tasks is often arduous. To address the challenge, this paper introduces Few-VulD, a novel framework for software vulnerability detection based on few-shot learning. This framework is designed to be efficiently trained with a minimal number of samples from a variety of existing classification tasks. Its key advantage lies in its ability to rapidly adapt to new vulnerability detection tasks, such as identifying new types of vulnerabilities, with only a small set of learning samples. This capability is particularly beneficial in scenarios where available vulnerability samples are limited. We compare Few-VulD with five state-of-the-art methods on the SySeVR and Big-Vul datasets. On the SySeVR dataset, Few-VulD outperforms all other methods, achieving a recall rate of 87.9% and showing an improvement of 11.7% to 57.8%. On the Big-Vul dataset, Few-VulD outperforms three of the methods, including one that utilizes a pretrained large language model (LLM), with recall improvements ranging from 8.5% to 40.1%. The other two methods employ pretrained LLMs from Microsoft CodeXGLUE (Lu et al., 2021). Few-VulD reaches 78.7% and 95.5% of their recall rates without the need for extensive data pretraining. The performance proves the effectiveness of Few-VulD in vulnerability detection tasks with limited samples.
Keyword:
Vulnerability detection
Few-shot learning
Meta-learning
BiLSTM
Artificial intelligence
Deep learning

期刊

C
Computers and Security
IF:
5.4
论文数:
4.6K
被引数:
1.4W

机构

S
shanghai jiao tong university
学者数:
15.7W
论文数: 11.7W
被引数: 159
C
Carnegie Mellon University
学者数:
1.4W
论文数: 1.4W
被引数: 2.7W
引用论文

引用论文

err分享
err收藏
Sentiment Analysis of Comment Texts Based on BiLSTM
err2019-01-01
err314
errOAAI
errXu, Guixian; Meng, Yueting; Qiu, Xiaoyu; Yu, Ziheng; Wu, Xu
err分享
err收藏
Software Vulnerability Detection Using Deep Neural Networks: A Survey
err2020-10-01
err269
PREAI
errLin, Guanjun; Wen, Sheng; Han, Qing-Long; Zhang, Jun; Xiang, Yang
err分享
err收藏
学者 查看更多内容