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

关于大型语言模型的持续遗忘

On Large Language Model Continual Unlearning

Northwestern University(西北大学);Arizona State University(亚利桑那州立大学)

Chongyang Gao, Lixu Wang, Kaize Ding, Chenkai Weng, Xiao Wang, Qi Zhu

AI总结:

针对LLM持续遗忘请求导致效用损失及历史数据访问受限问题,提出OOO框架,结合正交LoRA实现参数解耦与OOD检测器动态加载遗忘模块,无需保留数据即可在持续遗忘中保持最优效用。

摘要:

尽管大型语言模型在各个领域和任务中展现了出色的性能,但其安全问题日益严重。机器遗忘作为一种代表性方法,通过消除不良数据对目标模型的影响来保障模型安全。然而,现有方法未充分考虑真实场景中遗忘请求持续涌现的情况,尤其是在LLM背景下,这可能导致模型效用损失不断累积,最终达到不可接受的程度。此外,由于隐私和版权保护,现有LLM遗忘方法常忽视对历史数据访问的限制。在缺乏历史数据的情况下,遗忘过程中的效用保持变得更加困难。为克服这些挑战,我们提出OOO框架,包含用于持续遗忘请求数据的正交低秩适配器和用于衡量输入与遗忘数据间相似性的分布外检测器。正交LoRA在持续遗忘请求间实现参数解耦。OOD检测器采用新型对比熵损失训练,并利用全局感知评分机制。在推理阶段,OOO框架基于OOD检测器预测的输入与遗忘知识相似度,决定是否及在多大程度上加载遗忘LoRA。值得注意的是,OOO的有效性不依赖任何保留数据。我们在三个任务和七个数据集上对OOO及最先进LLM遗忘方法进行了广泛实验。结果表明,OOO在遗忘效果和效用保持上均达到最优,尤其在面对持续遗忘请求时表现突出。源代码可在https://github.com/GCYZSL/O3-LLM-UNLEARNING获取。

英文摘要:

While large language models have demonstrated impressive performance across various domains and tasks, their security issues have become increasingly severe. Machine unlearning has emerged as a representative approach for model safety and security by removing the influence of undesired data on the target model. However, these methods do not sufficiently consider that unlearning requests in real-world scenarios are continuously emerging, especially in the context of LLMs, which may lead to accumulated model utility loss that eventually becomes unacceptable. Moreover, existing LLM unlearning methods often ignore previous data access limitations due to privacy concerns and copyright protection. Without previous data, the utility preservation during unlearning is much harder. To overcome these challenges, we propose the OOO framework that includes an Orthogonal low-rank adapter (LoRA) for continually unlearning requested data and an Out-Of-Distribution (OOD) detector to measure the similarity between input and unlearning data. The orthogonal LoRA achieves parameter disentanglement among continual unlearning requests. The OOD detector is trained with a novel contrastive entropy loss and utilizes a glocal-aware scoring mechanism. During inference, our OOO framework can decide whether and to what extent to load the unlearning LoRA based on the OOD detector's predicted similarity between the input and the unlearned knowledge. Notably, OOO's effectiveness does not rely on any retained data. We conducted extensive experiments on OOO and state-of-the-art LLM unlearning methods across three tasks and seven datasets. The results indicate that OOO consistently achieves the best unlearning effectiveness and utility preservation, especially when facing continuous unlearning requests. The source codes can be found at https://github.com/GCYZSL/O3-LLM-UNLEARNING.

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

↑