Vulnerability Code Similarity Detection Method Based on Transformer
With the expansion of software development, vulnerability detection and code reuse based on code similarity are becoming increasingly important. In the traditional twin network, there is a problem of insufficient feature extraction in the source code similarity evaluation. In this paper, a Transformer-based source code similarity evaluation model SCDetect is proposed, which effectively improves the performance of code similarity evaluation by using an improved self-attention mechanism (Si-AS), a Gaussian embedding method and a Transformer-based crossattention architecture. These improvements break through the limitations of traditional twin networks, improve feature extraction capabilities, and provide a new solution for code similarity evaluation.
Authors
- Jialin Zhao
- Weiwei Liu (ORCID: https://orcid.org/0000-0003-0985-4072)
Institutions
- Nanjing University of Science and Technology (CN)
Publication Details
- Published
- 2025-03-21
- DOI
- https://doi.org/10.1109/icsi64877.2025.11009708
- Primary Topic
- Advanced Malware Detection Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00