Improving Smart Contract Security with Contrastive Learning-based Vulnerability Detection
Yizhou Chen, Zeyu Sun, Zhihao Gong, Dan Hao

TL;DR
This paper introduces Clear, a contrastive learning-based approach that leverages correlations among smart contracts to improve vulnerability detection, significantly outperforming existing deep learning methods on a large dataset.
Contribution
The paper proposes a novel contrastive learning framework that captures contract correlations, enhancing vulnerability detection accuracy beyond prior independent-input models.
Findings
Clear achieves the highest performance among tested methods.
F1-score improves by 9.73%-39.99% over existing approaches.
Effective utilization of contract correlations enhances detection accuracy.
Abstract
Currently, smart contract vulnerabilities (SCVs) have emerged as a major factor threatening the transaction security of blockchain. Existing state-of-the-art methods rely on deep learning to mitigate this threat. They treat each input contract as an independent entity and feed it into a deep learning model to learn vulnerability patterns by fitting vulnerability labels. It is a pity that they disregard the correlation between contracts, failing to consider the commonalities between contracts of the same type and the differences among contracts of different types. As a result, the performance of these methods falls short of the desired level. To tackle this problem, we propose a novel Contrastive Learning Enhanced Automated Recognition Approach for Smart Contract Vulnerabilities, named Clear. In particular, Clear employs a contrastive learning (CL) model to capture the fine-grained…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsCybercrime and Law Enforcement Studies
