mlsanityData to 7 Oct 2026

Comparing Unidirectional, Bidirectional, and Word2vec Models for Discovering Vulnerabilities in Compiled Lifted Code

arXiv 2409.17513 ↗First posted 26 Sep 2024cs.CR cs.CL cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Ransomware and other forms of malware cause significant financial and operational damage to organizations by exploiting long-standing and often difficult-to-detect software vulnerabilities. To detect vulnerabilities such as buffer overflows in compiled code, this research investigates the application of unidirectional transformer-based embeddings, specifically GPT-2. Using a dataset of LLVM functions, we trained a GPT-2 model to generate embeddings, which were subsequently used to build LSTM neural networks to differentiate between vulnerable and non-vulnerable code. Our study reveals that embeddings from the GPT-2 model significantly outperform those from bidirectional models of BERT and RoBERTa, achieving an accuracy of 92.5% and an F1-score of 89.7%. LSTM neural networks were developed with both frozen and unfrozen embedding model layers. The model with the highest performance was achieved when the embedding layers were unfrozen. Further, the research finds that, in exploring the impact of different optimizers within this domain, the SGD optimizer demonstrates superior performance over Adam. Overall, these findings reveal important insights into the potential of unidirectional transformer-based approaches in enhancing cybersecurity defenses.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 18 of its 47 references that are in the map. First posted on arXiv 26 Sep 2024.

Builds on

18 of 47 references.

References · 18

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
  4. 2020Dos and Don'ts of Machine Learning in Computer Securitycited by 98
  5. 2023Understanding the Effectiveness of Large Language Models in Detecting Security Vulnerabilitiescited by 58
  6. 2023Prompt-Enhanced Software Vulnerability Detection Using ChatGPTcited by 51
  7. 2021PalmTree: Learning an Assembly Language Model for Instruction Embeddingcited by 49
  8. 2024Large Language Model for Vulnerability Detection: Emerging Results and Future Directionscited by 44
  9. 2022Transformer-Based Language Models for Software Vulnerability Detectioncited by 39
  10. 2024Finetuning Large Language Models for Vulnerability Detectioncited by 39
  11. 2024Generalization-Enhanced Code Vulnerability Detection via Multi-Task Instruction Fine-Tuningcited by 30
  12. 2021Security Vulnerability Detection Using Deep Learning Natural Language Processingcited by 12
6 more
  1. 2024VulDetectBench: Evaluating the Deep Capability of Vulnerability Detection with Large Language Modelscited by 11
  2. 2024Evaluating Large Language Models for Line-Level Vulnerability Localizationcited by 7
  3. 2021Semantic-aware Binary Code Representation with BERTcited by 6
  4. 2022Deep-Learning-based Vulnerability Detection in Binary Executablescited by 6
  5. 2023An Unbiased Transformer Source Code Learning with Semantic Vulnerability Graphcited by 5
  6. 2024Bi-Directional Transformers vs. word2vec: Discovering Vulnerabilities in Lifted Compiled Codecited by 2

Built on by

Cited by year

Citing papers per year: 2024: 1.

1 paper.