Learning to Generate Secure Code via Token-Level Rewards
26 Feb · Jiazheng Quan, Xiaodong Li, Bin Wang +5 · arXiv:2602.23407
Large language models (LLMs) have demonstrated strong capabilities in code generation, yet they remain prone to producing security vulnerabilities. Existing approaches commonly suffer from two key limitations: the scarcity of high-quality security data and coarse-grained reinforcement learning reward signals. To address these challenges, we propose Vul2Safe, a new secure code generation framework that leverages LLM…