mlsanityData to 14 Oct 2026

A Study on Mixup-Inspired Augmentation Methods for Software Vulnerability Detection

arXiv 2504.15632 ↗First posted 22 Apr 2025cs.SE cs.CR cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Various deep learning (DL) methods have recently been utilized to detect software vulnerabilities. Real-world software vulnerability datasets are rare and hard to acquire, as there is no simple metric for classifying vulnerability. Such datasets are heavily imbalanced, and none of the current datasets are considered huge for DL models. To tackle these problems, a recent work has tried to augment the dataset using the source code and generate realistic single-statement vulnerabilities, which is not quite practical and requires manual checking of the generated vulnerabilities. In this paper, we aim to explore the augmentation of vulnerabilities at the representation level to help current models learn better, which has never been done before to the best of our knowledge. We implement and evaluate five augmentation techniques that augment the embedding of the data and have recently been used for code search, which is a completely different software engineering task. We also introduced a conditioned version of those augmentation methods, which ensures the augmentation does not change the vulnerable section of the vector representation. We show that such augmentation methods can be helpful and increase the F1-score by up to 9.67%, yet they cannot beat Random Oversampling when balancing datasets, which increases the F1-score by 10.82%.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 14 of its 30 references that are in the map. First posted on arXiv 22 Apr 2025.

Builds on

14 of 30 references.

References · 14

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
  4. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
  5. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  6. 2020Evaluation: from precision, recall and F-measure to ROC, informedness, markedness and correlationcited by 425
  7. 2019Augmenting Data with Mixup for Sentence Classification: An Empirical Studycited by 125
  8. 2021Vulnerability Detection with Fine-grained Interpretationscited by 56
  9. 2020Self-Supervised Contrastive Learning for Code Retrieval and Summarization via Semantic-Preserving Transformationscited by 49
  10. 2022LineVD: Statement-level Vulnerability Detection using Graph Neural Networkscited by 35
  11. 2022The impact of feature importance methods on the interpretation of defect classifierscited by 12
  12. 2023VGX: Large-Scale Sample Generation for Boosting Learning-Based Software Vulnerability Analysescited by 9
2 more
  1. 2022Exploring Representation-Level Augmentation for Code Searchcited by 8
  2. 2022Impact of Discretization Noise of the Dependent variable on Machine Learning Classifiers in Software Engineeringcited by 6

Built on by

Not cited yet.