The smart contract vulnerability detection based on pre-trained model feature fusion

With the widespread application of blockchain technology across various fields, the security of smart contracts has become increasingly important. In the field of anomaly detection, particularly in smart contract vulnerability detection, pre-trained models have demonstrated tremendous potential, improving the accuracy and efficiency of vulnerability detection. However, these models typically focus on a single modality, which limits their applicability. While integrating multiple models can mitigate this issue, effectively fusing features from different pretrained models remains a challenge that needs to be addressed.To tackle this problem, this paper proposes a feature fusion method for smart contract vulnerability detection based on pre-trained models (PFSCV). The method uses contrastive learning (CL) to capture fine-grained relational information between smart contracts, generating sample pairs based on the relationships between contracts to guide the fine-tuning of the pre-trained model CodeBERT, enabling it to learn contextual information from the source code. At the same time, the UnixCoder model is fine-tuned to extract data flow information from the contracts. Subsequently, we introduce an att-BiLSTM (Attention-based Bidirectional Long Short-Term Memory) model to fuse and integrate features extracted from different pre-trained models. Finally, extensive experiments on real-world smart contract datasets validate the effectiveness and reliability of the proposed method.

Authors

Institutions

Publication Details

Published
2025-03-21
DOI
https://doi.org/10.1109/iscait64916.2025.11010394
Primary Topic
Blockchain Technology Applications and Security
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

The smart contract vulnerability detection based on pre-trained model feature fusion

Deguang Wang, Sophia Xiaoxia Duan
Blockchain Technology Applications and Security
article

The smart contract vulnerability detection based on pre-trained model feature fusion

Deguang Wang, Sophia Xiaoxia Duan
article en

Abstract

With the widespread application of blockchain technology across various fields, the security of smart contracts has become increasingly important. In the field of anomaly detection, particularly in smart contract vulnerability detection, pre-trained models have demonstrated tremendous potential, improving the accuracy and efficiency of vulnerability detection. However, these models typically focus on a single modality, which limits their applicability. While integrating multiple models can mitigate this issue, effectively fusing features from different pretrained models remains a challenge that needs to be addressed.To tackle this problem, this paper proposes a feature fusion method for smart contract vulnerability detection based on pre-trained models (PFSCV). The method uses contrastive learning (CL) to capture fine-grained relational information between smart contracts, generating sample pairs based on the relationships between contracts to guide the fine-tuning of the pre-trained model CodeBERT, enabling it to learn contextual information from the source code. At the same time, the UnixCoder model is fine-tuned to extract data flow information from the contracts. Subsequently, we introduce an att-BiLSTM (Attention-based Bidirectional Long Short-Term Memory) model to fuse and integrate features extracted from different pre-trained models. Finally, extensive experiments on real-world smart contract datasets validate the effectiveness and reliability of the proposed method.

Dalian Jiaotong University (CN)
Openalex Percentile: Top 83%
Blockchain Technology Applications and Security
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.