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

AnyEdit:编辑语言模型中编码的任何知识

AnyEdit: Edit Any Knowledge Encoded in Language Models

MoE Key Lab of BIPC, University of Science(BIPC摩尔实验室,科学技术大学);National University of Singapore(新加坡国立大学);Zhejiang University(浙江大学);Douyin Co., Ltd(抖音公司)

Houcheng Jiang, Junfeng Fang, Ningyu Zhang, Guojun Ma, Mingyang Wan, Xiang Wang, Xiangnan He, Tat-seng Chua

AI总结:

针对大模型难以编辑长格式多样知识的问题,提出AnyEdit自回归编辑范式,分解知识为块并迭代编辑关键标记,在多个基准上提升21.5%,且即插即用。

摘要:

大型语言模型(LLM)经常产生不正确或过时的信息,因此需要高效且精确的知识更新。然而,当前的模型编辑方法在处理多种格式的长形式知识(如诗歌、代码片段和数学推导)时存在困难。这些局限性源于它们依赖于编辑单个标记的隐藏状态,我们将这一局限性称为“效能屏障”。为了解决这个问题,我们提出了AnyEdit,一种新的自回归编辑范式。它将长形式知识分解为连续的块,并迭代地编辑每个块中的关键标记,确保持续且准确的输出。在理论上,我们将AnyEdit基于互信息的链式法则,展示了其更新LLM内任何知识的能力。在实验上,它在包括UnKEBench、AKEW和我们新的EditEverything数据集(用于长形式多样格式知识)的基准测试中,比强基线高出21.5%。此外,AnyEdit作为一个即插即用的框架,使当前的编辑方法能够更新任意长度和格式的知识,显著推进了LLM知识编辑的范围和实用性。

英文摘要:

Large language models (LLMs) often produce incorrect or outdated information, necessitating efficient and precise knowledge updates. Current model editing methods, however, struggle with long-form knowledge in diverse formats, such as poetry, code snippets, and mathematical derivations. These limitations arise from their reliance on editing a single token's hidden state, a limitation we term "efficacy barrier". To solve this, we propose AnyEdit, a new autoregressive editing paradigm. It decomposes long-form knowledge into sequential chunks and iteratively edits the key token in each chunk, ensuring consistent and accurate outputs. Theoretically, we ground AnyEdit in the Chain Rule of Mutual Information, showing its ability to update any knowledge within LLMs. Empirically, it outperforms strong baselines by 21.5% on benchmarks including UnKEBench, AKEW, and our new EditEverything dataset for long-form diverse-formatted knowledge. Additionally, AnyEdit serves as a plug-and-play framework, enabling current editing methods to update knowledge with arbitrary length and format, significantly advancing the scope and practicality of LLM knowledge editing.

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

↑