通过语义建模与图掩码自编码,提升以太坊欺诈账户检测的泛化能力。
LMAE4Eth: Generalizable and Robust Ethereum Fraud Detection by Exploring Transaction Semantics and Masked Graph Embedding
- 构建交易文本对比语言模型,将数值交易转为语义连贯表示。
- 提出掩码账户图自编码器,实现高精度节点级欺诈检测,F1提升超10%。
- 融合多视角特征,适合大规模以太坊安全分析与反欺诈系统部署。
现有以太坊欺诈检测方法依赖无上下文的数值交易序列,难以捕捉账户交易语义。同时,以太坊交易记录普遍同质化,导致难以学习有区分性的账户嵌入。此外,现有自监督图学习方法主要通过图重建学习节点表示,对节点级任务如欺诈账户检测表现不佳,且存在可扩展性问题。为此,我们提出LMAE4Eth,一种融合交易语义、掩码图嵌入与专家知识的多视角学习框架。首先,设计交易令牌对比语言模型(TxCLM),将无上下文数值交易转化为逻辑连贯的语言表征。为明确刻画账户间语义差异,引入令牌感知对比学习预训练目标,并结合掩码交易模型预训练目标,学习高表达力账户表示。随后,提出掩码账户图自编码器(MAGAE),采用生成式自监督学习,聚焦账户节点特征重建,显著提升节点级检测性能。为支持大规模训练,引入层邻域采样策略,使采样顶点数减少数倍而保持训练质量。最后,通过交叉注意力融合网络统一TxCLM与MAGAE的嵌入表示,发挥两者优势。在三个数据集上与21种基线方法对比,实验结果表明,本方法在两个数据集上的F1-score超越最优基线超过10%。
原文摘要 · Abstract (English)
Current Ethereum fraud detection methods rely on context-independent, numerical transaction sequences, failing to capture semantic of account transactions. Furthermore, the pervasive homogeneity in Ethereum transaction records renders it challenging to learn discriminative account embeddings. Moreover, current self-supervised graph learning methods primarily learn node representations through graph reconstruction, resulting in suboptimal performance for node-level tasks like fraud account detection, while these methods also encounter scalability challenges. To tackle these challenges, we propose LMAE4Eth, a multi-view learning framework that fuses transaction semantics, masked graph embedding, and expert knowledge. We first propose a transaction-token contrastive language model (TxCLM) that transforms context-independent numerical transaction records into logically cohesive linguistic representations. To clearly characterize the semantic differences between accounts, we also use a token-aware contrastive learning pre-training objective together with the masked transaction model pre-training objective, learns high-expressive account representations. We then propose a masked account graph autoencoder (MAGAE) using generative self-supervised learning, which achieves superior node-level account detection by focusing on reconstructing account node features. To enable MAGAE to scale for large-scale training, we propose to integrate layer-neighbor sampling into the graph, which reduces the number of sampled vertices by several times without compromising training quality. Finally, using a cross-attention fusion network, we unify the embeddings of TxCLM and MAGAE to leverage the benefits of both. We evaluate our method against 21 baseline approaches on three datasets. Experimental results show that our method outperforms the best baseline by over 10% in F1-score on two of the datasets.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。