Reproduce “Resolving Editing-Unlearning Conflicts: A Knowledge Codebook Framework for Large Language Model Updating” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Binchi Zhang, Zhengzhang Chen, Zaiyi Zheng, Jundong Li, Haifeng Chen

A new framework called LOKA (Learning-based Optimized Knowledge Allocation) enables conflict-free updating of large language models, simultaneously integrating new information (editing) and removing unwanted knowledge (unlearning) by employing a knowledge codebook and a dynamic conflict-aware training strategy. The framework outperforms existing baselines, achieving a truth ratio of 0.8044 and an MIA AUC of 0.2449 for unlearning on Llama3-8b, and a combined editing metric of 0.8538, while maintaining retained knowledge and generalizing to paraphrased inputs.

Key insights

  • Conflicts between editing and unlearning objectives, driven by opposing gradient directions, are a common and detrimental issue in LLM updating, necessitating explicit resolution strategies.
  • Balancing knowledge storage is critical: grouping semantically similar knowledge into dedicated memories prevents both the overfitting of sparse storage and the underfitting of dense storage approaches.
  • Dynamically adapting the training strategy based on the severity of task conflicts (e.g., using separate vs. shared memories) significantly improves the efficacy of both editing and unlearning tasks.
  • Selectively activating updated knowledge memories via a learned router module effectively manages the trade-off between updating specific knowledge and preserving the model's vast existing knowledge base.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.