mlsanityData to 7 Oct 2026

Security Vulnerability Detection with Multitask Self-Instructed Fine-Tuning of Large Language Models

arXiv 2406.05892 ↗First posted 9 Jun 2024cs.CR cs.LG cs.SEcited by 14

On the map: Synthetic data and self-improvement for LLMs → Code and instruction data synthesis

Abstract (arXiv)

Software security vulnerabilities allow attackers to perform malicious activities to disrupt software operations. Recent Transformer-based language models have significantly advanced vulnerability detection, surpassing the capabilities of static analysis based deep learning models. However, language models trained solely on code tokens do not capture either the explanation of vulnerability type or the data flow structure information of code, both of which are crucial for vulnerability detection. We propose a novel technique that integrates a multitask sequence-to-sequence LLM with pro-gram control flow graphs encoded as a graph neural network to achieve sequence-to-classification vulnerability detection. We introduce MSIVD, multitask self-instructed fine-tuning for vulnerability detection, inspired by chain-of-thought prompting and LLM self-instruction. Our experiments demonstrate that MSIVD achieves superior performance, outperforming the highest LLM-based vulnerability detector baseline (LineVul), with a F1 score of 0.92 on the BigVul dataset, and 0.48 on the PreciseBugs dataset. By training LLMs and GNNs simultaneously using a combination of code and explanatory metrics of a vulnerable program, MSIVD represents a promising direction for advancing LLM-based vulnerability detection that generalizes to unseen data. Based on our findings, we further discuss the necessity for new labelled security vulnerability datasets, as recent LLMs have seen or memorized prior datasets' held-out evaluation data.

Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Placed in Code and instruction data synthesis, one of 13 directions in Synthetic data and self-improvement for LLMs. Builds on 26 of its 45 references that are in the map. First posted on arXiv 9 Jun 2024.

Builds on

26 of 45 references.

Closest ancestors · 1

Same direction, newest first

  1. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructions20 Dec

Other references · 25

  1. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  3. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  4. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  5. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  6. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  7. 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 886
  8. 2015Gated Graph Sequence Neural Networkscited by 792
  9. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  10. 2023Scaling Data-Constrained Language Modelscited by 391
  11. 2020Multi-Task Learning with Deep Neural Networks: A Surveycited by 374
  12. 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 278
13 more
  1. 2021ExT5: Towards Extreme Multi-Task Scaling for Transfer Learningcited by 161
  2. 2018Automated Vulnerability Detection in Source Code Using Deep Representation Learningcited by 114
  3. 2023Plug-and-Play Policy Planner for Large Language Model Powered Dialogue Agentscited by 76
  4. 2023Large Language Models for Test-Free Fault Localizationcited by 67
  5. 2018The Art, Science, and Engineering of Fuzzing: A Surveycited by 61
  6. 2021Vulnerability Detection with Fine-grained Interpretationscited by 56
  7. 2022An Empirical Study of Deep Learning Models for Vulnerability Detectioncited by 44
  8. 2022LineVD: Statement-level Vulnerability Detection using Graph Neural Networkscited by 35
  9. 2023MFTCoder: Boosting Code LLMs with Multitask Fine-Tuningcited by 34
  10. 2020Maximum Roaming Multi-Task Learningcited by 11
  11. 2024Toward Improved Deep Learning-based Vulnerability Detectioncited by 9
  12. 2024Your Instructions Are Not Always Helpful: Assessing the Efficacy of Instruction Fine-tuning for Software Vulnerability Detectioncited by 6
  13. 2023PreciseBugCollector: Extensible, Executable and Precise Bug-fix Collectioncited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 8; 2026: 5.

14 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2024Towards Explainable Vulnerability Detection with Large Language Models
  2. 2026VulTriage: Triple-Path Context Augmentation for LLM-Based Vulnerability Detection
  3. 2024To Err is Machine: Vulnerability Detection Challenges LLM Reasoning
  4. 2026Dissecting the Black Box: Circuit-Level Analysis of LLM Vulnerability Detection
  5. 2025Boosting Vulnerability Detection of LLMs via Curriculum Preference Optimization with Synthetic Reasoning Data
  6. 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoning
  7. 2024DLAP: A Deep Learning Augmented Large Language Model Prompting Framework for Software Vulnerability Detection
  8. 2026VulReaD: Knowledge-Graph-guided Software Vulnerability Reasoning and Detection