用奖励分数重标注数据,让大模型更好理解回答质量差异
Reward-Augmented Data Enhances Direct Preference Alignment of LLMs
- 基于奖励分重构偏好数据,让模型学习完整质量谱
- 在多个评测上显著提升直接偏好优化效果,最高增益达12.3%
- 适合追求高质量对齐的模型开发者,尤其关注泛化能力者
大语言模型的直接偏好对齐已显著提升其遵循人类指令的能力。然而现有算法多聚焦相对偏好,忽视了反馈数据中蕴含的评分信息。仅最大化优选与次优回复间的隐式奖励差距,易导致过拟合和高质量拒答的无谓遗忘。同时因忽略奖励分,模型会盲目偏好低质优选回复,难以泛化到数据稀疏的最优响应区域。为此,本文提出一种基于奖励条件的策略,使模型能感知并学习数据集中完整的响应质量分布,实现向更优区域的外推。我们设计了一种简单有效的数据重标注方法,以质量评分条件化偏好对,构建奖励增强型数据集。跨多种基准和模型的实验表明,该方法可显著提升DPO性能。全面消融实验验证了其不仅充分挖掘偏好数据潜力,还缓解了遗忘问题,展现出超越单纯数据扩展的广泛有效性。代码已开源。
原文摘要 · Abstract (English)
Preference alignment in Large Language Models (LLMs) has significantly improved their ability to adhere to human instructions and intentions. However, existing direct alignment algorithms primarily focus on relative preferences and often overlook the qualitative aspects of responses, despite having access to preference data that includes reward scores from judge models during AI feedback. Striving to maximize the implicit reward gap between the chosen and the slightly inferior rejected responses can cause overfitting and unnecessary unlearning of the high-quality rejected responses. The unawareness of the reward scores also drives the LLM to indiscriminately favor the low-quality chosen responses and fail to generalize to optimal responses that are sparse in data. To overcome these shortcomings, our study introduces reward-conditioned LLM policies that discern and learn from the entire spectrum of response quality within the dataset, helping extrapolate to more optimal regions. We propose an effective yet simple data relabeling method that conditions the preference pairs on quality scores to construct a reward-augmented dataset. The experiments across various benchmarks and diverse models demonstrate that our approach consistently boosts DPO by a considerable margin. Through comprehensive ablation studies, we demonstrate that our method not only maximizes the utility of preference data but also mitigates the issue of unlearning, demonstrating its broad effectiveness beyond mere data expansion. Our code is available at https://github.com/shenao-zhang/reward-augmented-preference.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。