[论文解读] Chain of Hindsight Aligns Language Models with Feedback
Chain of Hindsight (CoH) 通过对带有反馈的模型生成序列进行条件化来微调语言模型,使其能够在没有强化学习的情况下从所有反馈中学习,并在摘要和对话任务上超越 SFT 和 RLHF。
Learning from human preferences is important for language models to match human needs and to align with human and social values. Prior works have achieved remarkable successes by learning from human feedback to understand and follow instructions. Nonetheless, these methods are either founded on hand-picked model generations that are favored by human annotators, rendering them inefficient in terms of data utilization and challenging to apply in general, or they depend on reinforcement learning, which often suffers from imperfect reward functions and relies on extremely challenging optimizations. In this work, we propose a novel technique, Chain of Hindsight, that is easy to optimize and can learn from any form of feedback, regardless of its polarity. Our idea is inspired by how humans learn from extensive feedback presented in the form of languages. We convert all types of feedback into sequences of sentences, which are then used to fine-tune the model, allowing us to take advantage of the language comprehension capabilities of language models. We condition the model on a sequence of model generations paired with feedback. By doing so, the model is trained to generate outputs based on feedback, while learning to identify and correct negative attributes or errors. Applying our method to large language models, we observed that Chain of Hindsight significantly surpasses previous methods in aligning language models with human preferences. We report significant improvements on summarization and dialogue benchmarks, with our approach markedly preferred in human evaluations.
研究动机与目标
- 通过利用所有形式的人类反馈,解决监督微调和 RLHF 的低效问题。
- 实现从正向和负向反馈中学习,包括自然语言指导。
- 提供一个简单、可扩展的微调框架,避免强化学习优化。
- 在摘要和对话基准测试上展示与人类偏好更好的一致性。
提出的方法
- 将所有人类反馈转换为与模型输出配对的事后反馈序列。
- 对仅解码器的 Transformer 进行微调,在先前输出及其反馈的条件下预测输出。
- 在训练期间对过去的标记掩码 0-5%,以防止复制单个示例并提高泛化能力。
- 保持一个正则化项,使对预训练数据的对数似然最大化,以保留基础语言建模能力。
- 在对非反馈标记使用交叉熵损失来训练模型的同时,对反馈序列进行条件化。
- 在摘要和对话任务上结合自动指标和人工评估进行评估。
实验结果
研究问题
- RQ1在摘要和对话基准上, Chain of Hindsight (CoH) 相对于 SFT、SFT with unlikelihood、conditional SFT 和 RLHF 的表现如何?
- RQ2CoH 能否在不使用强化学习的情况下,有效地从正负反馈中学习,包括自然语言解释?
- RQ3将自然语言反馈整合进来是否进一步提高了模型对齐和对人类偏好的满足?
- RQ4模型尺寸如何影响 CoH 的性能和相对于基线的可扩展性?
主要发现
- CoH 在摘要和对话任务上显著优于基线,包括 RLHF 和各种 SFT 变体。
- 人工评估显示,在多项指标上 CoH 相对于 RLHF 和 conditional SFT 更受青睐(摘要中的准确性、连贯性、覆盖率;对话中的有用性和无害性)。
- 将自然语言反馈(相比仅二元反馈)纳入会提升结果。
- CoH 展现出有利的扩展性;优势随着模型尺寸增大而增强。
- 在开源数据集上的 CoH 与基于 Koala 的 SFT 相匹配或超出,并且将 CoH 与 Koala 结合可获得进一步提升。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。