Skip to main content
QUICK REVIEW

[论文解读] BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Dataset

Jiaming Ji, Mickel Liu|arXiv (Cornell University)|Jul 10, 2023
Hate Speech and Cyberbullying DetectionComputer Science被引用 34
一句话总结

BeaverTails 发布一个带有单独安全元标签的 QA 数据集,并为有用性和无害性提供两个独立的人类偏好集合,同时展示在 QA moderation 和 Safe RLHF 中的应用。

ABSTRACT

In this paper, we introduce the BeaverTails dataset, aimed at fostering research on safety alignment in large language models (LLMs). This dataset uniquely separates annotations of helpfulness and harmlessness for question-answering pairs, thus offering distinct perspectives on these crucial attributes. In total, we have gathered safety meta-labels for 333,963 question-answer (QA) pairs and 361,903 pairs of expert comparison data for both the helpfulness and harmlessness metrics. We further showcase applications of BeaverTails in content moderation and reinforcement learning with human feedback (RLHF), emphasizing its potential for practical safety measures in LLMs. We believe this dataset provides vital resources for the community, contributing towards the safe development and deployment of LLMs. Our project page is available at the following URL: https://sites.google.com/view/pku-beavertails.

研究动机与目标

  • 通过在注释中解耦无害性与有用性来推动 LLM 更安全的对齐。
  • 提供一个具有 14 种伤害类别和双偏好排序的大规模 QA 数据集。
  • 展示在内容审核和基于 RLHF 的安全调优中的实际用途。
  • 评估解耦后的偏好对安全对齐模型性能的影响。

提出的方法

  • 构建两个阶段的 BeaverTails,包含 333,963 对 QA 对和 361,903 名专家在有用性与无害性方面的比较。
  • 通过两阶段过程标注 QA 对:先将无害性按 14 种伤害类别分类,再对回答在无害性与有用性上进行排序。
  • 利用 Bradley–Terry 框架和二元分类器分别从排序中训练奖励模型和成本模型。
  • 应用 PPO-Lagrangian 安全 RLHF 目标,使用学习到的奖励与成本信号对模型进行微调。
  • 评估 QA moderation 与基于传统毒性 moderation 的比较,并将 Safe RLHF 与基线进行对比。)

实验结果

研究问题

  • RQ1解耦有用性与无害性是否能改善 LLM 的安全对齐?
  • RQ2来自 BeaverTails 的单独奖励模型与成本模型是否能提升基于 RLHF 的调优?
  • RQ3基于无风险无害性的风险中性 QA moderation 与传统内容 moderation 相比有何不同?
  • RQ4解耦的人类偏好对模型性能的影响是否优于单一偏好方法?

主要发现

  • 基于无风险无害性的 QA moderation 能在保持有用性的同时减少有害输出。
  • 奖励模型与成本模型在评估数据上分别达到 78.13% 的准确率和 95.62% 的符号准确性,74.37% 的成本偏好准确性。
  • 以 PPO-Lagrangian 目标的 Safe RLHF 将成本分布向左移动(更无害)、奖励分布向右移动(更有用)。
  • 解耦偏好优于单一分数方法,并在与 HH-PPO 基线相比的安全对齐微调中表现更好。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。