mlsanityData to 7 Oct 2026

VELVET: a noVel Ensemble Learning approach to automatically locate VulnErable sTatements

arXiv 2112.10893 ↗First posted 20 Dec 2021cs.SE cs.LGcited by 20

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  3. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  4. 2015Gated Graph Sequence Neural Networkscited by 792
  5. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
  6. 2017Learning to Represent Programs with Graphscited by 219
  7. 2020Deep Learning based Vulnerability Detection: Are We There Yet?cited by 142
  8. 2020A Transformer-based Approach for Source Code Summarizationcited by 129
  9. 2018Automated Vulnerability Detection in Source Code Using Deep Representation Learningcited by 114
  10. 2018SySeVR: A Framework for Using Deep Learning to Detect Software Vulnerabilitiescited by 91
  11. 2021Vulnerability Detection with Fine-grained Interpretationscited by 56
  12. 2018Structured Neural Summarizationcited by 53
11 more
  1. 2021D2A: A Dataset Built for AI-Based Vulnerability Detection Methods Using Differential Analysiscited by 48
  2. 2020VulDeeLocator: A Deep Learning-based Fine-grained Vulnerability Detectorcited by 37
  3. 2018Learning to Represent Editscited by 34
  4. 2020Exploring Software Naturalness through Neural Language Modelscited by 32
  5. 2019Learning to Fix Build Errors with Graph2Diff Neural Networkscited by 26
  6. 2020Learning Semantic Program Embeddings with Graph Interval Neural Networkcited by 20
  7. 2020Patching as Translation: the Data and the Metaphorcited by 18
  8. 2017Do Code Clones Matter?cited by 12
  9. 2019LEOPARD: Identifying Vulnerable Code for Vulnerability Assessment through Program Metricscited by 10
  10. 2020Learning to map source code to software vulnerability using code-as-a-graphcited by 9
  11. 2017Digital Investigation of PDF Files: Unveiling Traces of Embedded Malwarecited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 4; 2023: 3; 2024: 6; 2025: 5; 2026: 2.

20 papers.

Sort:

By area:

  1. 2022An Empirical Study of Deep Learning Models for Vulnerability Detectioncited by 44
  2. 2022Dataflow Analysis-Inspired Deep Learning for Efficient Vulnerability Detectioncited by 18
  3. 2025Correctness Assessment of Code Generated by Large Language Models Using Internal Representationscited by 17
  4. 2024Graph Neural Networks for Vulnerability Detection: A Counterfactual Explanationcited by 12
  5. 2024From Vulnerabilities to Remediation: A Systematic Literature Review of LLMs in Code Securitycited by 9
  6. 2023Using ChatGPT as a Static Application Security Testing Toolcited by 8
  7. 2022On the Use of Fine-grained Vulnerable Code Statements for Software Vulnerability Assessment Modelscited by 5
  8. 2023An Unbiased Transformer Source Code Learning with Semantic Vulnerability Graphcited by 5
  9. 2024A Survey of Source Code Representations for Machine Learning-Based Cybersecurity Taskscited by 4
  10. 2024AI for DevSecOps: A Landscape and Future Opportunitiescited by 3
  11. 2022Statement-Level Vulnerability Detection: Learning Vulnerability Patterns Through Information Theory and Contrastive Learningcited by 2
  12. 2025Semantic-Preserving Transformations as Mutation Operators: A Study on Their Effectiveness in Defect Detectioncited by 2
8 more
  1. 2025Data and Context Matter: Towards Generalizing AI-based Software Vulnerability Detectioncited by 2
  2. 2026AutoTrace: From Patches to Triggers via Agentic Interprocedural Explorationcited by 1
  3. 2023Learning to Quantize Vulnerability Patterns and Match to Locate Statement-Level Vulnerabilitiescited by 0
  4. 2024Unintentional Security Flaws in Code: Automated Defense via Root Cause Analysiscited by 0
  5. 2024CLNX: Bridging Code and Natural Language for C/C++ Vulnerability-Contributing Commits Identificationcited by 0
  6. 2025Weakly Supervised Vulnerability Localization via Multiple Instance Learningcited by 0
  7. 2025MulVuln: Enhancing Pre-trained LMs with Shared and Language-Specific Knowledge for Multilingual Vulnerability Detectioncited by 0
  8. 2026DCVD: Dual-Channel Cross-Modal Fusion for Joint Vulnerability Detection and Localizationcited by 0