When datasets deceive: Exposing overlap in smart contract vulnerability detection

Read full text
Authors: Quang Nghĩa Nguyễn, Tuyen Vu, Minh Thông Phạm, Kien Nguyen, Công Luận Trần
Cited by: 1
References: 27

Abstract

Existing smart contract vulnerability datasets exhibit over 34% train–test overlap due to repeated function-level code, causing models to favor structural memorization over semantic generalization. To mitigate this issue, we construct a benchmark dataset with zero function overlap between the training and test partitions. Furthermore, we introduce GraphFusionDetect (GFD), a novel approach that integrates fine-tuned CodeBERT embeddings with Graph Neural Networks (GNNs) to capture inter-function dependencies. GFD achieves F1-scores of 80% for detecting reentrancy vulnerabilities and 89% for timestamp dependency vulnerabilities, surpassing baseline methods and enabling more robust and generalizable vulnerability detection.

Fields of Study & Subjects

Blockchain Technology Applications and Security Adversarial Robustness in Machine Learning FinTech Crowdfunding Digital Finance

Publication details

Journal / source
ICT Express
Publisher
Elsevier BV
Publication date
1 February 2026
Language
EN