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

无需记忆的擦除:大型语言模型中的隐式知识遗忘

Erasing Without Remembering: Implicit Knowledge Forgetting in Large Language Models

Nanyang Technological University(南洋理工大学);Beijing University of Posts and Telecommunications(北京邮电大学)

Huazheng Wang, Yongcheng Jing, Haifeng Sun, Yingjie Wang, Jingyu Wang, Jianxin Liao, Dacheng Tao

AI总结:

本文提出PerMU,一种基于概率扰动的未学习范式,通过模拟对抗样本消除事实相关标记,在多个数据集和模型规模上显著提升隐式知识遗忘效果。

摘要:

在本文中,我们研究了大型语言模型中的知识遗忘,重点关注其泛化能力,确保模型不仅遗忘特定的训练样本,还遗忘相关的隐式知识。为此,我们首先确定了一个更广泛的遗忘范围,包括目标数据和逻辑相关的样本,如改写、主语替换、关系反转和一跳推理的数据。然后,我们对三个数据集上的15种最先进方法进行了严格评估,揭示出未学习模型仍能回忆起改写后的答案,并在其中间层保留目标事实。这促使我们迈出实现更广泛隐式知识遗忘的初步一步,提出了PerMU,一种新颖的基于概率扰动的未学习范式。PerMU模拟对抗性未学习样本,从逻辑分布中消除与事实相关的标记,从而集体降低所有与答案相关标记的概率。我们在包括TOFU、Harry Potter、ZsRE、WMDP和MUSE在内的多种数据集上进行了实验,使用了从1.3B到13B规模不等的模型。结果表明,PerMU在遗忘普通目标数据方面提升了高达50.40%,同时在遗忘隐式知识方面保持了40.73%的提升。我们的代码可在https://github.com/MaybeLizzy/PERMU找到。

英文摘要:

In this paper, we investigate knowledge forgetting in large language models with a focus on its generalisation, ensuring that models forget not only specific training samples but also related implicit knowledge. To this end, we begin by identifying a broader unlearning scope that includes both target data and logically associated samples, including rephrased, subject-replaced, relation-reversed, and one-hop reasoned data. We then conduct a rigorous evaluation of 15 state-of-the-art methods across three datasets, revealing that unlearned models still recall paraphrased answers and retain target facts in their intermediate layers. This motivates us to take a preliminary step toward more generalised implicit knowledge forgetting by proposing PerMU, a novel probability perturbation-based unlearning paradigm. PerMU simulates adversarial unlearning samples to eliminate fact-related tokens from the logit distribution, collectively reducing the probabilities of all answer-associated tokens. Experiments are conducted on a diverse range of datasets, including TOFU, Harry Potter, ZsRE, WMDP, and MUSE, using models ranging from 1.3B to 13B in scale. The results demonstrate that PerMU delivers up to a 50.40% improvement in unlearning vanilla target data while maintaining a 40.73% boost in forgetting implicit knowledge. Our code can be found in https://github.com/MaybeLizzy/PERMU.

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

↑