Knowledge Editing through Chain-of-Thought

Changyue Wang, Weihang Su, Qingyao Ai, Yichen Tang, Yiqun Liu
12/23/2024
cs.CL

Official code: bebr2/EditCoT (14 stars, last commit 2025-08-21).

Abstract

Knowledge Editing is a technique that updates large language models (LLMs) with new information to maintain their world knowledge. This approach avoids the need to rebuild the model from scratch, thereby addressing the high costs associated with frequent retraining. Among these, the in-context editing paradigm stands out for its effectiveness in integrating new knowledge while preserving the model's original capabilities. Despite its potential, existing in-context knowledge editing methods are often task-specific, focusing primarily on multi-hop QA tasks using structured knowledge triples. Moreover, their reliance on few-shot prompting for task decomposition makes them unstable and less effective in generalizing across diverse tasks. In response to these limitations, we propose EditCoT, a novel knowledge editing framework that flexibly and efficiently updates LLMs across various tasks without retraining. EditCoT works by generating a chain-of-thought (CoT) for a given input and then iteratively refining this CoT process using a CoT editor based on updated knowledge. We evaluate EditCoT across a diverse range of benchmarks, covering multiple languages and tasks. The results demonstrate that our approach achieves state-of-the-art performance while offering superior generalization, effectiveness, and stability compared to existing methods, marking a significant advancement in the field of knowledge updating. The code and data of EditCoT are available at: https://github.com/bebr2/EditCoT .

View on arXivView PDF

Code Implementations(1)

bebr2/EditCoTOfficial100%

Source Code for EditCoT, EMNLP 2025 Long Paper

142Shell, PythonOct 14, 20241 years ago

Similar Papers

Cite this paper

@article{wang2024knowledge,
  title  = {Knowledge Editing through Chain-of-Thought},
  author = {Changyue Wang and Weihang Su and Qingyao Ai and Yichen Tang and Yiqun Liu},
  year   = {2024},
  eprint = {2412.17727},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.17727v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.17727.svg)](https://codeofpaper.com/paper/2412.17727)

Discussion