SAFE: Self-Attentive Function Embeddings for Binary Similarity
Not on the map. Why?
Abstract (arXiv)
The binary similarity problem consists in determining if two functions are similar by only considering their compiled form. Advanced techniques for binary similarity recently gained momentum as they can be applied in several fields, such as copyright disputes, malware analysis, vulnerability detection, etc., and thus have an immediate practical impact. Current solutions compare functions by first transforming their binary code in multi-dimensional vector representations (embeddings), and then comparing vectors through simple and efficient geometric operations. However, embeddings are usually derived from binary code using manual feature extraction, that may fail in considering important function characteristics, or may consider features that are not important for the binary similarity problem. In this paper we propose SAFE, a novel architecture for the embedding of functions based on a self-attentive neural network. SAFE works directly on disassembled binary functions, does not require manual feature extraction, is computationally more efficient than existing solutions (i.e., it does not incur in the computational overhead of building or manipulating control flow graphs), and is more general as it works on stripped binaries and on multiple architectures. We report the results from a quantitative and qualitative analysis that show how SAFE provides a noticeable performance improvement with respect to previous solutions. Furthermore, we show how clusters of our embedding vectors are closely related to the semantic of the implemented algorithms, paving the way for further interesting applications (e.g. semantic-based binary function search).
Key facts. Cited by 33 papers in the map (data through 7 Oct 2026). First posted on arXiv 13 Nov 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 5; 2023: 4; 2024: 4; 2025: 6; 2026: 10.
33 papers.
Sort:
By area:
- 2021PalmTree: Learning an Assembly Language Model for Instruction Embeddingcited by 49
- 2024CLAP: Learning Transferable Binary Code Representations with Natural Language Supervisioncited by 17
- 2022Backdoor Vulnerabilities in Normally Trained Deep Learning Modelscited by 12
- 2023kTrans: Knowledge-Aware Transformer for Binary Code Embeddingcited by 10
- 2021Eth2Vec: Learning Contract-Wide Code Representations for Vulnerability Detection on Ethereum Smart Contractscited by 7
- 2021Semantic-aware Binary Code Representation with BERTcited by 6
- 2022Efficient Malware Analysis Using Metric Embeddingscited by 6
- 2024Is Function Similarity Over-Engineered? Building a Benchmarkcited by 6
- 2025E2LVLM:Evidence-Enhanced Large Vision-Language Model for Multimodal Out-of-Context Misinformation Detectioncited by 6
- 2021XFL: Naming Functions in Binaries with Extreme Multi-label Learningcited by 5
- 2023FASER: Binary Code Similarity Search through the use of Intermediate Representationscited by 4
- 2022FuncFooler: A Practical Black-box Attack Against Learning-based Binary Code Similarity Detection Methodscited by 3
21 more
- 2022UniASM: Binary Code Similarity Detection without Fine-tuningcited by 3
- 2024BLens: Contrastive Captioning of Binary Functions using Ensemble Embeddingcited by 3
- 2025Data and Context Matter: Towards Generalizing AI-based Software Vulnerability Detectioncited by 2
- 2025Binary BPE: A Family of Cross-Platform Tokenizers for Binary Analysiscited by 2
- 2023VEXIR2Vec: An Architecture-Neutral Embedding Framework for Binary Similaritycited by 1
- 2024A Progressive Transformer for Unifying Binary Code Embedding and Knowledge Transfercited by 1
- 2025A Deep Dive into Function Inlining and its Security Implications for ML-based Binary Analysiscited by 1
- 2026Fool Me If You Can: On the Robustness of Binary Code Similarity Detection Models against Semantics-preserving Transformationscited by 1
- 2022SimCLF: A Simple Contrastive Learning Framework for Function-level Binary Embeddingscited by 0
- 2023Pluvio: Assembly Clone Search for Out-of-domain Architectures and Libraries through Transfer Learning and Conditional Variational Information Bottleneckcited by 0
- 2025On the Role of Pre-trained Embeddings in Binary Code Analysiscited by 0
- 2025Beyond Embeddings: Interpretable Feature Extraction for Binary Code Similaritycited by 0
- 2026Walma: Learning to See Memory Corruption in WebAssemblycited by 0
- 2026EXHIB: A Benchmark for Realistic and Diverse Evaluation of Function Similarity in the Wildcited by 0
- 2026Patch2Vuln: Agentic Reconstruction of Vulnerabilities from Linux Distribution Binary Patchescited by 0
- 2026Attacking the First-Principle: A Black-Box, Query-Free Targeted Mimicry Attack on Binary Function Classifierscited by 0
- 2026ASSEMBLAGE-DEEPHISTORY: A Cross-Build Binary Dataset with Temporal Coveragecited by 0
- 2026SoK: AI-Augmented Binary Reversingcited by 0
- 2026Practical Source Code Recovery from Binary Functions Using Anchor-Based Retrieval and LLM Reasoningcited by 0
- 2026Pretraining on Call Graphs: When Binary Analysis Tasks Profit From Contextcited by 0
- 2026Instruction Alignment for Binary Code Representation Learningcited by 0
- 2026Instruction Alignment for Binary Code Representation Learning12 Aug 2026
- 2026Pretraining on Call Graphs: When Binary Analysis Tasks Profit From Context3 Aug 2026
- 2026Practical Source Code Recovery from Binary Functions Using Anchor-Based Retrieval and LLM Reasoning10 Jul 2026
- 2026SoK: AI-Augmented Binary Reversing16 Jun 2026
- 2026ASSEMBLAGE-DEEPHISTORY: A Cross-Build Binary Dataset with Temporal Coverage20 May 2026
- 2026Attacking the First-Principle: A Black-Box, Query-Free Targeted Mimicry Attack on Binary Function Classifiers18 May 2026
- 2026Patch2Vuln: Agentic Reconstruction of Vulnerabilities from Linux Distribution Binary Patches7 May 2026
- 2026EXHIB: A Benchmark for Realistic and Diverse Evaluation of Function Similarity in the Wild2 Apr 2026
- 2026Walma: Learning to See Memory Corruption in WebAssembly25 Mar 2026
- 2026Fool Me If You Can: On the Robustness of Binary Code Similarity Detection Models against Semantics-preserving Transformations13 Feb 2026
- 2025A Deep Dive into Function Inlining and its Security Implications for ML-based Binary Analysis16 Dec 2025
- 2025Binary BPE: A Family of Cross-Platform Tokenizers for Binary Analysis14 Nov 2025
21 more
- 2025Beyond Embeddings: Interpretable Feature Extraction for Binary Code Similarity27 Sep 2025
- 2025Data and Context Matter: Towards Generalizing AI-based Software Vulnerability Detection14 Aug 2025
- 2025E2LVLM:Evidence-Enhanced Large Vision-Language Model for Multimodal Out-of-Context Misinformation Detection12 Feb 2025
- 2025On the Role of Pre-trained Embeddings in Binary Code Analysis12 Feb 2025
- 2024A Progressive Transformer for Unifying Binary Code Embedding and Knowledge Transfer15 Dec 2024
- 2024Is Function Similarity Over-Engineered? Building a Benchmark30 Oct 2024
- 2024BLens: Contrastive Captioning of Binary Functions using Ensemble Embedding12 Sep 2024
- 2024CLAP: Learning Transferable Binary Code Representations with Natural Language Supervision26 Feb 2024
- 2023VEXIR2Vec: An Architecture-Neutral Embedding Framework for Binary Similarity1 Dec 2023
- 2023FASER: Binary Code Similarity Search through the use of Intermediate Representations5 Oct 2023
- 2023kTrans: Knowledge-Aware Transformer for Binary Code Embedding24 Aug 2023
- 2023Pluvio: Assembly Clone Search for Out-of-domain Architectures and Libraries through Transfer Learning and Conditional Variational Information Bottleneck20 Jul 2023
- 2022Efficient Malware Analysis Using Metric Embeddings5 Dec 2022
- 2022Backdoor Vulnerabilities in Normally Trained Deep Learning Models29 Nov 2022
- 2022UniASM: Binary Code Similarity Detection without Fine-tuning28 Oct 2022
- 2022SimCLF: A Simple Contrastive Learning Framework for Function-level Binary Embeddings6 Sep 2022
- 2022FuncFooler: A Practical Black-box Attack Against Learning-based Binary Code Similarity Detection Methods26 Aug 2022
- 2021XFL: Naming Functions in Binaries with Extreme Multi-label Learning28 Jul 2021
- 2021Semantic-aware Binary Code Representation with BERT10 Jun 2021
- 2021PalmTree: Learning an Assembly Language Model for Instruction Embedding21 Jan 2021
- 2021Eth2Vec: Learning Contract-Wide Code Representations for Vulnerability Detection on Ethereum Smart Contracts7 Jan 2021
- 2021PalmTree: Learning an Assembly Language Model for Instruction Embeddingcited by 49
- 2024CLAP: Learning Transferable Binary Code Representations with Natural Language Supervisioncited by 17
- 2022Backdoor Vulnerabilities in Normally Trained Deep Learning Modelscited by 12
- 2023kTrans: Knowledge-Aware Transformer for Binary Code Embeddingcited by 10
- 2021Eth2Vec: Learning Contract-Wide Code Representations for Vulnerability Detection on Ethereum Smart Contractscited by 7
- 2021Semantic-aware Binary Code Representation with BERTcited by 6
- 2022Efficient Malware Analysis Using Metric Embeddingscited by 6
- 2024Is Function Similarity Over-Engineered? Building a Benchmarkcited by 6
- 2021XFL: Naming Functions in Binaries with Extreme Multi-label Learningcited by 5
- 2023FASER: Binary Code Similarity Search through the use of Intermediate Representationscited by 4
- 2022FuncFooler: A Practical Black-box Attack Against Learning-based Binary Code Similarity Detection Methodscited by 3
- 2022UniASM: Binary Code Similarity Detection without Fine-tuningcited by 3
12 most cited of 31 All 31 (JSON)
- 2026Instruction Alignment for Binary Code Representation Learning12 Aug 2026
- 2026Pretraining on Call Graphs: When Binary Analysis Tasks Profit From Context3 Aug 2026
- 2026Practical Source Code Recovery from Binary Functions Using Anchor-Based Retrieval and LLM Reasoning10 Jul 2026
- 2026SoK: AI-Augmented Binary Reversing16 Jun 2026
- 2026ASSEMBLAGE-DEEPHISTORY: A Cross-Build Binary Dataset with Temporal Coverage20 May 2026
- 2026Attacking the First-Principle: A Black-Box, Query-Free Targeted Mimicry Attack on Binary Function Classifiers18 May 2026
- 2026EXHIB: A Benchmark for Realistic and Diverse Evaluation of Function Similarity in the Wild2 Apr 2026
- 2026Walma: Learning to See Memory Corruption in WebAssembly25 Mar 2026
- 2026Fool Me If You Can: On the Robustness of Binary Code Similarity Detection Models against Semantics-preserving Transformations13 Feb 2026
- 2025A Deep Dive into Function Inlining and its Security Implications for ML-based Binary Analysis16 Dec 2025
- 2025Binary BPE: A Family of Cross-Platform Tokenizers for Binary Analysis14 Nov 2025
- 2025Beyond Embeddings: Interpretable Feature Extraction for Binary Code Similarity27 Sep 2025
12 newest of 31 All 31 (JSON)