## Enhancing Ethereum Fraud Detection via Generative and Contrastive Self-supervision

Chengxiang Jin, Jiajun Zhou, Chenxuan Xie, Shanqing Yu, Qi Xuan, Senior Member, IEEE , Xiaoniu Yang

Abstract -The rampant fraudulent activities on Ethereum hinder the healthy development of the blockchain ecosystem, necessitating the reinforcement of regulations. However, multiple imbalances involving account interaction frequencies and interaction types in the Ethereum transaction environment pose significant challenges to data mining-based fraud detection research. To address this, we first propose the concept of meta-interactions to refine interaction behaviors in Ethereum, and based on this, we present a dual self-supervision enhanced Ethereum fraud detection framework, named Meta-IFD . This framework initially introduces a generative self-supervision mechanism to augment the interaction features of accounts, followed by a contrastive self-supervision mechanism to differentiate various behavior patterns, and ultimately characterizes the behavioral representations of accounts and mines potential fraud risks through multi-view interaction feature learning. Extensive experiments on real Ethereum datasets demonstrate the effectiveness and superiority of our framework in detecting common Ethereum fraud behaviors such as Ponzi schemes and phishing scams. Additionally, the generative module can effectively alleviate the interaction distribution imbalance in Ethereum data, while the contrastive module significantly enhances the framework's ability to distinguish different behavior patterns. The source code will be available in https://github.com/GISec-Team/Meta-IFD.

via smart contracts, allowing users to directly interact with financial agreements for activities such as lending, trading, investing, and insurance. The automation and transparency of smart contract execution provide users with a more liberated financial experience, enabling global access to financial services without geographical or institutional constraints.

Index Terms -Ethereum, Fraud Detection, Generative Learning, Contrastive Learning, Multi-view Learning, Self-Supervision

## I. INTRODUCTION

Ethereum [1], an open-source blockchain platform, is rapidly gaining prominence due to its revolutionary smart contract technology. Through smart contracts [2], developers can establish protocols that autonomously execute, manage, and enforce contractual terms without the involvement of any third-party intermediary. This novel paradigm has given rise to the concept of decentralized finance (DeFi) [3] in the financial domain. In Ethereum, DeFi applications are implemented

This work was supported by the China Postdoctoral Science Foundation under Grant Number 2024M762912, by the Postdoctoral Science Preferential Funding of Zhejiang Province of China under Grant ZJ2024060, by the Key R&amp;D Program of Zhejiang under Grant 2022C01018, by the National Natural Science Foundation of China under Grant U21B2001. (Corresponding author: Jiajun Zhou.)

C. Jin, C. Xie, S. Yu and Q. Xuan are with the Institute of Cyberspace Security, College of Information Engineering, Zhejiang University of Technology, Hangzhou 310023, China, with the Binjiang Institute of Artificial Intelligence, ZJUT, Hangzhou 310056, China. E-mail: jincxiang@zjut.edu.cn.

- J. Zhou are with the Institute of Cyberspace Security, College of Computer Science and Technology, Zhejiang University of Technology, Hangzhou 310023, China, with the Binjiang Institute of Artificial Intelligence, ZJUT, Hangzhou 310056, China. E-mail: jjzhou@zjut.edu.cn.

X. Yang is with the Institute of Cyberspace Security, Zhejiang University of Technology, Hangzhou 310023, China, and also with Science and Technology on Communication Information Security Control Laboratory, Jiaxing 314033, China. Email: yxn2117@126.com.

However, as the deployment of Ethereum in the financial domain surges, its technological characteristics raise security concerns for the financial ecosystem. First, decentralization means there is no central authority for oversight and regulation, allowing fraudsters to operate with impunity. Second, anonymity enables malicious actors to hide their real identities, exacerbating the challenges associated with crime detection. Third, the immutability of contracts makes it difficult to fix code vulnerabilities once they are discovered. Furthermore, the global liquidity of cryptocurrencies poses challenges to the coordination of regulatory frameworks across diverse jurisdictions. Despite the increasing focus on cryptocurrency finance security in recent years, a multitude of fraudulent activities persist, resulting in substantial financial losses. According to the Bangkok Post 1 , the Cyber Crime Investigation Bureau (CCIB) arrested individuals involved in a fraudulent virtual currency investment platform that swindled more than $27 million. Besides, TRM Labs 2 reported that North Korean hackers stole at least $600 million in cryptocurrency in 2023. Therefore, the regulation of Ethereum cryptocurrency transactions is imperative to ensure financial security.

Fig. 1: Illustration of the imbalanced distribution in account interaction frequency. Various types of accounts display longtailed distributions for both types of fraud.

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00641v3-figure-22c9a621-9c8e-483f-b0ba-6bf1ebbb688b.jpg)

From the perspective of data mining, existing Ethereum fraud detection studies mainly employ machine learning (ML) [4] and graph modeling analysis [5], [6] to uncover potential fraudulent risks in transaction records and smart contracts. ML-based methods mainly extract manual features

1 https://www.bangkokpost.com/

2 https://www.trmlabs.com/

from Ethereum data and train ML models to identify and predict potential fraudulent behaviors. However, such methods heavily rely on expert knowledge for designing manual features, limiting their generalizability to diverse blockchain scenarios. On the other hand, graph-based methods mainly use Ethereum data to construct transaction graphs and design graph learning models to identify malicious accounts and fraudulent activities. Although such methods can effectively capture account behavior patterns and improve the effectiveness and interpretability of fraud detection, they rely on constructing transaction graphs and designing graph learning models. Moreover, both studies overlook certain challenges inherent in Ethereum transaction scenarios to some extent: 1) Frequent and complex transaction activities . Ethereum continuously generates a large number of transaction records, involving different types of accounts and interaction patterns, which imposes higher requirements on the models' representation capabilities; 2) Imbalanced interaction frequency distribution . Ethereum accounts exhibit varying levels of interaction activity, as shown in Fig. 1, and such imbalance in interaction frequency distribution can prevent the models from effectively learning the behavior patterns of low-activity accounts; 3) Imbalanced account behavior distribution . Accounts of the same type on Ethereum may participate in diverse transaction activities, displaying distinct behavior preferences. This imbalance in behavior distribution can lead to biases in the models' characterization of account features.

To overcome the limitations of existing studies and address the challenges in Ethereum, we propose a dual self-supervision enhanced Ethereum fraud detection framework, named MetaIFD . Specifically, this framework first defines the concept of meta-interactions to describe fine-grained Ethereum interaction behaviors and introduces a generative self-supervised mechanism to design a fine-grained Ethereum interaction feature generation module. This module can augment multiview interaction features for accounts with low activity levels and low-frequency interaction types, alleviating the imbalance in behavior distribution. Secondly, the framework introduces a contrastive self-supervised mechanism to design a coarsegrained Ethereum interaction feature contrast module, which can improve the framework's ability to distinguish different account behavior patterns. Finally, the framework designs a multi-view Ethereum interaction feature learning module, which effectively characterizes account features and captures potential fraudulent behaviors through account type-specific feature encoding, aggregation, and propagation processes. We conduct extensive evaluation and comparative experiments in real Ethereum transaction scenarios to validate the effectiveness and superiority of our proposed framework in detecting common Ethereum fraud behaviors, such as Ponzi schemes and phishing scams. The main contributions of this paper can be summarized as follows:

- · We define the concept of meta-interactions to describe finegrained Ethereum interaction behaviors.
- · We design a dual self-supervision enhanced Ethereum fraud detection framework. By incorporating fine-grained interaction feature generation, coarse-grained interaction feature

contrast, and multi-view feature learning processes, our framework alleviates the imbalance in account behavior distribution, enhances the ability to distinguish different behavior patterns, and ultimately improves the effectiveness of Ethereum fraud detection.

- · Extensive experiments on real Ethereum data demonstrate the effectiveness and superiority of our framework in detecting Ethereum fraud behaviors.

## II. RELATED WORK

This section reviews research on fraud detection in Ethereum, primarily focusing on the detection of Ponzi schemes and phishing scams. The related studies can be broadly categorized into two types: machine learning-based approaches and graph analysis-based approaches.

## A. Machine Learning-based Fraud Detection

This type of methods typically utilizes manual feature engineering to extract predefined features from Ethereum data and train machine learning models to identify and predict potential fraudulent behaviors, such as Ponzi schemes and phishing scams. Since such methods design targeted manual features based on different types of fraud, this subsection discusses related studies for different fraud separately.

1) Ponzi Scheme Detection: Ponzi schemes [7] in Ethereum involve writing and deploying smart contracts that promise high returns to attract investors to transfer funds to the contract address. The returns for early investors come from the funds of subsequent investors rather than legitimate investment profits. Due to the anonymity of Ethereum, fraudsters can easily hide their identities and transfer funds, increasing the difficulty of regulation and tracking. When there are not enough new investors, the funds in the contract are insufficient to pay the high returns, leading to the collapse of Ponzi schemes.

Since Ponzi schemes on Ethereum are typically deployed on contract accounts, analyzing smart contract code for Ponzi scheme detection is a straightforward option. Bartoletti et al. [8] analyze the source codes of Ponzi contract and categorize Ponzi schemes into four types based on their behavioral patterns. Onu et al. [9] compare the performance of random forest, neural network, and k-nearest neighbors algorithms in Ponzi scheme detection, concluding that the random forest model achieves the best detection performance with the fewest features, enabling early detection of Ponzi schemes. Zheng et al. [10] extract contract account features from multiple views, including bytecode, semantics, and developer information, and develop a multi-view cascaded ensemble model to detect Ponzi schemes in newly created contract accounts. However, only the bytecode of smart contracts is publicly available, while the source code is not always. As a result, detection methods based on code analysis might not fully identify Ponzi schemes concealed within smart contracts. Some studies combine more accessible transaction records to detect Ponzi schemes by analyzing the behavior of contract accounts. Hu et al. [11] summarize four types of fraudulent behavior patterns by analyzing account transaction records, and then construct 14dimensional transaction features and train LSTM [12] model

TABLE I: Notations and descriptions.

| Notation   | Description                                          |
|------------|------------------------------------------------------|
| G          | Heterogeneous Ethereum interaction graph             |
| V , E      | Set of account nodes / interaction edges             |
| T V , T E  | Account / Interaction type mapping function          |
| R          | Set of meta-interactions                             |
| M          | Number of the views                                  |
| X          | Account feature matrix                               |
| ˆ X        | Set of augmented multi-view interaction features     |
| ˆ H        | Set of type-specific multi-view interaction features |
| ¯ H        | Set of aggregated multi-view account features        |
| ¯ H        | Account feature matrix after multi-view fusing       |
| H          | Final account representations                        |

