Skip to main navigation Skip to search Skip to main content

A Vulnerability Detection Method for Smart Contracts Based on Dynamic Meta Optimizer

  • Daojing He*
  • , Wei Gong
  • , Sammy Chan
  • *Corresponding author for this work
  • School of Computer Science and Technology, Harbin Institute of Technology
  • Jiangxi University of Science and Technology
  • City University of Hong Kong

Research output: Contribution to journalArticlepeer-review

Abstract

With the increasingly complex blockchain technology environment and emerging security threats, the detection and prevention of vulnerabilities in blockchain smart contracts have become crucial for ensuring the healthy development of blockchain technology and avoiding substantial economic losses. Recently developed vulnerability detection methods for smart contracts suffer from the drawbacks of insufficient feature extraction and inadequate multitask detection. This article proposes a multifaceted learning model, dynamic learning rate (DLR), based on a dual-loop architecture of meta learning to address these issues by adopting model-agnostic meta-learning techniques. This model employs a syntax analyzer for targeted feature extraction, with graph information used as a supporting tool during the initial stage of feature engineering. Combined with an improved optimizer algorithm in the inner loop, the model can effectively learn and adjust based on the specific requirements of each task. In the outer loop, the model achieves efficient learning rate adjustment for multitask learning by integrating the adaptive learning rate of the Adam optimizer with a global adjustment using simulated annealing strategy, thereby enhancing performance across diverse tasks. Experimental results demonstrate significant improvements in detection accuracy over state-of-the-art methods for three types of vulnerabilities, with our method achieving detection accuracies of 94.40%, 93.36%, and 94.33% for reentrancy, timestamp dependence, and integer overflow vulnerabilities, respectively.

Original languageEnglish
Pages (from-to)24904-24915
Number of pages12
JournalIEEE Internet of Things Journal
Volume12
Issue number13
DOIs
StatePublished - 2025
Externally publishedYes

Keywords

  • Adam
  • meta-learning
  • simulated annealing
  • smart contract

Fingerprint

Dive into the research topics of 'A Vulnerability Detection Method for Smart Contracts Based on Dynamic Meta Optimizer'. Together they form a unique fingerprint.

Cite this