Bridging Language Barriers in Smart Contract Security: A Reinforcement Learning-Based Translation Approach
Minghao Hu, Qiang Zeng, Lannan Luo
ICLR 2026 submission
Abstract. Smart contracts have transformed decentralized finance, but flaws in their logic still present serious security risks. Most existing vulnerability detection tools are designed for well-supported languages like Solidity, leaving less common languages such as Vyper and Rust with limited protection. To address this issue, we propose RLTransSC, a novel method that utilizes Reinforcement Learning (RL) to guide Large Language Models (LLMs) fine-tuning to translate smart contracts from low-resource languages into a high-resource language (i.e., Solidity). Once translated, we analyze the translated contracts using a vulnerability detection model trained specifically on Solidity. This approach removes the need for labeled datasets or specialized security tools for low-resource languages. We demonstrate the effectiveness of our method across Vyper, Rust, and Solidity, achieving strong translation performance and significantly improving vulnerability detection for low-resourced smart contract languages.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperadd · history
Loading the discussion…