DiT-SGCR: Directed Temporal Structural Representation with Global-Cluster Awareness for Ethereum Malicious Account Detection

Ye Tian, Liangliang Song, Peng Qian, Yanbin Wang, Jianguo Sun, Yifan JiaarXiv 2025 · DOI

Introduction

As decentralized finance (DeFi) continues to expand, the sophistication of malicious actors on the Ethereum blockchain has grown in tandem. With illicit transaction volumes projected to reach $75 billion by 2024, the development of robust, scalable detection systems is a critical priority. This paper introduces DiT-SGCR, a novel unsupervised framework designed to identify malicious accounts by modeling transaction direction, temporal evolution, and coordinated group behavior.

Problem Statement

Detecting fraud on Ethereum is inherently difficult due to the dynamic and complex nature of transaction networks. Traditional methods often suffer from three primary limitations:

  1. Temporal Neglect: Static Graph Neural Networks (GNNs) fail to capture "bursty" patterns or time-dependent fund flows.
  2. Directional Blindness: Many models treat transactions as undirected links, losing the distinction between "sources" (attackers) and "sinks" (receivers of stolen funds).
  3. Scalability Constraints: While temporal GNNs are effective, their computational complexity often makes them impractical for the millions of nodes and edges present in real-world blockchain data.

Furthermore, malicious actors frequently operate in "phishing rings." Most current methods fail to explicitly model these higher-order community structures, which are key indicators of coordinated illicit activity.

Methodology

The DiT-SGCR framework (Directed Temporal Structural Global-Cluster Representation) addresses these challenges through a multi-stage unsupervised process that avoids the recursive neighborhood propagation typical of standard GNNs.

The DiT-SGCR framework pipeline, illustrating the flow from graph representation through temporal aggregation and clustering to final classification.
  1. Directed Temporal Aggregation: The model separately aggregates embeddings from incoming and outgoing neighbors across discrete time steps. An exponential decay factor is applied to prioritize recent transactions, capturing the evolving roles of accounts.
  2. Differentiable K-means Clustering: To identify coarse-grained behavioral patterns, a differentiable clustering mechanism is integrated. This allows the framework to learn functional group memberships (e.g., phishing collectives) in an end-to-end unsupervised manner.
  3. Graph Laplacian Optimization: This stage refines node embeddings by balancing global network topology with cluster coherence, ensuring that accounts within the same functional group have similar representations.

Experimental Setup

The researchers evaluated DiT-SGCR on three large-scale datasets:

  • MulDiGraph: A public dataset with ~3M nodes and 13.5M edges.
  • B4E: A dataset spanning 2017–2022, containing over 3,200 known phishing accounts.
  • Transactions Network: A new dataset introduced by the authors, constructed using a two-hop Breadth-First Search (BFS) from 1,262 confirmed malicious accounts, resulting in a dense network of 2.5M nodes.

Key Results

DiT-SGCR consistently outperformed nine baseline methods, including DeepWalk, GCN, and TGAT, across all benchmarks.

Performance comparison of DiT-SGCR against baseline methods, showing superior Precision, Recall, and F1-Scores across all three datasets.
  • Performance Gains: The model achieved F1-score improvements ranging from 3.62% to 10.83% over the strongest baselines.
  • Discriminative Power: It maintained an AUC of 0.96 on the MulDiGraph and Transactions Network datasets, demonstrating a high capacity for distinguishing between benign and malicious entities.
  • Ablation Insights: Removing the neighbor embedding component led to the most significant performance drop (up to 8.6%), confirming that local structural context is vital for accurate detection.

Conclusion

DiT-SGCR provides a scalable and effective solution for Ethereum fraud detection by integrating temporal dynamics and global cluster awareness. By simplifying the graph propagation process, the model achieves state-of-the-art results while remaining computationally efficient. Future work will focus on incorporating additional features such as gas fees and smart contract bytecode, as well as extending the framework to cross-chain environments.

Code is available at https://github.com/dec7l/DiT-SGCR.

Summary updated

BibTeX
@misc{tian2025dit,
  author = {Ye Tian and Liangliang Song and Peng Qian and Yanbin Wang and Jianguo Sun and Yifan Jia},
  title = {{DiT-SGCR: Directed Temporal Structural Representation with Global-Cluster Awareness for Ethereum Malicious Account Detection}},
  year = {2025},
  eprint = {2506.20123},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.20123},
}
Figure