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

面向鲁棒知识遗忘:评估与提升大语言模型遗忘鲁棒性的对抗框架

Towards Robust Knowledge Unlearning: An Adversarial Framework for Assessing and Improving Unlearning Robustness in Large Language Models

Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)

Hongbang Yuan, Zhuoran Jin, Pengfei Cao, Yubo Chen, Kang Liu, Jun Zhao

AI总结:

提出动态遗忘攻击(DUA)评估LLM遗忘脆弱性,并设计潜在对抗遗忘(LAU)框架,通过最小-最大优化增强遗忘鲁棒性,显著提升遗忘效果且几乎不影响模型能力。

摘要:

大语言模型(LLM)已在许多领域取得成功,但仍受训练语料中有问题内容的困扰。LLM遗忘旨在减少这些内容的影响并避免不良行为。然而,现有的遗忘方法仍易受对抗性查询的攻击,且被遗忘的知识在人工设计的攻击查询后会重新浮现。作为红队工作的一部分,以主动评估遗忘模型的脆弱性,我们设计了动态遗忘攻击(DUA),一个动态且自动化的框架,用于攻击这些模型并评估其鲁棒性。它优化对抗性后缀以在各种场景中重新引入被遗忘的知识。我们发现,即使不揭示遗忘模型的参数,被遗忘的知识也能在55.2%的问题中被恢复。针对这一脆弱性,我们提出了潜在对抗遗忘(LAU),一个通用框架,有效增强遗忘过程的鲁棒性。它将遗忘过程表述为一个最小-最大优化问题,并通过两个阶段解决:攻击阶段,其中扰动向量被训练并添加到LLM的潜在空间以恢复被遗忘的知识;防御阶段,其中先前训练的扰动向量被用来增强遗忘模型的鲁棒性。借助我们的LAU框架,我们获得了两种鲁棒的遗忘方法:AdvGA和AdvNPO。我们在多个遗忘基准和多种模型上进行了广泛实验,并证明它们将遗忘有效性提高了超过53.5%,仅导致相邻知识减少不到11.6%,且对模型的通用能力几乎没有影响。

英文摘要:

LLM have achieved success in many fields but still troubled by problematic content in the training corpora. LLM unlearning aims at reducing their influence and avoid undesirable behaviours. However, existing unlearning methods remain vulnerable to adversarial queries and the unlearned knowledge resurfaces after the manually designed attack queries. As part of a red-team effort to proactively assess the vulnerabilities of unlearned models, we design Dynamic Unlearning Attack (DUA), a dynamic and automated framework to attack these models and evaluate their robustness. It optimizes adversarial suffixes to reintroduce the unlearned knowledge in various scenarios. We find that unlearned knowledge can be recovered in $55.2\%$ of the questions, even without revealing the unlearned model's parameters. In response to this vulnerability, we propose Latent Adversarial Unlearning (LAU), a universal framework that effectively enhances the robustness of the unlearned process. It formulates the unlearning process as a min-max optimization problem and resolves it through two stages: an attack stage, where perturbation vectors are trained and added to the latent space of LLMs to recover the unlearned knowledge, and a defense stage, where previously trained perturbation vectors are used to enhance unlearned model's robustness. With our LAU framework, we obtain two robust unlearning methods, AdvGA and AdvNPO. We conduct extensive experiments across multiple unlearning benchmarks and various models, and demonstrate that they improve the unlearning effectiveness by over $53.5\%$, cause only less than a $11.6\%$ reduction in neighboring knowledge, and have almost no impact on the model's general capabilities.

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

↑