mlsanityData to 14 Oct 2026

Trex: Learning Execution Semantics from Micro-Traces for Binary Similarity

arXiv 2012.08680 ↗First posted 16 Dec 2020cs.CR cs.LG cs.SEcited by 34

Not on the map. Why?

Abstract (arXiv)

Detecting semantically similar functions -- a crucial analysis capability with broad real-world security usages including vulnerability detection, malware lineage, and forensics -- requires understanding function behaviors and intentions. This task is challenging as semantically similar functions can be implemented differently, run on different architectures, and compiled with diverse compiler optimizations or obfuscations. Most existing approaches match functions based on syntactic features without understanding the functions' execution semantics. We present Trex, a transfer-learning-based framework, to automate learning execution semantics explicitly from functions' micro-traces and transfer the learned knowledge to match semantically similar functions. Our key insight is that these traces can be used to teach an ML model the execution semantics of different sequences of instructions. We thus train the model to learn execution semantics from the functions' micro-traces, without any manual labeling effort. We then develop a novel neural architecture to learn execution semantics from micro-traces, and we finetune the pretrained model to match semantically similar functions. We evaluate Trex on 1,472,066 function binaries from 13 popular software projects. These functions are from different architectures and compiled with various optimizations and obfuscations. Trex outperforms the state-of-the-art systems by 7.8%, 7.2%, and 14.3% in cross-architecture, optimization, and obfuscation function matching, respectively. Ablation studies show that the pretraining significantly boosts the function matching performance, underscoring the importance of learning execution semantics.

Key facts. Cited by 34 papers in the map (data through 14 Oct 2026). First posted on arXiv 16 Dec 2020.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 2; 2022: 5; 2023: 9; 2024: 8; 2025: 3; 2026: 7.

34 papers.

Sort:

By area:

  1. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
  2. 2021PalmTree: Learning an Assembly Language Model for Instruction Embeddingcited by 49
  3. 2024CLAP: Learning Transferable Binary Code Representations with Natural Language Supervisioncited by 17
  4. 2022Beyond the C: Retargetable Decompilation using Neural Machine Translationcited by 15
  5. 2023Binary Code Summarization: Benchmarking ChatGPT/GPT-4 and Other Large Language Modelscited by 13
  6. 2023Nova: Generative Language Models for Assembly Code with Hierarchical Attention and Contrastive Learningcited by 12
  7. 2023Exploiting Code Symmetries for Learning Program Semanticscited by 10
  8. 2022BinBert: Binary Code Understanding with a Fine-tunable and Execution-aware Transformercited by 8
  9. 2023LogPr'ecis: Unleashing Language Models for Automated Malicious Log Analysiscited by 8
  10. 2024Source Code Foundation Models are Transferable Binary Analysis Knowledge Basescited by 8
  11. 2025RAFP: Identifying LLM Lineages via Rare-Region Fingerprintscited by 8
  12. 2026ShieldedCode: Learning Robust Representations for Virtual Machine Protected Codecited by 8
22 more
  1. 2022Decompiling x86 Deep Neural Network Executablescited by 7
  2. 2024CodeArt: Better Code Models by Attention Regularization When Symbols Are Lackingcited by 7
  3. 2021Improving Code Autocompletion with Transfer Learningcited by 6
  4. 2022Transformers for End-to-End InfoSec Tasks: A Feasibility Studycited by 6
  5. 2023FASER: Binary Code Similarity Search through the use of Intermediate Representationscited by 4
  6. 2025ASMA-Tune: Unlocking LLMs' Assembly Code Comprehension via Structural-Semantic Instruction Tuningcited by 4
  7. 2022NeuDep: Neural Binary Memory Dependence Analysiscited by 3
  8. 2024BLens: Contrastive Captioning of Binary Functions using Ensemble Embeddingcited by 3
  9. 2026HELIOS: Hierarchical Graph Abstraction for Structure-Aware LLM Decompilationcited by 3
  10. 2026Rethinking Code Similarity for Automated Algorithm Design with LLMscited by 3
  11. 2024ViC: Virtual Compiler Is All You Need For Assembly Code Searchcited by 2
  12. 2023VEXIR2Vec: An Architecture-Neutral Embedding Framework for Binary Similaritycited by 1
  13. 2024Unmasking the Shadows: Pinpoint the Implementations of Anti-Dynamic Analysis Techniques in Malware Using LLMcited by 1
  14. 2024A Progressive Transformer for Unifying Binary Code Embedding and Knowledge Transfercited by 1
  15. 2025A Deep Dive into Function Inlining and its Security Implications for ML-based Binary Analysiscited by 1
  16. 2026Fool Me If You Can: On the Robustness of Binary Code Similarity Detection Models against Semantics-preserving Transformationscited by 1
  17. 2026REBENCH: A Procedural, Fair-by-Construction Benchmark for LLMs on Stripped-Binary Types and Names (Extended Version)cited by 1
  18. 2023Pluvio: Assembly Clone Search for Out-of-domain Architectures and Libraries through Transfer Learning and Conditional Variational Information Bottleneckcited by 0
  19. 2023STraceBERT: Source Code Retrieval using Semantic Application Tracescited by 0
  20. 2024Know Your Neighborhood: General and Zero-Shot Capable Binary Function Search Powered by Call Graphletscited by 0
  21. 2026SemRep: Generative Code Representation Learning with Code Transformationscited by 0
  22. 2026EXHIB: A Benchmark for Realistic and Diverse Evaluation of Function Similarity in the Wildcited by 0