for fraud detection. Chen et al. [13] extract opcode frequency features from contract code and 13 transaction features from transaction records, combining these features to train XGBoost model for Ponzi scheme detection. In addition to these two types of features, Zhang et al. [14] further integrate bytecode features and employ LightGBM for more efficient fraud detection. Considering the dynamic nature of transactions, Wang et al. [15] construct temporal transaction features based on timestamps and combine them with contract code features for early detection of Ponzi schemes.

2) Phish Scam Detection: Phishing scams on Ethereum [16] employ deceptive tactics to lure victims into disclosing their private keys or transferring funds to accounts controlled by attackers. Since phishing scams typically do not rely on contract functionality, detection against phishing scams usually focuses only on transaction records. Chen et al. [16] extract relevant features of the target accounts and their interaction objects from transaction records and utilize LightGBM for phishing detection. Kabla et al. [17] utilize a voting technique based on multi-ranking methods to select important features for phishing detection, which improves detection efficiency while reducing feature dimensions. Hu et al. [18], [19] first serialize transaction features according to timestamps and then train BERT for phishing detection. Phishers often disguise themselves by frequently interacting with normal accounts, thereby disrupting fraud detection. Several studies extract account features from multiple views to break through the disguise. Ghosh et al. [20] extract relevant features from the temporal and network views in addition to the account's intrinsic features, fuse the multi-view features and feed them into various classifiers for phishing detection. Xu et al. [21] propose a multi-layer defense system to effectively simulate and track the dynamic evolution of phishing scams, achieving early to mid-term phishing fraud warnings.

## B. Graph-based Fraud Detection

This type of methods primarily utilize transaction records to construct large-scale transaction graphs and design graphbased approaches to extract account behavior features for fraud detection. Given the broad applicability of graph methods in analyzing diverse account behavior patterns, this subsection does not specifically discuss the detection of different frauds separately. Wu et al. [22] guide a random walk process on the Ethereum transaction graph using transaction amounts and timestamps to learn the structural representation of accounts, ultimately using SVM classifier for phishing detection. Similarly, Li et al. [23] calculate the similarity between accounts by considering the structural homogeneity and transaction homogeneity of the transaction graph, guiding random walks to learn account representations. Tharani et al. [24] integrate transaction features and attributes of the transaction graph, employing GraphSAGE [25] to acquire account representations, which are subsequently jointly fed into a downstream machine learning model for fraud detection.

The aforementioned two-stage methods treat account feature learning and fraud detection as separate processes, potentially hindering the framework's ability to effectively learn features directly relevant to the detection task. Additionally, the selection of classifiers significantly impacts the detection performance. To address these limitations, researchers have endeavored to develop end-to-end transaction graph learning frameworks for fraud detection. Yu et al. [26] construct transaction graphs and utilize graph convolutional networks (GCNs) to simultaneously learn transaction features and interaction behavior features of accounts, achieving end-to-end Ponzi scheme detection. Li et al. [27] design a tri-channel framework to separately capture the features of accounts, transactions, and transaction structures for fraud detection. Considering the large scale of transaction graph, Liu et al. [28] reduce the graph size by filtering out low-importance accounts and use a twolayer GCN to learn the final account representations. Liang et al. [29] analyze the code logic functions of contract accounts to construct a Contract Runtime Behavior Graph (CRBG) for describing the behavior of contract accounts. They employ a graph attention network (GAT) [30] for account representation learning and fraud detection.

The aforementioned static methods fail to consider the dynamic nature of transactions when constructing transaction graphs. To address this, Jin et al. [31] design a transaction graph construction method based on temporal evolution augmentation, incorporating time information while expanding the transaction graph scale, and ultimately combine transaction and code information for early detection of Ponzi schemes. Wang et al. [32] construct multiple subgraphs incorporating temporal information extracted from transaction records. By identifying and analyzing specific temporal motifs within the transaction graph, they capture account representations enriched with comprehensive temporal details, thereby enhancing the performance of existing fraud detection methods. Zhang et al. [33] construct temporal transaction graphs and combine LSTM and GCN for efficient learning of both temporal and structural transaction features.

Furthermore, the homogeneous transaction graphs constructed by the aforementioned methods neglect the heterogeneity of accounts and transaction behaviors. To address this, Zhou et al. [5] incorporate call records from contract accounts as features for externally owned accounts and propose a hierarchical attention encoder based on contrastive learning to

Fig. 2: Illustration of meta-path and meta-interaction in heterogeneous Ethereum interaction graph.

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00641v3-figure-ad56ea1b-db26-49d8-8d76-dddc4409cd5a.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00641v3-figure-2feaa520-9128-4578-a5ae-e2f1dcc428c8.jpg)

effectively learn account representations, alleviating the issue of label scarcity. Du et al. [34] utilize a similar transaction graph construction method and design a GNN-based link prediction method to de-anonymize accounts in mixing services. Jin et al. [35], [36] predefine static and temporal meta-paths to describe the complex interaction behaviors in Ethereum and design a meta-path-based account feature augmentation module, which effectively improves the performance of existing Ponzi scheme detection methods. Considering that defining meta-paths requires expert knowledge and is time-consuming, Liu et al. [37] and Xu et al. [38] employ transformer models to autonomously acquire meta-path patterns, subsequently aggregating neighbor accounts based on these meta-paths to obtain higher-order information for enhancing fraud detection.

Definition 1 ( Heterogeneous Ethereum Interaction Graph, HEIG . ) Ethereum accounts and the interactions between them can be regarded as nodes and edges, respectively. By further refining their types, we construct a heterogeneous Ethereum interaction graph G = ( V E T , , V , T E , X , Y ) , where V = { v , v 1 2 , · · · , v n } is the set of account nodes, each with a specific type indicated by T V : v → { eoa ca , } as either EOA or CA, E = { e ij | e ij = ( v , v i j ) , v , v i j ∈ V} is the set of interaction edges, each with a specific type indicated by T E : e → { trans , call } as either transfer or contract call. X = [ x 1 , x 2 , · · · , x n ] ⊤ ∈ R n × d is the account feature matrix, and d is the dimension of features. Due to the anonymity of Ethereum, the known account identity information is partially labeled, denoted as Y = { ( v , y i i ) | v i ∈ V l , |V | ≪ l n } , where V l is the set of labeled accounts.

## III. ETHEREUM INTERACTION GRAPH MODELING

## A. Preliminaries of Ethereum Data

In Ethereum, an account represents an entity that holds Ether and can be categorized into two types: Externally Owned Accounts (EOAs) and Contract Accounts (CAs). EOAs are managed by their respective private key holders, who possess the capability to initiate transactions on the Ethereum network. CAs are governed by their underlying smart contract code and can only be triggered to execute functions defined within the contract. Interactions between Ethereum accounts can be classified into two categories: transfer ( trans ) and contract calls ( call ). Transactions primarily involve the transfer of Ether, while contract calls obtain various services by triggering functions within the smart contract. Analyzing these interactions further can provide deeper insights into the functioning of the Ethereum network and uncover potential risks.

## B. Graph Modeling for Ethereum Fraud Detection

In this paper, we analyze Ethereum interactions and perform fraud detection from a graph perspective. To better represent complex interaction scenarios, we model Ethereum data as a heterogeneous Ethereum interaction graph:

↦

↦

According to the above definition, each account v i is assigned an initial feature vector x i , which is often an indispensable input for most detection models. Considering that complex and well-designed features can be easily circumvented by fraudsters through behavior adjustment, thereby weakening the detection models and enabling evasion, we attempt to design a more general and concise set of manual features for account feature initialization. Specifically, we define the following manual features based on interaction details:

- · Total / average investment and return under specific interaction types: 2 × 2 × 2 = 8 types.
- · Number of initiations and receptions under specific interaction types: 2 × 2 = 4 types.
- · Balance under specific interaction types: 1 × 2 = 2 types.

After statistics, we can construct a 14-dimensional feature vector for each account. Furthermore, we model fraud detection in Ethereum as a node classification task on the graph. Specifically, we need to design a detector f that characterizes the identity features of accounts by analyzing their interaction patterns, and ultimately establishes a mapping from accounts to identity labels: f ( v, G ) → y .

↦

Fig. 3: Illustration of the dual self-supervision enhanced Ethereum fraud detection framework ( Meta-IFD ).

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00641v3-figure-0365aaba-e884-4ebe-9e45-bfef8946d1e9.jpg)

## C. Refinement of Ethereum Interactions

TABLE II: Descriptions of different meta-interactions.

In Sec. III-A, we mention that interactions in Ethereum can be categorized into two types: transfer ( trans ) and contract calls ( call ), which we refer to as coarse-grained interactions. Several studies [35], [36] have defined meta-paths to describe the behavior patterns of Ethereum accounts, as shown in Fig. 2(a). While such practice is feasible, it encounters several issues. Firstly, the definition of meta-paths relies on statistical analysis and expert knowledge, which limits their generalizability. Secondly, specific meta-paths define specific behavior patterns, and their adaptability may weaken when confronted with complex and variable fraud scenarios. Finally, as the scale of interactions increases, the number of meta-path instances will surge, potentially losing behavioral representativeness.

To describe Ethereum interactions in a more fine-grained manner, we further refine the interactions based on the mechanism of Ethereum, where transfers can occur between any accounts while contract calls can only target contract accounts. Specifically, in conjunction with the structure of HEIG , we propose the concept of meta-interaction:

Definition 2 ( Meta-interactions . ) In an interaction graph, meta-interaction represents the most fine-grained interaction behavior pattern between arbitrary entity pairs ⟨ s, t ⟩ , which can be formalized as r = ⟨T V ( s , ) T E ( e , ) T V ( ) t ⟩ = T V ( s ) T E ( e ) -→ T V ( ) t , where s and t denote the initiator and recipient of the interaction respectively, and e denotes the specific interaction between s and t .

Unlike the coarse-grained interactions trans and call which only reflect the ways in which accounts interact with each other, meta-interactions further describe the ways in which specific types of accounts can interact with each other, and thus can be referred to as fine-grained interactions. Based on the definition of meta-interaction and the characteristics

| Meta-interactions          | Descriptions                                                                           |
|----------------------------|----------------------------------------------------------------------------------------|
| r 1 ca : CA call -→ CA     | Interaction between CA to achieve complex logical functions or extend functionalities. |
| r 1 eoa : EOA call -→ CA   | EOA initiates a request to call contract functions or update contract states.          |
| r 2 ca : CA trans -→ CA    | CA handles automated asset management based on predefined internal logic.              |
| r 2 eoa : EOA trans -→ CA  | EOA transfers Ether or tokens to CA to provide funding or trigger its execution logic. |
| r 3 ca : CA trans -→ EOA   | CA transfers Ether or tokens to an EOA, distributing funds or rewards.                 |
| r 3 eoa : EOA trans -→ EOA | Direct Ether or token transfers between EOAs without involving smart contract logic.   |

