arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.20588cs.CL
收藏

DAFNet:用于大型语言模型序列模型编辑的动态辅助融合

DAFNet: Dynamic Auxiliary Fusion for Sequential Model Editing in Large Language Models

Alibaba Group(阿里巴巴集团);East China Normal University(华东师范大学)

Taolin Zhang, Qizhou Chen, Dongyang Li, Chengyu Wang, Xiaofeng He, Longtao Huang, Hui Xue, Jun Huang

AI总结:

针对大型语言模型持续纠错的序列模型编辑任务,提出动态辅助融合网络DAFNet,通过聚合编辑内与编辑间注意力流防止灾难性遗忘,并构建新数据集DAFSet,显著提升了单轮与序列编辑性能。

摘要:

近期,尽管大型语言模型(LLMs)展示了令人印象深刻的结果,但它们仍然存在幻觉问题,即生成虚假信息。模型编辑是修复LLMs中事实错误的任务;然而,大多数先前的工作将其视为一次性任务,很少关注LLMs不断产生的错误。我们处理了序列模型编辑(SME)任务,旨在持续纠正错误。我们设计了动态辅助融合网络(DAFNet),以增强整个序列内事实知识之间的语义交互,防止在编辑多个知识三元组的过程中发生灾难性遗忘。具体而言:(1)对于关系三元组内的语义融合,我们将编辑内注意力流聚合到LLMs中具有token级粒度的自回归自注意力中。我们进一步利用多层对角编辑间注意力流来更新整个序列级粒度的加权表示。(2)考虑到序列编辑需要辅助参数来存储知识,我们构建了一个名为DAFSet的新数据集,具备近期、流行、长尾和鲁棒的属性,以增强序列编辑的泛化性。实验表明,DAFNet在单轮和序列编辑中显著优于强基线。DAFSet的使用也在各种场景中持续提升了其他基于辅助网络方法的性能。

英文摘要:

Recently, while large language models (LLMs) have demonstrated impressive results, they still suffer from hallucination, i.e., the generation of false information. Model editing is the task of fixing factual mistakes in LLMs; yet, most previous works treat it as a one-time task, paying little attention to ever-emerging mistakes generated by LLMs. We address the task of sequential model editing (SME) that aims to rectify mistakes continuously. A Dynamic Auxiliary Fusion Network (DAFNet) is designed to enhance the semantic interaction among the factual knowledge within the entire sequence, preventing catastrophic forgetting during the editing process of multiple knowledge triples. Specifically, (1) for semantic fusion within a relation triple, we aggregate the intra-editing attention flow into auto-regressive self-attention with token-level granularity in LLMs. We further leverage multi-layer diagonal inter-editing attention flow to update the weighted representations of the entire sequence-level granularity. (2) Considering that auxiliary parameters are required to store the knowledge for sequential editing, we construct a new dataset named \textbf{DAFSet}, fulfilling recent, popular, long-tail and robust properties to enhance the generality of sequential editing. Experiments show DAFNet significantly outperforms strong baselines in single-turn and sequential editing. The usage of DAFSet also consistently improves the performance of other auxiliary network-based methods in various scenarios

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

↑