mlsanityData to 7 Oct 2026

VEXIR2Vec: An Architecture-Neutral Embedding Framework for Binary Similarity

arXiv 2312.00507 ↗First posted 1 Dec 2023cs.PL cs.CR cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Binary similarity involves determining whether two binary programs exhibit similar functionality, often originating from the same source code. In this work, we propose VexIR2Vec, an approach for binary similarity using VEX-IR, an architecture-neutral Intermediate Representation (IR). We extract the embeddings from sequences of basic blocks, termed peepholes, derived by random walks on the control-flow graph. The peepholes are normalized using transformations inspired by compiler optimizations. The VEX-IR Normalization Engine mitigates, with these transformations, the architectural and compiler-induced variations in binaries while exposing semantic similarities. We then learn the vocabulary of representations at the entity level of the IR using the knowledge graph embedding techniques in an unsupervised manner. This vocabulary is used to derive function embeddings for similarity assessment using VexNet, a feed-forward Siamese network designed to position similar functions closely and separate dissimilar ones in an n-dimensional space. This approach is amenable for both diffing and searching tasks, ensuring robustness against Out-Of-Vocabulary (OOV) issues. We evaluate VexIR2Vec on a dataset comprising 2.7M functions and 15.5K binaries from 7 projects compiled across 12 compilers targeting x86 and ARM architectures. In diffing experiments, VexIR2Vec outperforms the nearest baselines by 40%, 18%, 21%, and 60% in cross-optimization, cross-compilation, cross-architecture, and obfuscation settings, respectively. In the searching experiment, VexIR2Vec achieves a mean average precision of 0.76, outperforming the nearest baseline by 46%. Our framework is highly scalable and is built as a lightweight, multi-threaded, parallel library using only open-source tools. VexIR2Vec is 3.1-3.5 × faster than the closest baselines and orders-of-magnitude faster than other tools.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 35 of its 146 references that are in the map. First posted on arXiv 1 Dec 2023.

Builds on

35 of 146 references.

References · 35

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  5. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
  6. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  7. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
  8. 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
  9. 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,833
  10. 2019Optuna: A Next-generation Hyperparameter Optimization Frameworkcited by 2,455
  11. 2016Enriching Word Vectors with Subword Informationcited by 1,578
  12. 2017In Defense of the Triplet Loss for Person Re-Identificationcited by 784
23 more
  1. 2018Tune: A Research Platform for Distributed Model Selection and Trainingcited by 395
  2. 2019Graph Matching Networks for Learning the Similarity of Graph Structured Objectscited by 202
  3. 2020Hard negative examples are hard, but usefulcited by 82
  4. 2019Improved Embeddings with Easy Positive Triplet Miningcited by 66
  5. 2017Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detectioncited by 65
  6. 2021PalmTree: Learning an Assembly Language Model for Instruction Embeddingcited by 49
  7. 2019When Deep Learning Met Code Searchcited by 45
  8. 2022jTrans: Jump-Aware Transformer for Binary Code Similaritycited by 44
  9. 2020Trex: Learning Execution Semantics from Micro-Traces for Binary Similaritycited by 34
  10. 2018SAFE: Self-Attentive Function Embeddings for Binary Similaritycited by 33
  11. 2021How could Neural Networks understand Programs?cited by 26
  12. 2018Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairscited by 25
  13. 2019A Survey of Binary Code Similaritycited by 18
  14. 2023kTrans: Knowledge-Aware Transformer for Binary Code Embeddingcited by 10
  15. 2021Asteria: Deep Learning-based AST-Encoding for Cross-platform Binary Code Similarity Detectioncited by 8
  16. 2018A Cross-Architecture Instruction Embedding Model for Natural Language Processing-Inspired Binary Code Analysiscited by 5
  17. 2023Asteria-Pro: Enhancing Deep-Learning Based Binary Code Similarity Detection by Incorporating Domain Knowledgecited by 5
  18. 2018BOLT: A Practical Binary Optimizer for Data Centers and Beyondcited by 4
  19. 2021Unleashing the Hidden Power of Compiler Optimization on Binary Code Difference: An Empirical Studycited by 4
  20. 2023FASER: Binary Code Similarity Search through the use of Intermediate Representationscited by 4
  21. 20211-to-1 or 1-to-n? Investigating the effect of function inlining on binary similarity analysiscited by 3
  22. 2023Matching Linear Algebra and Tensor Code to Specialized Hardware Acceleratorscited by 3
  23. 2017Source Forager: A Search Engine for Similar Source Codecited by 1

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.