arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.10132cs.CLcs.AI
收藏

StruEdit:结构化输出实现大语言模型的快速准确知识编辑

StruEdit: Structured Outputs Enable the Fast and Accurate Knowledge Editing for Large Language Models

Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);University of California, Los Angeles(加利福尼亚大学洛杉矶分校);University of Science and Technology of China(中国科学技术大学)

Baolong Bi, Shenghua Liu, Yiwei Wang, Lingrui Mei, Hongcheng Gao, Junfeng Fang, Xueqi Cheng

AI总结:

针对大语言模型知识编辑中因输出非结构化导致的编辑定位难、推理连贯性差问题,提出StruEdit方法,通过生成推理三元组结构化输出并单步更新知识,实现了更高准确率与更低延迟。

摘要:

作为当前首选的问答工具,大语言模型(LLM)被期望能提供具备最新知识的答案。为打造这类理想的问答系统,定位并编辑自然语言输出中的过时知识是主流知识编辑方法的通用目标。然而该目标颇具挑战:既要识别推理步骤中需编辑的token,又要保证修改后推理链的连贯性,两项任务均难度较大。我们认为这些挑战源于自然语言输出的非结构化特性。为解决上述挑战,我们提出**结构化编辑(Structural Editing,StruEdit)**——一种改进的知识编辑基线方法。我们首先提示LLM生成由推理三元组构成的结构化输出,随后StruEdit会移除所有可能过时的知识,并在单步内高效地用最新信息补全结构化输出。实验结果表明,与其他知识编辑方法相比,StruEdit始终能以最低延迟实现最高准确率。

英文摘要:

As the modern tool of choice for question answering, large language models (LLMs) are expected to deliver answers with up-to-date knowledge. To achieve such ideal question-answering systems, locating and then editing outdated knowledge in the natural language outputs is a general target of popular knowledge editing methods. However, this target is challenging, as both identifying which tokens to edit in the reasoning steps and ensuring the coherence of the revised reasoning chain are difficult tasks. We argue that these challenges stem from the unstructured nature of natural language outputs. To address the above challenges, we propose $\textbf{Stru}$ctural $\textbf{Edit}$ing ($\textbf{StruEdit}$), an improved baseline for knowledge editing. We first prompt LLMs to produce structured outputs consisting of reasoning triplets. Then, StruEdit removes any potentially outdated knowledge and efficiently refills the structured outputs with up-to-date information in a single step. Experimental results show that StruEdit consistently delivers the highest accuracy with lowest latency compared with other knowledge editing methods.

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

↑