arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2309.08952cs.CLcs.AI
收藏

大型语言模型中的跨语言知识编辑

Cross-Lingual Knowledge Editing in Large Language Models

Fudan University(复旦大学);Pattern Recognition Center, WeChat AI, Tencent Inc(腾讯微信AI模式识别中心);Beijing Jiaotong University(北京交通大学);Zhejiang University(浙江大学)

Jiaan Wang, Yunlong Liang, Zengkui Sun, Yuxuan Cao, Jiarong Xu, Fandong Meng

AI总结:

本文研究大型语言模型的跨语言知识编辑问题,通过构建英中大规模跨语言合成数据集,评估不同范式编辑方法在双语场景下的可靠性、泛化性、局部性和可移植性,并分析编辑模型的不一致行为与挑战。

摘要:

知识编辑旨在通过向语言模型注入相应的预期知识,来改变其在某些特殊情况(即编辑范围)下的表现。随着大型语言模型(LLMs)的最新进展,知识编辑已被证明是一种无需从头重新训练即可使LLMs适应新知识的有前途的技术。然而,以往的大多数研究忽略了一些主流LLMs(例如LLaMA、ChatGPT和GPT-4)的多语言特性,通常只关注单语言场景,即LLMs在同一语言下被编辑和评估。因此,源语言编辑对不同目标语言的影响仍然未知。在本文中,我们旨在弄清楚知识编辑中的这种跨语言影响。具体来说,我们首先通过将ZsRE从英语翻译成中文,收集了一个大规模的跨语言合成数据集。然后,我们对涵盖不同范式的各种知识编辑方法进行英语编辑,并评估它们在中文中的表现,反之亦然。为了对跨语言影响进行更深入的分析,评估包括四个方面:可靠性、泛化性、局部性和可移植性。此外,我们分析了编辑模型的不一致行为,并讨论了它们的具体挑战。数据和代码可在https://github.com/krystalan/Bi_ZsRE获取。

英文摘要:

Knowledge editing aims to change language models' performance on several special cases (i.e., editing scope) by infusing the corresponding expected knowledge into them. With the recent advancements in large language models (LLMs), knowledge editing has been shown as a promising technique to adapt LLMs to new knowledge without retraining from scratch. However, most of the previous studies neglect the multi-lingual nature of some main-stream LLMs (e.g., LLaMA, ChatGPT and GPT-4), and typically focus on monolingual scenarios, where LLMs are edited and evaluated in the same language. As a result, it is still unknown the effect of source language editing on a different target language. In this paper, we aim to figure out this cross-lingual effect in knowledge editing. Specifically, we first collect a large-scale cross-lingual synthetic dataset by translating ZsRE from English to Chinese. Then, we conduct English editing on various knowledge editing methods covering different paradigms, and evaluate their performance in Chinese, and vice versa. To give deeper analyses of the cross-lingual effect, the evaluation includes four aspects, i.e., reliability, generality, locality and portability. Furthermore, we analyze the inconsistent behaviors of the edited models and discuss their specific challenges. Data and codes are available at https://github.com/krystalan/Bi_ZsRE

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

↑