TensorX
返回文献探索

Paper · arXiv 2406.11194

In-Context Editing: Learning Knowledge from Self-Induced Distributions

Siyuan Qi, Bangcheng Yang, Kailin Jiang, Xiaobo Wang, Jiaqi Li, Yifan Zhong, Yaodong Yang, Zilong Zheng

20 upvotesJune 17, 2024arXiv 预印本
AI 摘要

Consistent In-Context Editing leverages in-context learning to robustly fine-tune language models, improving knowledge editing by maintaining accuracy, locality, generalization, and linguistic quality.

fine-tuningknowledge editingConsistent In-Context Editingin-context learninggradient-based tuning

Abstract

The existing fine-tuning paradigm for language models is brittle in knowledge editing scenarios, where the model must incorporate new information without extensive retraining. This brittleness often results in overfitting, reduced performance, and unnatural language generation. To address this, we propose Consistent In-Context Editing (ICE), a novel approach that leverages the model's in-context learning capability to tune toward a contextual distribution rather than a one-hot target. ICE introduces a straightforward optimization framework that includes both a target and a procedure, enhancing the robustness and effectiveness of gradient-based tuning methods. We provide analytical insights into ICE across four critical aspects of knowledge editing: accuracy, locality, generalization, and linguistic quality, showing its advantages. Experimental results across four datasets confirm the effectiveness of ICE and demonstrate its potential for continual editing, ensuring that updated information is incorporated while preserving the integrity of the model.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
In-Context Editing: Learning Knowledge from Self-Induced Distributions | TensorX