Resolving Editing-Unlearning Conflicts: A Knowledge Codebook Framework for Large Language Model Updating

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Zhang, Binchi, Chen, Zhengzhang, Zheng, Zaiyi, Li, Jundong, Chen, Haifeng
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866915132481732608
author Zhang, Binchi
Chen, Zhengzhang
Zheng, Zaiyi
Li, Jundong
Chen, Haifeng
author_facet Zhang, Binchi
Chen, Zhengzhang
Zheng, Zaiyi
Li, Jundong
Chen, Haifeng
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2502_00158
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Resolving Editing-Unlearning Conflicts: A Knowledge Codebook Framework for Large Language Model Updating
Zhang, Binchi
Chen, Zhengzhang
Zheng, Zaiyi
Li, Jundong
Chen, Haifeng
Computation and Language
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.
title Resolving Editing-Unlearning Conflicts: A Knowledge Codebook Framework for Large Language Model Updating
topic Computation and Language
url https://arxiv.org/abs/2502.00158