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

大型语言模型中的机器遗忘

Machine Unlearning in Large Language Models

Kongyang Chen, Zixin Wang, Bing Mi, Waixi Liu, Shaowei Wang, Xiaojun Ren, Jiaxing Shen

AI总结:

本文针对LLMs的安全与隐私问题,提出一种机器遗忘框架,通过评估模型定位需遗忘的对话,并利用距离负损失和聚类均值正损失,在不损害模型性能的前提下有效消除有害、幻觉或隐私泄露响应。

摘要:

近年来,大型语言模型(LLMs)已成为一个引人注目的领域,因能够为各种应用领域自动生成智能内容而备受关注。然而,LLMs仍然面临严重的安全和隐私问题。例如,LLMs可能会因黑客攻击或针对性提示而暴露用户隐私。为了解决这个问题,本文将一种新颖的机器遗忘框架引入LLMs。我们的目标是使LLMs不产生有害、幻觉或损害隐私的响应,同时保留其标准输出能力。为此,我们使用一个评估模型来精确定位需要遗忘的对话。我们还建立了一个距离损失作为模型的负损失,使其偏离之前的不良输出。此外,我们确定期望输出的聚类均值以制定正损失,在不损害其推理能力和性能的情况下,将模型输出引导至更可取的结果。实验结果表明,我们的方法在不显著损害模型性能的情况下有效实现了遗忘目标。

英文摘要:

Recently, large language models (LLMs) have emerged as a notable field, attracting significant attention for its ability to automatically generate intelligent contents for various application domains. However, LLMs still suffer from significant security and privacy issues. For example, LLMs might expose user privacy from hacking attacks or targeted prompts. To address this problem, this paper introduces a novel machine unlearning framework into LLMs. Our objectives are to make LLMs not produce harmful, hallucinatory, or privacy-compromising responses, while retaining their standard output capabilities. To accomplish this, we use an evaluative model to pinpoint dialogues needing unlearning. We also establish a distance loss to function as the model's negative loss, diverting it from previous undesirable outputs. Furthermore, we determine the expected output's cluster mean to formulate a positive loss, directing the model's outputs toward preferable outcomes without compromising its reasoning abilities and performance. Experimental results show that our approach effectively meets unlearning objectives without substantially compromising model performance.

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

↑