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

Abstract

Large Language Models excel at code generation yet struggle with complex programming tasks that demand sophisticated reasoning. To bridge this gap, traditional process supervision relies on learned reward models requiring costly training data and suffering from reward misalignment, while outcome supervision fails for complex tasks needing coordinated intermediate steps. We introduce Outcome Refining Process Supervision, which unifies process and outcome supervision by leveraging executable verification: a tree-structured search framework generates strategic alternatives, profiles execution metrics, and scores candidates via self-critique mechanisms that integrate runtime feedback with reasoning. Experiments across 5 models and 3 benchmarks show consistent gains, with 26.9% higher correctness and 42.2% improved code efficiency. The results demonstrate that ORPS enables LLMs to overcome local optima in code generation, suggesting a promising direction for combining verifiable outcomes with structured reasoning to tackle complex challenges.

Cite

Text

Yu et al. "Reasoning Through Execution: Unifying Process and Outcome Rewards for Code Generation." Proceedings of the 42nd International Conference on Machine Learning, 2025.

Markdown

[Yu et al. "Reasoning Through Execution: Unifying Process and Outcome Rewards for Code Generation." Proceedings of the 42nd International Conference on Machine Learning, 2025.](https://mlanthology.org/icml/2025/yu2025icml-reasoning/)

BibTeX

@inproceedings{yu2025icml-reasoning,
  title     = {{Reasoning Through Execution: Unifying Process and Outcome Rewards for Code Generation}},
  author    = {Yu, Zhuohao and Gu, Weizheng and Wang, Yidong and Jiang, Xingru and Zeng, Zhengran and Wang, Jindong and Ye, Wei and Zhang, Shikun},
  booktitle = {Proceedings of the 42nd International Conference on Machine Learning},
  year      = {2025},
  pages     = {72972-72994},
  volume    = {267},
  url       = {https://mlanthology.org/icml/2025/yu2025icml-reasoning/}
}