语言人工智能指南

收集用于RLHF的人类偏好数据

人类偏好数据用于从人类反馈的强化学习记录中,记录在特定标准下评审者更偏好的回复。

听听这个指南AI叙述 · ~3 min

在本页3 分钟阅读
  1. 概述
  2. 深入探讨
  3. 现实世界的实施
  4. 收集用于RLHF的人类偏好数据的未来
  5. 付诸实践
  6. 不断探索
  7. 常见问题

概述

成对比较是一种常见的格式,但其产生的信号反映的是提示、指令、评审者和聚合方法,而不是一种通用的人类偏好。

深入探讨

Collecting preference data for reinforcement learning from human feedback typically starts by generating multiple candidate responses to the same prompt from a language model, often by sampling with different random seeds or slight variations in decoding settings. Human raters are then shown two (or sometimes more) of these candidate responses side by side and asked to choose which one better satisfies criteria such as helpfulness, honesty, and harmlessness, rather than being asked to write an ideal answer themselves, which is a slower and more expensive task than making a comparative judgment. Pairwise comparisons are one common format: raters select a preferred response under explicit criteria. This avoids requiring every rater to use a numeric scale in the same way, but it does not eliminate ambiguity or bias. The chosen response depends on the prompt, comparison set, instructions, rater pool, and available abstention or tie options. Rater training is essential: without clear, detailed guidelines about what counts as helpful versus subtly unhelpful, or safe versus overly evasive, different raters will apply inconsistent standards, and inconsistent preference labels teach the resulting reward model a blurry, unreliable notion of what people actually want. Agreement checks, where multiple raters judge the same pair independently, are used to catch prompts where the 'better' answer is genuinely ambiguous or where raters are misapplying the guidelines, and persistent low agreement usually triggers a guideline revision rather than simply replacing raters. A common misconception is that RLHF preference data reflects one single, universal notion of a good response; in practice, it reflects the specific guidelines and rater pool a company chose, and different labeling instructions or rater demographics can shift a model's resulting behavior in meaningfully different directions, which is why documenting exactly what raters were asked to prioritize matters as much as collecting the comparisons themselves.

现实世界的实施

聊天机器人开发者向评审者展示对同一用户问题的两个不同回复,并询问哪个回复更有帮助且更准确,将选择记录为用于训练的偏好对。

AI安全团队让评审者比较对敏感提示的两个回复,并选择其中更好地拒绝不安全请求且不显说教的那一个,以构建塑造拒绝行为的数据集。

编码助手团队展示对同一提示的两个候选代码补全,并让软件工程师选择更正确、更符合惯用写法的,而不是仅看起来更流畅的那一个。

一个摘要团队请评估者比较同一篇文章的两份摘要的准确性和简洁性,使用这些选择来训练奖励模型,以评估未来的摘要。

收集用于RLHF的人类偏好数据的未来

偏好收集将继续与奖励建模、DPO 和模型辅助反馈一起演进。一个有用的数据集应保留选择是如何被引出以及由谁或什么提供的,因为指南和评审者池会塑造信号。对于高影响或有争议的领域,应报告分歧并依据额外证据进行评估,而不是假设多数偏好能够代表所有人的价值观。更高效的比较仍然需要仔细抽样和审查。随着产品、用户群体或安全预期的周期性变化,需要重新审视评估标准和偏好。

付诸实践

为什么这很重要

  • 速度与规模. 语言工作流程可以在不牺牲一致性的情况下更快地移动。
  • 交通与覆盖范围. 它扩展了跨语言和沟通方式的访问。
  • 更清晰的判决. 团队可以花更多时间进行判断,而自动化则可以处理重复。

留意

  • 幻觉的事实可以悄悄地进入报告、支持流程或研究成果。
  • 及时的敏感性可能会在类似的请求中产生不一致的结果。
  • 如果访问控制薄弱,敏感文本数据可能会暴露。

后续步骤

  1. 在推出之前定义输出格式、语气和质量标准。
  2. 当准确性很重要时,请使用可信来源进行地面响应。
  3. 为高风险输出保留人工审查检查点。
  4. 跟踪故障模式并定期重新训练提示或工作流程。

不断探索

免费通讯

获取每日AI简报

每个工作日早晨提供三条经过验证的AI故事,使用简明英文撰写。永久免费,无广告。

每个工作日发送一封邮件。一键退订。我们永不出售或分享您的地址。

测试一下自己

参加《收集人类偏好数据用于 RLHF》测验

每个答案即时反馈,课程通过后可获得可验证ID的可分享证书。

开始测验

支持免费AI教育。AI Understanding是一家501(c)(3)非营利组织——无广告,无付费墙,永不收费。 捐款

常见问题

什么是收集人类偏好数据用于 RLHF?

用于人类反馈强化学习的人类偏好数据记录了评审者在给定标准下更倾向的响应。成对比较是一种常见的形式,但得到的信号反映的是提示、指令、评审者以及聚合方法,而非一种普遍的人类偏好。

InstructGPT 偏好收集阶段记录了哪种标签?

InstructGPT 研究收集了对候选输出的人类比较;这些偏好取决于提示和评审者指令。

当一致性检查显示在某些提示上评审者之间持续低一致性时,通常会发生什么?

持续的低一致性通常被视为指南本身需要澄清的信号,而不仅仅是评审者表现的问题。

在传统的RLHF流程中,奖励模型训练的目标是什么?

奖励模型学习以与人类偏好对一致的方式对回复进行评分,通常使用类似Bradley-Terry的成对损失目标。

直接偏好优化(DPO)与传统的奖励模型加PPO方法有何不同?

DPO使用一个导出的损失函数,其最优点与传统方法相同,但直接应用于语言模型,而不先训练一个独立的奖励模型。

为什么评估者界面通常会随机决定回复是显示为'A'还是'B'?

随机化位置可以防止评估者无意识地偏好先出现的位置,从而避免收集到的偏好数据产生偏差。