解决编辑-遗忘冲突:一种用于大语言模型更新的知识码本框架
Resolving Editing-Unlearning Conflicts: A Knowledge Codebook Framework for Large Language Model Updating
AI总结:
针对LLM更新中编辑与遗忘任务间的冲突及知识存储低效问题,提出基于知识码本的无冲突框架LOKA,通过相似性感知映射优化存储并利用特定任务记忆解决冲突,有效提升了模型知识更新效果。
摘要:
大语言模型(LLMs)通过编码丰富的人类知识在自然语言处理方面表现出色,但其实用性依赖于随着知识演进的及时更新。更新LLMs同时涉及两个关键任务:遗忘以移除不需要的知识,以及编辑以纳入新信息。现有方法面临两大挑战:无效的知识存储(过于稀疏或过于密集),以及编辑与遗忘之间的任务冲突,这一点通过我们的理论和实验结果得到了验证。为了解决这些问题,我们提出了LOKA,一个基于知识码本的LLM无冲突更新框架。在训练期间,更新的知识被存储在多个码本记忆中。为了优化知识存储,相似性感知的知识映射确保相关的知识片段被聚类并分配到同一记忆中。此外,LOKA在冲突分数的引导下,通过采用特定任务和多任务记忆来解决任务冲突。在推理阶段,LOKA从码本中检索最相关的记忆,并将其插入原始LLM以应用更新的知识。基于学习的路由器控制码本激活,以进一步提高知识利用率。大量实验证明了LOKA在LLM知识更新任务中的有效性。
英文摘要:
Large Language Models (LLMs) excel in natural language processing by encoding extensive human knowledge, but their utility relies on timely updates as knowledge evolves. Updating LLMs involves two key tasks simultaneously: unlearning to remove unwanted knowledge and editing to incorporate new information. Existing methods face two major challenges: ineffective knowledge storage (either too sparse or too dense) and task conflicts between editing and unlearning, as validated through our theoretical and experimental results. To address these issues, we propose LOKA, a conflict-free framework for LLM updating based on a knowledge codebook. During training, updated knowledge is stored in multiple codebook memories. To optimize knowledge storage, a similarity-aware knowledge mapping ensures that related knowledge pieces are clustered and allocated to the same memory. Additionally, LOKA resolves task conflicts by employing task-specific and multi-task memories guided by a conflict score. In the inference stage, LOKA retrieves the most relevant memory from the codebook and plugs it into the original LLM to apply the updated knowledge. A learning-based router controls codebook activation to further improve knowledge utilization. Extensive experiments demonstrate the effectiveness of LOKA in LLM knowledge updating tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。