mlsanityData to 7 Oct 2026

Bi-Directional Transformers vs. word2vec: Discovering Vulnerabilities in Lifted Compiled Code

arXiv 2405.20611 ↗First posted 31 May 2024cs.CR cs.CL cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

Detecting vulnerabilities within compiled binaries is challenging due to lost high-level code structures and other factors such as architectural dependencies, compilers, and optimization options. To address these obstacles, this research explores vulnerability detection using natural language processing (NLP) embedding techniques with word2vec, BERT, and RoBERTa to learn semantics from intermediate representation (LLVM IR) code. Long short-term memory (LSTM) neural networks were trained on embeddings from encoders created using approximately 48k LLVM functions from the Juliet dataset. This study is pioneering in its comparison of word2vec models with multiple bidirectional transformers (BERT, RoBERTa) embeddings built using LLVM code to train neural networks to detect vulnerabilities in compiled binaries. Word2vec Skip-Gram models achieved 92% validation accuracy in detecting vulnerabilities, outperforming word2vec Continuous Bag of Words (CBOW), BERT, and RoBERTa. This suggests that complex contextual embeddings may not provide advantages over simpler word2vec models for this task when a limited number (e.g. 48K) of data samples are used to train the bidirectional transformer-based models. The comparative results provide novel insights into selecting optimal embeddings for learning compiler-independent semantic code representations to advance machine learning detection of vulnerabilities in compiled binaries.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 11 of its 42 references that are in the map. First posted on arXiv 31 May 2024.

Builds on

11 of 42 references.

References · 11

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  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. 2021PalmTree: Learning an Assembly Language Model for Instruction Embeddingcited by 49
  6. 2020VulDeeLocator: A Deep Learning-based Fine-grained Vulnerability Detectorcited by 37
  7. 2020Bin2vec: Learning Representations of Binary Executable Programs for Security Taskscited by 8
  8. 2021Semantic-aware Binary Code Representation with BERTcited by 6
  9. 2022Deep-Learning-based Vulnerability Detection in Binary Executablescited by 6
  10. 2020Multimodal Deep Learning for Flaw Detection in Software Programscited by 2
  11. 2020Stack-based Buffer Overflow Detection using Recurrent Neural Networkscited by 2

Built on by

Cited by year

Citing papers per year: 2024: 2.

2 papers.