paper-with-me

홈 › Papers

Generalization-Enhanced Code Vulnerability Detection via Multi-Task Instruction Fine-Tuning

2024-06-06 · Xiaohu Du, Ming Wen, Jiahao Zhu, Zifan Xie, Bin Ji, Huijun Liu, Xuanhua Shi, Hai Jin

Code Pre-trained Models (CodePTMs) based vulnerability detection have achieved promising results over recent years. However, these models struggle to generalize as they typically learn superficial mapping from source code to labels instead of understanding the root causes of code vulnerabilities, resulting in poor performance in real-world scenarios beyond the training instances. To tackle this challenge, we introduce VulLLM, a novel framework that integrates multi-task learning with Large Language Models (LLMs) to effectively mine deep-seated vulnerability features. Specifically, we construct two auxiliary tasks beyond the vulnerability detection task. First, we utilize the vulnerability patches to construct a vulnerability localization task. Second, based on the vulnerability features extracted from patches, we leverage GPT-4 to construct a vulnerability interpretation task. VulLLM innovatively augments vulnerability classification by leveraging generative LLMs to understand complex vulnerability patterns, thus compelling the model to capture the root causes of vulnerabilities rather than overfitting to spurious features of a single task. The experiments conducted on six large datasets demonstrate that VulLLM surpasses seven state-of-the-art models in terms of effectiveness, generalization, and robustness.

📄 PDF Abstract BibTeX arXiv:2406.03718

Code (1)

CGCL-codes/VulLLM 공식 구현 pytorch

Tasks

Multi-Task LearningVulnerability Detection

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Position-Wise Feed-Forward Layer 설명 없음
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Adam 설명 없음

Similar Papers 제목 키워드 기반

Data and Context Matter: Towards Generalizing AI-based Software Vulnerability Detection

2025-08-14 · Rijha Safdar, Danyail Mateen, Syed Taha Ali, M. Umer Ashfaq 외 arxiv

AI-based solutions demonstrate remarkable results in identifying vulnerabilities in software, but research has consistently found that this performance does not generalize to unseen codebases. In this paper, we specifica…

Vulnerability Detection

A Multi-Dataset Evaluation of Models for Automated Vulnerability Repair

2025-06-05 · Zanis Ali Khan, Aayush Garg, Qiang Tang

Software vulnerabilities pose significant security threats, requiring effective mitigation. While Automated Program Repair (APR) has advanced in fixing general bugs, vulnerability patching, a security-critical aspect of …

Program RepairVulnerability Detection

DiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detection

2023-04-01 · Yizheng Chen, Zhoujie Ding, Lamya Alowain, Xinyun Chen 외

We propose and release a new vulnerable source code dataset. We curate the dataset by crawling security issue websites, extracting vulnerability-fixing commits and source codes from the corresponding projects. Our new da…

Deep LearningFeature EngineeringVulnerability Detection

CGP-Tuning: Structure-Aware Soft Prompt Tuning for Code Vulnerability Detection

2025-01-08 · Ruijun Feng, Hammond Pearce, Pietro Liguori, Yulei Sui

Large language models (LLMs) have been proposed as powerful tools for detecting software vulnerabilities, where task-specific fine-tuning is typically employed to provide vulnerability-specific knowledge to the LLMs for …

Computational Efficiencycross-modal alignmentVulnerability Detection

RealVul: Can We Detect Vulnerabilities in Web Applications with LLM?

2024-10-10 · Di Cao, Yong Liao, Xiuwei Shang

The latest advancements in large language models (LLMs) have sparked interest in their potential for software vulnerability detection. However, there is currently a lack of research specifically focused on vulnerabilitie…

Vulnerability Detection