Smart Contract Vulnerability Detection Model Based on Multi-Task Learning

被引:35
|
作者
Huang, Jing [1 ,2 ]
Zhou, Kuo [1 ,2 ]
Xiong, Ao [3 ]
Li, Dongmeng [1 ,2 ]
机构
[1] Beijing Univ Technol, Fac Informat Technol, Beijing 100124, Peoples R China
[2] Beijing Key Lab Computat Intelligence & Intellige, Beijing 100124, Peoples R China
[3] Beijing Univ Posts & Telecommunicat, State Key Lab Networking & Switching Technol, Beijing 100876, Peoples R China
基金
国家重点研发计划;
关键词
smart contract; security; vulnerability detection; multi-task learning;
D O I
10.3390/s22051829
中图分类号
O65 [分析化学];
学科分类号
070302 ; 081704 ;
摘要
The key issue in the field of smart contract security is efficient and rapid vulnerability detection in smart contracts. Most of the existing detection methods can only detect the presence of vulnerabilities in the contract and can hardly identify their type. Furthermore, they have poor scalability. To resolve these issues, in this study, we developed a smart contract vulnerability detection model based on multi-task learning. By setting auxiliary tasks to learn more directional vulnerability features, the detection capability of the model was improved to realize the detection and recognition of vulnerabilities. The model is based on a hard-sharing design, which consists of two parts. First, the bottom sharing layer is mainly used to learn the semantic information of the input contract. The text representation is first transformed into a new vector by word and positional embedding, and then the neural network, based on an attention mechanism, is used to learn and extract the feature vector of the contract. Second, the task-specific layer is mainly employed to realize the functions of each task. A classical convolutional neural network was used to construct a classification model for each task that learns and extracts features from the shared layer for training to achieve their respective task objectives. The experimental results show that the model can better identify the types of vulnerabilities after adding the auxiliary vulnerability detection task. This model realizes the detection of vulnerabilities and recognizes three types of vulnerabilities. The multi-task model was observed to perform better and is less expensive than a single-task model in terms of time, computation, and storage.
引用
收藏
页数:24
相关论文
共 50 条
  • [31] A Smart Contract Vulnerability Detection System Based on BERT Model and Fuzz Testing
    Liang, Zhehao
    Cui, Baojiang
    Wang, Dongbin
    Xu, Jie
    Liu, Huipeng
    INNOVATIVE MOBILE AND INTERNET SERVICES IN UBIQUITOUS COMPUTING, IMIS 2024, 2024, 214 : 288 - 295
  • [32] Ethereum Smart Contract Vulnerability Detection Model Based on Triplet Loss and BiLSTM
    Wang, Meiying
    Xie, Zheyu
    Wen, Xuefan
    Li, Jianmin
    Zhou, Kuanjiu
    ELECTRONICS, 2023, 12 (10)
  • [33] Multi-task gradient descent for multi-task learning
    Lu Bai
    Yew-Soon Ong
    Tiantian He
    Abhishek Gupta
    Memetic Computing, 2020, 12 : 355 - 369
  • [34] Multi-task gradient descent for multi-task learning
    Bai, Lu
    Ong, Yew-Soon
    He, Tiantian
    Gupta, Abhishek
    MEMETIC COMPUTING, 2020, 12 (04) : 355 - 369
  • [35] Enhancing BERT-Based Language Model for Multi-label Vulnerability Detection of Smart Contract in Blockchain
    Tong, Van
    Dao, Cuong
    Tran, Hai-Anh
    Tran, Truong X.
    Souihi, Sami
    JOURNAL OF NETWORK AND SYSTEMS MANAGEMENT, 2024, 32 (03)
  • [36] MTL-FFDET: A Multi-Task Learning-Based Model for Forest Fire Detection
    Lu, Kangjie
    Huang, Jingwen
    Li, Junhui
    Zhou, Jiashun
    Chen, Xianliang
    Liu, Yunfei
    FORESTS, 2022, 13 (09):
  • [37] GNN-based Ethereum Smart Contract Multi-Label Vulnerability Detection
    Cheong, Yoo-Young
    Choi, La Yeon
    Shin, Jihwan
    Kim, Taekyung
    Ahn, Jinhyun
    Im, Dong-Hyuk
    38TH INTERNATIONAL CONFERENCE ON INFORMATION NETWORKING, ICOIN 2024, 2024, : 57 - 61
  • [38] Multi-task Feature Learning Based Anomaly Detection of Network Dataflow
    Ren Hui-feng
    Yan Feng
    Dong Qing-chao
    2020 CHINESE AUTOMATION CONGRESS (CAC 2020), 2020, : 4144 - 4147
  • [39] CURRICULUM BASED MULTI-TASK LEARNING FOR PARKINSON'S DISEASE DETECTION
    Dhinagar, Nikhil J.
    Owens-Walton, Conor
    Laltoo, Emily
    Boyle, Christina P.
    Chen, Yao-Liang
    Cook, Philip
    McMillan, Corey
    Tsai, Chih-Chien
    Wang, J-J
    Wu, Yih-Ru
    Van der Werf, Ysbrand
    Thompson, Paul M.
    2023 IEEE 20TH INTERNATIONAL SYMPOSIUM ON BIOMEDICAL IMAGING, ISBI, 2023,
  • [40] Contrastive Learning based Multi-task Network for Image Manipulation Detection
    Yin, Qilin
    Wang, Jinwei
    Lu, Wei
    Luo, Xiangyang
    SIGNAL PROCESSING, 2022, 201