Knowledge Editing on Black-box Large Language Models

Xiaoshuai Song, Zhengyang Wang, Keqing He, Guanting Dong, Yutao Mou +2 more
2/13/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: songxiaoshuai/postEdit (3 stars, MIT, last commit 2025-11-25).

Abstract

Knowledge editing (KE) aims to efficiently and precisely modify the behavior of large language models (LLMs) to update specific knowledge without negatively influencing other knowledge. Current research primarily focuses on white-box LLMs editing, overlooking an important scenario: black-box LLMs editing, where LLMs are accessed through interfaces and only textual output is available. In this paper, we first officially introduce KE on black-box LLMs and then propose a comprehensive evaluation framework to overcome the limitations of existing evaluations that are not applicable to black-box LLMs editing and lack comprehensiveness. To tackle privacy leaks of editing data and style over-editing in current methods, we introduce a novel postEdit framework, resolving privacy concerns through downstream post-processing and maintaining textual style consistency via fine-grained editing to original responses. Experiments and analysis on two benchmarks demonstrate that postEdit outperforms all baselines and achieves strong generalization, especially with huge improvements on style retention (average $+20.82\%\uparrow$).

View on arXivView PDF

Code Implementations(1)

MIT

Official implementation of "Knowledge Editing on Black-box Large Language Models".

30Shell, PythonFeb 13, 202411 months agoMIT

Similar Papers

Cite this paper

@article{song2024knowledge,
  title  = {Knowledge Editing on Black-box Large Language Models},
  author = {Xiaoshuai Song and Zhengyang Wang and Keqing He and Guanting Dong and Yutao Mou and Jinxu Zhao and Weiran Xu},
  year   = {2024},
  eprint = {2402.08631},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.08631v2}
}

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/2402.08631.svg)](https://codeofpaper.com/paper/2402.08631)

Discussion