PalmTree: Learning an Assembly Language Model for Instruction Embedding
Authors:
Top Cited Papers
Open Access
- 12 November 2021
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 3236-3251
Abstract
Deep learning has demonstrated its strengths in numerous binary analysis tasks, including function boundary detection, binary code search, function prototype inference, value set analysis, etc. When applying deep learning to binary analysis tasks, we need to decide what input should be fed into the neural network model. More specifically, we need to answer how to represent an instruction in a fixed-length vector. The idea of automatically learning instruction representations is intriguing, but the existing schemes fail to capture the unique characteristics of disassembly. These schemes ignore the complex intra-instruction structures and mainly rely on control flow in which the contextual information is noisy and can be influenced by compiler optimizations. In this paper, we propose to pre-train an assembly language model called PalmTree for generating general-purpose instruction embeddings by conducting self-supervised training on large-scale unlabeled binary corpora. PalmTree utilizes three pre-training tasks to capture various characteristics of assembly language. These training tasks overcome the problems in existing schemes, thus can help to generate high-quality representations. We conduct both intrinsic and extrinsic evaluations, and compare PalmTree with other instruction embedding schemes. PalmTree has the best performance for intrinsic metrics, and outperforms the other instruction embedding schemes for all downstream tasks.Keywords
All Related Versions
Funding Information
- Office of Naval Research (No. N00014-17-1-2893)
- NSF (National Science Foundation) (No. 1719175)
This publication has 13 references indexed in Scilit:
- SAFE: Self-Attentive Function Embeddings for Binary Similarity2019
- Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization2019
- Transformer-XL: Attentive Language Models beyond a Fixed-Length Context2019
- Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs2019
- αDiff: cross-version binary code similarity detection with DNN2018
- A Survey of Machine Learning for Big Code and NaturalnessACM Computing Surveys, 2018
- Deep Contextualized Word Representations2018
- Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection2017
- Neural Machine Translation of Rare Words with Subword Units2016
- An Improved Crowdsourcing Based Evaluation Technique for Word Embedding Methods2016