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

基于检索增强连续提示学习的大语言模型终身知识编辑

Lifelong Knowledge Editing for LLMs with Retrieval-Augmented Continuous Prompt Learning

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

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

AI总结:

本文提出RECIPE,通过检索增强连续提示与知识哨兵动态判定,实现大语言模型高效终身知识编辑,并在多模型、多数据集上验证其性能与速度优势。

摘要:

模型编辑旨在纠正大语言模型(LLM)中过时或错误的知识,而无需进行代价高昂的重新训练。终身模型编辑是最具挑战性的任务,旨在满足LLM持续不断的编辑需求。以往工作主要关注单次或批量编辑;然而,由于灾难性知识遗忘和模型性能退化,这些方法在终身编辑场景中存在不足。尽管基于检索的方法缓解了这些问题,但它们受到将检索到的知识整合进模型这一缓慢且繁琐过程的阻碍。在本工作中,我们提出RECIPE,一种检索增强的连续提示学习(RetriEval-augmented ContInuous Prompt lEarning)方法,以提升终身学习中的编辑效果和推理效率。RECIPE首先将知识陈述转换为简短且信息丰富的连续提示,并将其作为前缀添加到LLM的输入查询嵌入中,从而基于该知识高效优化回答。它还进一步集成了知识哨兵(KS),该模块充当中介来计算动态阈值,以判断检索库中是否包含相关知识。我们的检索器和提示编码器经过联合训练,以实现编辑属性,即可靠性、泛化性和局部性。在实验中,RECIPE在多个LLM和编辑数据集上接受了广泛评估,并取得了优越的编辑性能。RECIPE还展示了其在保持LLM整体性能的同时具备快速编辑和推理速度的能力。

英文摘要:

Model editing aims to correct outdated or erroneous knowledge in large language models (LLMs) without the need for costly retraining. Lifelong model editing is the most challenging task that caters to the continuous editing requirements of LLMs. Prior works primarily focus on single or batch editing; nevertheless, these methods fall short in lifelong editing scenarios due to catastrophic knowledge forgetting and the degradation of model performance. Although retrieval-based methods alleviate these issues, they are impeded by slow and cumbersome processes of integrating the retrieved knowledge into the model. In this work, we introduce RECIPE, a RetriEval-augmented ContInuous Prompt lEarning method, to boost editing efficacy and inference efficiency in lifelong learning. RECIPE first converts knowledge statements into short and informative continuous prompts, prefixed to the LLM's input query embedding, to efficiently refine the response grounded on the knowledge. It further integrates the Knowledge Sentinel (KS) that acts as an intermediary to calculate a dynamic threshold, determining whether the retrieval repository contains relevant knowledge. Our retriever and prompt encoder are jointly trained to achieve editing properties, i.e., reliability, generality, and locality. In our experiments, RECIPE is assessed extensively across multiple LLMs and editing datasets, where it achieves superior editing performance. RECIPE also demonstrates its capability to maintain the overall performance of LLMs alongside showcasing fast editing and inference speed.

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

↑