CodePRM: Execution Feedback-enhanced Process Reward Model for Code Generation

Code generation is a critical reasoning task for large language models (LLMs).Recent advancements have focused on optimizing the thought process of code generation, achieving significant improvements.However, such thought process lacks effective process supervision, making it hard to optimize the thoughts.Although Process Reward Models (PRMs) have been widely established in mathematical reasoning, building a code PRM is still not trivial for the gap between thoughts to code.In this paper, we propose CODEPRM, a novel approach that leverages the code execution feedback to build a code PRM.Specifically, we first collect a large dataset of thought traces, where each thought step is labeled with their derived code' pass rates, accompanied by the corresponding code snippets, and execution feedback.During training, we train a PRM to take both the reasoning process and code execution feedback as input to score individual thought steps, enabling it to leverage code execution results to distinguish between high-quality and low-quality thought steps.Finally, to use the PRM during inference, we develop a Generate-Verify-Refine (GVR) pipeline where the CODE-PRM serves as a process verifier to dynamically identify and correct errors in the thought process during code search.Experimental results demonstrate that CODEPRM with the inference algorithm outperforms strong baselines, significantly enhancing code generation performance.Further analysis reveals the key factors for building a code PRM.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.findings-acl.428
Citations
1
Primary Topic
Business Process Modeling and Analysis
Type
article
Field-Weighted Citation Impact
2.28
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

CodePRM: Execution Feedback-enhanced Process Reward Model for Code Generation

Xinyi Dai, Ruiming Tang, Yasheng Wang, Qingyao Li et al.
1 citations
Business Process Modeling and Analysis
2.28
article

CodePRM: Execution Feedback-enhanced Process Reward Model for Code Generation

Xinyi Dai, Ruiming Tang, Yasheng Wang, Qingyao Li, Weinan Zhang, Xiangyang Li, Yong Yu
article en
1 citations

Abstract

Code generation is a critical reasoning task for large language models (LLMs).Recent advancements have focused on optimizing the thought process of code generation, achieving significant improvements.However, such thought process lacks effective process supervision, making it hard to optimize the thoughts.Although Process Reward Models (PRMs) have been widely established in mathematical reasoning, building a code PRM is still not trivial for the gap between thoughts to code.In this paper, we propose CODEPRM, a novel approach that leverages the code execution feedback to build a code PRM.Specifically, we first collect a large dataset of thought traces, where each thought step is labeled with their derived code' pass rates, accompanied by the corresponding code snippets, and execution feedback.During training, we train a PRM to take both the reasoning process and code execution feedback as input to score individual thought steps, enabling it to leverage code execution results to distinguish between high-quality and low-quality thought steps.Finally, to use the PRM during inference, we develop a Generate-Verify-Refine (GVR) pipeline where the CODE-PRM serves as a process verifier to dynamically identify and correct errors in the thought process during code search.Experimental results demonstrate that CODEPRM with the inference algorithm outperforms strong baselines, significantly enhancing code generation performance.Further analysis reveals the key factors for building a code PRM.

Openalex Percentile: Top 10%
Business Process Modeling and Analysis
2.28
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

CodePRM: Execution Feedback-enhanced Process Reward Model for Code Generation — Xinyi Dai, Ruiming Tang, et al. · (2025) | TGRS Research Map | TGRS