学习语言奖励模型的目标条件表示
Learning Goal-Conditioned Representations for Language Reward Models
AI总结:
本文提出对比式目标条件奖励模型训练方法,通过偏好与非偏好轨迹的未来状态表示学习,提升 RM 准确率,并支持生成轨迹过滤与目标导向细粒度操控。
摘要:
通过离线数据或自监督目标学习改进表示的技术,已在传统强化学习(RL)中展现出令人瞩目的成果。然而,目前尚不清楚改进的表示学习如何使语言模型(LM)上的基于人类反馈的强化学习(RLHF)受益。在本工作中,我们提出以对比式、目标条件化的方式训练奖励模型(RM):提高采样偏好轨迹上未来状态之间的表示相似性,并降低随机采样的非偏好轨迹上的相似性。该目标在 MATH 和 GSM8k 等具有挑战性的基准上将 RM 性能显著提升最高达 0.09 AUROC。这些发现也可推广到一般对齐任务——在 Helpful-Harmless 数据集上,我们观察到准确率提高 2.3%。除提升奖励模型性能外,我们还表明,这种训练 RM 表示的方式能够改善可操控性,因为它允许我们评估一个动作达到特定目标状态的可能性(例如,一个解答是否正确或有帮助)。利用这一洞见,我们发现在多数投票过程中,可以通过丢弃可能最终进入“错误”状态的轨迹,过滤多达 55% 的生成 token,从而显著节省成本。我们还发现,这些表示可以通过以期望的未来目标状态为条件来执行细粒度控制。例如,我们展示了用我们的方法引导 Llama 3 模型生成有帮助的内容,可使有用性相比经监督微调训练的基线提高 9.6%。类似地,引导模型生成复杂内容可使复杂性相比基线提高 21.6%。总体而言,我们发现以这种对比式、目标条件化的方式训练 RM 可显著提升性能并实现模型可操控性。
英文摘要:
Techniques that learn improved representations via offline data or self-supervised objectives have shown impressive results in traditional reinforcement learning (RL). Nevertheless, it is unclear how improved representation learning can benefit reinforcement learning from human feedback (RLHF) on language models (LMs). In this work, we propose training reward models (RMs) in a contrastive, $\textit{goal-conditioned}$ fashion by increasing the representation similarity of future states along sampled preferred trajectories and decreasing the similarity along randomly sampled dispreferred trajectories. This objective significantly improves RM performance by up to 0.09 AUROC across challenging benchmarks, such as MATH and GSM8k. These findings extend to general alignment as well -- on the Helpful-Harmless dataset, we observe $2.3\%$ increase in accuracy. Beyond improving reward model performance, we show this way of training RM representations enables improved $\textit{steerability}$ because it allows us to evaluate the likelihood of an action achieving a particular goal-state (e.g., whether a solution is correct or helpful). Leveraging this insight, we find that we can filter up to $55\%$ of generated tokens during majority voting by discarding trajectories likely to end up in an "incorrect" state, which leads to significant cost savings. We additionally find that these representations can perform fine-grained control by conditioning on desired future goal-states. For example, we show that steering a Llama 3 model towards helpful generations with our approach improves helpfulness by $9.6\%$ over a supervised-fine-tuning trained baseline. Similarly, steering the model towards complex generations improves complexity by $21.6\%$ over the baseline. Overall, we find that training RMs in this contrastive, goal-conditioned fashion significantly improves performance and enables model steerability.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。