Skip to main content
QUICK REVIEW

[Paper Review] Secrets of RLHF in Large Language Models Part II: Reward Modeling

Binghai Wang, Rui Zheng|arXiv (Cornell University)|Jan 11, 2024
Topic ModelingComputer Science7 citations
TL;DR

The paper investigates improving reward models for RLHF by measuring preference strength, mitigating noisy/ambiguous data, and enhancing generalization via contrastive learning and meta-learning to enable iterative RLHF.

ABSTRACT

Reinforcement Learning from Human Feedback (RLHF) has become a crucial technology for aligning language models with human values and intentions, enabling models to produce more helpful and harmless responses. Reward models are trained as proxies for human preferences to drive reinforcement learning optimization. While reward models are often considered central to achieving high performance, they face the following challenges in practical applications: (1) Incorrect and ambiguous preference pairs in the dataset may hinder the reward model from accurately capturing human intent. (2) Reward models trained on data from a specific distribution often struggle to generalize to examples outside that distribution and are not suitable for iterative RLHF training. In this report, we attempt to address these two issues. (1) From a data perspective, we propose a method to measure the strength of preferences within the data, based on a voting mechanism of multiple reward models. Experimental results confirm that data with varying preference strengths have different impacts on reward model performance. We introduce a series of novel methods to mitigate the influence of incorrect and ambiguous preferences in the dataset and fully leverage high-quality preference data. (2) From an algorithmic standpoint, we introduce contrastive learning to enhance the ability of reward models to distinguish between chosen and rejected responses, thereby improving model generalization. Furthermore, we employ meta-learning to enable the reward model to maintain the ability to differentiate subtle differences in out-of-distribution samples, and this approach can be utilized for iterative RLHF optimization.

Motivation & Objective

  • Identify how incorrect and ambiguous preference data impede reward models in RLHF.
  • Propose methods to measure and leverage preference strength to improve RM quality.
  • Develop data- and algorithm-level strategies (contrastive learning, meta-learning) to enhance RM generalization and enable iterative RLHF.

Proposed method

  • Formalize a preference strength metric via multi-model reward voting to distinguish incorrect/ambiguous/normal data.
  • Apply label flipping and label smoothing to mitigate noisy preferences and improve RM robustness.
  • Introduce an adaptive margin in RM loss guided by preference strength to enhance discrimination.
  • Incorporate unsupervised contrastive losses (SwAV/SimCSE) with RM loss to improve feature discrimination.
  • Introduce MetaRM to maintain RM discrimination under shifts in the policy distribution during PPO.

Experimental results

Research questions

  • RQ1How do incorrect and ambiguous preference data affect reward model performance in RLHF?
  • RQ2Can a data-driven preference strength metric improve the quality and stability of reward models?
  • RQ3Do contrastive learning and meta-learning improve RM generalization to out-of-distribution data and enable iterative RLHF?
  • RQ4What training strategies (label flipping, smoothing, adaptive margins) best mitigate noise while preserving useful signal in preferences?

Key findings

  • Preference strength correlates with annotation quality and model agreement across multiple reward models.
  • Removing or adjusting low-strength/noisy data via flipping or smoothing improves RM stability and RLHF outcomes.
  • Adaptive margins and soft labeling help RM learn robustly from strong preferences and mitigate overfitting.
  • Contrastive learning (notably SimCSE) yields more stable PPO training and slight gains in harmless/helpful evaluation.
  • MetaRM improves discrimination of responses under shifted policy distributions, supporting iterative RLHF.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.