Shallow or Deep? An Empirical Study on Detecting Vulnerabilities using Deep Learning
Not on the map. Why?
Abstract (arXiv)
Deep learning (DL) techniques are on the rise in the software engineering research community. More and more approaches have been developed on top of DL models, also due to the unprecedented amount of software-related data that can be used to train these models. One of the recent applications of DL in the software engineering domain concerns the automatic detection of software vulnerabilities. While several DL models have been developed to approach this problem, there is still limited empirical evidence concerning their actual effectiveness especially when compared with shallow machine learning techniques. In this paper, we partially fill this gap by presenting a large-scale empirical study using three vulnerability datasets and five different source code representations (i.e., the format in which the code is provided to the classifiers to assess whether it is vulnerable or not) to compare the effectiveness of two widely used DL-based models and of one shallow machine learning model in (i) classifying code functions as vulnerable or non-vulnerable (i.e., binary classification), and (ii) classifying code functions based on the specific type of vulnerability they contain (or "clean", if no vulnerability is there). As a baseline we include in our study the AutoML utility provided by the Google Cloud Platform. Our results show that the experimented models are still far from ensuring reliable vulnerability detection, and that a shallow learning classifier represents a competitive baseline for the newest DL-based models.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). First posted on arXiv 22 Mar 2021.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 1; 2023: 1; 2024: 1; 2025: 1; 2026: 1.
7 papers.
- 2022An Empirical Study of Deep Learning Models for Vulnerability Detectioncited by 44
- 2021A Survey on Data-driven Software Vulnerability Assessment and Prioritizationcited by 18
- 2024A Survey of Source Code Representations for Machine Learning-Based Cybersecurity Taskscited by 4
- 2023What are the Machine Learning best practices reported by practitioners on Stack Exchange?cited by 3
- 2021Data-Driven AI Model Signal-Awareness Enhancement and Introspectioncited by 1
- 2026An Empirical Study of the Imbalance Issue in Software Vulnerability Detectioncited by 1
- 2025From Lab to Reality: A Practical Evaluation of Deep Learning Models and LLMs for Vulnerability Detectioncited by 0
- 2026An Empirical Study of the Imbalance Issue in Software Vulnerability Detection12 Feb 2026
- 2025From Lab to Reality: A Practical Evaluation of Deep Learning Models and LLMs for Vulnerability Detection11 Dec 2025
- 2024A Survey of Source Code Representations for Machine Learning-Based Cybersecurity Tasks15 Mar 2024
- 2023What are the Machine Learning best practices reported by practitioners on Stack Exchange?25 Jan 2023
- 2022An Empirical Study of Deep Learning Models for Vulnerability Detection15 Dec 2022
- 2021Data-Driven AI Model Signal-Awareness Enhancement and Introspection10 Nov 2021
- 2021A Survey on Data-driven Software Vulnerability Assessment and Prioritization18 Jul 2021