LGSEJan 29

FunPRM: Function-as-Step Process Reward Model with Meta Reward Correction for Code Generation

arXiv:2601.22249v13 citationsh-index: 9
Originality Highly original
AI Analysis

This addresses the challenge of unreliable code generation for developers, offering an incremental improvement over existing test-time scaling methods.

The paper tackles the problem of improving code generation by large language models (LLMs) on complex tasks, proposing FunPRM, which uses function-as-step decomposition and meta reward correction to achieve state-of-the-art performance on benchmarks like LiveCodeBench.

Code generation is a core application of large language models (LLMs), yet LLMs still frequently fail on complex programming tasks. Given its success in mathematical reasoning, test-time scaling approaches such as Process Reward Model (PRM)-based Best-of-N selection offer a promising way to improve performance. However, existing PRMs remain ineffective for code generation due to the lack of meaningful step decomposition in code and the noise of Monte Carlo-estimated partial-solution correctness scores (rewards). To address these challenges, we propose FunPRM. FunPRM prompts LLMs to encourage modular code generation organized into functions, with functions treated as PRM reasoning steps. Furthermore, FunPRM introduces a novel meta-learning-based reward correction mechanism that leverages clean final-solution rewards obtained via a unit-test-based evaluation system to purify noisy partial-solution rewards. Experiments on LiveCodeBench and BigCodeBench demonstrate that FunPRM consistently outperforms existing test-time scaling methods across five base LLMs, notably achieving state-of-the-art performance on LiveCodeBench when combined with O4-mini. Furthermore, FunPRM produces code that is more readable and reusable for developers.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes