mlsanityData to 14 Oct 2026

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

arXiv 2406.03718 ↗First posted 6 Jun 2024cs.CR cs.AI cs.CLcited by 30

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 30 papers in the map (data through 14 Oct 2026). Builds on 30 of its 46 references that are in the map. First posted on arXiv 6 Jun 2024.

Builds on

30 of 46 references.

References · 30

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2022Training language models to follow instructions with human feedbackcited by 15,971
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  5. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
  6. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  7. 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquingcited by 783
  8. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
  9. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  10. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 361
  11. 2022Large Language Models are Better Reasoners with Self-Verificationcited by 307
  12. 2023Faithful Chain-of-Thought Reasoningcited by 288
18 more
  1. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 272
  2. 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 239
  3. 2023Automatically Correcting Large Language Models: Surveying the landscape of diverse self-correction strategiescited by 238
  4. 2023Better Zero-Shot Reasoning with Role-Play Promptingcited by 223
  5. 2023A Stitch in Time Saves Nine: Detecting and Mitigating Hallucinations of LLMs by Validating Low-Confidence Generationcited by 206
  6. 2022ROSCOE: A Suite of Metrics for Scoring Step-by-Step Reasoningcited by 177
  7. 2023SelfCheck: Using LLMs to Zero-Shot Check Their Own Step-by-Step Reasoningcited by 159
  8. 2023Deductive Verification of Chain-of-Thought Reasoningcited by 124
  9. 2023DiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detectioncited by 102
  10. 2018SySeVR: A Framework for Using Deep Learning to Detect Software Vulnerabilitiescited by 92
  11. 2021CVEfixes: Automated Collection of Vulnerabilities and Their Fixes from Open-Source Softwarecited by 91
  12. 2021Vulnerability Detection with Fine-grained Interpretationscited by 56
  13. 2023Data Quality for Software Vulnerability Datasetscited by 51
  14. 2023Prompt-Enhanced Software Vulnerability Detection Using ChatGPTcited by 51
  15. 2023Evaluation of ChatGPT Model for Vulnerability Detectioncited by 33
  16. 2021ReGVD: Revisiting Graph Neural Networks for Vulnerability Detectioncited by 32
  17. 2023Probabilistic Tree-of-thought Reasoning for Answering Knowledge-intensive Complex Questionscited by 19
  18. 2023An Extensive Study on Adversarial Attack against Pre-trained Models of Codecited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 6; 2025: 18; 2026: 6.

30 papers.

Sort:

By area:

  1. 2025SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Taskscited by 75
  2. 2024MarsCode Agent: AI-native Automated Bug Fixingcited by 71
  3. 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insightscited by 47
  4. 2024An Empirical Study on LLM-based Agents for Automated Bug Fixingcited by 23
  5. 2024Investigating Large Language Models for Code Vulnerability Detection: An Experimental Studycited by 12
  6. 2025VulnLLM-R: Specialized Reasoning LLM with Agent Scaffold for Vulnerability Detectioncited by 11
  7. 2024Multi-Programming Language Sandbox for LLMscited by 10
  8. 2025Teaching an Old LLM Secure Coding: Localized Preference Optimization on Distilled Preferencescited by 10
  9. 2025A Systematic Literature Review on Detecting Software Vulnerabilities with Large Language Modelscited by 8
  10. 2025Vulnerability Detection: From Formal Verification to Large Language Models and Hybrid Approaches: A Comprehensive Overviewcited by 7
  11. 2025R2Vul: Learning to Reason about Software Vulnerabilities with Reinforcement Learning and Structured Reasoning Distillationcited by 7
  12. 2025Uncovering Vulnerabilities of LLM-Assisted Cyber Threat Intelligencecited by 6
18 more
  1. 2026Secure Code Generation via Online Reinforcement Learning with Vulnerability Reward Modelcited by 6
  2. 2025A Deep Dive into Retrieval-Augmented Generation for Code Completion: Experience on WeChatcited by 5
  3. 2024Can LLM Prompting Serve as a Proxy for Static Analysis in Vulnerability Detectioncited by 4
  4. 2025A Mixture of Linear Corrections Generates Secure Codecited by 4
  5. 2025CTIConnect: A Benchmark for Retrieval-Augmented LLMs over Heterogeneous Cyber Threat Intelligencecited by 4
  6. 2025VulInstruct: Teaching LLMs Root-Cause Reasoning for Vulnerability Detection via Security Specificationscited by 4
  7. 2026From SFT to RL: Demystifying the Post-Training Pipeline for LLM-based Vulnerability Detectioncited by 4
  8. 2025Revisiting Pre-trained Language Models for Vulnerability Detectioncited by 3
  9. 2025Llama-based source code vulnerability detection: Prompt engineering vs Fine tuningcited by 2
  10. 2024Comparing Unidirectional, Bidirectional, and Word2vec Models for Discovering Vulnerabilities in Compiled Lifted Codecited by 1
  11. 2025Large Language Model based Smart Contract Auditing with LLMBugScannercited by 1
  12. 2025MulVuln: Enhancing Pre-trained LMs with Shared and Language-Specific Knowledge for Multilingual Vulnerability Detectioncited by 0
  13. 2025On the Difficulty of Selecting Few-Shot Examples for Effective LLM-based Vulnerability Detectioncited by 0
  14. 2025On the Effectiveness of Instruction-Tuning Local LLMs for Identifying Software Vulnerabilitiescited by 0
  15. 2026Learning Generalizable Multimodal Representations for Software Vulnerability Detectioncited by 0
  16. 2026DCVD: Dual-Channel Cross-Modal Fusion for Joint Vulnerability Detection and Localizationcited by 0
  17. 2026Security of LLM-generated Code: A Comparative Analysiscited by 0
  18. 2026A Unified Model for Cross-Domain Clone Detection via Model Mergingcited by 0