On the Role of Pre-trained Embeddings in Binary Code Analysis
Not on the map. Why?
Abstract (arXiv)
Deep learning has enabled remarkable progress in binary code analysis. In particular, pre-trained embeddings of assembly code have become a gold standard for solving analysis tasks, such as measuring code similarity or recognizing functions. These embeddings are capable of learning a vector representation from unlabeled code. In contrast to natural language processing, however, label information is not scarce for many tasks in binary code analysis. For example, labeled training data for function boundaries, optimization levels, and argument types can be easily derived from debug information provided by a compiler. Consequently, the main motivation of embeddings does not transfer directly to binary code analysis. In this paper, we explore the role of pre-trained embeddings from a critical perspective. To this end, we systematically evaluate recent embeddings for assembly code on five downstream tasks using a corpus of 1.2 million functions from the Debian distribution. We observe that several embeddings perform similarly when sufficient labeled data is available, and that differences reported in prior work are hardly noticeable. Surprisingly, we find that end-to-end learning without pre-training performs best on average, which calls into question the need for specialized embeddings. By varying the amount of labeled data, we eventually derive guidelines for when embeddings offer advantages and when end-to-end learning is preferable for binary code analysis.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 13 of its 42 references that are in the map. First posted on arXiv 12 Feb 2025.
Builds on
13 of 42 references.
References · 13
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
- 2014Distributed Representations of Sentences and Documentscited by 677
- 2021Muppet: Massive Multi-task Representations with Pre-Finetuningcited by 192
- 2016Discriminative Embeddings of Latent Variable Models for Structured Datacited by 130
- 2017Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detectioncited by 65
- 2021PalmTree: Learning an Assembly Language Model for Instruction Embeddingcited by 49
- 2018SAFE: Self-Attentive Function Embeddings for Binary Similaritycited by 33
- 2020XDA: Accurate, Robust Disassembly with Transfer Learningcited by 21
- 2020To Pretrain or Not to Pretrain: Examining the Benefits of Pretraining on Resource Rich Taskscited by 10
Built on by
Not cited yet.