Data-adaptive Safety Rules for Training Reward Models
Xiaomin Li, Mingye Gao, Zhiwei Zhang, Jingxuan Fan, Weiyu Li
TL;DR
This work introduces a data-adaptive framework for labeling fine-grained safety preferences in RLHF by selecting a small set of the most informative rules per data instance. A max-discrepancy criterion, aided by a relevance term, drives the Rule Adapter to pick top-$5$ rules, maximizing the mutual information with latent ground-truth preferences via Jensen–Shannon divergence. The approach yields RAMO, an 8B reward model that achieves state-of-the-art safety on RewardBench and improves safety when integrated into PPO-aligned LLMs, while preserving general capabilities. By translating rule-discrepancy signals into binary preferences, the method reduces labeling cost and bias compared to fixed-rule or GPT-labeling baselines. The work also demonstrates generalization to human preference data and releases useful resources to advance safety-alignment research.
Abstract
Reinforcement Learning from Human Feedback (RLHF) is commonly employed to tailor models to human preferences, especially to improve the safety of outputs from large language models (LLMs). Traditionally, this method depends on selecting preferred responses from pairs. However, due to the variability in human opinions and the challenges in directly comparing two responses, there is an increasing trend towards fine-grained annotation approaches that evaluate responses using multiple targeted metrics or rules. The challenge lies in efficiently choosing and applying these rules to handle the diverse range of preference data. In this paper, we propose a dynamic method that adaptively selects the most important rules for each response pair. We introduce a mathematical framework that utilizes the maximum discrepancy across paired responses and demonstrate theoretically that this approach maximizes the mutual information between the rule-based annotations and the underlying true preferences. We then train an 8B reward model using this adaptively labeled preference dataset and assess its efficacy using RewardBench. As of January 25, 2025, our model achieved the highest safety performance on the leaderboard, surpassing various larger models.
