mlsanityData to 7 Oct 2026

Transformer-based Vulnerability Detection in Code at EditTime: Zero-shot, Few-shot, or Fine-tuning?

arXiv 2306.01754 ↗First posted 23 May 2023cs.CR cs.AI cs.LGcited by 13

Not on the map. Why?

Abstract (arXiv)

Software vulnerabilities bear enterprises significant costs. Despite extensive efforts in research and development of software vulnerability detection methods, uncaught vulnerabilities continue to put software owners and users at risk. Many current vulnerability detection methods require that code snippets can compile and build before attempting detection. This, unfortunately, introduces a long latency between the time a vulnerability is injected to the time it is removed, which can substantially increases the cost of fixing a vulnerability. We recognize that the current advances in machine learning can be used to detect vulnerable code patterns on syntactically incomplete code snippets as the developer is writing the code at EditTime. In this paper we present a practical system that leverages deep learning on a large-scale data set of vulnerable code patterns to learn complex manifestations of more than 250 vulnerability types and detect vulnerable code patterns at EditTime. We discuss zero-shot, few-shot, and fine-tuning approaches on state of the art pre-trained Large Language Models (LLMs). We show that in comparison with state of the art vulnerability detection models our approach improves the state of the art by 10%. We also evaluate our approach to detect vulnerability in auto-generated code by code LLMs. Evaluation on a benchmark of high-risk code scenarios shows a reduction of up to 90% vulnerability reduction.

Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 18 of its 54 references that are in the map. First posted on arXiv 23 May 2023.

Builds on

18 of 54 references.

References · 18

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  5. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  6. 2020Evaluation: from precision, recall and F-measure to ROC, informedness, markedness and correlationcited by 420
  7. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
  8. 2020IntelliCode Compose: Code Generation Using Transformercited by 225
  9. 2020Deep Learning based Vulnerability Detection: Are We There Yet?cited by 142
  10. 2018Automated Vulnerability Detection in Source Code Using Deep Representation Learningcited by 114
  11. 2018SySeVR: A Framework for Using Deep Learning to Detect Software Vulnerabilitiescited by 91
  12. 2021Vulnerability Detection with Fine-grained Interpretationscited by 56
6 more
  1. 2018Superion: Grammar-Aware Greybox Fuzzingcited by 12
  2. 2017End-to-End Prediction of Buffer Overruns from Raw Source Code via Neural Memory Networkscited by 10
  3. 2018Towards security defect prediction with AIcited by 6
  4. 2014Building Program Vector Representations for Deep Learningcited by 5
  5. 2021Linear-time Temporal Logic guided Greybox Fuzzingcited by 5
  6. 2022Path Transitions Tell More:Optimizing Fuzzing Schedules via Runtime Program Statescited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 4; 2024: 7; 2025: 1; 2026: 1.

13 papers.

Sort:

By area: