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

关于引导潜在表征对大语言模型遗忘的影响

On Effects of Steering Latent Representation for Large Language Model Unlearning

Japan Advanced Institute of Science and Technology(日本先进科学技术学院);VNU University of Engineering and Technology(越南国家大学工程技术大学);RIKEN(理化学研究所)

Dang Huu-Tien, Trung-Tin Pham, Hoang Thanh-Tung, Naoya Inoue

AI总结:

本文从理论上解释了RMU遗忘机制源于降低词元置信度,发现其在LLM中后层效果较差,并提出自适应RMU方法,在不增加计算成本的情况下显著提升遗忘性能。

摘要:

表征误导遗忘(Representation Misdirection for Unlearning,RMU)将中间层的模型表征引导至目标随机表征,是一种有效的大语言模型(LLM)遗忘方法。尽管其性能较高,但其根本原因和解释仍未得到充分探索。本文从理论上证明,在中间层引导遗忘表征会降低词元置信度,导致大语言模型生成错误或无意义的响应。我们研究了系数如何影响遗忘样本表征与随机方向的对齐,并提示了在不同网络层中实现有效遗忘的最优系数值。我们表明,经过 RMU 遗忘的模型对对抗性越狱攻击具有鲁棒性。此外,我们的实证分析表明,当 RMU 应用于大语言模型的中间层和后层时效果较差。为解决这一缺陷,我们提出了自适应 RMU——一种简单而有效的替代方法,使遗忘在大多数层中都能有效进行。大量实验表明,与现有技术相比,自适应 RMU 显著提高了遗忘性能,同时不增加额外的计算成本。

英文摘要:

Representation Misdirection for Unlearning (RMU), which steers model representation in the intermediate layer to a target random representation, is an effective method for large language model (LLM) unlearning. Despite its high performance, the underlying cause and explanation remain underexplored. In this paper, we theoretically demonstrate that steering forget representations in the intermediate layer reduces token confidence, causing LLMs to generate wrong or nonsense responses. We investigate how the coefficient influences the alignment of forget-sample representations with the random direction and hint at the optimal coefficient values for effective unlearning across different network layers. We show that RMU unlearned models are robust against adversarial jailbreak attacks. Furthermore, our empirical analysis shows that RMU is less effective when applied to the middle and later layers in LLMs. To resolve this drawback, we propose Adaptive RMU--a simple yet effective alternative method that makes unlearning effective with most layers. Extensive experiments demonstrate that Adaptive RMU significantly improves the unlearning performance compared to prior art while incurring no additional computational cost.

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

↑