Towards Secure and Explainable Smart Contract Generation with Security-Aware Group Relative Policy Optimization
12 Sept · Lei Yu, Jingyuan Zhang, Xin Wang +3 · arXiv:2509.09942
Smart contracts automate the management of high-value assets, where vulnerabilities can lead to catastrophic financial losses. This challenge is amplified in Large Language Models (LLMs) by two interconnected failures: they operate as unauditable "black boxes" lacking a transparent reasoning process, and consequently, generate code riddled with critical security vulnerabilities. To address both issues, we propose…