paper-with-me

홈 › Papers

Process-Supervised Reinforcement Learning for Code Generation

2025-02-03 · Yufan Ye, Ting Zhang, Wenbin Jiang, Hua Huang

Existing reinforcement learning strategies based on outcome supervision have proven effective in enhancing the performance of large language models(LLMs) for code generation. While reinforcement learning based on process supervision has shown great promise in handling multi-step reasoning tasks, its effectiveness in code generation remains largely underexplored and underjustified. The primary obstacle stems from the resource-intensive nature of constructing high-quality process-supervised data, which demands substantial human expertise and computational resources. In response to this challenge, we propose a "statement mutation/refactoring-compile and execution verification" strategy: mutating and refactoring code line-by-line through a teacher model, and utilizing compiler execution results to automatically label each line, resulting in line-by-line process-supervised data, which is pivotal for training a process-supervised reward model. The trained reward model is then integrated into the PRLCoder framework, followed by experimental validation on several benchmarks. Experimental results demonstrate that process-supervised reinforcement learning significantly surpasses methods relying solely on outcome supervision. Notably, in tackling complex code generation tasks, process-supervised reinforcement learning shows a clear advantage, ensuring both the integrity of the code generation process and the correctness of the generation results.

📄 PDF Abstract BibTeX arXiv:2502.01715

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generationreinforcement-learningReinforcement Learning

Similar Papers 제목 키워드 기반

Execution-based Code Generation using Deep Reinforcement Learning

2023-01-31 · Parshin Shojaee, Aneesh Jain, Sindhu Tipirneni, Chandan K. Reddy

The utilization of programming language (PL) models, pre-trained on large-scale code corpora, as a means of automating software engineering processes has demonstrated considerable potential in streamlining various code g…

Code CompletionCode GenerationCode TranslationDeep Reinforcement Learning+6

ProRAG: Process-Supervised Reinforcement Learning for Retrieval-Augmented Generation

2026-01-29 · Zhao Wang, Ziliang Zhao, Zhicheng Dou arxiv

Reinforcement learning (RL) has become a promising paradigm for optimizing Retrieval-Augmented Generation (RAG) in complex reasoning tasks. However, traditional outcome-based RL approaches often suffer from reward sparsi…

Reinforcement Learning

Dream-Coder 7B: An Open Diffusion Language Model for Code

2025-09-01 · Zhihui Xie, Jiacheng Ye, Lin Zheng, Jiahui Gao 외 arxiv

We present Dream-Coder 7B, an open-source discrete diffusion language model for code generation that exhibits emergent any-order generation capabilities. Unlike traditional autoregressive (AR) models that decode strictly…

Reinforcement LearningCode Generation

Code Security Vulnerability Repair Using Reinforcement Learning with Large Language Models

2024-01-13 · Nafis Tanveer Islam, Mohammad Bahrami Karkevandi, Peyman Najafirad

With the recent advancement of Large Language Models (LLMs), generating functionally correct code has become less complicated for a wide array of developers. While using LLMs has sped up the functional development proces…

Code GenerationCode Repairreinforcement-learning

UI2Code^N: UI-to-Code Generation as Interactive Visual Optimization

2025-11-11 · Zhen Yang, Wenyi Hong, Mingde Xu, Xinyue Fan 외 arxiv

UI-to-code aims to translate UI screenshots into executable front-end code. Despite progress with vision-language models (VLMs), most existing methods formulate UI-to-code as a single-pass generation, which mismatches re…

Reinforcement LearningCode Generation