arrow
Return

CrossSimEmb: transformer-based embedding model for cross-compilation binary code similarity detection

delete2025-10-03
delete0
PRE
AI
G
Gaoqing Yu
W
Wei Huang
J
Jiuyang Lyu
D
Dongxia Wang
Y
Yixuan Cheng
A
Aina Sui *
DOI:10.1007/s11227-025-07895-3delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Transformer-based pre-trained models have achieved breakthrough progress in binary code similarity detection tasks by modeling disassembled code as textual sequences, enabling researchers to successfully transfer natural language processing methodologies to binary code analysis. However, existing approaches remain limited by their lack of multi-granularity semantic feature extraction capability and multi-task generalization capability. In this paper, we propose CrossSimEmb, a cross-compilation binary code semantic representation and metric model, which constructs a multi-task joint optimization framework encompassing 4 pre-training tasks and 3 fine-tuning tasks. Leveraging high-performance computing resources, our framework is trained over large-scale binary datasets across multiple architectures, enabling effective integration of disassembled text features, instruction-level contextual features, inter-block structural features, and architecture-specific characteristics. In the fine-tuning phase, a Siamese network architecture is implemented to generate function-level code embeddings, while a joint optimization strategy combining binary classification, distance-based metric learning and multi-label classification is introduced for downstream tasks, effectively improving the model’s generalization capability and task adaptability in cross-compilation scenarios. Experimental results–conducted on HPC clusters–demonstrate that CrossSimEmb outperforms state-of-the-art solutions in both binary code similarity detection and outlier detection tasks: achieving 80.34% average accuracy and 0.901 AUC for binary code similarity detection, and attaining 0.961 MCC and 0.981 G-Means for outlier detection. These findings highlight both the effectiveness of our approach and the essential role of HPC resources in enabling large-scale training and evaluation.
Keywords:
Binary code similarity detection
Transformer
Metric learning
Representation learning

Journal

T
The Journal of Supercomputing
IF:
0
Papers:
647
Citations:
0

Organization

S
School of Computer and Cyber Sciences
Scholars:
20
Papers: 9
Citations: 0
Cited Papers

Cited Papers

BinDeep: A deep learning approach to binary code similarity detection
err2021-04-01
err21
PREAI
errTian, Donghai; Jia, Xiaoqi; Ma, Rui; Liu, Shuke; Liu, Wenjing; Hu, Changzhen
errShare
errSave
Fusion: measuring binary function similarity with code-specific embedding and order-sensitive gnn
err
IF0
err2022-12-02
err0
PREAI
errHao Gao; Tong Zhang; Songqiang Chen; Lina Wang; Fajiang Yu
errShare
errSave
1-to-1 or 1-to-n? Investigating the Effect of Function Inlining on Binary Similarity Analysis
err2023-05-27
err6
errOAAI
errJia, Ang; Fan, Ming; Jin, Wuxia; Xu, Xi; Zhou, Zhaohui; Tang, Qiyi; Nie, Sen; Wu, Shi; Liu, Ting
errShare
errSave
Semantic Learning and Emulation Based Cross-Platform Binary Vulnerability Seeker
err2021-11-01
err15
errOAAI
errGao, Jian; Jiang, Yu; Liu, Zhe; Yang, Xin; Wang, Cong; Jiao, Xun; Yang, Zijiang; Sun, Jiaguang
errShare
errSave
B2SMatcher: fine-Grained version identification of open-Source software in binary files
err2021-08-02
err8
errOAAI
errBan, Gu; Xu, Lili; Xiao, Yang; Li, Xinhua; Yuan, Zimu; Huo, Wei
errShare
errSave
IoTSim: Internet of Things-Oriented Binary Code Similarity Detection with Multiple Block Relations
errSENSORS
IF3.5
err2023-09-11
err2
errOAAI
errLuo, Zhenhao; Wang, Pengfei; Xie, Wei; Zhou, Xu; Wang, Baosheng
errShare
errSave
IFAttn: Binary code similarity analysis based on interpretable features with attention
err2022-09-01
err6
errOAAI
errJiang, Shuai; Fu, Cai; Qian, Yekui; He, Shuai; Lv, Jianqiang; Han, Lansheng
errShare
errSave
CrossCode2Vec: A unified representation across source and binary functions for code similarity detection
err2025-03-01
err0
PREAI
errYu, Gaoqing; An, Jing; Lyu, Jiuyang; Huang, Wei; Fan, Wenqing; Cheng, Yixuan; Sui, Aina
errShare
errSave
researcher View more