Ever-evolving transaction patterns have significantly hindered anomaly detection on emerging cryptocurrency blockchains due to the vast number of addresses and diverse anomalous behaviors. Recently, advanced Graph Anomaly Detection (GAD) approaches applied to blockchains have faced two critical challenges: \textit{adversarial pattern evolution by malicious actors} and \textit{the out-of-distribution (OOD) problem caused by varied transaction semantics on blockchains}. To address these challenges, we propose a novel framework termed \textbf{TE}mporal \textbf{M}otif-aware \textbf{G}raph \textbf{T}est-\textbf{T}ime \textbf{A}daptation (\textbf{TEMG-TTA}). First, we comprehensively capture the 3-node temporal motif distribution of each active address using an efficient computational mechanism, enabling downstream temporal motif-aware graph learning. Second, we design a simple yet effective test-time adaptation strategy to facilitate the sharing of common patterns between training and testing graphs. Extensive experiments on 5 real-world datasets demonstrate that our proposed \textbf{TEMG-TTA} outperforms \textit{state-of-the-art} GAD approaches by an average of 54.88\%. A further case study on interpretable motif patterns reveals that \textbf{TEMG-TTA} explicitly characterizes the complex transaction patterns of anomalous addresses, thereby verifying the effectiveness of our technical designs. Our code is publicly available at https://github.com/LuoXishuang0712/TEMG-TTA/.
翻译:不断演变的交易模式因海量地址和多样异常行为,显著阻碍了新兴加密货币区块链上的异常检测。近期应用于区块链的先进图异常检测(GAD)方法面临两大关键挑战:\textit{恶意行为者的对抗性模式演化}与\textit{区块链上交易语义多样性引发的分布外(OOD)问题}。为应对这些挑战,我们提出一种名为\textbf{时}态\textbf{模}体感知\textbf{图}测\textbf{试}时\textbf{自}适应(\textbf{TEMG-TTA})的新型框架。首先,通过高效计算机制全面捕获每个活跃地址的三节点时态模体分布,实现下游时态模体感知图学习。其次,设计简洁高效的测试时自适应策略,促进训练图与测试图之间通用模式的共享。在5个真实数据集上的大量实验表明,所提\textbf{TEMG-TTA}性能平均优于\textit{最先进的}GAD方法54.88%。进一步的可解释模体模式案例研究揭示,\textbf{TEMG-TTA}能显式刻画异常地址的复杂交易模式,由此验证了我们技术设计的有效性。我们的代码已在https://github.com/LuoXishuang0712/TEMG-TTA/ 公开。