arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.01111cs.AI
收藏

面向大语言模型安全性的基于规则的奖励方法

Rule Based Rewards for Language Model Safety

OpenAI

Tong Mu, Alec Helyar, Johannes Heidecke, Joshua Achiam, Andrea Vallone, Ian Kivlichan, Molly Lin, Alex Beutel, John Schulman, Lilian Weng

AI总结:

针对大语言模型安全微调中人类标注数据易致模型过度谨慎、更新成本高的问题,提出基于规则的奖励(RBR)方法,用细粒度可组合的LLM评分少样本提示做RL奖励,仅需少量人类数据,F1达97.1,优于人类反馈基线。

摘要:

基于人类偏好的大语言模型(LLMs)强化学习微调已被证明能够同时提升模型的能力与安全行为表现。但在安全相关场景中,若未给人类标注员提供精确指引,收集到的数据可能导致模型变得过度谨慎,或是产生诸如说教式这类不符合预期的回应风格。此外,随着模型能力与使用场景不断演变,可能需要新增或重新标注数据来调整安全行为,成本高昂。我们提出了一种新颖的偏好建模方法,该方法利用AI反馈,仅需少量人类数据即可实现。我们的方法名为Rule Based Rewards(RBR,基于规则的奖励),采用一套针对预期或非预期行为的规则(例如拒绝回应不应带有说教性),搭配一个LLM评分器共同工作。与以往使用AI反馈的方法不同,我们的方法将由LLM评分的细粒度、可组合的少样本提示直接作为强化学习训练中的奖励信号,从而实现更强的可控性、更高的准确性以及更便捷的更新能力。实验表明,RBR是一种有效的训练方法:其F1分数达到97.1,而人类反馈基线的F1分数为91.7,通过更好地平衡有用性与安全性,大幅提升了安全行为的准确性。

英文摘要:

Reinforcement learning based fine-tuning of large language models (LLMs) on human preferences has been shown to enhance both their capabilities and safety behavior. However, in cases related to safety, without precise instructions to human annotators, the data collected may cause the model to become overly cautious, or to respond in an undesirable style, such as being judgmental. Additionally, as model capabilities and usage patterns evolve, there may be a costly need to add or relabel data to modify safety behavior. We propose a novel preference modeling approach that utilizes AI feedback and only requires a small amount of human data. Our method, Rule Based Rewards (RBR), uses a collection of rules for desired or undesired behaviors (e.g. refusals should not be judgmental) along with a LLM grader. In contrast to prior methods using AI feedback, our method uses fine-grained, composable, LLM-graded few-shot prompts as reward directly in RL training, resulting in greater control, accuracy and ease of updating. We show that RBRs are an effective training method, achieving an F1 score of 97.1, compared to a human-feedback baseline of 91.7, resulting in much higher safety-behavior accuracy through better balancing usefulness and safety.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