用对比学习提升区块链诈骗合约检测效率,少标签也能高精度
CASPER: Contrastive Approach for Smart Ponzi Scheme Detecter with More Negative Samples
- 通过对比学习从无标签数据中提取合约特征表示
- 仅用25%标注数据,F1得分比基线高近20%
- 适合需要低标注成本的区块链安全研究者
数字货币交易的快速发展,得益于区块链技术的融合,既推动了创新,也催生了智能合约骗局。智能庞氏骗局是一种欺诈性投资操作,利用新投资者的资金支付早期投资者回报。传统基于深度学习的检测方法依赖大量标注数据的全监督模型,但这类数据稀缺,制约了模型训练。为此,我们提出一种新颖的对比学习框架CASPER(Contrastive Approach for Smart Ponzi detectER with more negative samples),旨在提升区块链交易中智能庞氏骗局的检测能力。通过对比学习技术,CASPER可利用无标签数据学习更有效的智能合约源代码表示,显著降低运营成本与系统复杂度。我们在XBlock数据集上评估了CASPER,当使用100%标注数据时,其F1分数比基线高出2.3%;更令人印象深刻的是,在仅25%标注数据条件下,其F1分数较基线高出近20%。这些结果表明CASPER在高效、低成本检测智能庞氏骗局方面具有巨大潜力,为未来可扩展的欺诈检测解决方案铺平道路。
原文摘要 · Abstract (English)
The rapid evolution of digital currency trading, fueled by the integration of blockchain technology, has led to both innovation and the emergence of smart Ponzi schemes. A smart Ponzi scheme is a fraudulent investment operation in smart contract that uses funds from new investors to pay returns to earlier investors. Traditional Ponzi scheme detection methods based on deep learning typically rely on fully supervised models, which require large amounts of labeled data. However, such data is often scarce, hindering effective model training. To address this challenge, we propose a novel contrastive learning framework, CASPER (Contrastive Approach for Smart Ponzi detectER with more negative samples), designed to enhance smart Ponzi scheme detection in blockchain transactions. By leveraging contrastive learning techniques, CASPER can learn more effective representations of smart contract source code using unlabeled datasets, significantly reducing both operational costs and system complexity. We evaluate CASPER on the XBlock dataset, where it outperforms the baseline by 2.3% in F1 score when trained with 100% labeled data. More impressively, with only 25% labeled data, CASPER achieves an F1 score nearly 20% higher than the baseline under identical experimental conditions. These results highlight CASPER's potential for effective and cost-efficient detection of smart Ponzi schemes, paving the way for scalable fraud detection solutions in the future.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。