paper-with-me

Papers

Robust Smart Contract Vulnerability Detection via Contrastive Learning-Enhanced Granular-ball Training

2026-03-29 · Zeli Wang, Qingxuan Yang, Shuyin Xia, Yueming Wu, Bo Liu, Longlong Lin arxiv

Deep neural networks (DNNs) have emerged as a prominent approach for detecting smart contract vulnerabilities, driven by the growing contract datasets and advanced deep learning techniques. However, DNNs typically require large-scale labeled datasets to model the relationships between contract features and vulnerability labels. In practice, the labeling process often depends on existing open-sourced tools, whose accuracy cannot be guaranteed. Consequently, label noise poses a significant challenge for the accuracy and robustness of the smart contract, which is rarely explored in the literature. To this end, we propose Contrastive learning-enhanced Granular-Ball smart Contracts training, CGBC, to enhance the robustness of contract vulnerability detection. Specifically, CGBC first introduces a Granular-ball computing layer between the encoder layer and the classifier layer, to group similar contracts into Granular-Balls (GBs) and generate new coarse-grained representations (i.e., the center and the label of GBs) for them, which can correct noisy labels based on the most correct samples. An inter-GB compactness loss and an intra-GB looseness loss are combined to enhance the effectiveness of clustering. Then, to improve the accuracy of GBs, we pretrain the model through unsupervised contrastive learning supported by our novel semantic-consistent smart contract augmentation method. This procedure can discriminate contracts with different labels by dragging the representation of similar contracts closer, assisting CGBC in clustering. Subsequently, we leverage the symmetric cross-entropy loss function to measure the model quality, which can combat the label noise in gradient computations. Finally, extensive experiments show that the proposed CGBC can significantly improve the robustness and effectiveness of the smart contract vulnerability detection when contrasted with baselines.

📄 PDF Abstract BibTeX arXiv:2603.27734

Code (0)

등록된 구현이 없습니다.

Tasks

Vulnerability DetectionContrastive Learning

Similar Papers 제목 키워드 기반

Graph Neural Networks Enhanced Smart Contract Vulnerability Detection of Educational Blockchain

2023-03-08 · Zhifeng Wang, Wanxuan Wu, Chunyan Zeng, Jialong Yao 외

With the development of blockchain technology, more and more attention has been paid to the intersection of blockchain and education, and various educational evaluation systems and E-learning systems are developed based …

Graph Neural NetworkVulnerability Detection

Smart-LLaMA: Two-Stage Post-Training of Large Language Models for Smart Contract Vulnerability Detection and Explanation

2024-11-09 · Lei Yu, Shiqi Chen, Hang Yuan, Peng Wang 외

With the rapid development of blockchain technology, smart contract security has become a critical challenge. Existing smart contract vulnerability detection methods face three main issues: (1) Insufficient quality of da…

Vulnerability Detection

Dual-view Aware Smart Contract Vulnerability Detection for Ethereum

2024-06-29 · Jiacheng Yao, Maolin Wang, Wanqi Chen, Chengxiang Jin 외

The wide application of Ethereum technology has brought technological innovation to traditional industries. As one of Ethereum's core applications, smart contracts utilize diverse contract codes to meet various functiona…

Vulnerability Detection

Knowledge Migration Framework for Smart Contract Vulnerability Detection

2024-12-15 · Luqi Wang, Wenbao Jiang

As a cornerstone of blockchain technology in the 3.0 era, smart contracts play a pivotal role in the evolution of blockchain systems. In order to address the limitations of existing smart contract vulnerability detection…

Data-free Knowledge DistillationKnowledge DistillationVulnerability Detection

HyMo: Vulnerability Detection in Smart Contracts using a Novel Multi-Modal Hybrid Model

2023-04-25 · Mohammad Khodadadi, Jafar Tahmoresnezhad

With blockchain technology rapidly progress, the smart contracts have become a common tool in a number of industries including finance, healthcare, insurance and gaming. The number of smart contracts has multiplied, and …

Deep LearningVulnerability Detection