mlsanityData to 7 Oct 2026

Transformer-Based Language Models for Software Vulnerability Detection

arXiv 2204.03214 ↗First posted 7 Apr 2022cs.CR cs.AI cs.LGcited by 39

Not on the map. Why?

Abstract (arXiv)

The large transformer-based language models demonstrate excellent performance in natural language processing. By considering the transferability of the knowledge gained by these models in one domain to other related domains, and the closeness of natural languages to high-level programming languages, such as C/C++, this work studies how to leverage (large) transformer-based language models in detecting software vulnerabilities and how good are these models for vulnerability detection tasks. In this regard, firstly, a systematic (cohesive) framework that details source code translation, model preparation, and inference is presented. Then, an empirical analysis is performed with software vulnerability datasets with C/C++ source codes having multiple vulnerabilities corresponding to the library function call, pointer usage, array usage, and arithmetic expression. Our empirical results demonstrate the good performance of the language models in vulnerability detection. Moreover, these language models have better performance metrics, such as F1-score, than the contemporary models, namely bidirectional long short-term memory and bidirectional gated recurrent unit. Experimenting with the language models is always challenging due to the requirement of computing resources, platforms, libraries, and dependencies. Thus, this paper also analyses the popular platforms to efficiently fine-tune these models and present recommendations while choosing the platforms.

Key facts. Cited by 39 papers in the map (data through 7 Oct 2026). Builds on 20 of its 44 references that are in the map. First posted on arXiv 7 Apr 2022.

Builds on

20 of 44 references.

References · 20

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  5. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  6. 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,016
  7. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  8. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
  9. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  10. 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
  11. 2020A Primer in BERTology: What we know about how BERT workscited by 807
  12. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
8 more
  1. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  2. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  3. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
  4. 2018Automated Vulnerability Detection in Source Code Using Deep Representation Learningcited by 114
  5. 2018SySeVR: A Framework for Using Deep Learning to Detect Software Vulnerabilitiescited by 91
  6. 2020VulDeeLocator: A Deep Learning-based Fine-grained Vulnerability Detectorcited by 37
  7. 2021Security Vulnerability Detection Using Deep Learning Natural Language Processingcited by 12
  8. 2020Towards a Scalable and Distributed Infrastructure for Deep Learning Applicationscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 1; 2023: 7; 2024: 14; 2025: 16; 2026: 1.

39 papers.

Sort:

By area:

  1. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  2. 2023DiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detectioncited by 98
  3. 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 85
  4. 2023GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysiscited by 65
  5. 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 65
  6. 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoningcited by 57
  7. 2023Large Language Model-Powered Smart Contract Vulnerability Detection: New Perspectivescited by 48
  8. 2024Combining Fine-Tuning and LLM-based Agents for Intuitive Smart Contract Auditing with Justificationscited by 41
  9. 2023Revolutionizing Cyber Threat Detection with Large Language Models: A privacy-preserving BERT-based Lightweight Model for IoT/IIoT Devicescited by 38
  10. 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detectioncited by 32
  11. 2024How secure is AI-generated Code: A Large-Scale Comparison of Large Language Modelscited by 23
  12. 2023Out of the Cage: How Stochastic Parrots Win in Cyber Security Environmentscited by 17
27 more
  1. 2024A Comprehensive Survey on Evaluating Large Language Model Applications in the Medical Industrycited by 17
  2. 2025Large Language Model (LLM) for Software Security: Code Analysis, Malware Analysis, Reverse Engineeringcited by 15
  3. 2025Measuring and Augmenting Large Language Models for Solving Capture-the-Flag Challengescited by 14
  4. 2024From Vulnerabilities to Remediation: A Systematic Literature Review of LLMs in Code Securitycited by 9
  5. 2024A Survey of Large Language Models in Cybersecuritycited by 8
  6. 2025Do LLMs Consider Security? An Empirical Study on Responses to Programming Questionscited by 8
  7. 2025A Systematic Literature Review on Detecting Software Vulnerabilities with Large Language Modelscited by 8
  8. 2025VulAgent: Hypothesis-Validation based Multi-Agent Vulnerability Detectioncited by 8
  9. 2023An Unbiased Transformer Source Code Learning with Semantic Vulnerability Graphcited by 5
  10. 2025Logic Meets Magic: LLMs Cracking Smart Contract Vulnerabilitiescited by 5
  11. 2025Large Language Models for In-File Vulnerability Localization Can Be "Lost in the End"cited by 5
  12. 2024When Geoscience Meets Generative AI and Large Language Models: Foundations, Trends, and Future Challengescited by 4
  13. 2024A Survey of Source Code Representations for Machine Learning-Based Cybersecurity Taskscited by 4
  14. 2025A Systematic Study of Code Obfuscation Against LLM-based Vulnerability Detectioncited by 4
  15. 2025Revisiting Pre-trained Language Models for Vulnerability Detectioncited by 3
  16. 2024A Qualitative Study on Using ChatGPT for Software Security: Perception vs. Practicalitycited by 2
  17. 2025CGP-Tuning: Structure-Aware Soft Prompt Tuning for Code Vulnerability Detectioncited by 2
  18. 2025Evaluating Large Language Models in Vulnerability Detection Under Variable Context Windowscited by 2
  19. 2022K-ASTRO: Structure-Aware Adaptation of LLMs for Code Vulnerability Detectioncited by 1
  20. 2024Comparing Unidirectional, Bidirectional, and Word2vec Models for Discovering Vulnerabilities in Compiled Lifted Codecited by 1
  21. 2025Towards Effective Complementary Security Analysis using Large Language Modelscited by 1
  22. 2025Empirical Study of Code Large Language Models for Binary Security Patch Detectioncited by 1
  23. 2024CLNX: Bridging Code and Natural Language for C/C++ Vulnerability-Contributing Commits Identificationcited by 0
  24. 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniquescited by 0
  25. 2025From Lab to Reality: A Practical Evaluation of Deep Learning Models and LLMs for Vulnerability Detectioncited by 0
  26. 2025C-ing Clearly: Enhanced Binary Code Explanations using C codecited by 0
  27. 2026Efficient Software Vulnerability Detection Using Transformer-based Modelscited by 0