arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2310.10683cs.CLcs.AIcs.LG
收藏

大语言模型遗忘

Large Language Model Unlearning

ByteDance Research(字节跳动研究院)

Yuanshun Yao, Xiaojun Xu, Yang Liu

AI总结:

本研究探索大语言模型遗忘技术,通过仅使用负样本在三种场景下消除不良行为,计算高效且仅需RLHF 2%计算时间即可实现更优对齐性能。

摘要:

我们研究如何在大语言模型(LLMs)上执行遗忘,即忘记不良的不当行为。我们展示了至少三种将LLMs与人类偏好对齐的场景可以从遗忘中受益:(1)移除有害响应,(2)按要求擦除受版权保护的内容,以及(3)减少幻觉。作为一种对齐技术,遗忘具有三个优势。(1)它只需要负样本(例如有害样本),这些样本的收集(例如通过红队测试或用户报告)比RLHF(基于人类反馈的强化学习)所需的正样本(例如有用的且通常由人工编写的样本)更容易且成本更低。(2)它在计算上很高效。(3)当我们知道哪些训练样本导致了不当行为时,它特别有效。据我们所知,我们的工作是最早探索LLM遗忘的研究之一。我们也是最早制定LLM遗忘中的设置、目标和评估的团队之一。我们表明,如果从业者只有有限的资源,因此优先考虑的是停止生成不良输出而不是试图生成理想输出,那么遗忘就特别具有吸引力。尽管只有负样本,我们的消融研究表明,遗忘仍然可以取得比RLHF更好的对齐性能,且仅需其2%的计算时间。

英文摘要:

We study how to perform unlearning, i.e. forgetting undesirable misbehaviors, on large language models (LLMs). We show at least three scenarios of aligning LLMs with human preferences can benefit from unlearning: (1) removing harmful responses, (2) erasing copyright-protected content as requested, and (3) reducing hallucinations. Unlearning, as an alignment technique, has three advantages. (1) It only requires negative (e.g. harmful) examples, which are much easier and cheaper to collect (e.g. via red teaming or user reporting) than positive (e.g. helpful and often human-written) examples required in RLHF (RL from human feedback). (2) It is computationally efficient. (3) It is especially effective when we know which training samples cause the misbehavior. To the best of our knowledge, our work is among the first to explore LLM unlearning. We are also among the first to formulate the settings, goals, and evaluations in LLM unlearning. We show that if practitioners only have limited resources, and therefore the priority is to stop generating undesirable outputs rather than to try to generate desirable outputs, unlearning is particularly appealing. Despite only having negative samples, our ablation study shows that unlearning can still achieve better alignment performance than RLHF with just 2% of its computational time.

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

↑