重审Who's Harry Potter:从因果干预视角实现定向遗忘
Revisiting Who's Harry Potter: Towards Targeted Unlearning from a Causal Intervention Perspective
AI总结:
本文提出大语言模型定向遗忘任务及相应评估标准,构建因果干预框架将遗忘目标知识建模为混淆变量,推导出包含WHP为特例的遗忘算法,实验证明其在多项标准上性能优异。
摘要:
本文研究了大语言模型遗忘领域的开创性但尚未被充分理解的方法Who's Harry Potter(WHP,《谁是哈利·波特》)。我们分两步展开探索。首先,我们提出大语言模型定向遗忘新任务:给定一个遗忘目标(如某个人物)和若干遗忘文档,目标是仅遗忘与该目标相关的信息,而非遗忘文档中的全部内容。我们进一步提出,成功的遗忘应满足多项标准:不输出乱码、不编造关于遗忘目标的虚假事实、在越狱攻击下不泄露真实信息。其次,我们构建了面向定向遗忘的因果干预框架,将遗忘目标的知识建模为大语言模型输入与输出之间的混淆变量,将遗忘过程建模为去混淆过程。该框架论证并拓展了WHP方法,推导出一种简洁的遗忘算法,且WHP是该算法的一个特例。在现有数据集和新数据集上的实验表明,我们的方法无需针对上述标准进行显式优化,就能在所有标准上取得具有竞争力的性能。我们的代码可在https://github.com/UCSB-NLP-Chang/causal_unlearn.git获取。
英文摘要:
This paper investigates Who's Harry Potter (WHP), a pioneering yet insufficiently understood method for LLM unlearning. We explore it in two steps. First, we introduce a new task of LLM targeted unlearning, where given an unlearning target (e.g., a person) and some unlearning documents, we aim to unlearn only the information about the target, rather than everything in the unlearning documents. We further argue that a successful unlearning should satisfy criteria such as not outputting gibberish, not fabricating facts about the unlearning target, and not releasing factual information under jailbreak attacks. Second, we construct a causal intervention framework for targeted unlearning, where the knowledge of the unlearning target is modeled as a confounder between LLM input and output, and the unlearning process as a deconfounding process. This framework justifies and extends WHP, deriving a simple unlearning algorithm that includes WHP as a special case. Experiments on existing and new datasets show that our approach, without explicitly optimizing for the aforementioned criteria, achieves competitive performance in all of them. Our code is available at https://github.com/UCSB-NLP-Chang/causal_unlearn.git.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。