of Ethereum, we can identify six types of meta-interactions from HEIG , as shown in Fig. 2(b). Furthermore, we define R = { r 1 ca , r 2 ca , r 3 ca , r 1 eoa , r 2 eoa , r 3 eoa } to denote the set of metainteractions, and the detailed description is shown in Table. II.

## IV. METHODOLOGY

In this section, we discuss the design details of the proposed framework Meta-IFD , as schematically depicted in Fig. 3. This framework takes HEIG as input and outputs the prediction labels for the target accounts, and it primarily consists of the following modules: 1) A fine-grained interaction feature generation module to simulate and augment the behavioral features of accounts; 2) A multi-view feature learning module to deeply characterize the behavior patterns of accounts; 3) A coarse-grained interaction feature contrast module to enhance the framework's ability to distinguish different account behaviors. Next, we introduce the details of each module.

## A. Fine-grained Ethereum Interaction Feature Generation

In complex Ethereum interaction scenarios, account entities may encounter the following issues: 1) different accounts exhibit varying levels of interaction activity, leading

Fig. 4: Illustration of the imbalanced distribution in account interaction types. Boxes indicate the degree correlation statistics for labeled accounts across different interaction types.

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00641v3-figure-856a0563-a323-4605-a309-cfdb12fa77e0.jpg)

to imbalanced degree distributions, as illustrated in Fig. 1, which reveals typical long-tail distributions in both datasets. Specifically, the number of low-degree (inactive) accounts significantly exceeds that of high-degree (active) accounts, thus forming the classical degree imbalanced problem in complex networks; 2) the same account participates in different types of interactions to varying extents, resulting in imbalanced interaction distributions, as illustrated in Fig. 4, where box plot represents the statistical distribution of account degrees across various interactions, including the minimum, upper quartile, median, lower quartile and the maximum value. Long and thin boxes indicate a large difference in the degree distribution of accounts under this interaction type. The variations in box shapes between different interaction types suggest greater differences in degree distributions between interaction types. These diverse and imbalanced interaction phenomena can introduce biases when characterizing account interaction behaviors. To alleviate these issues, we introduce a generative self-supervised mechanism to augment the interaction features of Ethereum accounts, particularly for those with low activity levels and low-frequency interaction types.

1) Model Architecture and Pre-training : Specifically, we propose a fine-grained Ethereum interaction feature generation module, as illustrated in Fig. 5. Considering that for a target account v i , the characteristics of its neighboring entities x j in its local interaction environment are influenced by its own characteristics x i as well as its interaction habits e ij . Based on this prior, if we want to augment more interaction features for the target account, we have to understand the potential feature distribution of its local interaction environment. Assuming that the potential features of the local interaction environment of account v i follow a prior distribution z ∼ p θ ( z | x i , r ij ) , where r ij is the one-hot encoded form of the meta-interaction between v i and v j , as shown in Fig. 5(a), then the neighbor features x j follow a generative distribution x j ∼ p θ ( x | z x , i , r ij ) . Further, we design an interactionaware conditional variational autoencoder ( ICVAE ) to learn the interaction feature distribution of target accounts and achieve fine-grained interaction feature generation. Compared to the conditional variational autoencoder (CVAE) [39] with a single condition setting, our ICVAE utilizes both the target account and specific meta-interaction as conditions, and neighbor as input to train the encoder and decoder. It serves as a generative model with a log-likelihood probability of log p θ ( x j | x i , r ij ) , which denotes the probability that the model generates the observed neighborhood feature conditional on the target account feature x i and the meta-interaction feature r ij . Let θ and ϕ represent the generative parameters and variational parameters respectively, we have:

$$\text{$\quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad$ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \	 $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $  \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \  \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $   \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $
$ \text{$\quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \ \quad $ \ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $  \quad $  \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $
$ \text{\quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \ } $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $
\text{$\quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $
$ \text{\quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \ \ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $
 \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \$ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \ \quad $ \quad $ \quad $ \ \quad $ \quad $ \quad $ \quad $ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \quad $ \ \quad $ \quad $ \ \quad $ \quad $ \ \quad $ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \ \quad $ \$$

$$= E L B O$$

where q ϕ ( z | x j , x i , r ij ) denotes the variational posterior distribution and is used to approximate the true posterior distribution p θ ( z | x j , x i , r ij ) , KL ( q ∥ p ) denotes the KullbackLeibler divergence between the two distributions q and p . Since directly computing the log-likelihood probability is difficult, we approximate it by maximizing its lower bound (i.e., Evidence Lower Bound, ELBO). Thus, the ELBO-based optimization objective of our ICVAE can be derived as follows:

$$\text{target} \\ \text{s} \ x _ { j } \quad & \mathcal { L } _ { \text{ELBO} } = \frac { 1 } { | \mathcal { N } _ { v _ { i } } | } \sum _ { v \in \mathcal { N } _ { v _ { i } } } \log p _ { \theta } \left ( x _ { j } \, | \, z ^ { ( v ) }, x _ { i }, r _ { i j } \right ) \\ \text{used} \\ \text{ures} \\ \text{trial} \quad & \text{where} \, \mathcal { N }.. \text{resents the neighbor set of account $v$}. \text{ The first}$$

where N v i represents the neighbor set of account v i . The first term in L BLEO is the reconstruction error, which measures the difference between the features generated by ICVAE and the original interaction features. The second term is the KL divergence, which measures the difference between the variational posterior distribution and the prior distribution.

After specifying the optimization objective, we are ready to pre-train an ICVAE for all accounts. The ICVAE consists of an encoder and a decoder, as illustrated in Fig. 5(b). During the training phase, it takes interaction feature pairs

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00641v3-figure-6c2f2ebb-daa1-4718-9736-ded5a8532a9e.jpg)

(b) Interaction-aware Conditional Variational Auto-Encoder

Fig. 5: Illustration of the fine-grained Ethereum interaction feature generation module.

{ ( x i , x j , r ij ) | v i ∈ V , v j ∈ N v i } as input to maximize the L ELBO. Specifically, the encoder maps the conditions ( x i , r ij ) and the input data x j to the latent space, learning and outputting the distribution parameters of the latent variables z :

$$\mu, \sigma = \text{Encoder} \left ( x _ { i }, x _ { j }, r _ { i j } \right ) \text{ \quad \ \ } \left ( 3 \right )$$

where the mean µ and standard deviation σ are used to describe the variational posterior distribution q ϕ ( z | x j , x i , r ij ) . The decoder takes the conditions ( x i , r ij ) and the sampled latent variable z as inputs, generating the interaction features ˆ x i associated with account v i :

$$\begin{smallmatrix} z = \mu + \epsilon \odot \sigma \\ \hat { x } _ { i } = \text{Decoder} \left ( x _ { i }, r _ { i i }, z \right ) \end{smallmatrix} \begin{smallmatrix} \text{max} \\ \text{furl} \\ \text{now} \end{smallmatrix}$$

$$\hat { x } _ { i } = \text{Decoder} \left ( x _ { i }, r _ { i j }, z \right )$$

where z is sampled via re-parameterization trick, ϵ ∼ N ( 0 , I ) is Gaussian noise that follows a standard normal distribution, and ⊙ is the element-wise multiplication. By maximizing L BLEO, ICVAE can learn the optimal parameters for both the encoder and the decoder, thereby minimizing the reconstruction error of the interaction features under given conditions, and ensuring that the posterior distribution parameterized by the encoder closely approximates the prior distribution.

2) Feature Generation : After the pre-training phase, we utilize ICVAE to generate additional interaction features for the target accounts. These generated interaction features can further enrich the neighborhood information of the target accounts and alleviate the issue of feature distribution imbalance.

Algorithm 1 The training process of Meta-IFD .

Require: Heterogeneous Ethereum interaction graph G = ( V E T , , V , T E , X , Y ) , meta-interaction set R , the number of views M , and pre-trained ICVAE.

## Ensure: Meta-IFD .

- 1: Load pre-trained ICVAE model;
- 2: for each account v i ∈ V do
- 3: Get feature vector x i ;
- 4: while M &gt; 0 do

5:

6:

for each neighbor account v j ∈ N v i do for

7:

different meta-interaction ∈ R Generate interaction features ˆ x i via Eq. (4);

- 8: end for

9:

end for

- 10: M ← M -1 ;

11:

end while

- 12: end for
- 14: Perform type-specific transformation via Eq. (6);
- 13: Obtain augmented interaction feature ˆ X ;
- 15: Calculate coarse-grained interaction feature contrast loss L ∗ con via Eq. (11)
- 16: Perform intra-view feature aggregation via Eq. (7);
- 17: Perform inter-view feature aggregation via Eq. (9);
- 18: Obtaining final account representation H with two-layer message passing according to Eq. (10);
- 19: Calculate classification loss via Eq. (12);
- 20: Train Meta-IFD via minimize the optimization objective in Eq. (13);
- 21: return Meta-IFD .

Specifically, given a target account v i and different metainteractions r ∈ R as conditions, ICVAE can generate rich interaction features for it:

$$\hat { \mathcal { X } } _ { i } = \left \{ x _ { i }, \hat { x } _ { i } ^ { r _ { ^ { * } } ^ { 1 } }, \hat { x } _ { i } ^ { r _ { ^ { * } } ^ { 2 } }, \hat { x } _ { i } ^ { r _ { ^ { * } } ^ { 3 } } \right \} ^ { M } \quad \quad \quad ( 5 )$$

where ∗ = T V ( v i ) indicates the type of v i , and ˆ x r 1 ∗ i is the feature generated conditional on ( x i , r 1 ∗ ) . Note that under specific conditions, we can repeatedly sample the latent variable z to generate interaction features multiple times, i.e., repeatedly utilizing ICVAE to generate multiple interaction features under the same conditions, forming multiple feature views, and further alleviating the feature distribution imbalance issue. The number of multiple feature views is denoted by M .

## B. Multi-view Ethereum Interaction Feature Learning

With the pre-trained ICVAE , we obtain augmented interaction features from multiple views, which can alleviate the issue of sparse interaction features for several accounts to some extent. To better characterize the account behavior patterns, the multi-view interaction feature learning module will process both the initial and generated interaction features to uncover potential fraud risks. This module will encode and fuse the multi-view interaction features and ultimately propagate the features by combining the structural information of HEIG . The design details of the module are described as follows, and the complete process is presented in Algorithm 1.

r

ij do

Fig. 6: Illustrate the feature distribution of different account variations in various fraud datasets.

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00641v3-figure-1d7223f3-a1a8-48c1-8de0-764cca94d952.jpg)

1) Input Feature Encoding : The multi-view interaction features generated by the ICVAE remain in the input space, with their dimensions represented as ˆ X ∈ i R M × × 4 d . To further explore the underlying information in the interaction features, a common practice is to design a weight-sharing encoder for all target accounts, which accepts the interaction features of the accounts as input and outputs high-dimensional hidden features. However, we consider such practice to be inappropriate for the following reasons. We sample a certain number of EOA and CA and count their 14-dimensional normalized features, as shown in Fig. 6, where the first 7-dimensional features are derived from the call , and the last 7-dimensional features are derived from the trans . We can observe noticeable differences among the features of accounts within the same type, as well as among different types of accounts. For example, there is a significant difference in the call features extracted from EOA and CA, and the trans features of EOA are relatively larger than those of CA. In such cases, a weightsharing transformation usually fails to adequately distinguish the differences among accounts. Therefore, to more adaptively characterize the interaction preferences of different types of accounts, we design account type-specific input feature encoding components, which follows a weight separation setting [40], [41]. Specifically, for the multi-view interaction features of target account v i in the input space, we map them into the hidden space using an MLP parameterized by ˆ Θ ∗ ∈ R d × d ′ , obtaining the hidden representation ˆ H ∈ i R M × × 4 d ′ as follows:

