arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.11194cs.CL
收藏

上下文编辑:从自诱导分布中学习知识

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

State Key Laboratory of General Artificial Intelligence, BIGAI(通用人工智能国家重点实验室,北京智源人工智能研究院);University of Science and Technology of China(中国科学技术大学);Peking University(北京大学)

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

AI总结:

针对传统微调易过拟合且泛化差的问题,提出一致性上下文编辑(ICE)方法,利用上下文学习对齐分布以高效内化新知识,在准确性、局部性、泛化性和语言质量上均具优势。

摘要:

在语言模型必须高效整合新信息而无需大量重新训练的场景中,传统微调方法容易出现过拟合、泛化能力下降以及生成语言不自然等问题。为解决这些局限,我们提出了一致性上下文编辑(ICE),这是一种新颖的方法,利用模型的上下文学习能力,优化目标为上下文分布而非独热目标。ICE引入了一个简单而有效的优化框架,通过使模型在有额外上下文和无额外上下文时的输出分布对齐,使其内化新知识。该方法增强了基于梯度的调优方法的鲁棒性和有效性,防止过拟合并保持模型的完整性。我们从知识编辑的四个关键方面——准确性、局部性、泛化性和语言质量——对ICE进行了分析,展示了其优势。实验结果证实了ICE的有效性,并展示了其在持续编辑方面的潜力,确保在更新信息的同时保持模型的完整性。

英文摘要:

In scenarios where language models must incorporate new information efficiently without extensive retraining, traditional fine-tuning methods are prone to overfitting, degraded generalization, and unnatural language generation. To address these limitations, we introduce Consistent In-Context Editing (ICE), a novel approach leveraging the model's in-context learning capability to optimize toward a contextual distribution rather than a one-hot target. ICE introduces a simple yet effective optimization framework for the model to internalize new knowledge by aligning its output distributions with and without additional context. This method enhances the robustness and effectiveness of gradient-based tuning methods, preventing overfitting and preserving the model's integrity. We analyze ICE across four critical aspects of knowledge editing: accuracy, locality, generalization, and linguistic quality, demonstrating its advantages. Experimental results confirm the effectiveness of ICE and demonstrate its potential for continual editing, ensuring that the integrity of the model is preserved while updating information.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