Prototypical Reward Network for Data-Efficient RLHF

Jinghan Zhang, Xiting Wang, Yiqiao Jin, Changyu Chen, Xinhao Zhang, Kunpeng Liu

Abstract

The reward model for Reinforcement Learning from Human Feedback (RLHF) has proven effective in fine-tuning Large Language Models (LLMs). Notably, collecting human feedback for RLHF can be resource-intensive and lead to scalability issues for LLMs and complex tasks. Our proposed framework Proto-RM leverages prototypical networks to enhance reward models under limited human feedback. By enabling stable and reliable structural learning from fewer samples, Proto-RM significantly enhances LLMs' adaptability and accuracy in interpreting human preferences. Extensive experiments on various datasets demonstrate that Proto-RM significantly improves the performance of reward models and LLMs in human feedback tasks, achieving comparable and usually better results than traditional methods, while requiring significantly less data in data-limited scenarios. This research offers a promising direction for enhancing the efficiency of reward models and optimizing the fine-tuning of language models under restricted feedback conditions.

Introduction

Reinforcement Learning from Human Feedback (RLHF) is a critical component in aligning Large Language Models (LLMs) with human values and intent. However, the process faces a significant bottleneck: the Reward Model (RM). Training a robust RM typically requires massive volumes of human-annotated preference data, which is expensive and difficult to scale.

When data is scarce, standard reward models are prone to overfitting, creating an unstable "error surface." This often leads to "reward hacking," where the LLM learns to exploit the reward system to achieve high scores with responses that are actually unhelpful or nonsensical. Proto-RM addresses this challenge by enabling stable, structural learning from limited human feedback.

The Proto-RM pipeline: Human annotations are used to cluster prototypes, which then guide the reward model during the policy fine-tuning process.

Methodology: Structural Learning with Proto-RM

Proto-RM (Prototypical Reward Model) shifts the paradigm from simple supervised classification to an instance-based approach inspired by few-shot learning. Instead of merely outputting a scalar score, the model maps responses into an embedding space anchored by representative "prototypes" of human preference.

The three-stage Proto-RM process: 1) Encoding samples into embedding space, 2) Dynamically adjusting prototypes using Infinite Mixture Prototypes (IMP), and 3) Executing the RLHF loop with distance-based scoring.

The framework operates through three primary stages:

  1. Sample Encoding & Prototype Initialization: Text samples are encoded into a high-dimensional embedding space. A subset of these samples is selected to serve as initial anchors for "chosen" (preferred) and "rejected" responses.
  2. Prototype Update and Addition: Using Infinite Mixture Prototypes (IMP), the model dynamically adds new prototypes if a sample's embedding is significantly distant from existing clusters. This allows the model to adapt its complexity to the inherent diversity of the data without manual intervention.
  3. Fine-tuning: The final reward signal is determined by the proximity of a response to preferred vs. rejected prototypes. This geometric approach creates a more reliable representation of human preferences, even with sparse data.

Experimental Setup and Results

The researchers evaluated Proto-RM across three major benchmarks: Webgpt Comparisons, Synthetic Instruct GPT-J Pairwise, and Summarize from Feedback (TL;DR).

The 20% Rule

The most striking result is Proto-RM's data efficiency. The model achieves comparable—and often superior—results using only 20% of the training data required by standard baseline reward models. For example, on the Webgpt dataset, Proto-RM trained on 20% of the data achieved an accuracy of 60.56%, outperforming a baseline RM trained on 100% of the data (60.17%).

Downstream LLM Performance

When used to fine-tune a GPT-J 6B model, Proto-RM led to measurable improvements in response quality. In evaluations conducted by GPT-4, the Proto-RM-aligned model scored higher across four key dimensions: Accuracy, Relevance, Completeness, and Expression. In summarization tasks, the overall quality score rose from 6.94 to 7.24 compared to standard RLHF methods.

Conclusion and Future Work

Proto-RM demonstrates that structural anchors in embedding space can significantly reduce the redundancy and data requirements of RLHF. By treating preference learning as a distance-based task, the model avoids the noisy error surfaces that plague traditional reward models in low-data regimes.

While highly effective for English-language pairwise tasks, future research will explore the framework's applicability to multi-step reasoning, non-pairwise feedback, and cross-lingual alignment to further generalize these efficiency gains.

Summary updated

BibTeX
@inproceedings{zhang2024prototypical,
  author = {Jinghan Zhang and Xiting Wang and Yiqiao Jin and Changyu Chen and Xinhao Zhang and Kunpeng Liu},
  title = {{Prototypical Reward Network for Data-Efficient RLHF}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=p7gevcqPt2},
}
Figure