Presented at ICML 2025, this work introduces Policy Filtration for PPO (PF-PPO). This method enhances Reinforcement Learning from Human Feedback (RLHF) by identifying and filtering out "noisy" feedback from inaccurate reward models, particularly in complex domains like code generation.
The Challenge of Noisy Reward Models
In standard RLHF, a Reward Model (RM) is trained on human preferences to guide the reinforcement learning process. However, these RMs are frequently inaccurate, often assigning high scores to incorrect code or low scores to valid solutions. This noise leads to reward hacking, where the Large Language Model (LLM) learns to exploit RM flaws rather than mastering the underlying task. This issue is especially prevalent in code and mathematics, where precision is paramount.
Methodology: PF-PPO
The authors observed that reward models are not uniformly unreliable. Instead, they exhibit higher consistency at the extremes of their scoring range. To leverage this, they developed PF-PPO, which modifies the standard PPO pipeline through:
- Multi-Sampling: Generating $N$ responses per prompt.
- Ranking: Scoring all $N$ responses using the RM.
- Filtration: Selecting specific samples for training using weight vectors:
- Best-Random (BR): Selects the top-ranked response and one other random response.
- Best-Worst (BW): Selects the top-ranked and the bottom-ranked response.
- Predictive Selection: Using the coefficient of determination ($R^2$) between RM rewards and ground-truth scores on a validation set to choose the optimal filtration strategy.
Key Insights: The "U-Shaped" Reliability
A core finding of this research is that RMs are significantly more reliable when they provide very high or very low rewards. In the moderate reward range, the correlation with actual correctness drops sharply.
By filtering out these ambiguous "middle" samples, PF-PPO increases the signal-to-noise ratio during training. Furthermore, the study highlights that contrastive signals (e.g., Best-Worst) are essential for effective convergence, explaining why training solely on "Best-of-N" samples often underperforms.
Experimental Results
The researchers evaluated PF-PPO across several benchmarks, including HumanEval, MBPP, and a new LeetCode Contest benchmark comprising 160 problems from recent competitions.
Key results include:
- Code Generation Gains: PF-PPO achieved a +7.9% improvement on HumanEval and a +10.0% increase on the LeetCode Contest benchmark using a 7B-parameter base model.
- State-of-the-Art: The resulting 7B model outperformed existing SOTA models like Magicoder.
- Mathematical Reasoning: Consistent improvements were observed on Ape210K and CMATH benchmarks.
- Training Stability: Despite the overhead of multi-sampling, the cleaner signal led to faster and more stable gradient updates.
Conclusion and Future Directions
PF-PPO demonstrates that filtering reward model feedback based on reliability can significantly boost LLM performance in reasoning-heavy tasks. While the current approach relies on rank-based filtration and incurs higher inference costs during training, future work may explore continuous weighting schemes and more sophisticated metrics for predicting reward model reliability.
Summary updated