Skip to main navigation Skip to search Skip to main content

Adaptive Graph Contrastive Learning for Blockchain Smart Contract Vulnerability Detection

  • Junjie Zhou
  • , Xiangguo Zhao*
  • , Xin Yao
  • , Xin Bi
  • , Ye Yuan
  • *Corresponding author for this work
  • Northeastern University China
  • Beijing Institute of Technology

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Detecting vulnerabilities in smart contracts is essential for ensuring the security and reliability of blockchain applications. However, existing graph neural network based methods often rely on expert-crafted features or function call surfaces. And the long-tail distribution in vulnerability datasets causes biased learning toward majority classes. Contrastive learning has been explored as a way to alleviate this issue. But existing augmentation strategies often introduce noise in contrastive learning, degrading representation quality. To address these issues, we propose the Adaptive Graph Contrastive Learning (AGCL) framework. AGCL utilizes the unsupervised multi-level structural attention (UMSA) mechanism to extract the similarity between nodes from semantic, structure and nested function calls. It includes mask degree-free GCN (MDR-GCN) and harmonic distance loss (HDL) to improve the separation between positive and negative representations. Experimental results on ESC and VSC datasets for Reentrancy and Infinite Loop detection surpasses the existing SOTA methods. This performance gain is achieved with full consideration of complex code, such as semantic, structure and nested function calls.

Original languageEnglish
Title of host publicationWeb and Big Data - 9th International Joint Conference, APWeb-WAIM 2025, Proceedings
EditorsJiajia Li, Chuanyu Zong, Richard Chbeir, Lei Li, Yanfeng Zhang, Mengxuan Zhang
PublisherSpringer Science and Business Media Deutschland GmbH
Pages549-563
Number of pages15
ISBN (Print)9789819557189
DOIs
Publication statusPublished - 2026
Externally publishedYes
Event9th Asia-Pacific Web and Web-Age Information Management Joint International Conference on Web and Big Data, APWeb-WAIM 2025 - Shenyang, China
Duration: 28 Aug 202530 Aug 2025

Publication series

NameLecture Notes in Computer Science
Volume16115 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference9th Asia-Pacific Web and Web-Age Information Management Joint International Conference on Web and Big Data, APWeb-WAIM 2025
Country/TerritoryChina
CityShenyang
Period28/08/2530/08/25

Keywords

  • Adaptive graph augmentation
  • Blockchain smart contract vulnerability detection
  • Graph contrastive learning
  • Graph representation learning

Fingerprint

Dive into the research topics of 'Adaptive Graph Contrastive Learning for Blockchain Smart Contract Vulnerability Detection'. Together they form a unique fingerprint.

Cite this