arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.02676cs.LGcs.CL
收藏

Chain of Hindsight 使语言模型与反馈对齐

Chain of Hindsight Aligns Language Models with Feedback

UC Berkeley(加州大学伯克利分校)

Hao Liu, Carmelo Sferrazza, Pieter Abbeel

AI总结:

提出 Chain of Hindsight 技术,将各种反馈转化为句子序列微调语言模型,使其基于反馈生成输出并自我纠错,在摘要和对话基准及人类评估中显著提升对齐人类偏好的效果。

摘要:

从人类偏好中学习对于语言模型匹配人类需求以及与人类和社会价值观对齐非常重要。先前的工作通过从人类反馈中学习以理解和遵循指令,取得了显著成功。然而,这些方法要么基于人类标注者偏爱的手动挑选的模型生成结果,导致数据利用效率低下且难以普遍应用,要么依赖强化学习,而强化学习常常受限于不完美的奖励函数并依赖于极具挑战性的优化过程。在这项工作中,我们提出了一种新技术,Chain of Hindsight,它易于优化,并且能够从任何形式的反馈中学习,无论其极性如何。我们的想法受到人类如何从以语言形式呈现的大量反馈中学习的启发。我们将所有类型的反馈转换为句子序列,然后用这些序列来微调模型,从而利用语言模型的语言理解能力。我们将模型条件化于一系列与反馈配对的模型生成结果上。通过这样做,模型被训练成基于反馈生成输出,同时学习识别并纠正负面属性或错误。将我们的方法应用于大型语言模型,我们观察到 Chain of Hindsight 在使语言模型与人类偏好对齐方面显著超越了先前的方法。我们报告了在摘要和对话基准上的显著改进,并且在人类评估中我们的方法被明显偏好。

英文摘要:

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.

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

↑