Related Experiment Video
Updated: May 12, 2025

Augmenting Large Language Models via Vector Embeddings to Improve Domain-Specific Responsiveness
Published on: December 6, 2024
Ex2Vec: Enhancing assembly code semantics with end-to-end execution-aware embeddings
Xingyu Gong1, Yang Xu1, Sicong Zhang1
1School of Cyber Science and Technology, Guizhou Normal University, Guiyang 550001, China; Guizhou Key Laboratory of NewGen Cyberspace Security, Guiyang 550001, China.
Ex2vec enhances binary code similarity detection by learning instruction execution semantics, outperforming existing methods. This approach improves accuracy in identifying similar code and detecting vulnerabilities.
Area of Science:
- Computer Science
- Cybersecurity
- Machine Learning
Background:
- Binary code similarity detection (BSCD) is crucial for computer security tasks.
- Current deep neural network (DNN) methods often use masked language modeling (MLM), limiting execution semantic capture.
- Existing techniques struggle to fully represent the functional meaning of code instructions.
Purpose of the Study:
- To introduce Ex2vec, an end-to-end encoding method for high-quality, execution-semantic-rich embeddings for BSCD.
- To develop a novel pre-training strategy for learning instruction impact on register states.
- To improve the accuracy and effectiveness of binary code analysis.
Main Methods:
- Ex2vec simulates assembly instruction execution to capture semantic features.
- A novel pre-training strategy focuses on the impact of instructions on register states, not just co-occurrence.
- Principal Component Analysis (PCA) is used to visualize and validate the semantic clustering of instructions.
Main Results:
- Ex2vec generates embeddings rich in execution semantics.
- Functionally similar instructions demonstrably cluster together in the embedding space.
- Ex2vec significantly surpasses existing state-of-the-art methods in BSCD performance.
Conclusions:
- Ex2vec offers a superior approach to BSCD by effectively capturing execution semantics.
- The method achieves state-of-the-art results on large-scale datasets.
- Ex2vec demonstrates high accuracy in real-world vulnerability detection scenarios.
Related Concept Videos
Improving Translational Accuracy
Per-Unit Sequence Models
Zero-sequence currents, which are identical in magnitude and phase, generate a neutral current, resulting in voltage drops across the neutral impedance and the low-voltage winding. If the...
Oligosaccharide Assembly
Multiple sugar molecules that may or may...
Assembly of Signaling Complexes
Interaction domains in cell signaling
Interaction domains recognize exposed features of their binding partners containing post-translationally modified sequences,...
Genome Annotation and Assembly
Protein Complex Assembly

