Research Article

GNN-Augmented RL for Fraud Detection in Decentralized Finance

Lifan Hu*
School of Computing, National University of Singapore, Singapore

* Corresponding author: [email protected]

Abstract

Decentralized Finance (DeFi) has revolutionized financial transactions by enabling open, permissionless access to financial services. However, its lack of centralized oversight and pseudonymous architecture have also brought by fraudulent activities. This study presents a novel framework for fraud detection in DeFi that integrates graph neural networks (GNNs) with multi-agent reinforcement learning (MARL). Leveraging a directed transaction graph comprising 50,000 Ethereum addresses and over 120,000 token transfers, this paper evaluates four detection pipelines: extreme gradient-boosted decision trees (XGBoost), a GNN-only model (GCN), a standalone reinforcement learning agent (PPO), and a proposed GNN+RL hybrid model. The hybrid system combines graph-based embeddings with adversarial policy learning, where a fraudster and a detector co-evolve through a multi-agent PPO setup using PettingZoo’s ParallelEnv. Synthetic fraud strategies are generated using a GAN and projected into the GCN embedding space to simulate adaptive threats. Experimental results show that while GCNs outperform flat-feature models, the GNN+RL hybrid achieves superior balance across accuracy (84.58%), AUC (0.8176), and F1 score (0.7493), capturing both structural and behavioral fraud signals. Reward convergence curves further illustrate emergent adversarial dynamics. The proposed framework demonstrates the effectiveness of combining relational inductive biases, dynamic decision-making, and adversarial augmentation for resilient fraud detection. Future work includes extending to cross-chain analytics and enriching contextual understanding through integration with large language models.

Keywords: Decentralized Finance; Fraud Detection; Graph Neural Networks; Reinforcement Learning
Published: May 15, 2025
DOI: 10.54254/2755-2721/2025.22856
Volume: ACE Vol.152
pp. 63-71
Download PDF

References

  1. Malwa, S. (2023). DEFI ‘Rug pull’ scams pulled in $2.8B this year: Chainalysis. CoinDesk. Retrieved from https://www.coindesk.com/markets/2021/12/17/defi-rug-pull-scams-pulled-in-28b-this-year-chainalysis
  2. Asrori, S.S., Wang, L., Ozawa, S. (2023). Permissioned Blockchain-Based XGBoost for Multi Banks Fraud Detection. Lecture Notes in Computer Science, vol 13625, 683-692
  3. Bhowmik, M., Chandana, T. S. S., & Rudra, B. (2021). Comparative Study of Machine Learning Algorithms for Fraud Detection in Blockchain. 2022 6th International Conference on Computing Methodologies and Communication (ICCMC), 539–541.
  4. Shayegan, M. J., Sabor, H. R., Uddin, M., & Chen, C.-L. (2022). A Collective Anomaly Detection Technique to Detect Crypto Wallet Frauds on Bitcoin Network. Symmetry, 14(2), 328.
  5. Patel, O. (2024). Machine Learning-Enhanced Decentralized Finance (DEFI). International Journal of Science and Research (IJSR), 13(8), 499–508.
  6. Kumar, N., Singh, A., Handa, A., Shukla, S.K. (2020). Detecting Malicious Accounts on the Ethereum Blockchain with Supervised Learning. Lecture Notes in Computer Science, vol 12161, 94-109
  7. Palaiokrassas, G., Scherrers, S., Ofeidis, I., & Tassiulas, L. (2024). Leveraging machine learning for multichain DEFI fraud detection. 2021 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), 678–680.
  8. Luo, B., Zhang, Z., Wang, Q., Ke, A., Lu, S., & He, B. (2023). AI-powered fraud detection in Decentralized Finance: a project Life cycle perspective. Retrieved from https://arxiv.org/abs/2308.15992
  9. Yoo, Y., Shin, J., & Kyeong, S. (2023). Medicare Fraud Detection Using Graph Analysis: A comparative study of machine learning and graph neural networks. IEEE Access, 11, 88278–88294.
  10. Tam, D. S. H., Lau, W. C., Hu, B., Ying, Q. F., Chiu, D. M., & Liu, H. (2019, June 13). Identifying illicit accounts in large scale e-payment networks -- A graph representation learning approach. Retrieved from https://arxiv.org/abs/1906.05546
  11. Choi, S., Choi, S., & Buu, S. (2025). Proximal Policy-Guided hyperparameter optimization for mitigating model decay in cryptocurrency scam detection. Electronics, 14(6), 1192.
  12. Dong, Y., Yao, J., Wang, J., Liang, Y., Liao, S., & Xiao, M. (2024, September 15). Dynamic Fraud Detection: Integrating Reinforcement Learning into Graph Neural Networks. Retrieved from https://arxiv.org/abs/2409.09892
  13. Lee, J., Jung, D., Moon, J., & Rho, S. (2024). Advanced R-GAN: Generating anomaly data for improved detection in imbalanced datasets using regularized generative adversarial networks. Alexandria Engineering Journal, 111, 491–510.