TY - JOUR
T1 - CryptoFormer
T2 - Multi-Currency Traffic Classification Via Two-Stage Transformer Architecture
AU - Guo, Zhenyu
AU - Zhang, Zijian
AU - Wu, Yan
AU - Sun, Jiahang
AU - Liu, Jiamou
AU - Li, Xin
AU - Wang, Yajie
AU - Zhang, Guoqiang
AU - Zhang, Lei
AU - Zhu, Liehuang
N1 - Publisher Copyright:
© 2004 IEEE.
PY - 2026
Y1 - 2026
N2 - Accurate identification of cryptocurrency traffic is essential for regulatory and forensic applications such as anti-money laundering, illicit transaction tracing, and protocol-specific risk assessment. However, real-time classification remains challenging due to encryption heterogeneity across blockchain protocols and the interleaving of multiple currencies in peer-to-peer networks. To address this, we propose CryptoFormer, a Transformer-based framework for multi-currency traffic classification. CryptoFormer introduces a two-stage architecture that separately captures packet-level semantics and session-level behavioral patterns. An adaptive gated fusion module further integrates both content and behavioral features, enabling robust representation learning across plaintext and ciphertext protocols without decryption. We also construct a labeled real-world traffic dataset covering eighteen cryptocurrency assets and diverse background noise, capturing protocol diversity and deployment realism. Experimental results show that CryptoFormer achieves a macro F1-score of 95.02%, outperforming strong baselines including ET-BERT and TrafficFormer. Despite its shallow structure and smaller training corpus, CryptoFormer delivers comparable or better accuracy with significantly lower computational overhead, making it suitable for deployment in regulatory, compliance, and edge-monitoring systems.
AB - Accurate identification of cryptocurrency traffic is essential for regulatory and forensic applications such as anti-money laundering, illicit transaction tracing, and protocol-specific risk assessment. However, real-time classification remains challenging due to encryption heterogeneity across blockchain protocols and the interleaving of multiple currencies in peer-to-peer networks. To address this, we propose CryptoFormer, a Transformer-based framework for multi-currency traffic classification. CryptoFormer introduces a two-stage architecture that separately captures packet-level semantics and session-level behavioral patterns. An adaptive gated fusion module further integrates both content and behavioral features, enabling robust representation learning across plaintext and ciphertext protocols without decryption. We also construct a labeled real-world traffic dataset covering eighteen cryptocurrency assets and diverse background noise, capturing protocol diversity and deployment realism. Experimental results show that CryptoFormer achieves a macro F1-score of 95.02%, outperforming strong baselines including ET-BERT and TrafficFormer. Despite its shallow structure and smaller training corpus, CryptoFormer delivers comparable or better accuracy with significantly lower computational overhead, making it suitable for deployment in regulatory, compliance, and edge-monitoring systems.
KW - Blockchain Governance
KW - Cryptocurrencies Identification
KW - Traffic Classification
KW - Transformer
UR - https://www.scopus.com/pages/publications/105051610522
U2 - 10.1109/TDSC.2026.3736643
DO - 10.1109/TDSC.2026.3736643
M3 - Article
AN - SCOPUS:105051610522
SN - 1545-5971
JO - IEEE Transactions on Dependable and Secure Computing
JF - IEEE Transactions on Dependable and Secure Computing
ER -