VulBERTa: Simplified Source Code Pre-Training for Vulnerability Detection
Open accessThe DOI matches its Crossref record; 32 of the 32 references it cites were found in a registry or an index.
Abstract
This paper presents VulBERTa, a deep learning approach to detect security vulnerabilities in source code. Our approach pre-trains a RoBERTa model with a custom tokenisation pipeline on real-world code from open-source C/C++ projects. The model learns a deep knowledge representation of the code syntax and semantics, which we leverage to train vulnerability detection classifiers. We evaluate our approach on binary and multi-class vulnerability detection tasks across several datasets (Vuldeepecker, Draper, REVEAL and muVuldeepecker) and benchmarks (CodeXGLUE and D2A). The evaluation results show that VulBERTa achieves state-of-the-art performance and outperforms existing approaches across different datasets, despite its conceptual simplicity, and limited cost in terms of size of training data and number of model parameters.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Exploiting Generative AI to Scale up Intelligent Tutoring Systems
Jakubův, J., Chvalovský, K., Goertzel, Z., Kaliszyk, C., Olšák, M., Piotrowski, B., Schulz, S., Suda, M., & Urban, J. (2023) · DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · doi:10.4230/lipics.itp.2023.19 · Cited by 76,658
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2018) · arXiv · doi:10.48550/arxiv.1810.04805 · Cited by 73,173
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019) · Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers) · doi:10.18653/v1/n19-1423 · Cited by 54,325 · cited 7×
“Pre-training is the initial training session where we train a standard RoBERTa [15] model with MLM objective in order to learn an informative general representation of C/C++ code across different software project.”
BackgroundMethodInfluentialPyTorch: An Imperative Style, High-Performance Deep Learning Library
Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J., Chanan, G., Killeen, T., Lin, Z., Gimelshein, N., Antiga, L., et al. (2019) · arXiv · doi:10.48550/arxiv.1912.01703 · Cited by 31,473 · cited 1×
“A. Experimental setup 1) Hardware and software: We use PyTorch 1.7 [35] with CUDA 10.2 on top of Python 3.7 for all fine-tuning experiments.”
InfluentialRoBERTa: A Robustly Optimized BERT Pretraining Approach
Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., Levy, O., Lewis, M., Zettlemoyer, L., & Stoyanov, V. (2019) · arXiv · doi:10.48550/arxiv.1907.11692 · Cited by 16,515
Convolutional Neural Networks for Sentence Classification
Kim, Y. (2014) · Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.3115/v1/d14-1181 · Cited by 14,831 · cited 2×
“VulBERTa-CNN: We extract the embedding weights of the pre-trained VulBERTa model and use them as the embedding weights for a Hybrid TextCNN [30].”
BackgroundMethodFramewise phoneme classification with bidirectional LSTM and other neural network architectures
Graves, A., & Schmidhuber, J. (2005) · Neural Networks · doi:10.1016/j.neunet.2005.06.042 · Cited by 5,839 · cited 3×
“(i) Baseline-BiLSTM: This technique is a variation of LSTM, which implements a two layers Bi-directional LSTM [36] and several fully-connected layers to learn from sequences of source code for vulnerability detection.”
ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
Lan, Z., Chen, M., Goodman, S., Gimpel, K., Sharma, P., & Soricut, R. (2019) · arXiv · doi:10.48550/arxiv.1909.11942 · Cited by 4,308
GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding
Wang, A., Singh, A., Michael, J., Hill, F., Levy, O., & Bowman, S. (2018) · Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP · doi:10.18653/v1/w18-5446 · Cited by 4,222 · cited 3×
“across multiple vulnerability detection dataset Fine-tuning (vulnerability detection) [0] [12] [2] [89] E[0] E[2] E[12] E[89]”
BackgroundMethodCodeBERT: A Pre-Trained Model for Programming and Natural Languages
Feng, Z., Guo, D., Tang, D., Duan, N., Feng, X., Gong, M., Shou, L., Qin, B., Liu, T., Jiang, D., et al. (2020) · Findings of the Association for Computational Linguistics: EMNLP 2020 · doi:10.18653/v1/2020.findings-emnlp.139 · Cited by 2,824
DEBERTA: DECODING-ENHANCED BERT WITH DISENTANGLED ATTENTION
He, P., Liu, X., Gao, J., & Chen, W. (2021) · International Conference on Learning Representations · Cited by 2,477
VulDeePecker: A Deep Learning-Based System for Vulnerability Detection
Li, Z., Zou, D., Xu, S., Ou, X., Jin, H., Wang, S., Deng, Z., & Zhong, Y. (2018) · Proceedings 2018 Network and Distributed System Security Symposium · doi:10.14722/ndss.2018.23158 · Cited by 898 · cited 5×
“Vuldeepecker Precision Vuldeepecker [3] - - - - - 91.”
InfluentialModeling and Discovering Vulnerabilities with Code Property Graphs
Yamaguchi, F., Golde, N., Arp, D., & Rieck, K. (2014) · 2014 IEEE Symposium on Security and Privacy · doi:10.1109/sp.2014.44 · Cited by 808 · cited 3×
“Much work has been done to reliably and efficiently detect security vulnerabilities in source code [19]–[21].”
Deep Learning Based Vulnerability Detection: Are We There Yet?
Chakraborty, S., Krishna, R., Ding, Y., & Ray, B. (2022) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2021.3087402 · Cited by 790 · cited 4×
“RE-VEAL [25] leverages the SMOTE re-sampling and duplicate removal method to address the problem of imbalanced datasets.”
InfluentialA new algorithm for data compression
Gage, P. (1994) · C/C++ users journal · doi:10.5555/177910.177914 · Cited by 700
Unified Pre-training for Program Understanding and Generation
Ahmad, W., Chakraborty, S., Ray, B., & Chang, K.-W. (2021) · Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies · doi:10.18653/v1/2021.naacl-main.211 · Cited by 642
SySeVR: A Framework for Using Deep Learning to Detect Software Vulnerabilities
Li, Z., Zou, D., Xu, S., Jin, H., Zhu, Y., & Chen, Z. (2022) · IEEE Transactions on Dependable and Secure Computing · doi:10.1109/tdsc.2021.3051525 · Cited by 639
Automated Vulnerability Detection in Source Code Using Deep Representation Learning
Russell, R., Kim, L., Hamilton, L., Lazovich, T., Harer, J., Ozdemir, O., Ellingwood, P., & McConley, M. (2018) · 2018 17th IEEE International Conference on Machine Learning and Applications (ICMLA) · doi:10.1109/icmla.2018.00120 · Cited by 623
CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generation
Lu, S., Guo, D., Ren, S., Huang, J., Svyatkovskiy, A., Blanco, A., Clement, C., Drain, D., Jiang, D., Tang, D., et al. (2021) · arXiv · doi:10.48550/arxiv.2102.04664 · Cited by 536 · cited 2×
“1) CodeXGLUE: The CodeXGLUE [37] benchmark is the first and most popular benchmark for programming language understanding, introduced by Microsoft Research.”
GraphCodeBERT: Pre-training Code Representations with Data Flow
Guo, D., Ren, S., Lu, S., Feng, Z., Tang, D., Liu, S., Zhou, L., Duan, N., Svyatkovskiy, A., Fu, S., et al. (2020) · arXiv · doi:10.48550/arxiv.2009.08366 · Cited by 480
DeepWukong: Statically Detecting Software Vulnerabilities Using Deep Graph Neural Network
Cheng, X., Wang, H., Hua, J., Xu, G., & Sui, Y. (2021) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3436877 · Cited by 335
BGNN4VD: Constructing Bidirectional Graph Neural-Network for Vulnerability Detection
Cao, S., Sun, X., Bo, L., Wei, Y., & Li, B. (2021) · Information and Software Technology · doi:10.1016/j.infsof.2021.106576 · Cited by 231 · cited 1×
“Deep learning has obtained encouraging results for software vulnerability, in particular using sequence- and graph-based techniques such as Bidirectional-LSTM [3]–[5] and Graph Neural Networks [6], [7].”
MethodVCCFinder: Finding Potential Vulnerabilities in Open-Source Projects to Assist Code Audits
Perl, H., Dechand, S., Smith, M., Arp, D., Yamaguchi, F., Rieck, K., Fahl, S., & Acar, Y. (2015) · Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security · doi:10.1145/2810103.2813604 · Cited by 229
Hanif, H., Nasir, M. H. N. M., Razak, M. F. A., Firdaus, A., & Anuar, N. B. (2021) · Journal of Network and Computer Applications · doi:10.1016/j.jnca.2021.103009 · Cited by 219 · cited 2×
“Accordingly, there has been a steady growth of research in software vulnerability detection over the years [2], across the spectrum of vulnerability detection approaches such as static analysis, dynamic analysis and machine learning-based detection models.”
BackgroundSelf-citationCoTexT: Multi-task Learning with Code-Text TransformerPreprint
Phan, L., Tran, H., Le, D., Nguyen, H., Annibal, J., Peltekian, A., & Ye, Y. (2021) · NLP4PROG · doi:10.48550/arxiv.2105.08645 · Cited by 165 · cited 1×
“28 million) and model parameters (125 million) than existing approaches [16], [17].”
BackgroundD2A: A Dataset Built for AI-Based Vulnerability Detection Methods Using Differential Analysis
Zheng, Y., Pujar, S., Lewis, B., Buratti, L., Epstein, E., Yang, B., Laredo, J., Morari, A., & Su, Z. (2021) · 2021 IEEE/ACM 43rd International Conference on Software Engineering: Software Engineering in Practice (ICSE-SEIP) · doi:10.1109/icse-seip52600.2021.00020 · Cited by 146 · cited 6×
“We also tested VulBERTa on two software vulnerability detection benchmarks (CodeXGLUE and D2A), where it outperforms most existing approaches, despite using less training data and fewer model parameters.”
InfluentialCoTexT: Multi-task Learning with Code-Text Transformer
Phan, L., Tran, H., Le, D., Nguyen, H., Annibal, J., Peltekian, A., & Ye, Y. (2021) · Proceedings of the 1st Workshop on Natural Language Processing for Programming (NLP4Prog 2021) · doi:10.18653/v1/2021.nlp4prog-1.5 · Cited by 100
The Effect of Dimensionality Reduction on Software Vulnerability Prediction Models
Stuckman, J., Walden, J., & Scandariato, R. (2016) · IEEE Transactions on Reliability · doi:10.1109/tr.2016.2630503 · Cited by 65 · cited 1×
“Much work has been done to reliably and efficiently detect security vulnerabilities in source code [19]–[21].”
BackgroundNew deep learning method to detect code injection attacks on hybrid applications
Yan, R., Xiao, X., Hu, G., Peng, S., & Jiang, Y. (2017) · Journal of Systems and Software · doi:10.1016/j.jss.2017.11.001 · Cited by 55 · cited 1×
“Hybrid neural networks were also explored in [24], where the authors constructed a Hybrid Deep Learning Network to detect code injection attacks in HTML5based applications.”
MethodExploring Software Naturalness through Neural Language Models
Buratti, L., Pujar, S., Bornea, M. A., McCarley, S., Zheng, Y., Rossiello, G., Morari, A., Laredo, J., Thost, V., Zhuang, Y., et al. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2006.12641 · Cited by 51 · cited 4×
“These two baselines are widely used to analyse sequence-based input for vulnerability detection and have been used for example in [6] and [17].”
BackgroundMethodInfluentialSoftware Vulnerability Detection via Deep Learning over Disaggregated Code Graph RepresentationPreprint
Zhuang, Y., Suneja, S., Thost, V., Domeniconi, G., Morari, A., & Laredo, J. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2109.03341 · Cited by 37 · cited 1×
“86% on the Draper dataset, higher than the 52% obtained by the complex 3GNN model recently proposed in [40], which uses a Crystal Graph Convolutional Network and Self Attention Pooling.”
MethodOn using distributed representations of source code for the detection of C security vulnerabilitiesPreprint
Coimbra, D., Reis, S., Abreu, R., Păsăreanu, C. S., & Erdogmus, H. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2106.01367 · Cited by 23
Cited by
Ullah, S., Han, M., Pujar, S., Pearce, H., Coskun, A., & Stringhini, G. (2023) · arXiv · doi:10.48550/arxiv.2312.12575 · Cited by 132
Metadata
- Authors
- Hanif, H., & Maffeis, S.
- Venue
- 2022 International Joint Conference on Neural Networks (IJCNN)
- Publisher
- IEEE
- Published
- 2022-07-18
- Pages
- 1-8
- ISSN
- 2161-4407 (ISSN-L)
- OpenAlex
- W4312690534
- Cited by
- 169
- References
- 32
- FWCI
- 30.26
- Type
- conference paper
- Language
- en
- Open access
- green
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.