An Unbiased Transformer Source Code Learning with Semantic Vulnerability Graph
Not on the map. Why?
Abstract (arXiv)
Over the years, open-source software systems have become prey to threat actors. Even as open-source communities act quickly to patch the breach, code vulnerability screening should be an integral part of agile software development from the beginning. Unfortunately, current vulnerability screening techniques are ineffective at identifying novel vulnerabilities or providing developers with code vulnerability and classification. Furthermore, the datasets used for vulnerability learning often exhibit distribution shifts from the real-world testing distribution due to novel attack strategies deployed by adversaries and as a result, the machine learning model's performance may be hindered or biased. To address these issues, we propose a joint interpolated multitasked unbiased vulnerability classifier comprising a transformer "RoBERTa" and graph convolution neural network (GCN). We present a training process utilizing a semantic vulnerability graph (SVG) representation from source code, created by integrating edges from a sequential flow, control flow, and data flow, as well as a novel flow dubbed Poacher Flow (PF). Poacher flow edges reduce the gap between dynamic and static program analysis and handle complex long-range dependencies. Moreover, our approach reduces biases of classifiers regarding unbalanced datasets by integrating Focal Loss objective function along with SVG. Remarkably, experimental results show that our classifier outperforms state-of-the-art results on vulnerability detection with fewer false negatives and false positives. After testing our model across multiple datasets, it shows an improvement of at least 2.41% and 18.75% in the best-case scenario. Evaluations using N-day program samples demonstrate that our proposed approach achieves a 93% accuracy and was able to detect 4, zero-day vulnerabilities from popular GitHub repositories.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 35 of its 71 references that are in the map. First posted on arXiv 17 Apr 2023.
Builds on
35 of 71 references.
References · 35
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,375
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2015Gated Graph Sequence Neural Networkscited by 796
- 2017Focal Loss for Dense Object Detectioncited by 752
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
23 more
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 361
- 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 272
- 2018code2vec: Learning Distributed Representations of Codecited by 250
- 2017Learning to Represent Programs with Graphscited by 220
- 2018code2seq: Generating Sequences from Structured Representations of Codecited by 179
- 2020BREEDS: Benchmarks for Subpopulation Shiftcited by 155
- 2020Deep Learning based Vulnerability Detection: Are We There Yet?cited by 144
- 2018Automated Vulnerability Detection in Source Code Using Deep Representation Learningcited by 114
- 2018SySeVR: A Framework for Using Deep Learning to Detect Software Vulnerabilitiescited by 92
- 2020Every Document Owns Its Structure: Inductive Text Classification via Graph Neural Networkscited by 77
- 2020Contrastive Code Representation Learningcited by 76
- 2021SynCoBERT: Syntax-Guided Multi-Modal Contrastive Pre-Training for Code Representationcited by 63
- 2019Text Level Graph Neural Network for Text Classificationcited by 60
- 2022VulBERTa: Simplified Source Code Pre-Training for Vulnerability Detectioncited by 51
- 2021D2A: A Dataset Built for AI-Based Vulnerability Detection Methods Using Differential Analysiscited by 49
- 2021TreeBERT: A Tree-Based Pre-Trained Model for Programming Languagecited by 41
- 2022Transformer-Based Language Models for Software Vulnerability Detectioncited by 39
- 2022LineVD: Statement-level Vulnerability Detection using Graph Neural Networkscited by 35
- 2021ReGVD: Revisiting Graph Neural Networks for Vulnerability Detectioncited by 32
- 2020Typilus: Neural Type Hintscited by 29
- 2021VELVET: a noVel Ensemble Learning approach to automatically locate VulnErable sTatementscited by 20
- 2022Less is More: Supporting Developers in Vulnerability Detection during Code Reviewcited by 6
- 2021Towards Making Deep Learning-based Vulnerability Detectors Robustcited by 4
Built on by
Citing papers per year: 2024: 4; 2025: 0; 2026: 1.
5 papers.
- 2024Code Security Vulnerability Repair Using Reinforcement Learning with Large Language Modelscited by 10
- 2024Enhancing Source Code Security with LLMs: Demystifying The Challenges and Generating Reliable Repairscited by 4
- 2024Comparing Unidirectional, Bidirectional, and Word2vec Models for Discovering Vulnerabilities in Compiled Lifted Codecited by 1
- 2024Unintentional Security Flaws in Code: Automated Defense via Root Cause Analysiscited by 0
- 2026A systematic literature Review for Transformer-based Software Vulnerability detectioncited by 0
- 2026A systematic literature Review for Transformer-based Software Vulnerability detection27 Apr 2026
- 2024Comparing Unidirectional, Bidirectional, and Word2vec Models for Discovering Vulnerabilities in Compiled Lifted Code26 Sep 2024
- 2024Enhancing Source Code Security with LLMs: Demystifying The Challenges and Generating Reliable Repairs1 Sep 2024
- 2024Unintentional Security Flaws in Code: Automated Defense via Root Cause Analysis30 Aug 2024
- 2024Code Security Vulnerability Repair Using Reinforcement Learning with Large Language Models13 Jan 2024