不改模型参数,用外部知识增强推理来更新大模型知识
Knowledge Updating? No More Model Editing! Just Selective Contextual Reasoning
- 用外部知识上下文增强推理,不修改模型参数
- 在两个反事实数据集上表现优于10种编辑方法
- 适合需要频繁更新知识的场景,如实时问答系统
随着现实世界知识不断演变,大型语言模型(LLMs)中的信息可能过时、不足或错误。模型编辑因其低计算成本和参数改动少而成为主流更新方法,但现有方法常低估参数修改对广泛知识的影响。更严重的是,编辑后模型在多跳推理和持续更新方面表现不佳。本文评估了十种主流模型编辑方法在可靠性、泛化性、局部性和可移植性四个维度的表现,结果表明所有方法均存在显著缺陷。为此,我们提出无需参数修改的「选择性上下文推理」(SCR):当查询与外部知识库相关时,将更新的知识文本上下文化以增强推理;否则直接回答。在两个反事实数据集上,使用三种骨干模型进行评估,结果验证了该方法在效果和效率上的优越性。
原文摘要 · Abstract (English)
As real-world knowledge evolves, the information embedded within large language models (LLMs) can become outdated, inadequate, or erroneous. Model editing has emerged as a prominent approach for updating LLMs' knowledge with minimal computational costs and parameter changes. This approach typically identifies and adjusts specific model parameters associated with newly acquired knowledge. However, existing methods often underestimate the adverse effects that parameter modifications can have on broadly distributed knowledge. More critically, post-edit LLMs frequently struggle with multi-hop reasoning and continuous knowledge updates. Although various studies have discussed these shortcomings, there is a lack of comprehensive evaluation. In this paper, we provide an evaluation of ten model editing methods along four dimensions: reliability, generalization, locality, and portability. Results confirm that all ten popular model editing methods show significant shortcomings across multiple dimensions, suggesting model editing is less promising. We then propose a straightforward method called Selective Contextual Reasoning (SCR), for knowledge updating. SCR does not modify model parameters but harnesses LLM's inherent contextual reasoning capabilities utilizing the updated knowledge pieces. Under SCR, an LLM first assesses whether an incoming query falls within the scope of an external knowledge base. If it does, the relevant external knowledge texts are contextualized to enhance reasoning; otherwise, the query is answered directly. We evaluate SCR against the ten model editing methods on two counterfactual datasets with three backbone LLMs. Empirical results confirm the effectiveness and efficiency of contextual reasoning for knowledge updating.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。