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

基于互信息的自监督对齐:无需偏好标签学习遵循原则

Self-Supervised Alignment with Mutual Information: Learning to Follow Principles without Preference Labels

Stanford University(斯坦福大学)

Jan-Philipp Fränken, Eric Zelikman, Rafael Rafailov, Kanishk Gandhi, Tobias Gerstenberg, Noah D. Goodman

AI总结:

本研究提出无需偏好标签的自监督对齐算法SAMI,通过提升章程与自生成响应的条件互信息微调预训练语言模型,在多任务中优于基线模型,且可利用弱模型撰写的准则对齐强模型,具备泛化与缩放能力。

摘要:

在提示语言模型(LM)时,用户通常期望模型在各类任务中遵循一套行为准则,例如生成有洞察力的内容,同时避免有害或有偏见的语言。将这类准则(即章程)注入模型需要大量资源,技术上颇具挑战,且通常需要人类偏好标签或示例。我们提出SAMI(基于互信息的自监督对齐),这是一种迭代算法,可对预训练语言模型进行微调(无需偏好标签或演示),在给定数据集查询的情况下,提升章程与模型自生成响应之间的条件互信息。在单轮对话和摘要生成任务中,经SAMI训练的mistral-7b模型表现优于初始预训练模型,胜率在66%到77%之间。值得注意的是,它在单轮对话任务上还超过了指令微调基线模型mistral-7b-instruct,胜率在55%到57%之间。SAMI需要一个能撰写准则的模型。为避免依赖强模型来撰写准则,我们使用弱指令微调模型(mistral-7b-instruct)撰写的章程,对强预训练模型(mixtral-8x7b)进行对齐,在摘要任务上取得了65%的胜率。最后,我们探究了SAMI是否能泛化到多样的摘要准则(例如“摘要应具备科学性”),以及是否能扩展到更强的模型(llama3-70b),结果发现,与基础模型相比,它在已学习准则上的胜率最高达68%,在未见过的准则上胜率达67%。我们的结果表明,预训练语言模型无需使用偏好标签、演示或人类监督,就能学会遵循章程。

英文摘要:

When prompting a language model (LM), users often expect the model to adhere to a set of behavioral principles across diverse tasks, such as producing insightful content while avoiding harmful or biased language. Instilling such principles (i.e., a constitution) into a model is resource-intensive, technically challenging, and generally requires human preference labels or examples. We introduce SAMI, an iterative algorithm that finetunes a pretrained language model (without requiring preference labels or demonstrations) to increase the conditional mutual information between constitutions and self-generated responses given queries from a dataset. On single-turn dialogue and summarization, a SAMI-trained mistral-7b outperforms the initial pretrained model, with win rates between 66% and 77%. Strikingly, it also surpasses an instruction-finetuned baseline (mistral-7b-instruct) with win rates between 55% and 57% on single-turn dialogue. SAMI requires a model that writes the principles. To avoid dependence on strong models for writing principles, we align a strong pretrained model (mixtral-8x7b) using constitutions written by a weak instruction-finetuned model (mistral-7b-instruct), achieving a 65% win rate on summarization. Finally, we investigate whether SAMI generalizes to diverse summarization principles (e.g., "summaries should be scientific") and scales to stronger models (llama3-70b), finding that it achieves win rates of up to 68% for learned and 67% for held-out principles compared to the base model. Our results show that a pretrained LM can learn to follow constitutions without using preference labels, demonstrations, or human oversight.

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

↑