atlas

Research map / Large language models / Agents, code and math

Reasoning Through Execution: Unifying Process and Outcome Rewards for Code Generation

ICML 2025 · Large language models › Agents, code and math · approach: Code generation benchmarks · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes ORPS, an inference-only tree search where an LLM refines code using execution/profiling metrics and self-critique scores as process rewards, avoiding trained PRMs.

Problem

Code generation for complex algorithmic tasks where outcome supervision ignores intermediate reasoning and learned process reward models are costly and misaligned.

Approach

Unifies process and outcome supervision by beam-searching over reasoning-plus-code states, scoring candidates with a weighted sum of LLM self-critique reward (process) and execution/profiling metrics (outcome), with no PRM training.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply ORPS instead of BoNQwen-2.5-Coder-7B-Instruct · LBPPPass@1: 53.1 -> 59.9Helped
Apply ORPS instead of LDB (w/~T)Qwen-2.5-Coder-7B-Instruct · HumanEvalPass@1: 87.8 -> 79.9Hurt
Apply ORPS instead of BoNQwen-2.5-Coder-7B-Instruct · MBPPPass@1: 82.9 -> 76.7Hurt
Add dataset-provided unit testsORPS with Qwen-2.5-Coder-7B-Instruct · LBPPPass@1: 59.9 -> 77.8Helped
Add dataset-provided unit testsORPS with Qwen-2.5-Coder-7B-Instruct · HumanEvalPass@1: 79.9 -> 96.3Helped
Add execution feedback (ablation)ORPS with Qwen-2.5-Coder-7B-Instruct · LBPPPass@1: 43.8 -> 59.9Helped
Add explicit reasoning before generating code (ablation)ORPS with Qwen-2.5-Coder-7B-Instruct · LBPPPass@1: 55.6 -> 59.9Helped
Use inference-only outcome-level reward instead of trained outcome-level rewardQwen-2.5-Coder-7B-Instruct · LBPPPass@1: 37.0 -> 59.9Helped
Use inference-only line-level reward instead of trained line-level rewardQwen-2.5-Coder-7B-Instruct · LBPPPass@1: 32.1 -> 38.3Helped
Apply ORPS rather than PRM-GPTQwen-2.5-Coder-7B-Instruct · LBPP (20 Calls)Pass@1: 44.4 -> 48.4Helped
Apply ORPS rather than RExQwen-2.5-Coder-7B-Instruct · LBPP (100 Calls)Pass@1: 54.3 -> 64.2Helped
Apply ORPS rather than RExQwen-2.5-Coder-7B-Instruct · CodeContests (100 Calls)Pass@1: 13.33 -> 20.61Helped

Surprising findings

Limitations

Experimental setup

Datasets: LBPP HumanEval MBPP CodeContests

Benchmarks: LBPP HumanEval MBPP CodeContests

Metrics: Pass@1 average tests passed valid rate relative execution time

Baselines: CoT Reflexion LDB Best-of-N sampling REx PRM-GPT PRM-Human

Builds on: Reflexion LDB REx Best-of-N sampling

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy