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 条
  • [41] Event Detection via Context Understanding Based on Multi-task Learning
    Xia, Jing
    Li, Xiaolong
    Tan, Yongbin
    Zhang, Wu
    Li, Dajun
    Xiong, Zhengkun
    ACM TRANSACTIONS ON ASIAN AND LOW-RESOURCE LANGUAGE INFORMATION PROCESSING, 2023, 22 (01)
  • [42] Multi-task Learning Based on Multiple Data Sources for Cancer Detection
    Hong, Siyi
    2021 3RD INTERNATIONAL CONFERENCE ON MACHINE LEARNING, BIG DATA AND BUSINESS INTELLIGENCE (MLBDBI 2021), 2021, : 486 - 491
  • [43] Multi-Task Learning Based Joint Pulse Detection and Modulation Classification
    Akyon, Fatih Cagatay
    Nuhoglu, Mustafa Atahan
    Alp, Yasar Kemal
    Arikan, Orhan
    2019 27TH SIGNAL PROCESSING AND COMMUNICATIONS APPLICATIONS CONFERENCE (SIU), 2019,
  • [44] DNN-Based Voice Activity Detection with Multi-Task Learning
    Kang, Tae Gyoon
    Kim, Nam Soo
    IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2016, E99D (02): : 550 - 553
  • [45] Image Inpainting Detection Based on Multi-task Deep Learning Network
    Wang, Xinyi
    Niu, Shaozhang
    Wang, He
    IETE TECHNICAL REVIEW, 2021, 38 (01) : 149 - 157
  • [46] Detection of Smart Contract Timestamp Vulnerability Based on Data-flow Path Learning
    Zhang Z.
    Liu Y.-P.
    Xue J.-X.
    Yan M.
    Chen J.-C.
    Mao X.-G.
    Ruan Jian Xue Bao/Journal of Software, 2024, 35 (05): : 2325 - 2339
  • [47] Multi-task incentive contract with specific task ability
    Wang, Chunping
    Liu, Hua
    Advances in Modelling and Analysis A, 2017, 54 (02): : 185 - 196
  • [48] A Novel Smart Contract Vulnerability Detection Method Based on Information Graph and Ensemble Learning
    Zhang, Lejun
    Wang, Jinlong
    Wang, Weizheng
    Jin, Zilong
    Zhao, Chunhui
    Cai, Zhennao
    Chen, Huiling
    SENSORS, 2022, 22 (09)
  • [49] A Smart Contract Vulnerability Detection Method Based on Multimodal Feature Fusion and Deep Learning
    Li, Jinggang
    Lu, Gehao
    Gao, Yulian
    Gao, Feng
    MATHEMATICS, 2023, 11 (23)
  • [50] Model-Protected Multi-Task Learning
    Liang, Jian
    Liu, Ziqi
    Zhou, Jiayu
    Jiang, Xiaoqian
    Zhang, Changshui
    Wang, Fei
    IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 2022, 44 (02) : 1002 - 1019