$$\hat { \mathcal { H } } _ { i } = \tanh \left ( \hat { \mathcal { X } } _ { i } \cdot \hat { \Theta } _ { * } \right ) = \left \{ h _ { i }, \hat { h } _ { i } ^ { r _ { * } ^ { 1 } }, \hat { h } _ { i } ^ { r _ { * } ^ { 2 } }, \hat { h } _ { i } ^ { r _ { * } ^ { 3 } } \right \} ^ { M } \quad ( 6 ) \quad \text{$3$ I}$$

where ∗ = T V ( v i ) indicates that the MLP performs an account type-specific transformation on the input features.

2) Intra-view and Inter-view Feature Aggregation : Subsequently, since ICVAE can generate three sets of augmented interaction features for each account, the feature dimensions within each view will be tripled. To reduce the parameter scale of our framework and improve training efficiency while preventing overfitting, we further perform intra-view interaction feature aggregation via mean pooling, followed by an MLP to ensure the expressive power of the aggregated features:

$$\bar { \mathcal { H } } _ { i } & = \tanh \left ( \text{MeanPooling} \left ( \hat { \mathcal { H } } _ { i } \right ) \cdot \bar { \Theta } _ { * } \right ) \\ & = \tanh \left ( \frac { 1 } { 4 } \left ( h _ { i } + \hat { h } _ { i } ^ { r _ { ^ { * } } ^ { 1 } } + \hat { h } _ { i } ^ { r _ { ^ { * } } ^ { 3 } } + \hat { h } _ { i } ^ { r _ { ^ { * } } ^ { 3 } } \right ) \cdot \bar { \Theta } _ { * } \right )$$

where ¯ H ∈ i R M d × ′ and the account type-specific weight ¯ Θ ∗ ∈ R d ′ × d ′ is utilized to parameterize the MLP.

After intra-view feature aggregation, the multi-view interaction features will be dimensionally reduced and updated, which is beneficial for the training of Meta-IFD . Furthermore, we consider that the interaction features from different views exhibit certain correlations and complementarities, contributing to the final account feature representation to varying degrees. Therefore, we introduce the self-attention mechanism to capture the interdependencies among different views and achieve inter-view interaction feature aggregation , as shown in Fig. 3(c). Specifically, in order to use the self-attention mechanism to compute correlations between different views, we initially generate query, key, and value vectors and subsequently integrate these features by calculating the attention weights. We define three type-specific transformation weights W Q ∗ , W K ∗ , W V ∗ ∈ R d ′ × d ′ to generate the three vectors:

$$\underset { \text{pro-} } { \text{dden} } \quad Q _ { * } = \bar { \mathcal { H } } _ { i } \cdot W _ { * } ^ { Q }, \ \ K _ { * } = \bar { \mathcal { H } } _ { i } \cdot W _ { * } ^ { K }, \ \ V _ { * } = \bar { \mathcal { H } } _ { i } \cdot W _ { * } ^ { V } \ \ ( 8 )$$

where Q ∗ is used to find relevant features, K ∗ represents the critical information of the features, and V ∗ is the feature representation used for weighted summation. Next, we calculate the inter-view correlations, also known as attention, to obtain the comprehensive feature representation of each view, and finally fuse the features from all views:

$$\bar { H } _ { i } = \text{MeanPooling} \left ( \text{Softmax} \left ( Q K ^ { \top } \right ) \cdot V \right ) \quad ( 9 )$$

Note that during the inter-view feature aggregation process, the query vector of each view Q a performs dot-product with the key vectors of other views K b to obtain relevance score, i.e., Q K a ⊤ b , which indicates the importance of the features in view a to those in view b . Using the attention scores across all views after softmax normalization, we perform a weighted summation of the value vectors to obtain the comprehensive feature representation for each view: ∑ M b =1 Softmax ( Q K a ⊤ b ) · V b . Finally, we fuse the features of all views via mean pooling to obtain the feature representation of the target account ¯ H i .

3) Interaction Feature Passing : The behavioral patterns of accounts are not only related to their own characteristics, but also influenced by the characteristics of the objects they interact with. In order to more accurately characterize the behavioral patterns of the target accounts, we incorporate the interaction structure information among accounts in HEIG and obtain the final account behavior representation through interaction feature passing. Specifically, we initially aggregate the features of the interaction objects associated with the target account, subsequently propagate them to the target account, and ultimately perform a deep transformation on the

TABLE III: Statistics of Ethereum fraud detection datasets. |V| represents the number of accounts, Num. r represents the number of meta-interaction instances, label ratio represents the quantity ratio between fraud samples and normal samples.

| Datasets   | |V ca |   | |V eoa |   | Num. r 1 ca   | Num. r 2 ca   | Num. r 3 ca   | Num. r 1 eoa   | Num. r 2 eoa   | Num. r 3 eoa   | Label Ratio   |
|------------|-----------|------------|---------------|---------------|---------------|----------------|----------------|----------------|---------------|
| Ponzi      | 3,104,188 | 25,199,827 | 4,900,340     | 618,572       | 2,423,011     | 25,606,952     | 3,337,998      | 32,559,586     | 191:1151      |
| Phish      | 2,279,349 | 22,429,276 | 1,879,385     | 527,653       | 2,096,037     | 20,425,382     | 2,994,136      | 26,293,882     | 1206:1557     |

aggregated features. The above feature passing process will be iterated l times to complete the final account feature learning.

$$H _ { i } ^ { ( l ) } = \tanh \left ( \left ( \sum _ { j \in \mathcal { N } _ { v _ { i } } } H _ { j } ^ { ( l - 1 ) } \right ) \, \| \, H _ { i } ^ { ( l - 1 ) } \right ) \cdot \Theta _ { * } ^ { ( l - 1 ) } \ ( 1 0 ) \, \begin{array} { c c } \text{ of diff} \\ \text{ to distir} \\ D. \ F r a n. \end{array}$$

where H (0) i = ¯ H i and Θ ( l -1) ∗ denotes the transformation weight in the feature passing process at the l -1 -th iteration.

## C. Coarse-grained Ethereum Interaction Feature Contrast

In the definition of meta-interaction, we combine the type of interactions and the type of targets to distinguish fine-grained interaction behaviors. And each type of account involves up to three different meta-interactions. Take EOA as an example, this type of account involves three meta-interactions: r 1 eoa , r 2 eoa and r 3 eoa , where r 1 eoa involves contract call, and r 2 eoa and r 3 eoa involve transferring money. When the EOA makes a transfer, we consider that the CA or EOA that receives the transfer plays a similar role; whereas when the EOA makes a contract call and a transfer, even if the target is the same CA, the CA plays different roles in these two types of interactions. Therefore, the interaction type should play a dominant role in characterizing the interaction behavior. For this purpose, we use interaction type as one of the conditions for generating interaction features when designing ICVAE . Considering the limitations of MLP in encoding input features discussed in Sec. IV-B1, we further introduce a contrastive self-supervised mechanism to enhance its ability to distinguish different interaction features, proposing the coarse-grained Ethereum interaction feature contrast , as shown in Fig. 3(b).

Specifically, from a coarse-grained interaction perspective, we believe that r 2 ∗ and r 3 ∗ should have more similar representations because they both involve transfer behaviors, while r 2 ∗ and r 1 ∗ should exhibit differences since the latter involves contract call behavior. Therefore, for a target account v i of type ∗ = T V ( v i ) , we consider meta-interaction r 2 ∗ as anchor sample, r 3 ∗ as positive sample, and r 1 ∗ as negative sample. During framework training, we expect to make the representations of anchor and positive samples more similar and those of anchor and negative samples more distinct, which can be achieved by minimizing the following objective:

$$\mathcal { L } _ { \text{con} } ^ { * } & = \sum _ { v _ { i } \in \mathcal { V } _ { * } } \, \max \left \{ 0, \| \hat { h } _ { i } ^ { r _ { * } ^ { 2 } } - \hat { h } _ { i } ^ { r _ { * } ^ { 3 } } \| _ { 2 } ^ { 2 } - \| \hat { h } _ { i } ^ { r _ { * } ^ { 2 } } - \hat { h } _ { i } ^ { r _ { * } ^ { 1 } } \| _ { 2 } ^ { 2 } + \alpha \right \} \quad \text{interact} \quad \text{frac} \quad \text{$\dots$} \quad \text{$\dots$} \quad \text{$\dots$} \quad \text{$\dots$} \quad \text{$\dots$} \quad \text{$\dots$} \quad \text{$\dots$} \quad \text{$\dots$} \quad \text{$\dots$} \quad \text{$\dots$} \quad \text{$\dots$} \quad \text{$\dots$} \quad \text{$\dots$} \quad \text{$\dots$} \quad \text{$\dots$} \quad \text{$\dots$} \quad \text{$\dots$} \quad \text{$\dots$} \quad \text{$\dots$}$$

where α is a margin hyperparameter that controls the minimum difference between positive and negative samples. The above optimization objective can serve as regularization, facilitating the framework in capturing the similarities between interactions of the same type and the differences between interactions of different types, thereby enhancing the framework's ability to distinguish various interaction behaviors.

## D. Framework Training

In this paper, the ICVAE model used for generating interaction features can be pre-trained by maximizing the L ELBO. And Ethereum fraud detection is modeled as a node classification task on HEIG . By applying a prediction head f Ψ to the final account representations, we map them into the corresponding prediction labels and compute the classification loss based on cross-entropy:

