mlsanityData to 14 Oct 2026

Statement-Level Vulnerability Detection: Learning Vulnerability Patterns Through Information Theory and Contrastive Learning

arXiv 2209.10414 ↗First posted 20 Sep 2022cs.CR cs.AI cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

Software vulnerabilities are a serious and crucial concern. Typically, in a program or function consisting of hundreds or thousands of source code statements, there are only a few statements causing the corresponding vulnerabilities. Most current approaches to vulnerability labelling are done on a function or program level by experts with the assistance of machine learning tools. Extending this approach to the code statement level is much more costly and time-consuming and remains an open problem. In this paper, we propose a novel end-to-end deep learning-based approach to identify the vulnerability-relevant code statements of a specific function. Inspired by the specific structures observed in real-world vulnerable code, we first leverage mutual information for learning a set of latent variables representing the relevance of the source code statements to the corresponding function's vulnerability. We then propose novel clustered spatial contrastive learning in order to further improve the representation learning and the robust selection process of vulnerability-relevant code statements. Experimental results on real-world datasets of 200k+ C/C++ functions show the superiority of our method over other state-of-the-art baselines. In general, our method obtains a higher performance in VCP, VCA, and Top-10 ACC measures of between 3% to 14% over the baselines when running on real-world datasets in an unsupervised setting. Our released source code samples are publicly available at hrefhttps://github.com/vannguyennd/livuitclhttps://github.com/vannguyennd/livuitcl.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 15 of its 54 references that are in the map. First posted on arXiv 20 Sep 2022.

Builds on

15 of 54 references.

References · 15

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  3. 2017Graph Attention Networkscited by 8,923
  4. 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
  5. 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
  6. 2020Supervised Contrastive Learningcited by 2,829
  7. 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,739
  8. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  9. 2018Learning to Explain: An Information-Theoretic Perspective on Model Interpretationcited by 248
  10. 2018SySeVR: A Framework for Using Deep Learning to Detect Software Vulnerabilitiescited by 92
  11. 2020VulDeeLocator: A Deep Learning-based Fine-grained Vulnerability Detectorcited by 37
  12. 2021ReGVD: Revisiting Graph Neural Networks for Vulnerability Detectioncited by 32
3 more
  1. 2021VELVET: a noVel Ensemble Learning approach to automatically locate VulnErable sTatementscited by 20
  2. 2017Automatic feature learning for vulnerability predictioncited by 10
  3. 2022Cross Project Software Vulnerability Detection via Domain Adaptation and Max-Margin Principlecited by 1

Built on by

Cited by year

Citing papers per year: 2022: 1; 2023: 0; 2024: 0; 2025: 1.

2 papers.