arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.14838cs.CLcs.AI
收藏

揭示并缓解知识编辑中的过度关注问题

Revealing and Mitigating Over-Attention in Knowledge Editing

Soochow University(苏州大学)

Pinzheng Wang, Zecheng Tang, Keyan Zhou, Juntao Li, Qiaoming Zhu, Min Zhang

AI总结:

针对知识编辑导致的特异性失效,本文揭示其源于注意力头对被编辑实体的过度关注,并提出 SADR 通过正则化限制注意力分布变化,在五个 LLM 上显著缓解该问题。

摘要:

大语言模型已在广泛任务中展现出卓越性能,但由于从训练数据中学到了错误知识,它们仍会出现不应有的错误。为避免这一问题,知识编辑方法应运而生,通过高效修改极小比例的参数来精确编辑模型的特定知识。然而,这些方法会导致“特异性失效”问题:编辑会严重损害已有知识和能力。我们的初步研究表明,特异性失效主要源于模型的注意力头为与被编辑知识相关的实体分配了过高的注意力分数,从而过度关注上下文中的特定片段,我们将这一现象称为注意力漂移。为缓解该注意力漂移问题,我们提出了一种简单而有效的方法 Selective Attention Drift Restriction(SADR),该方法在知识编辑过程中引入额外的正则化项,以限制注意力权重分布的变化,从而防止对被编辑实体的过度关注。在五个常用的强大 LLM 上进行的实验证明了本方法的有效性:SADR 能够在主流知识编辑任务中显著缓解特异性失效。

英文摘要:

Large Language Models have demonstrated superior performance across a wide range of tasks, but they still exhibit undesirable errors due to incorrect knowledge learned from the training data. To avoid this, knowledge editing methods emerged to precisely edit the specific model knowledge via efficiently modifying a very small percentage of parameters. % However, those methods can lead to the problem of Specificity Failure: when the content related to the edited knowledge occurs in the context, it can inadvertently corrupt other pre-existing knowledge. However, those methods can lead to the problem of Specificity Failure, where the existing knowledge and capabilities are severely degraded due to editing. Our preliminary indicates that Specificity Failure primarily stems from the model's attention heads assigning excessive attention scores to entities related to the edited knowledge, thereby unduly focusing on specific snippets within the context, which we denote as the Attention Drift phenomenon. To mitigate such Attention Drift issue, we introduce a simple yet effective method Selective Attention Drift Restriction}(SADR), which introduces an additional regularization term during the knowledge editing process to restrict changes in the attention weight distribution, thereby preventing undue focus on the edited entity. Experiments on five frequently used strong LLMs demonstrate the effectiveness of our method, where SADR can significantly mitigate Specificity Failure in the predominant knowledge editing tasks.

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

↑