arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.21750cs.CLcs.AI
收藏

语言模型中捏造知识的学习与遗忘

Learning and Unlearning of Fabricated Knowledge in Language Models

Google DeepMind(谷歌DeepMind)

Chen Sun, Nolan Andrew Miller, Andrey Zhmoginov, Max Vladymyrov, Mark Sandler

AI总结:

该研究利用Outlandish数据集探究注入LM的知识的留存规律,发现与常识冲突的事实留存最久且易引发无关幻觉,同时提出多步稀疏更新方法可在保留模型能力的前提下消除这类影响,为缓解数据投毒提供思路。

摘要:

当一条新知识被引入训练数据时会发生什么?在大语言模型(LM)持续训练的过程中,这条知识又能留存多久?我们通过将事实注入LM来探究这一问题,所使用的是一个名为“Outlandish”的新型探测数据集,该数据集的设计可支持对多种不同事实类型的测试。在研究这些记忆的鲁棒性时,我们发现在事实的新颖性区间内,存在一个介于“与世界知识一致”和“完全随机”之间的最优区间,处于该区间的注入记忆留存时间最久。具体而言,我们发现与常识冲突的事实能被记住数万步训练,而不与常识冲突的提示(普通类)以及打乱的提示(随机乱序类)的遗忘速度都要快得多。此外,与知识冲突的事实能够“启动”语言模型在逻辑无关提示上的幻觉生成,体现出它们的非目标泛化倾向,而普通类和随机乱序类事实的启动效应则显著更弱。最后我们证明,尽管LM中与知识冲突的事实影响可能持续很久,但通过创新性地应用多步稀疏更新,这些影响基本可以被消除,同时模型的训练能力还能得到保留。因此,这一非常简单的流程对缓解训练中的数据投毒效应具有直接参考意义。

英文摘要:

What happens when a new piece of knowledge is introduced into the training data and how long does it last while a large language model (LM) continues to train? We investigate this question by injecting facts into LMs from a new probing dataset, "Outlandish", which is designed to permit the testing of a spectrum of different fact types. When studying how robust these memories are, there appears to be a sweet spot in the spectrum of fact novelty between consistency with world knowledge and total randomness, where the injected memory is the most enduring. Specifically we show that facts that conflict with common knowledge are remembered for tens of thousands of training steps, while prompts not conflicting with common knowledge (mundane), as well as scrambled prompts (randomly jumbled) are both forgotten much more rapidly. Further, knowledge-conflicting facts can "prime'' how the language model hallucinates on logically unrelated prompts, showing their propensity for non-target generalization, while both mundane and randomly jumbled facts prime significantly less. Finally, we show that impacts of knowledge-conflicting facts in LMs, though they can be long lasting, can be largely erased by novel application of multi-step sparse updates, even while the training ability of the model is preserved. As such, this very simple procedure has direct implications for mitigating the effects of data poisoning in training.

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

↑