Learning from human preferences is important for language models to be helpful and useful for humans, and to align with human and social values. Prior work have achieved remarkable successes by learning from human feedback to understand and follow instructions. They belong to two categories supervised finetuning and RLHF. Supervised finetuning is based on curated model generations that are preferred by human labelers, a key limitation of them is that supervised finetuning cannot learn from negative ratings; models are only trained on positive feedback, which makes it data inefficient and difficult to generalize. While RLHF can learn from all feedback by learning a reward function and RL optimization, it suffers from imperfect reward function and RL is very hard to tune. In this work, we propose a novel technique that addresses the limitations of both supervised finetuning and RLHF, our method, Chain of Hindsight, aligns language models with all feedback without using reinforcement learning. Our idea is motivated by how humans learn from hindsight experience, and we turn all feedback into a sentence to finetune model in order to leverage the language understanding abilities of language models. We condition the model on a sequence of model generations paired with hindsight feedback, and finetune the model to predict the most preferred output. By doing so, models can learn to identify and correct negative attributes or errors. Applying our method to GPT-J, we observe that it substantially outperforms both supervised finetuning and RLHF on summarization and dialogue tasks and is significantly more preferred in human evaluations.
翻译:从人类偏好中学习人类偏好对于语言模式有用和有用,并且与人类和社会价值观保持一致十分重要。先前的工作已经取得了显著的成功,从人类反馈中学习了理解和遵循指令的人类反馈,取得了显著的成功。它们属于受监督的微调和RLHF两类。监督的微调是基于人类标签者所偏爱的受监管的模范代代代人的局限性,一个关键的局限性是监督的微调不能从消极的评分中学习;模型仅接受积极的反馈培训,使其数据低效和难以概括。虽然RLHF可以通过学习奖励功能和RL优化来学习所有反馈,从所有反馈中学习。虽然RLHF可以学习所有反馈,通过学习奖励功能和RL优化来学习所有反馈,但它有不完善的奖励功能,RLL非常难调适调。在这个工作中,我们提出了一种新技术,既解决受监督的微调和RLHF的局限性,我们的方法,又将语言模型与所有反馈结合起来。我们的想法来自人类如何从后期经验中学习,我们将所有的反馈变成更精确的模范模式。我们用最精细的模型来选择的模型,我们用最精细的模型来测量的模型,我们用最精细的模型到最精细的模型来学习最精细的模型到最精细的模型到最精细的精细的GRx。