paper-with-me

홈 › Papers

Improving Small Language Models for Code Generation with Reinforcement Learning from Verification Feedback

2026-05-28 · Egor Skopin, Evgeny Kotelnikov arxiv

Reinforcement learning with verifiable rewards (RLVR) trains language models using programmatically checkable signals such as unit-test outcomes, enabling direct optimization for functional correctness in code generation. We conduct an empirical study of RLVR for Python code generation on the MBPP benchmark using two small models (Qwen3-0.6B and Llama3.2-1B) with LoRA fine-tuning. Across multiple reward formulations such as: unit-test-only rewards, static-analysis-only shaping via the Ruff linter, and a combined reward, we compare group-based policy optimization variants (GRPO and GSPO) and evaluate both functional correctness and behavioral diagnostics. In our experimental setting, RLVR improves pass@1 on MBPP test by up to 13 percentage points under proposed combined reward configuration. However, we find that reward shaping can induce systematic behavioral shifts: using only static-analysis penalties may bias the policy toward shorter completions that reduce lint errors without reliably improving functional correctness. In contrast, combined rewards mitigate this degeneration and yield more stable trade-offs between correctness and style constraints. Overall, our results highlight that RLVR effectiveness for code generation is highly sensitive to reward design and optimization granularity, and that diagnostics beyond pass@1, including generation length, Ruff severity profiles, and execution error types are useful for identifying failure modes.

📄 PDF Abstract BibTeX arXiv:2605.30478

Code (0)

등록된 구현이 없습니다.

Tasks

Reinforcement LearningCode Generation

Similar Papers 제목 키워드 기반

EvolveCoder: Evolving Test Cases via Adversarial Verification for Code Reinforcement Learning

2026-03-13 · Chi Ruan, Dongfu Jiang, Huaye Zeng, Ping Nie 외 arxiv

Reinforcement learning with verifiable rewards (RLVR) is a promising approach for improving code generation in large language models, but its effectiveness is limited by weak and static verification signals in existing c…

Reinforcement LearningCode Generation

Efficient Post-training of LLMs for Code Generation With Offline Reinforcement Learning

2026-05-27 · Mingze Wu, Abhinav Anand, Shweta Verma, Mira Mezini arxiv

Post-training using online reinforcement learning (RL) is an important training step for LLMs, including code-generating models. However, online RL for code generation involves LLM inference and verification of the gener…

Reinforcement LearningCode GenerationOffline RL

Insights from Verification: Training a Verilog Generation LLM with Reinforcement Learning with Testbench Feedback

2025-04-22 · Ning Wang, Bingkun Yao, Jie zhou, Yuchen Hu 외

Large language models (LLMs) have shown strong performance in Verilog generation from natural language description. However, ensuring the functional correctness of the generated code remains a significant challenge. This…

Code GenerationHallucinationReinforcement Learning (RL)

ReVeal: Self-Evolving Code Agents via Iterative Generation-Verification

2025-06-13 · Yiyang Jin, Kunzhao Xu, Hang Li, Xueting Han 외

Recent advances in reinforcement learning (RL) with verifiable outcome rewards have significantly improved the reasoning capabilities of large language models (LLMs), especially when combined with multi-turn tool interac…

Code Generationreinforcement-learningReinforcement LearningReinforcement Learning (RL)

Self-Correcting Code Generation Using Small Language Models

2025-05-29 · Jeonghun Cho, Deokhyung Kang, Hyounghun Kim, Gary Geunbae Lee

Self-correction has demonstrated potential in code generation by allowing language models to revise and improve their outputs through successive refinement. Recent studies have explored prompting-based strategies that in…

Code GenerationHumanEvalmbpp