$$\mathcal { L } _ { \text{pred} } = - \frac { 1 } { N } \sum _ { i = 1 } ^ { N } y _ { i } \cdot \log \left ( f _ { \Psi } \left ( { \boldsymbol H } _ { i } \right ) \right ) \quad \ \ ( 1 2 )$$

where N is the number of accounts in a batch (i.e., batch size). Furthermore, the coarse-grained interaction feature contrast module can be regarded as an auxiliary task, serving as a regularization for the account classification task to jointly optimize the entire framework. The optimization objective of joint training can be defined as:

$$\mathcal { L } = \mathcal { L } _ { \text{pred} } + \lambda \cdot ( \mathcal { L } _ { \text{con} } ^ { \text{eoa} } + \mathcal { L } _ { \text{con} } ^ { \text{ca} } ) \quad \quad ( 1 3 ) \\ \cdot \quad \sim \quad \sim \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot$$

where λ serves as a trade-off coefficient to control the contribution of the feature contrast module.

## V. EXPERIMENTS

## A. Data Collection

We collect a certain amount of labeled data from the Xblock 3 and Etherscan 4 platforms, covering 191 Ponzi accounts and 1151 non-Ponzi accounts, as well as 1206 phishing accounts and 1557 non-phishing accounts. Based on these labeled accounts, we further extract their firstand secondorder transaction objects to construct the HEIG , obtaining two fraud detection datasets with imbalanced label distribution. The detailed statistics of these datasets is presence in Table III. According to the statistics, we observe that although the Ponzi dataset contains fewer labeled instances, it exhibits significantly richer interaction behaviors. Specifically, the total number of interactions in the Ponzi dataset exceeds that of the Phish dataset by 15,229,984, with an additional 8,192,525 call interactions. This discrepancy arises because executing Ponzi fraud requires multiple contract triggers, whereas phishing fraud in the Phish dataset is typically completed by merely guiding users to perform a single transfer.

3 http://xblock.pro

4 https://cn.etherscan.com

TABLE IV: The results of fraud detection in terms of Precision(%), Recall(%), Binary-F1(%), Micro-F1(%), Macro-F1(%) and Standard Deviation(%). The best results are highlighted in bold, while the second-best results are underlined. 'Rank' indicates the performance ranking of a method on a single fraud dataset, 'Average Rank' indicates the average performance ranking across all datasets, and 'Group Rank' indicates the average performance ranking of a category of methods across all datasets.

| Methods   |               | Ponzi Scheme   | Ponzi Scheme   | Ponzi Scheme   | Ponzi Scheme   |      |              |              | Phish Scam Dataset   | Phish Scam Dataset   |              |      | Average   | Group   |
|-----------|---------------|----------------|----------------|----------------|----------------|------|--------------|--------------|----------------------|----------------------|--------------|------|-----------|---------|
| Methods   | Precision     | Recall         | Binary-F1      | Micro-F1       | Macro-F1       | Rank | Precision    | Recall       | Binary-F1            | Micro-F1             | Macro-F1     | Rank | Rank      | Rank    |
| LightGBM  | 72.29 ± 11.91 | 38.42 ± 2.11   | 49.97 ± 4.18   | 89.07 ± 1.30   | 71.92 ± 2.46   | 8.2  | 94.13 ± 0.67 | 97.01 ± 1.13 | 95.54 ± 0.37         | 96.06 ± 0.31         | 96.00 ± 0.32 | 4.8  | 6.5       | 6.50    |
| Trans2Vec | 91.16 ± 3.24  | 48.42 ± 4.59   | 63.12 ± 4.08   | 92.04 ± 0.69   | 79.33 ± 2.22   | 2.8  | 77.21 ± 1.85 | 74.19 ± 2.11 | 75.63 ± 0.96         | 79.17 ± 0.83         | 78.71 ± 0.82 | 13.0 | 7.9       |         |
| GCN       | 67.61 ± 8.70  | 27.89 ± 6.78   | 38.44 ± 5.22   | 87.66 ± 0.49   | 65.78 ± 2.51   | 12.2 | 92.05 ± 1.35 | 88.38 ± 1.14 | 90.18 ± 1.19         | 91.61 ± 1.03         | 91.43 ± 1.05 | 11.6 | 11.9      |         |
| GAT       | 77.62 ± 6.48  | 47.37 ± 6.66   | 58.40 ± 5.01   | 90.56 ± 0.80   | 76.53 ± 2.68   | 5.0  | 90.20 ± 1.52 | 95.19 ± 0.86 | 92.62 ± 0.95         | 93.38 ± 0.90         | 93.31 ± 0.90 | 9.6  | 7.3       | 8.14    |
| SAGE      | 70.88 ± 7.06  | 37.37 ± 3.07   | 48.78 ± 3.26   | 88.92 ± 0.79   | 71.29 ± 1.82   | 9.6  | 93.46 ± 0.45 | 96.02 ± 0.62 | 94.72 ± 0.44         | 95.33 ± 0.39         | 95.27 ± 0.39 | 6.2  | 7.9       |         |
| FA-GNN    | 66.69 ± 6.00  | 42.11 ± 4.40   | 51.17 ± 1.76   | 88.70 ± 0.50   | 72.39 ± 0.76   | 9.0  | 96.92 ± 0.20 | 96.60 ± 0.31 | 96.76 ± 0.21         | 97.18 ± 0.18         | 97.13 ± 0.19 | 2.6  | 5.8       |         |
| HGT       | 58.47 ± 5.69  | 45.26 ± 1.97   | 50.83 ± 2.26   | 87.58 ± 1.26   | 71.86 ± 1.49   | 10.4 | 90.89 ± 2.16 | 92.20 ± 1.16 | 91.53 ± 1.33         | 92.55 ± 1.22         | 92.44 ± 1.22 | 11.0 | 10.7      |         |
| RGCN      | 69.61 ± 5.64  | 53.16 ± 5.10   | 60.26 ± 5.29   | 90.11 ± 1.26   | 77.31 ± 3.00   | 5.6  | 94.95 ± 1.57 | 94.36 ± 1.07 | 94.64 ± 0.45         | 95.33 ± 0.43         | 95.25 ± 0.43 | 6.4  | 6.0       | 7.95    |
| ieHGCN    | 61.49 ± 5.34  | 38.42 ± 11.36  | 46.59 ± 10.69  | 88.03 ± 1.21   | 69.92 ± 5.62   | 11.4 | 94.38 ± 0.83 | 94.36 ± 3.63 | 94.32 ± 1.75         | 95.08 ± 1.39         | 94.99 ± 1.45 | 7.4  | 9.4       |         |
| HTSGCN    | 67.47 ± 5.79  | 42.11 ± 3.33   | 51.59 ± 2.34   | 88.85 ± 0.78   | 72.64 ± 1.30   | 8.2  | 97.00 ± 0.68 | 96.27 ± 0.95 | 96.63 ± 0.37         | 97.07 ± 0.31         | 97.02 ± 0.32 | 3.2  | 5.8       |         |
| BERT4ETH  | 72.83 ± 3.75  | 65.26 ± 4.21   | 68.67 ± 2.18   | 91.60 ± 0.60   | 81.91 ± 1.23   | 2.4  | 92.84 ± 1.64 | 92.95 ± 1.17 | 92.87 ± 0.42         | 93.78 ± 0.42         | 93.68 ± 0.41 | 9.2  | 5.8       | 5.15    |
| ZipZap    | 69.64 ± 8.44  | 56.22 ± 4.65   | 61.77 ± 3.68   | 90.37 ± 1.28   | 78.13 ± 2.17   | 4.6  | 98.27 ± 1.24 | 94.22 ± 1.61 | 96.19 ± 0.47         | 96.96 ± 0.35         | 96.83 ± 0.37 | 4.4  | 4.5       |         |
| Meta-IFD  | 79.71 ± 3.66  | 61.58 ± 1.29   | 69.46 ± 2.05   | 92.34 ± 0.60   | 82.54 ± 1.20   | 1.4  | 97.37 ± 0.55 | 98.01 ± 0.17 | 97.68 ± 0.27         | 97.97 ± 0.24         | 97.94 ± 0.24 | 1.2  | 1.3       | 1.30    |

## B. Comparison Methods

In this paper, we choose four categories of methods for comparison: machine learning-based method (LightGBM [21]), homogeneous graph analysis-based methods (Trans2Vec [22], GCN [26], GAT [29], SAGE [24], FA-GNN [28]), heterogeneous graph analysis-based methods (HGT [42], RGCN [43], ieHGCN [44], HTSGCN [45]), and sequence analysis-based methods (BERT4ETH [18], ZipZap [19]). We exclude metapath-based methods from our comparison due to the significant effort required in designing meta-paths for targeting different fraud behaviors.

classifier being an SVM with default parameters. For LightGBM, the search spaces for the n estimators parameter and learning rate are { 100, 200, 300 } and { 0.01, 0.001 } .

## C. Experimental Settings

In our framework, for the pre-trained generation module, the input is HEIG , the encoder is a 3-layer MLP with output dimensions { 32, 64, 50 } , and the decoder is a 2-layer MLP with output dimensions { 32, 14 , the } learning rate is set to 0.01. For the contrastive module, the margin hyperparameter α is set to 0.3. For the multi-view feature learning module, the search space for the number of views, hidden dimensions, and learning rate is { 2, 3, 4 , } { 32, 64, 128 } , and { 0.01, 0.001 } respectively, the number of attention heads is set to 4. During training, the search space for the trade-off coefficient λ is { 0.001, 0.01, 0.1, 1 . } The graph structure input for feature passing is the sampled HEIG .

For heterogeneous graph analysis-based methods, the inputed heterogeneous graph is obtained by sampling two layers of neighbors of the target nodes, with each layer sampling 100 neighbors based on different interaction behaviors. For homogeneous graph analysis-based methods, the sampled homogeneous graph is obtained by removing type information from the heterogeneous graph. Both methods employ a twolayer structure, with the search space for hidden dimensions and learning rate being { 32, 64, 128 } and { 0.01, 0.001 } , respectively. For methods involving attention, the number of attention heads is set to 4. For the two-stage Trans2Vec, we set the window size, walk length, and the number of walks per account to 10, 5, and 20, respectively, with the downstream

For sequence analysis-based methods, during the pre-trained phase, we utilize default parameters with Transformer layers set to 8, hidden dimension set to 64, number of attention heads set to 2, maximum sequence length set to 100, and the optimal learning rate selected from { 0.001, 0.0001 } . During the classification phase, a two-layer MLP is employed with an optimal combination of learning rate chosen from { 0.01, 0.001 } and hidden dimensions selected from { 32, 64, 128 } , respectively. The parameter configuration ensures that the search ranges for hyperparameters align with those employed in the comparative detection methods discussed in this paper, thereby maintaining the fairness of the experimental comparison.

