Skip to content

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

License

Notifications You must be signed in to change notification settings

songxiaoshuai/postEdit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Knowledge Editing on Black-box Large Language Models

📃 ArXiv Paper • 🤗 HuggingFace Model • 📚 Dataset

Authors: Xiaoshuai Song, Zhengyang Wang, Keqing He, Guanting Dong, Jinxu Zhao and Weiran Xu

We will release the datasets, models, templates, and codes within a month. Thanks for your attention!

Introduction

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. To address the limitations of existing evaluations that are not inapplicable to black-box LLM editing and lack comprehensiveness, we propose a multiperspective evaluation framework, incorporating the assessment of style retention for the first time. 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% ↑).

Our dataset and the models fine-tuned on it will be released soon!

Citation

Please kindly cite our paper if it helps your research:

@misc{song2024knowledge,
      title={Knowledge Editing on Black-box Large Language Models}, 
      author={Xiaoshuai Song and Zhengyang Wang and Keqing He and Guanting Dong and Jinxu Zhao and Weiran Xu},
      year={2024},
      eprint={2402.08631},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published