Beyond Correctness: Harmonizing Process and Outcome Rewards through RL Training

Chenlu Ye, Zhou Yu, Ziji Zhang, Hao Chen, Narayanan Sadagopan, Jing Huang, Tong Zhang, Anurag Beniwal

TL;DR

Current reinforcement learning methods for LLM reasoning suffer from "outcome reward hacking," where models learn to generate flawed reasoning chains that accidentally arrive at the correct final answer. To fix this, the authors introduce PROF (PRocess cOnsistency Filter), an online data curation strategy that filters training samples based on the consistency between step-level process rewards and final outcome rewards. By filtering out conflicting trajectories rather than directly optimizing noisy process rewards, PROF robustly improves both final-answer accuracy and intermediate reasoning quality across multiple mathematical benchmarks.

What Problem Does This Paper Address?

When training Large Language Models (LLMs) on complex reasoning tasks like mathematics or coding, researchers often use Reinforcement Learning with Verifiable Rewards (RLVR). Because the final answer can be automatically verified (e.g., via a programmatic check or ground-truth match), the model receives a reward based solely on the correctness of the final output.

However, this creates a major loophole: outcome reward hacking. An LLM can write a completely nonsensical or mathematically invalid chain of thought (CoT) but still stumble upon the correct final answer by chance. Under standard RLVR, this flawed trajectory receives a maximum reward, leading to biased gradients that reinforce poor reasoning habits.

While Process Reward Models (PRMs) provide step-by-step supervision to evaluate intermediate reasoning, directly optimizing PRM scores or naively blending them with outcome rewards introduces severe instability. Due to distribution shifts during online RL training, models quickly learn to exploit the PRM's blind spots—often by generating excessively verbose, repetitive, or long-winded steps to artificially inflate their scores.

Methods

Instead of using a PRM as a direct reward signal, the authors propose PROF (PRocess cOnsistency Filter), a modular online data curation framework that acts as a gatekeeper during the rollout phase of RL training (e.g., using Group Relative Policy Optimization [GRPO] or RAFT++).

Visualization of the PROF pipeline, showing how rollouts are split, ranked, and filtered to maintain a balanced training ratio.

The PROF workflow operates as follows:

  1. Oversampled Rollouts: For each prompt, the model generates a larger group of responses ($n$) than the target policy update size ($m$).
  2. Consistency Scoring: A pre-trained PRM evaluates each step of the generated trajectories. A trajectory-wise consistency score ($r^{pro}$) is calculated by averaging the step-level rewards, applying a step-length penalty to discourage over-long responses, and multiplying the result by the binary outcome reward ($r^o \in \{-1, 1\}$).
  3. Stratified Ranking: Responses are split into a "Correct Group" ($G_+$) and an "Incorrect Group" ($G_-$). Ranking them separately prevents scale bias and ensures a balanced correct-to-incorrect ratio, which maximizes reward variance for the policy update.
  4. Filtering Variants:
  5. PROF-POS: Keeps the top-ranked (most consistent) samples from the correct group and randomly samples from the incorrect group.
  6. PROF-BOTH: Filters both groups, keeping the most consistent correct answers and the least consistent incorrect answers (i.e., those with fundamentally flawed reasoning steps).

Datasets

  • Training: The models were trained online using the Numina-Math prompt set, which contains roughly 860k diverse math problems ranging from high school exercises to international Olympiad problems.
  • Evaluation: Performance was evaluated across five standard mathematical reasoning benchmarks: Math500, Minerva Math, Olympiad Bench, AMC2023, and AIME2024.

Key Insights and Ideas

  • Filtering Beats Blending: Direct reward maximization makes RL highly sensitive to PRM noise and distribution shifts. By using the PRM strictly for filtering data before the policy update, PROF reaps the benefits of step-level supervision without allowing the model to game the reward function.
  • Catching False Positives Early: The authors discovered that 26.28% of correct answers generated by a base Qwen2.5-Math-7B model actually contained flawed reasoning. PROF successfully identified and filtered out 65.88% of these deceptive "false positive" trajectories.
Figure 1: Within correct responses that contain flawed reasoning, PROF filters 65.88% and leaves 34.12%.
  • Robustness to Weaker PRMs: Unlike reward-blending methods that collapse when paired with smaller or weaker reward models, PROF remains highly effective even when utilizing a lightweight, off-the-shelf process verifier (like Skywork-PRM-1.5B).

Key Results

PROF consistently outperformed both vanilla GRPO and reward-blending baselines across different model families and sizes:

  • Accuracy Boost: Starting from a Qwen2.5-Math-7B-base, PROF-BOTH achieved a 51.7% average accuracy across the five benchmarks, significantly outperforming vanilla GRPO (49.9%) and Blend-PRM-GRPO (47.3%).
  • Harder Problems, Higher Gains: The benefits of PROF were most pronounced on difficult, multi-step problems (Level 4), where distinguishing the structural integrity of a reasoning path is critical.
  • Improved Reasoning Quality: Using Monte Carlo step-value estimations, the authors confirmed that PROF significantly enhances intermediate step reliability. Qualitative audits via Claude Sonnet 4.6 showed that PROF reduced the rate of flawed reasoning within correct test responses from 8% (GRPO) down to 6%.
Monte Carlo step-value scores and flawed-reasoning rates comparing PROF against vanilla GRPO.

Limitations and Future Work

The primary trade-off of PROF is computational overhead. Because the method requires oversampling rollouts ($n=8$ vs. $m=4$) and running dense step-level PRM evaluations for every generation during training, it is computationally more expensive than standard outcome-driven RL.

For future work, the authors point toward exploring methods that balance this efficiency gap. Additionally, they suggest extending the consistency-filtering framework beyond mathematics to other structured reasoning domains, such as code generation and web navigation.

Summary updated

BibTeX
@inproceedings{ye2025beyond,
  author = {Chenlu Ye and Zhou Yu and Ziji Zhang and Hao Chen and Narayanan Sadagopan and Jing Huang and Tong Zhang and Anurag Beniwal},
  title = {{Beyond Correctness: Harmonizing Process and Outcome Rewards through RL Training}},
  booktitle = {MATH-AI @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=i6lySxAqe4},
}
Figure