For all datasets, we divide them into training, validation, testing sets in a proportion of 6:2:2. To prevent overfitting, we set an early stop with a patience of 50. All experiments will be run 5 times, with the average performance and standard deviation reported. Performance metrics used are Precision, Recall, Binary-F1, Micro-F1 and Macro-F1. The first three metrics evaluate the detection performance for positive samples with the binary evaluation. Micro-F1 emphasizes the overall performance across all categories, akin to Accuracy in binary classification. Macro-F1 calculates the Binary-F1 metrics of both positive and negative samples separately and reports the average results. Combining the above metrics, we can evaluate the model's detection ability for each sample type.

## D. Evaluation on Fraud Detection

To evaluate the effectiveness and superiority of our MetaIFD , we compare it against 12 baselines on two fraud datasets. The detection results are reported in Table IV, from which we can draw the following conclusions.

Overall, compared with the optimal machine learning, homogeneous graph analysis, heterogeneous graph analysis methods, and sequence analysis-based methods, our MetaIFD achieves 14.77%, 4.05%, 6.76%, and 0.77% improvement in detecting Ponzi schemes, and 2.02%, 0.83%, 0.95%, and

1.15% in detecting phishing scams (Macro-F1 metric), which demonstrates the effectiveness and superiority of our MetaIFD in Ethereum fraud detection.

To evaluate the performance in detecting fraudulent accounts, Table IV presents the precision, recall, and F1-score under binary evaluation metrics. As observed, our Meta-IFD achieves the best performance in terms of F1-score and ranks second in both precision and recall. Taking Ponzi detection as an example, Trans2Vec performs well in precision but poorly in recall, indicating that this method is overly conservative in detecting fraud, leading to a high rate of missed detections. Conversely, BERT4ETH performs well in recall but poorly in precision, suggesting that this approach tends to misclassify normal accounts as fraudulent, resulting in a high false positive rate. The F1-score balances these two aspects, and the best F1 performance demonstrates that our Meta-IFD provides a more stable performance in fraud detection.

The detection performance of different types of baselines varies significantly across various fraud categories. We select representative baselines for analysis. LightGBM achieves relatively powerful performance in phishing detection but performs poorly in Ponzi scheme detection, indicating that the general manual features defined by machine learning methods cannot adequately describe diverse fraudulent behaviors. To achieve better detection performance, machine learning methods necessitate meticulous design of manual features tailored to different fraud categories, which lacks good generalization and heavily depends on expert knowledge. The two-stage homogeneous graph analysis methods represented by Trans2Vec suffer from similar limitations, in addition to the fact that it focuses more on the structural information of the transaction graph. Other major research in this field face similar challenges. For example, BERT4ETH, a more recent advancement that incorporates Transformer models for fraud detection, demonstrates high performance on Ponzi detection but exhibits poor generalizability when detecting diverse fraudulent behaviors. The ZipZap method, an improvement based on BERT4ETH, achieves some enhancement in generalizability but at the cost of reduced performance in certain aspects. This indicates that achieving both high generalizability and high effectiveness in Ethereum fraud detection remains a significant technical challenge. Other end-to-end heterogeneous graph analysis methods show moderate detection performance for different fraudulent behaviors, somewhat surpassing homogeneous graph analysis methods. A reasonable explanation is that both are affected by the interaction graph construction and data sampling methods. Finally, our Meta-IFD achieves the best detection performance for different frauds, indicating its generalizability and effectiveness in fraud detection.

## E. Analysis of Multi-view Feature Learning Module

We first deploy ablation and parameter analysis to comprehensively investigate the effectiveness of the multi-view interaction feature learning module.

1) Impact of View Setting: As shown in Table V, when our Meta-IFD is adapted to a single-view setting, i.e., 'Module Removal ( w/o M )', its performance in detecting Ponzi

TABLE V: Performance comparison between Meta-IFD and its ablation models.

| Methods                | Methods               | Ponzi Scheme Dataset   | Ponzi Scheme Dataset   | Phish Scam Dataset   | Phish Scam Dataset   |
|------------------------|-----------------------|------------------------|------------------------|----------------------|----------------------|
|                        |                       | Micro-F1               | Macro-F1               | Micro-F1             | Macro-F1             |
| Module Removal         | w/o I                 | 91.67 ± 0.87           | 80.13 ± 1.82           | 97.61 ± 0.45         | 97.58 ± 0.45         |
|                        | w/o M                 | 90.48 ± 1.07           | 78.69 ± 1.29           | 97.61 ± 0.39         | 97.57 ± 0.39         |
|                        | w/o L con             | 91.23 ± 0.73           | 80.42 ± 1.33           | 97.76 ± 0.56         | 97.72 ± 0.56         |
| Multi-view Aggregation | Concat                | 91.15 ± 0.28           | 79.59 ± 0.89           | 97.61 ± 0.31         | 97.58 ± 0.31         |
|                        | Sum                   | 91.23 ± 0.38           | 79.91 ± 1.06           | 97.65 ± 0.30         | 97.61 ± 0.31         |
|                        | Naive-atten           | 91.67 ± 1.01           | 81.25 ± 2.10           | 97.72 ± 0.52         | 97.69 ± 0.53         |
| Features               | call                  | 88.18 ± 0.86           | 73.18 ± 0.97           | 84.30 ± 0.14         | 83.76 ± 0.12         |
| Features               | trans                 | 89.96 ± 0.53           | 77.33 ± 0.91           | 96.60 ± 0.21         | 96.55 ± 0.22         |
| Others                 | Sharing               | 92.19 ± 0.53           | 81.40 ± 1.49           | 97.32 ± 0.39         | 97.28 ± 0.39         |
| Meta-IFD Ponzi: views  | Meta-IFD Ponzi: views | 92.34 ± 0.60 Micro-F1  | 82.54 ± 1.20 Macro-F1  | 97.94 ± 0.29         | 97.90 ± 0.30         |

1

90.48

78.69

2

92.34

82.54

3

91.82

81.57

schemes and phishing scams decreases by 4.89% and 0.34% (Macro-F1 metric), respectively, indicating that the utilization of multi-view settings can enhance the characterization of account features to some extent. Furthermore, under the multiview setting, we vary the number of views within { 1, 2, 3, 4, 5, 10, 20 } , as depicted in Fig. 7, from which we can observe that: The framework's performance (measured by Macro-F1 metric) shows a general trend of initially increasing and then decreasing with the number of views. This suggests that increasing the number of views appropriately is beneficial for the detection of minority class fraud samples, but too many views may lead to feature redundancy, which fails to improve the detection performance and even in turn interferes with analysis of complex Ethereum interaction behaviors. 4 91.38 80.17 5 91.52 80.63 10 91.45 80.49 20 91.3 80.25 Phish: view Micro-F1 Macro-F1 1 97.61 97.57 2 97.65 97.61 3 97.97 97.94 4 97.61 97.58 5 97.65 97.61 10 97.61 97.57 20 97.47 97.43

Fig. 7: Impact on the number of views ( M ).

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00641v3-figure-7bbc38d6-4ecc-4299-9adb-7c499dfa8ee9.jpg)

2) Impact of Weight Separation Setting: To validate the effectiveness of the account type-specific transformation in our Meta-IFD , we compare the performance of the framework under a weight-sharing setting, i.e., 'Others ( Sharing )', as shown in Table V. The results show that weight separation learning for different types of account features yields positive gains, suggesting an enhanced distinguishability among the features of distinct accounts.

3) Impact of Self-attention Setting: To validate the superiority of the self-attention in inter-view feature aggregation, we compare three aggregation operations: summation, concatenation, and naive attention. As shown in Table V, the self-attention aggregation operation facilitates our MetaIFD in achieving improvement ranging from 1.59% to 3.71% and 0.22% to 0.33% on the two datasets (Macro-F1 metric), respectively. This result demonstrates that the self-attention

Macro Precision

78.28

76.96

76.43

76.07

72.61

Macro Precision

96.93

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00641v3-figure-5963798f-864e-4328-a9ec-1bd754a2cfb3.jpg)

-0.8

-1

-0.5

0

0.5

1

1.5

-0.6

-0.4

-0.2

0

0.2

0.4

0.6

0.8

0.3

97.64

0.001

97.97

97.94

0.01

0.5

97.42

97.79

97.76

-1 -0.5 0 0.5 1 1.5 Similarity -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 Similarity Similarity Similarity Fig. 8: Illustration of the meta-interaction feature distance margin distribution before and after introducing contrastive selfsupervision. The bars denote the distribution of the number of accounts, with their width signifying the size of the statistical window. Curves represent trends in the distribution. 0.7 97.55 0.9 97.53 0.1 97.76 97.72 1 97.69 97.65 10 97.36 97.32 100 97.14 97.1

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00641v3-figure-b7193eca-768f-41ec-9ab2-b1f358a21aaf.jpg)

Darknet2020 100 that introducing contrastive self-supervision facilitates MetaIFD in learning the similarities among interactions of the same type, as well as distinctions between interactions of different types, improving its ability to distinguish different interaction behaviors and ultimately enhancing fraud detection.

Fig. 9: Impact of the trade-off coefficient ( λ ).

mechanism can more effectively extract and fuse key features from different views, thereby enhancing fraud detection.

## F. Analysis of Coarse-grained Feature Contrast Module

Furthermore, we conduct ablation and parameter experiments to analyze the effectiveness of the coarse-grained interaction feature contrast module.

1) Effect of Contrastive Self-supervision: As shown in Table V, the removal of the contrast module results in a performance degradation of 2.64% and 0.18% on the two datasets, respectively. This observation highlights the effective improvement of our framework's performance in fraud detection through feature contrast. Additionally, we compare the distance margin distribution between different types of metainteraction features before and after introducing contrastive self-supervision, as shown in Fig. 8. We utilize the Euclidean distance to quantify the similarity between samples, assessing the discrepancy in similarity scores between positive and negative samples. Subsequently, we record both the count of accounts falling within the specified similarity window and their corresponding trend. It can be observed that after introducing contrastive self-supervision, the peak of the distance margin distribution shifts significantly to the right, indicating that the distance between anchors r 2 ∗ and positive samples r 3 ∗ is reduced, while the distance between anchors and negative samples r 1 ∗ is increased. This phenomenon further illustrates

