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

大规模知识清洗

Large Scale Knowledge Washing

University of California San Diego(加利福尼亚大学圣迭戈分校);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Yu Wang, Ruihan Wu, Zexue He, Xiusi Chen, Julian McAuley

AI总结:

针对大语言模型需大规模遗忘事实知识且避免损害推理能力的问题,本文提出 LAW,通过新目标更新特定 MLP 层权重实现知识清洗,并验证其有效性。

摘要:

大语言模型在记忆世界知识方面表现出令人瞩目的能力,这引发了人们对其记忆私人信息、有毒或敏感知识以及受版权保护内容的担忧。我们提出“大规模知识清洗”问题,重点关注遗忘大量事实性知识。以往的遗忘方法通常定义反向损失,并通过反向传播更新模型,这可能影响模型的流畅性和推理能力,甚至因大量使用反向损失训练而毁坏模型。现有工作引入来自下游任务的额外数据以防止模型能力丧失,但这需要具备下游任务感知。控制遗忘与保持现有能力之间的权衡也颇具挑战。为此,受模型编辑方法启发,并基于知识与推理可解耦的假设,我们提出 LAW(Large Scale Washing,大规模清洗),通过更新仅解码器大语言模型中的 MLP 层来执行知识清洗。我们利用待遗忘的知识推导了一个新目标,用于更新特定 MLP 层的权重。实验结果证明了 LAW 在遗忘目标知识的同时保持推理能力方面的有效性。代码将在 https://github.com/wangyu-ustc/LargeScaleWashing 开源。

英文摘要:

Large language models show impressive abilities in memorizing world knowledge, which leads to concerns regarding memorization of private information, toxic or sensitive knowledge, and copyrighted content. We introduce the problem of Large Scale Knowledge Washing, focusing on unlearning an extensive amount of factual knowledge. Previous unlearning methods usually define the reverse loss and update the model via backpropagation, which may affect the model's fluency and reasoning ability or even destroy the model due to extensive training with the reverse loss. Existing works introduce additional data from downstream tasks to prevent the model from losing capabilities, which requires downstream task awareness. Controlling the tradeoff of unlearning and maintaining existing capabilities is also challenging. To this end, we propose LAW (Large Scale Washing) to update the MLP layers in decoder-only large language models to perform knowledge washing, as inspired by model editing methods and based on the hypothesis that knowledge and reasoning are disentanglable. We derive a new objective with the knowledge to be unlearned to update the weights of certain MLP layers. Experimental results demonstrate the effectiveness of LAW in forgetting target knowledge while maintaining reasoning ability. The code will be open-sourced at https://github.com/wangyu-ustc/LargeScaleWashing.

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

↑