Process Supervision-Guided Policy Optimization for Code Generation

Ning Dai, Zheng Wu, Renjie Zheng, Ziyun Wei, Wenlei Shi +5 more
10/23/2024
cs.AI

No confident code implementation found for this paper.

Abstract

Reinforcement learning (RL) with unit test feedback has enhanced large language models' (LLMs) code generation, but relies on sparse rewards provided only after complete code evaluation, limiting learning efficiency and incremental improvements. When generated code fails all unit tests, no learning signal is received, hindering progress on complex tasks. To address this, we propose a Process Reward Model (PRM) that delivers dense, line-level feedback on code correctness during generation, mimicking human code refinement and providing immediate guidance. We explore various strategies for training PRMs and integrating them into the RL framework, finding that using PRMs both as dense rewards and for value function initialization significantly boosts performance. Our experimental results also highlight the effectiveness of PRMs in enhancing RL-driven code generation, especially for long-horizon scenarios.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{dai2024process,
  title  = {Process Supervision-Guided Policy Optimization for Code Generation},
  author = {Ning Dai and Zheng Wu and Renjie Zheng and Ziyun Wei and Wenlei Shi and Xing Jin and Guanlin Liu and Chen Dun and Liang Huang and Lin Yan},
  year   = {2024},
  eprint = {2410.17621},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.17621v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.17621.svg)](https://codeofpaper.com/paper/2410.17621)

Discussion