Abstract
Ponzi schemes on the Ethereum blockchain pose significant risks to investors, yet their detection remains challenging due to the complex, multi-layered nature of blockchain interactions. Traditional detection methods often oversimplify the network as a homogeneous graph or fail to capture the semantic richness of different transaction types. This paper presents the Multi-triplet Augmented Heterogeneous Graph Neural Network (MAHGNN), a novel framework that utilizes a Conditional Variational Autoencoder (CVAE) to augment account features based on specific neighborhood interaction patterns. By modeling Ethereum as a heterogeneous graph and employing multi-view learning, MAHGNN achieves state-of-the-art performance, reaching a Micro-F1 score of 95.58% in identifying fraudulent contracts.
Introduction
Ponzi schemes—fraudulent investment operations where returns for earlier investors are paid using the capital of newer investors—have found a new frontier in the Ethereum blockchain. Detecting these schemes is a critical challenge for blockchain security. Existing approaches generally suffer from three primary limitations:
- Feature Limitations: Many models rely on code-level features from smart contract bytecode, which is often difficult to extract or unavailable.
- Graph Oversimplification: Most graph-based models treat Ethereum as a homogeneous network, ignoring the fundamental differences between Externally Owned Accounts (EOAs) and Smart Contracts (CAs).
- Semantic Loss: Even heterogeneous models typically allow only one type of connection between nodes, failing to capture scenarios where accounts interact through multiple channels simultaneously, such as concurrent Ether transfers and function calls.
To address these gaps, the MAHGNN framework focuses on capturing the "semantic richness" of multi-layered interactions through triplet-level feature augmentation.
Methodology
The MAHGNN framework operates through a three-stage pipeline designed to preserve and enhance the structural and semantic information of the Ethereum network.
1. Heterogeneous Ethereum Interaction Graph (HEIG)
The network is modeled as a Heterogeneous Ethereum Interaction Graph (HEIG), distinguishing between two node types (EOA and CA) and two edge types (Transaction and Call). This structure allows the identification of six distinct "triplet" patterns (e.g., an EOA transferring funds to a CA, or a CA calling another CA), which provide a more granular view of account behavior than simple directed edges.
2. Triplet-level Feature Augmentation
The core innovation of MAHGNN is the use of a Conditional Variational Autoencoder (CVAE) for feature augmentation. Rather than relying solely on raw transaction data, the CVAE is trained to generate synthetic neighborhood features for a target account based on its specific triplet patterns. This process "enriches" the account's data profile by simulating how it interacts within its local structural context, effectively handling the sparsity inherent in blockchain data.
3. Multi-view HGNN
The framework utilizes a Heterogeneous Graph Transformer (HGT) as its backbone. By repeating the augmentation process across multiple views, the model learns a holistic representation of an account’s behavior across various interaction scenarios, leading to more robust classification.
Experimental Setup and Results
The study utilized real-world Ethereum data consisting of 191 known Ponzi accounts and 1,152 non-Ponzi accounts. To manage the scale of the Ethereum graph, the researchers employed a top-k sampling method based on transaction frequency and value. Three dataset versions (Version-0, 1, and 2) were created with varying sampling densities to test model robustness.
Performance Metrics
MAHGNN consistently outperformed all baseline models, including GCN, GAT, and HAN. On the "Version-2" dataset—which filtered out low-volume "noise" accounts—MAHGNN achieved a Micro-F1 score of 95.58%. This represented a nearly 4% improvement over the next best model, HGT. Furthermore, the model demonstrated the lowest standard deviation across trials, indicating superior stability compared to traditional graph neural networks.
Discussion and Conclusion
The success of MAHGNN highlights that the type of interaction (the edge semantics) is as vital as the accounts involved. Distinguishing between a simple transfer and a complex contract call allows the model to identify the specific logic patterns characteristic of Ponzi schemes. Additionally, using a generative model like CVAE to "fill in the blanks" of behavioral profiles proves to be a powerful strategy for blockchain fraud detection.
Despite its high accuracy, the model faces limitations regarding computational overhead due to the CVAE pre-training phase. It also remains dependent on 14 manually engineered initial features. Future research will focus on developing an end-to-end framework that integrates feature augmentation and graph learning into a single, more efficient step, facilitating real-time monitoring of the Ethereum ecosystem.
Summary updated