cs.CLApr 7, 2026

Learning to Edit Knowledge via Instruction-based Chain-of-Thought Prompting

Authors: Jinhu Fu, Yan Bai, Longzhu He, Yihang Lou, Yanxiao Zhao, Li Sun, Sen Su

Organizations: Beijing University of Posts and Telecommunications · Peking University · Huawei Technologies Ltd. · Chongqing University of Posts and Telecommunications

Abstract

Large language models (LLMs) can effectively handle outdated information through knowledge editing. However, current approaches face two key limitations: (I) Poor generalization: Most approaches rigidly inject new knowledge without ensuring that the model can use it effectively to solve practical problems. (II) Narrow scope: Current methods focus primarily on structured fact triples, overlooking the diverse unstructured forms of factual information (e.g., news, articles) prevalent in real-world contexts. To address these challenges, we propose a new paradigm: teaching LLMs to edit knowledge via Chain of Thoughts (CoTs) reasoning (CoT2Edit). We first leverage language model agents for both structured and unstructured edited data to generate CoTs, building high-quality instruction data. The model is then trained to reason over edited knowledge through supervised fine-tuning (SFT) and Group Relative Policy Optimization (GRPO). At inference time, we integrate Retrieval-Augmented Generation (RAG) to dynamically retrieve relevant edited facts for real-time knowledge editing. Experimental results demonstrate that our method achieves strong generalization across six diverse knowledge editing scenarios with just a single round of training on three open-source language models. The codes are available at https://github.com/FredJDean/CoT2Edit.

Figures & tables

Appendix figures & tables3 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. ManiEdit: Sequential Unstructured Knowledge Editing for Language Models from a Manifold Perspective

    Sep 27, 2026Rui Liu, Chenheng Zhang, Haoxuan Li +1Knowledge EditingContinual Learning for LLMs

  2. EngramEdit: Decoupled Knowledge Updates in LLMs through Conditional Memory

    Oct 7, 2026Hongru Cai, Ran Wei, Wenjie Wang +4Knowledge EditingFactual Knowledge in Language Models

  3. Generalizable Lifelong Model Editing via Preference Optimization

    Sep 29, 2026Dahyun Jung, Suhyune Son, Heuiseok LimContinual Learning for LLMsContinual Learning