cs.CRMar 31, 2026

Efficient Software Vulnerability Detection Using Transformer-based Models

Authors: Sameer Shaik, Zhen Huang, Daniela Stan Raicu, Jacob Furst

Organizations: DePaul University, Chicago, Illinois, USA

Abstract

Detecting software vulnerabilities is critical to ensuring the security and reliability of modern computer systems. Deep neural networks have shown promising results on vulnerability detection, but they lack the capability to capture global contextual information on vulnerable code. To address this limitation, we explore the application of transformers for C/C++ vulnerability detection. We use program slices that encapsulate key syntactic and semantic features of program code, such as API function calls, array usage, pointer manipulations, and arithmetic expressions. By leveraging transformers' capability to capture both local and global contextual information on vulnerable code, our work can identify vulnerabilities accurately. Combined with data balancing and hyperparameter fine-tuning, our work offers a robust and efficient approach to identifying vulnerable code with moderate resource usage and training time.

Figures & tables

Explore similar work

CardsList
  1. Automated Vulnerability Detection in Source Code Using Deep Representation Learning

    Feb 26, 2026C. Seas, G. Fitzpatrick, J. A. Hamilton +1Software Vulnerability DetectionClassification

  2. VulTriage: Triple-Path Context Augmentation for LLM-Based Vulnerability Detection

    May 10, 2026Wenxin Tang, Xiang Zhang, Junliang Liu +11Software Vulnerability DetectionStatic Code Analysis