[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-503805-105":3,"doc-detail-503805-en":81,"detail-sidebar-cat-0-en-105":116},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","casper-contrastive-approach-for-smart-ponzi-scheme-detecter-with-more-negative-samples","CASPER - Contrastive Approach for Smart Ponzi Scheme Detecter with More Negative Samples","","The work addresses fraud detection for smart Ponzi schemes in blockchain smart contracts, where new investor funds are used to pay earlier returns. Existing deep-learning approaches often depend on fully supervised training and large labeled datasets, which are scarce. CASPER introduces a contrastive learning framework to learn effective contract-code representations from unlabeled data. Experiments on the XBlock dataset show a 2.3% F1 improvement with full labels and nearly 20% higher F1 with only 25% labeled data.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/casper-contrastive-approach-for-smart-ponzi-scheme-detecter-with-more-negative-samples/503805/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/casper-contrastive-approach-for-smart-ponzi-scheme-detecter-with-more-negative-samples/503805.png","ImageObject",300,407,{"name":42,"@type":43},"McGucket","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-04","2026-10-03",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",11,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What problem does CASPER address?","Question",{"text":63,"@type":64},"CASPER targets detection of smart Ponzi schemes in blockchain smart contract transactions, where fraudulent payouts are funded by new investors.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"Why do traditional supervised detection methods struggle?",{"text":68,"@type":64},"They typically require large amounts of labeled data, which is often scarce, making effective model training difficult.",{"name":70,"@type":61,"acceptedAnswer":71},"How does CASPER reduce reliance on labeled data?",{"text":72,"@type":64},"CASPER uses a contrastive learning framework to learn stronger representations of smart contract source code from unlabeled datasets.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},503805,1791240981,{"code":4,"msg":82,"data":83},"success",{"doc_id":79,"user_id":84,"nickname":42,"user_avatar":85,"doc_module":4,"category_id":86,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":87,"file_id":88,"file_url":89,"file_type":90,"file_size":91,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":92,"language":93,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":94,"faqs":95,"seo_title":96,"seo_description":12,"update_tm":97,"read_time":98,"preview_page_count":33,"preview_urls":99},1236954412713,"https://us-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0",8,"CASPER: Contrastive Approach for Smart Ponzi Scheme Detecter with More Negative Samples  \nWeijia Yang, Tian Lan, Leyuan Liu, Wei Chen, Tianqing Zhu, Sheng Wen, Xiaosong Zhang  \narXiv :2507 . 16840v 1 [ cs .CR] 19 Jul 2025  \nAbstract—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 costefficient detection of smart Ponzi schemes, paving the way for scalable fraud detection solutions in the future.  \nIndex Terms—Contrastive Learning, Smart Ponzi Scheme, Multi-vector cosine similarity.  \nI. INTRODUCTION  \nTHe proliferation of smart contract platforms, particu  \nlarly Ethereum, has significantly reshaped the blockchain ecosystem and the broader digital economy. These platforms enable decentralized applications (DApps) by automating contract execution through blockchain technology, creating a transparent, secure, and immutable environment [35],[98] . However, as blockchain technologies gain widespread adoption, they also attract new forms of malicious activity, especially smart Ponzi schemes, which rely on attracting new investments to pay returns to earlier investors. These schemes have emerged as a significant threat on platforms like Ethereum. A study reported that smart Ponzi schemes caused  \nWeijia Yang and Tian Lan are with the School of Computer Science and Engineering, University of Electronic Science and Technology of China, Chengdu, Sichuan, China. Leyuan Liu, Wei Chen, and Xiaosong Zhang are with the School of Information and Software Engineering, University of Electronic Science and Technology of China, Chengdu, Sichuan, China. Leyuan Liu is the corresponding author ([email:202411081716@std.uestc.edu.cn](email:202411081716@std.uestc.edu.cn), [lantian1029@uestc.edu.cn](lantian1029@uestc.edu.cn), [leyuanliu@uestc.edu.cn](leyuanliu@uestc.edu.cn), [chenwei@uestc.edu.cn](chenwei@uestc.edu.cn), [johnsonzxs@uestc.edu.cn](johnsonzxs@uestc.edu.cn)).  \nTianqing Zhu is with the Faculty of Data Science, City University of Macau, Macao Special Administrative Region, China([email:tqzhu@cityu.edu.mo](email:tqzhu@cityu.edu.mo)).  \nSheng Wen is with the School of Science, Computing and Emerging Technologies, Swinburne University of Technology, Melbourne, Australia([emial:swen@swin.edu.au](emial:swen@swin.edu.au)) .  \nover $600 million in losses nationwide in April 2024 . The anonymity provided by blockchain transactions exacerbates the issue, making it difficult to trace fraudulent activities and protect investors [38], [99] .  \nIn the pursuit of safeguarding blockchain users’ financial security, researchers have focused on identifying smart contracts that exhibit characteristics of smart Ponzi schemes. Onu et al. [82] employed machine learning techniques to impro","cbCaiiPuzvltHBKG","https://ap.wps.com/l/cbCaiiPuzvltHBKG","pdf",4607631,15,"English","# Introduction\n## Smart Ponzi schemes and detection challenges\n## Related work and limitations\n# Proposed approach overview","[{\"question\":\"What problem does CASPER address?\",\"answer\":\"CASPER targets detection of smart Ponzi schemes in blockchain smart contract transactions, where fraudulent payouts are funded by new investors.\"},{\"question\":\"Why do traditional supervised detection methods struggle?\",\"answer\":\"They typically require large amounts of labeled data, which is often scarce, making effective model training difficult.\"},{\"question\":\"How does CASPER reduce reliance on labeled data?\",\"answer\":\"CASPER uses a contrastive learning framework to learn stronger representations of smart contract source code from unlabeled datasets.\"}]","CASPER - Contrastive Approach for Smart Ponzi Scheme Detecter with More Negative Samples | PDF",1791060519,38,[100,104,108,112],{"page_no":22,"url":101,"width":102,"height":103},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/a85ac931434174ce591485b94525dce0.webp",983,1272,{"page_no":26,"url":105,"width":106,"height":107},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/7888c2beebbc7d8abf2237ece1262315.webp",982,1270,{"page_no":30,"url":109,"width":110,"height":111},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/ed3a391211298d582c63c9a622f4e2a7.webp",981,1269,{"page_no":33,"url":113,"width":114,"height":115},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/d0446ff8c2e962264e591bc5142299e4.webp",980,1268,{"code":4,"msg":82,"data":117},[118,122,126,130,135,140,145,148,153,156,160],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":119,"show_sort_weight":120,"slug":121},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":123,"show_sort_weight":124,"slug":125},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":127,"show_sort_weight":128,"slug":129},"Exam",70,"exam",{"id":131,"doc_module":4,"doc_module_name":25,"category_name":132,"show_sort_weight":133,"slug":134},5,"Comic",60,"comic",{"id":136,"doc_module":4,"doc_module_name":25,"category_name":137,"show_sort_weight":138,"slug":139},6,"Technology",50,"technology",{"id":141,"doc_module":4,"doc_module_name":25,"category_name":142,"show_sort_weight":143,"slug":144},7,"Healthcare",40,"healthcare",{"id":86,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":146,"slug":147},30,"research-report",{"id":149,"doc_module":4,"doc_module_name":25,"category_name":150,"show_sort_weight":151,"slug":152},9,"Religion & Spirituality",20,"religion-spirituality",{"id":151,"doc_module":4,"doc_module_name":25,"category_name":154,"show_sort_weight":151,"slug":155},"World Cup","world-cup",{"id":157,"doc_module":4,"doc_module_name":25,"category_name":158,"show_sort_weight":157,"slug":159},10,"Lifestyle","lifestyle",{"id":161,"doc_module":4,"doc_module_name":25,"category_name":162,"show_sort_weight":131,"slug":163},19,"General","general"]