75 80 85 90 95 四⽉ 五⽉ 六⽉ 七⽉ ISCX-VPN2016 70 74 78 82 86 90 四⽉ 五⽉ 六⽉ 七⽉ α 2) Impact of Trade-off Coefficient: Furthermore, we investigate how the framework's performance is affected by the intensity of the auxiliary module, which is controlled by the trade-off coefficient λ . We vary λ within { 0.001, 0.01, 0.1, 1, 10, 100 } and observe the fluctuations in the framework's performance, as shown in Fig. 9. Firstly, we can see that in detecting Ponzi schemes, Meta-IFD achieves better detection results when λ is larger. Combined with the data statistics from Table III and the distance margin distribution in Fig. 8, a reasonable explanation is that the Ponzi scheme dataset is more severely affected by data distribution imbalance and label scarcity issues, and higher intensity of contrast self-supervised constraint are needed to help MetaIFD better distinguish different interaction behavior patterns. Therefore, appropriately increasing the λ setting helps improve the framework's detection performance. For the phishing scam dataset, its data distribution is relatively balanced, and the label size is relatively abundant compared to the Ponzi scheme dataset, which facilitates effective learning of account behavior representations within Meta-IFD . Consequently, only moderate contrastive self-supervision constraint is required to enhance the discriminative capability of our framework.

## G. Analysis of Feature Generation

1) Impact of Input Features: To validate the effectiveness and superiority of the handcrafted features proposed in this work, we separately extract features based on call and trans interactions, i.e., we retain only the 7-dimensional features derived from a single interaction type for subsequent fraud detection. For fairness, we extend these features to the same 14 dimensions. The experimental results are shown in Table V under 'Feature ( call )' and 'Feature ( trans )'. It can be observed that the Macro-F1 score drops by 6.74% and

96.89

96.62

96.58

96.61

Ma

Ma

Fig. 10: Performance and computational efficiency of different methods. Colors indicate different methods and sizes indicate Macro-F1 values.

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00641v3-figure-92f90488-ea83-4940-9d62-75f056b3112e.jpg)

1.40%, respectively. Notably, detection using 'Feature ( trans )' outperforms that using 'Feature ( call )', particularly in phishing detection. This is because phishing fraud typically occurs between EOAs, involving fewer call behaviors. Furthermore, trans , as a more common behavior, carries richer semantic information. In summary, considering different interaction behaviors during feature construction enables the acquisition of a more comprehensive feature set, thereby improving the effectiveness of subsequent fraud detection.

2) Impact of Using Interaction Types as Conditions in Feature Generation: To validate the effectiveness of incorporating interaction types as conditions during the feature generation process, we remove the interaction-aware component, degrading ICVAE into a standard CVAE model for interaction feature generation. The fraud detection performance of this ablation model is presented in Table. V under 'Module Removal ( w/o I ) '. The results show that the macro-F1 scores drop by 3.01% and 0.33%, respectively. Notably, detecting Ponzi schemes is more dependent on interaction information, as Ponzi schemes often exploit more interaction behaviors to achieve their fraudulent objectives. Therefore, incorporating interaction information during the pretraining phase effectively captures fine-grained behavioral patterns of accounts. In conclusion, integrating interaction types as conditions during the feature generation stage allows for the creation of richer features for low-degree nodes, thereby improving subsequent detection performance.

## H. Analysis of Computational Efficiency

We further investigate the computational efficiency of different methods. Considering that the fine-grained interaction feature generation module can be pre-trained, we focus on evaluating the computational efficiency of the end-to-end multi-view feature learning stage. We compare only end-to-end detection methods under similar settings. Fig. 10 reports the total runtime and the number of epochs required for convergence under early stopping for each method. For fairness, we set the hidden layer size to 64, repeat experiments five times, and report the average results. We can observe that while MetaIFD incurs slightly higher total runtime compared to some methods, it converges in fewer epochs and achieves superior performance. This indicates that our Meta-IFD is capable of learning data features more efficiently. Additionally, when we remove the contrastive learning module-a time-intensive component-we find that the runtime decreased significantly. However, the number of epochs required for convergence increases substantially (particularly on the phishing dataset), suggesting that the self-supervised module improves the efficiency of feature learning. The results also highlights that heterogeneous methods generally require higher time costs than homogeneous methods. This is because heterogeneous methods must differentiate between node and edge types, leading to increased computational complexity.

## VI. CONCLUSION

In this work, we introduce Meta-IFD , a novel fraud detection framework for Ethereum that integrates fine-grained interaction feature generation, multi-view feature learning, and coarse-grained interaction feature contrast. Our experiments demonstrate that Meta-IFD significantly outperforms existing methods in detecting Ponzi schemes and phishing scams. Meta-IFD offers a substantial advancement in Ethereum fraud detection and provides a foundation for more secure and trustworthy blockchain ecosystems. Future work will refine and extend Meta-IFD to address emerging fraud patterns and more blockchain platforms.

## REFERENCES

- [1] G. Wood et al. , 'Ethereum: A secure decentralised generalised transaction ledger,' Ethereum project yellow paper , vol. 151, no. 2014, pp. 1-32, 2014.
- [2] Z. Zheng, S. Xie, H.-N. Dai, W. Chen, X. Chen, J. Weng, and M. Imran, 'An overview on smart contracts: Challenges, advances and platforms,' Future Gener. Comp. Sy. , vol. 105, pp. 475-491, 2020.
- [3] D. A. Zetzsche, D. W. Arner, and R. P. Buckley, 'Decentralized finance (defi),' Journal of Financial Regulation , vol. 6, pp. 172-203, 2020.
- [4] R. M. Aziz, M. F. Baluch, S. Patel, and A. H. Ganie, 'Lgbm: a machine learning approach for ethereum fraud detection,' International Journal of Information Technology , vol. 14, no. 7, pp. 3321-3331, 2022.
- [5] J. Zhou, C. Hu, J. Chi, J. Wu, M. Shen, and Q. Xuan, 'Behavior-aware account de-anonymization on ethereum interaction graph,' IEEE Trans. Inf. Forensics Security , vol. 17, pp. 3433-3448, 2022.
- [6] P. Li, Y. Xie, X. Xu, J. Zhou, and Q. Xuan, 'Phishing fraud detection on ethereum using graph neural network,' in International Conference on Blockchain and Trustworthy Systems . Springer, 2022, pp. 362-375.
- [7] T. Moore, J. Han, and R. Clayton, 'The postmodern ponzi scheme: Empirical analysis of high-yield investment programs,' in Financial Cryptography and Data Security: 16th International Conference, FC 2012, Kralendijk, Bonaire, Februray 27-March 2, 2012, Revised Selected Papers 16 . Springer, 2012, pp. 41-56.
- [8] M. Bartoletti, S. Carta, T. Cimoli, and R. Saia, 'Dissecting ponzi schemes on ethereum: identification, analysis, and impact,' Future Gener. Comp. Sy. , vol. 102, pp. 259-277, 2020.
- [9] I. J. Onu, A. E. Omolara, M. Alawida, O. I. Abiodun, and A. Alabdultif, 'Detection of ponzi scheme on ethereum using machine learning algorithms,' Sci. Rep. , vol. 13, no. 1, p. 18403, 2023.
- [10] Z. Zheng, W. Chen, Z. Zhong, Z. Chen, and Y. Lu, 'Securing the ethereum from smart ponzi schemes: Identification using static features,' ACM Transactions on Software Engineering and Methodology , vol. 32, no. 5, pp. 1-28, 2023.
- [11] T. Hu, X. Liu, T. Chen, X. Zhang, X. Huang, W. Niu, J. Lu, K. Zhou, and Y. Liu, 'Transaction-based classification and detection approach for ethereum smart contract,' Inform. Process. Manag. , vol. 58, no. 2, p. 102462, 2021.
- [12] J. Chen, J. Zhang, X. Xu, C. Fu, D. Zhang, Q. Zhang, and Q. Xuan, 'E-lstm-d: A deep learning framework for dynamic network link prediction,' IEEE Trans. Syst., Man, Cybern., Syst. , vol. 51, no. 6, pp. 3699-3712, 2019.

- [13] W. Chen, Z. Zheng, J. Cui, E. Ngai, P. Zheng, and Y. Zhou, 'Detecting ponzi schemes on ethereum: Towards healthier blockchain technology,' in Proceedings of the 2018 world wide web conference , 2018, pp. 14091418.
- [14] Y. Zhang, W. Yu, Z. Li, S. Raza, and H. Cao, 'Detecting ethereum ponzi schemes based on improved lightgbm algorithm,' IEEE Trans. Comput. Social Syst. , vol. 9, no. 2, pp. 624-637, 2021.
- [15] L. Wang, H. Cheng, Z. Zheng, A. Yang, and M. Xu, 'Temporal transaction information-aware ponzi scheme detection for ethereum smart contracts,' Eng. Appl. Artif. Intel. , vol. 126, p. 107022, 2023.
- [16] W. Chen, X. Guo, Z. Chen, Z. Zheng, and Y. Lu, 'Phishing scam detection on ethereum: Towards financial security for blockchain ecosystem.' in IJCAI , vol. 7, 2020, pp. 4456-4462.
- [17] A. H. H. Kabla, M. Anbar, S. Manickam, and S. Karupayah, 'Eth-psd: A machine learning-based phishing scam detection approach in ethereum,' IEEE Access , vol. 10, pp. 118 043-118 057, 2022.
- [18] S. Hu, Z. Zhang, B. Luo, S. Lu, B. He, and L. Liu, 'Bert4eth: A pretrained transformer for ethereum fraud detection,' in Proceedings of the ACM Web Conference 2023 , 2023, pp. 2189-2197.
- [19] S. Hu, T. Huang, K.-H. Chow, W. Wei, Y. Wu, and L. Liu, 'Zipzap: Efficient training of language models for large-scale fraud detection on blockchain,' in Proceedings of the ACM on Web Conference 2024 , 2024, pp. 2807-2816.
- [20] M. Ghosh, D. Ghosh, R. Halder, and J. Chandra, 'Investigating the impact of structural and temporal behaviors in ethereum phishing users detection,' Blockchain: Research and Applications , vol. 4, no. 4, p. 100153, 2023.
- [21] C. Xu, R. Li, L. Zhu, X. Shen, and K. Sharif, 'Ewdps: A novel framework for early warning and detection on ethereum phishing scams,' IEEE Internet Things J. , vol. 11, no. 19, pp. 30 483-30 495, 2024.
- [22] J. Wu, Q. Yuan, D. Lin, W. You, W. Chen, C. Chen, and Z. Zheng, 'Who are the phishers? phishing scam detection on ethereum via network embedding,' IEEE Trans. Syst., Man, Cybern., Syst. , vol. 52, no. 2, pp. 1156-1166, 2020.
- [23] R. Li, Z. Liu, Y. Ma, D. Yang, and S. Sun, 'Internet financial fraud detection based on graph learning,' IEEE Trans. Comput. Social Syst. , vol. 10, no. 3, pp. 1394-1401, 2022.

