RLHF(人类反馈强化学习)RLHF
RLHF
先训练一个奖励模型学人类偏好,再用强化学习把语言模型往高分方向推。Learn a reward model from human preferences, then optimise the language model against that reward.
收集人类对多个回答的排序,训练奖励模型。
用 PPO 等算法优化策略模型,让奖励模型给高分。
同时加 KL 惩罚,防止模型为了高分偏离原模型太远。
Collect human rankings over multiple answers and train a reward model.
Optimise the policy with PPO or similar so the reward model scores it higher.
Add a KL penalty so the model does not drift too far from its starting point.
它是「会说话」到「听话」的关键一步。理解 RLHF,才能理解偏好对齐、奖励黑客和拒答行为。It is the step from “can talk” to “follows instructions”. Understand RLHF and preference alignment, reward hacking and refusals become clearer.
回到名词地图看第3段的其他 75 个词 →Back to the map: the other 75 terms in stage 3 →
- InstructGPT 论文(arXiv)Training language models to follow instructions with human feedback (arXiv 2203.02155) ↗
别停在定义:去任务手册看按什么顺序做、验收什么;或者按你手头的任务,筛 3 个工具候选。Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.
任务手册 →Task handbooks → · 按任务筛 3 个候选 →Filter three candidates →