VELVET: a noVel Ensemble Learning approach to automatically locate VulnErable sTatements
Not on the map. Why?
Abstract (arXiv)
Automatically locating vulnerable statements in source code is crucial to assure software security and alleviate developers' debugging efforts. This becomes even more important in today's software ecosystem, where vulnerable code can flow easily and unwittingly within and across software repositories like GitHub. Across such millions of lines of code, traditional static and dynamic approaches struggle to scale. Although existing machine-learning-based approaches look promising in such a setting, most work detects vulnerable code at a higher granularity -- at the method or file level. Thus, developers still need to inspect a significant amount of code to locate the vulnerable statement(s) that need to be fixed. This paper presents VELVET, a novel ensemble learning approach to locate vulnerable statements. Our model combines graph-based and sequence-based neural networks to successfully capture the local and global context of a program graph and effectively understand code semantics and vulnerable patterns. To study VELVET's effectiveness, we use an off-the-shelf synthetic dataset and a recently published real-world dataset. In the static analysis setting, where vulnerable functions are not detected in advance, VELVET achieves 4.5x better performance than the baseline static analyzers on the real-world data. For the isolated vulnerability localization task, where we assume the vulnerability of a function is known while the specific vulnerable statement is unknown, we compare VELVET with several neural networks that also attend to local and global context of code. VELVET achieves 99.6% and 43.6% top-1 accuracy over synthetic data and real-world data, respectively, outperforming the baseline deep-learning models by 5.3-29.0%.
Key facts. Cited by 20 papers in the map (data through 7 Oct 2026). Builds on 23 of its 60 references that are in the map. First posted on arXiv 20 Dec 2021.
Builds on
23 of 60 references.
References · 23
- 2017Attention Is All You Needcited by 59,932
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2015Gated Graph Sequence Neural Networkscited by 792
- 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
- 2017Learning to Represent Programs with Graphscited by 219
- 2020Deep Learning based Vulnerability Detection: Are We There Yet?cited by 142
- 2020A Transformer-based Approach for Source Code Summarizationcited by 129
- 2018Automated Vulnerability Detection in Source Code Using Deep Representation Learningcited by 114
- 2018SySeVR: A Framework for Using Deep Learning to Detect Software Vulnerabilitiescited by 91
- 2021Vulnerability Detection with Fine-grained Interpretationscited by 56
- 2018Structured Neural Summarizationcited by 53
11 more
- 2021D2A: A Dataset Built for AI-Based Vulnerability Detection Methods Using Differential Analysiscited by 48
- 2020VulDeeLocator: A Deep Learning-based Fine-grained Vulnerability Detectorcited by 37
- 2018Learning to Represent Editscited by 34
- 2020Exploring Software Naturalness through Neural Language Modelscited by 32
- 2019Learning to Fix Build Errors with Graph2Diff Neural Networkscited by 26
- 2020Learning Semantic Program Embeddings with Graph Interval Neural Networkcited by 20
- 2020Patching as Translation: the Data and the Metaphorcited by 18
- 2017Do Code Clones Matter?cited by 12
- 2019LEOPARD: Identifying Vulnerable Code for Vulnerability Assessment through Program Metricscited by 10
- 2020Learning to map source code to software vulnerability using code-as-a-graphcited by 9
- 2017Digital Investigation of PDF Files: Unveiling Traces of Embedded Malwarecited by 1
Built on by
Citing papers per year: 2022: 4; 2023: 3; 2024: 6; 2025: 5; 2026: 2.
20 papers.
Sort:
By area:
- 2022An Empirical Study of Deep Learning Models for Vulnerability Detectioncited by 44
- 2022Dataflow Analysis-Inspired Deep Learning for Efficient Vulnerability Detectioncited by 18
- 2025Correctness Assessment of Code Generated by Large Language Models Using Internal Representationscited by 17
- 2024Graph Neural Networks for Vulnerability Detection: A Counterfactual Explanationcited by 12
- 2024From Vulnerabilities to Remediation: A Systematic Literature Review of LLMs in Code Securitycited by 9
- 2023Using ChatGPT as a Static Application Security Testing Toolcited by 8
- 2022On the Use of Fine-grained Vulnerable Code Statements for Software Vulnerability Assessment Modelscited by 5
- 2023An Unbiased Transformer Source Code Learning with Semantic Vulnerability Graphcited by 5
- 2024A Survey of Source Code Representations for Machine Learning-Based Cybersecurity Taskscited by 4
- 2024AI for DevSecOps: A Landscape and Future Opportunitiescited by 3
- 2022Statement-Level Vulnerability Detection: Learning Vulnerability Patterns Through Information Theory and Contrastive Learningcited by 2
- 2025Semantic-Preserving Transformations as Mutation Operators: A Study on Their Effectiveness in Defect Detectioncited by 2
8 more
- 2025Data and Context Matter: Towards Generalizing AI-based Software Vulnerability Detectioncited by 2
- 2026AutoTrace: From Patches to Triggers via Agentic Interprocedural Explorationcited by 1
- 2023Learning to Quantize Vulnerability Patterns and Match to Locate Statement-Level Vulnerabilitiescited by 0
- 2024Unintentional Security Flaws in Code: Automated Defense via Root Cause Analysiscited by 0
- 2024CLNX: Bridging Code and Natural Language for C/C++ Vulnerability-Contributing Commits Identificationcited by 0
- 2025Weakly Supervised Vulnerability Localization via Multiple Instance Learningcited by 0
- 2025MulVuln: Enhancing Pre-trained LMs with Shared and Language-Specific Knowledge for Multilingual Vulnerability Detectioncited by 0
- 2026DCVD: Dual-Channel Cross-Modal Fusion for Joint Vulnerability Detection and Localizationcited by 0
- 2026AutoTrace: From Patches to Triggers via Agentic Interprocedural Exploration13 Jul 2026
- 2026DCVD: Dual-Channel Cross-Modal Fusion for Joint Vulnerability Detection and Localization10 May 2026
- 2025MulVuln: Enhancing Pre-trained LMs with Shared and Language-Specific Knowledge for Multilingual Vulnerability Detection5 Oct 2025
- 2025Weakly Supervised Vulnerability Localization via Multiple Instance Learning14 Sep 2025
- 2025Data and Context Matter: Towards Generalizing AI-based Software Vulnerability Detection14 Aug 2025
- 2025Semantic-Preserving Transformations as Mutation Operators: A Study on Their Effectiveness in Defect Detection30 Mar 2025
- 2025Correctness Assessment of Code Generated by Large Language Models Using Internal Representations22 Jan 2025
- 2024From Vulnerabilities to Remediation: A Systematic Literature Review of LLMs in Code Security19 Dec 2024
- 2024CLNX: Bridging Code and Natural Language for C/C++ Vulnerability-Contributing Commits Identification11 Sep 2024
- 2024Unintentional Security Flaws in Code: Automated Defense via Root Cause Analysis30 Aug 2024
- 2024Graph Neural Networks for Vulnerability Detection: A Counterfactual Explanation24 Apr 2024
- 2024AI for DevSecOps: A Landscape and Future Opportunities7 Apr 2024
8 more
- 2024A Survey of Source Code Representations for Machine Learning-Based Cybersecurity Tasks15 Mar 2024
- 2023Using ChatGPT as a Static Application Security Testing Tool28 Aug 2023
- 2023Learning to Quantize Vulnerability Patterns and Match to Locate Statement-Level Vulnerabilities26 May 2023
- 2023An Unbiased Transformer Source Code Learning with Semantic Vulnerability Graph17 Apr 2023
- 2022An Empirical Study of Deep Learning Models for Vulnerability Detection15 Dec 2022
- 2022Dataflow Analysis-Inspired Deep Learning for Efficient Vulnerability Detection15 Dec 2022
- 2022Statement-Level Vulnerability Detection: Learning Vulnerability Patterns Through Information Theory and Contrastive Learning20 Sep 2022
- 2022On the Use of Fine-grained Vulnerable Code Statements for Software Vulnerability Assessment Models16 Mar 2022
- 2022An Empirical Study of Deep Learning Models for Vulnerability Detectioncited by 44
- 2022Dataflow Analysis-Inspired Deep Learning for Efficient Vulnerability Detectioncited by 18
- 2025Correctness Assessment of Code Generated by Large Language Models Using Internal Representationscited by 17
- 2024Graph Neural Networks for Vulnerability Detection: A Counterfactual Explanationcited by 12
- 2024From Vulnerabilities to Remediation: A Systematic Literature Review of LLMs in Code Securitycited by 9
- 2023Using ChatGPT as a Static Application Security Testing Toolcited by 8
- 2022On the Use of Fine-grained Vulnerable Code Statements for Software Vulnerability Assessment Modelscited by 5
- 2023An Unbiased Transformer Source Code Learning with Semantic Vulnerability Graphcited by 5
- 2024A Survey of Source Code Representations for Machine Learning-Based Cybersecurity Taskscited by 4
- 2024AI for DevSecOps: A Landscape and Future Opportunitiescited by 3
- 2022Statement-Level Vulnerability Detection: Learning Vulnerability Patterns Through Information Theory and Contrastive Learningcited by 2
- 2025Semantic-Preserving Transformations as Mutation Operators: A Study on Their Effectiveness in Defect Detectioncited by 2
12 most cited of 19 All 19 (JSON)
- 2026DCVD: Dual-Channel Cross-Modal Fusion for Joint Vulnerability Detection and Localization10 May 2026
- 2025MulVuln: Enhancing Pre-trained LMs with Shared and Language-Specific Knowledge for Multilingual Vulnerability Detection5 Oct 2025
- 2025Weakly Supervised Vulnerability Localization via Multiple Instance Learning14 Sep 2025
- 2025Data and Context Matter: Towards Generalizing AI-based Software Vulnerability Detection14 Aug 2025
- 2025Semantic-Preserving Transformations as Mutation Operators: A Study on Their Effectiveness in Defect Detection30 Mar 2025
- 2025Correctness Assessment of Code Generated by Large Language Models Using Internal Representations22 Jan 2025
- 2024From Vulnerabilities to Remediation: A Systematic Literature Review of LLMs in Code Security19 Dec 2024
- 2024CLNX: Bridging Code and Natural Language for C/C++ Vulnerability-Contributing Commits Identification11 Sep 2024
- 2024Unintentional Security Flaws in Code: Automated Defense via Root Cause Analysis30 Aug 2024
- 2024Graph Neural Networks for Vulnerability Detection: A Counterfactual Explanation24 Apr 2024
- 2024AI for DevSecOps: A Landscape and Future Opportunities7 Apr 2024
- 2024A Survey of Source Code Representations for Machine Learning-Based Cybersecurity Tasks15 Mar 2024
12 newest of 19 All 19 (JSON)