[24] J. S. Tharani, Z. H´ ou, E. Y. A. Charles, P. Rathore, M. Palaniswami, and V. Muthukkumarasamy, 'Unified feature engineering for detection of malicious entities in blockchain networks,' IEEE Trans. Inf. Forensics Security , vol. 19, pp. 8924-8938, 2024.

- [25] W. L. Hamilton, R. Ying, and J. Leskovec, 'Inductive representation learning on large graphs,' in Proceedings of the 31st International Conference on Neural Information Processing Systems , 2017, pp. 10251035.
- [26] S. Yu, J. Jin, Y . Xie, J. Shen, and Q. Xuan, 'Ponzi scheme detection in ethereum transaction network,' in Blockchain and Trustworthy Systems: Third International Conference, BlockSys 2021, Guangzhou, China, August 5-6, 2021, Revised Selected Papers 3 . Springer, 2021, pp. 175-186.
- [27] S. Li, G. Gou, C. Liu, C. Hou, Z. Li, and G. Xiong, 'Ttagn: Temporal transaction aggregation graph network for ethereum phishing scams detection,' in Proceedings of the ACM Web Conference 2022 , 2022, pp. 661-669.
- [28] J. Liu, J. Zheng, J. Wu, and Z. Zheng, 'Fa-gnn: Filter and augment graph neural networks for account classification in ethereum,' IEEE Trans. Netw. Sci. Eng. , vol. 9, no. 4, pp. 2579-2588, 2022.
- [29] R. Liang, J. Chen, K. He, Y. Wu, G. Deng, R. Du, and C. Wu, 'Ponziguard: Detecting ponzi schemes on ethereum with contract runtime behavior graph (crbg),' in Proceedings of the 46th IEEE/ACM International Conference on Software Engineering , 2024, pp. 1-12.
- [30] P. Veliˇ ckovi´, c G. Cucurull, A. Casanova, A. Romero, P. Li` o, and Y. Bengio, 'Graph attention networks,' in Proceedings of the 6th International Conference on Learning Representations , 2018, pp. 1-12.
- [31] J. Jin, J. Zhou, C. Jin, S. Yu, Z. Zheng, and Q. Xuan, 'Dual-channel early warning framework for ethereum ponzi schemes,' in China National Conference on Big Data and Social Computing . Springer, 2022, pp. 260-274.
- [32] Y. Wang, H. Wang, X. Lu, L. Zhou, and L. Liu, 'Detecting ethereum phishing scams with temporal motif features of subgraph,' in 2023 IEEE Symposium on Computers and Communications (ISCC) . IEEE, 2023, pp. 631-636.
- [33] J. Zhang, H. Sui, X. Sun, C. Ge, L. Zhou, and W. Susilo, 'Grabphisher: Phishing scams detection in ethereum via temporally evolving gnns,' IEEE Trans. Serv. Comput. , pp. 1-15, 2024.
- [34] H. Du, Z. Che, M. Shen, L. Zhu, and J. Hu, 'Breaking the anonymity of ethereum mixing services using graph feature learning,' IEEE Trans. Inf. Forensics Security , vol. 19, pp. 616-631, 2023.
- [35] C. Jin, J. Jin, J. Zhou, J. Wu, and Q. Xuan, 'Heterogeneous feature augmentation for ponzi detection in ethereum,' IEEE Trans. Circuits Syst. II , vol. 69, no. 9, pp. 3919-3923, 2022.
- [36] C. Jin, J. Zhou, J. Jin, J. Wu, and Q. Xuan, 'Time-aware metapath feature augmentation for ponzi detection in ethereum,' IEEE Trans. Netw. Sci. Eng. , vol. 11, no. 4, pp. 3747-3758, 2024.
- [37] L. Liu, W.-T. Tsai, M. Z. A. Bhuiyan, H. Peng, and M. Liu, 'Blockchainenabled fraud discovery through abnormal smart contract detection on ethereum,' Future Gener. Comp. Sy. , vol. 128, pp. 158-166, 2022.
- [38] C. Xu, S. Zhang, L. Zhu, X. Shen, and X. Zhang, 'Illegal accounts detection on ethereum using heterogeneous graph transformer networks,' in International Conference on Information and Communications Security . Springer, 2023, pp. 665-680.
- [39] S. Liu, R. Ying, H. Dong, L. Li, T. Xu, Y. Rong, P. Zhao, J. Huang, and D. Wu, 'Local augmentation for graph neural networks,' in International Conference on Machine Learning . PMLR, 2022, pp. 14 054-14 072.
- [40] J. Zhou, S. Gong, X. Chen, C. Xie, S. Yu, Q. Xuan, and X. Yang, 'Clarify confused nodes via separated learning,' arXiv preprint arXiv:2306.02285 , 2023.
- [41] S. Gong, J. Zhou, C. Xie, and Q. Xuan, 'Neighborhood homophilybased graph convolutional network,' in Proceedings of the 32nd ACM International Conference on Information and Knowledge Management , 2023, pp. 3908-3912.
- [42] Z. Hu, Y. Dong, K. Wang, and Y. Sun, 'Heterogeneous graph transformer,' in Proceedings of the web conference 2020 , 2020, pp. 27042710.
- [43] M. Schlichtkrull, T. N. Kipf, P. Bloem, R. Van Den Berg, I. Titov, and M. Welling, 'Modeling relational data with graph convolutional networks,' in The Semantic Web: 15th International Conference, ESWC 2018, Heraklion, Crete, Greece, June 3-7, 2018, Proceedings 15 . Springer, 2018, pp. 593-607.
- [44] Y. Yang, Z. Guan, J. Li, W. Zhao, J. Cui, and Q. Wang, 'Interpretable and efficient heterogeneous graph convolutional network,' IEEE Trans. Knowl. Data Eng. , vol. 35, no. 2, pp. 1637-1650, 2021.
- [45] B. Huang, J. Liu, J. Wu, Q. Li, and D. Lin, 'Ethereum phishing fraud detection based on heterogeneous transaction subnets,' in 2023 IEEE International Symposium on Circuits and Systems (ISCAS) . IEEE, 2023, pp. 1-5.

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00641v3-figure-b3a24c76-4e3c-46c0-90be-fe2ecdc782b1.jpg)

Chengxiang Jin received the BS degree in electrical engineering and automation from Zhejiang University of Science and Technology, Hangzhou, China, in 2021. He is currently pursuing the MS degree in control theory and engineering at Zhejiang University of Technology, Hangzhou, China. His current research interests include graph data mining and blockchain data analytics, especially for heterogeneous graph mining in Ethereum.

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00641v3-figure-1ba07d6e-bb12-49bb-a28c-f251eb43e972.jpg)

Jiajun Zhou received the Ph.D degree in control theory and engineering from Zhejiang University of Technology, Hangzhou, China, in 2023. He is currently a Postdoctoral Research Fellow with the Institute of Cyberspace Security, Zhejiang University of Technology. His current research interests include graph data mining, cyberspace security and data management.

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00641v3-figure-aa5b9921-bf73-410f-8c2c-c844fc27a7da.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00641v3-figure-b9a1676f-63f6-4ff5-b44d-fc83b3e6694d.jpg)

Chenxuan Xie received the BS degree in automation from Nanchang University, Jiangxi, China, in 2021. He is currently pursuing the MS degree in control engineering at Zhejiang University of Technology, Hangzhou, China. His current research interests include graph data mining and graph neural network, especially for graph heterophily problem and graph transformer.

Shanqing Yu received the M.S. degree from the School of Computer Engineering and Science, Shanghai University, China, in 2008 and received the M.S. degree from the Graduate School of Information, Production and Systems, Waseda University, Japan, in 2008, and the Ph.D. degree, in 2011, respectively. She is currently a Lecturer at the Institute of Cyberspace Security and the College of Information Engineering, Zhejiang University of Technology, Hangzhou, China. Her research interests cover intelligent computation and data mining.

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00641v3-figure-9380b66f-11d3-46c2-ac84-521f43eeb3db.jpg)

Qi Xuan (M'18) received the BS and PhD degrees in control theory and engineering from Zhejiang University, Hangzhou, China, in 2003 and 2008, respectively. He was a Post-Doctoral Researcher with the Department of Information Science and Electronic Engineering, Zhejiang University, from 2008 to 2010, respectively, and a Research Assistant with the Department of Electronic Engineering, City University of Hong Kong, Hong Kong, in 2010 and 2017. From 2012 to 2014, he was a Post-Doctoral Fellow with the Department of Computer Science,

University of California at Davis, CA, USA. He is a senior member of the IEEE and is currently a Professor with the Institute of Cyberspace Security, College of Information Engineering, Zhejiang University of Technology, Hangzhou, China. His current research interests include network science, graph data mining, cyberspace security, machine learning, and computer vision.

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00641v3-figure-4d6ec134-f266-4c6e-820f-be8e50eb85d5.jpg)

Xiaoniu Yang is currently a Chief Scientist with the Science and Technology on Communication Information Security Control Laboratory, Jiaxing, China. He is also an Academician of the Chinese Academy of Engineering and a fellow of the Chinese Institute of Electronics. He has published the first software radio book Software Radio Principles and Applications [China: Publishing House of Electronics Industry, X. Yang, C. Lou, and J. Xu, 2001 (in Chinese)]. His current research interests are in software-defined satellites, big data for radio signals, and deep learning-based signal processing.
Chenxiang Jin Jiajun Zhou Chenxuan Xie Shanqing Yu Qi Xuan Xiaoniu Yang
Enhancing Ethereum Fraud Detection via Generative and Contrastive Self-supervision
The rampant fraudulent activities on Ethereum hinder the healthy development
of the blockchain ecosystem, necessitating the reinforcement of regulations.
However, multiple imbalances involving account interaction frequencies and
interaction types in the Ethereum transaction environment pose significant
challenges to data mining-based fraud detection research. To address this, we
first propose the concept of meta-interactions to refine interaction behaviors
in Ethereum, and based on this, we present a dual self-supervision enhanced
Ethereum fraud detection framework, named Meta-IFD. This framework initially
introduces a generative self-supervision mechanism to augment the interaction
features of accounts, followed by a contrastive self-supervision mechanism to
differentiate various behavior patterns, and ultimately characterizes the
behavioral representations of accounts and mines potential fraud risks through
multi-view interaction feature learning. Extensive experiments on real Ethereum
datasets demonstrate the effectiveness and superiority of our framework in
detecting common Ethereum fraud behaviors such as Ponzi schemes and phishing
scams. Additionally, the generative module can effectively alleviate the
interaction distribution imbalance in Ethereum data, while the contrastive
module significantly enhances the framework's ability to distinguish different
behavior patterns. The source code will be available in
https://github.com/GISec-Team/Meta-IFD.