Bootstrapping Niche Multilingual Code Translation via Reinforcement Learning with Execution-Based Verifiable Supervision
This study addresses the poor executability of code translation for low-resource languages caused by insufficient parallel supervision. We propose an execution feedback-based reinforcement learning framework that trains a reward model using execution-verified data and optimizes large language models via the GRPO algorithm to enhance cross-language code generation correctness. Additionally, we introduce Humaneval-X++, a multilingual evaluation benchmark. Experiments demonstrate that a 4B-parameter model achieves an average performance improvement of 13% on this benchmark, with gains reaching 21% for medium-resource languages. The approach successfully enables executable code translation across 600 language pairs, significantly mitigating alignment challenges in low-resource scenarios.