导航不可靠的参数化与上下文知识:面向LLM推理的显式知识冲突解决
Navigating Unreliable Parametric and Contextual Knowledge: Explicit Knowledge Conflict Resolution for LLM Inference
AI总结:
提出MACR框架,通过自适应知识评估与多智能体推理,显式解决大语言模型内部参数知识与外部上下文之间的冲突,超越传统二元选择范式。
摘要:
大型语言模型(LLM)通过利用广泛的参数化知识和上下文学习能力,在多种基于语言的任务中取得了强劲性能,使其能够整合输入提示中提供的外部信息。然而,外部知识的整合可能引入冲突,不仅存在于模型内部参数知识与外部信息之间,也存在于多个外部上下文之间。现有方法通常假设模型或提供的上下文是可靠的,忽视了两种来源都可能包含错误的情况,并通过优先考虑某一来源而非另一来源来避免冲突,而非主动解决不一致性。为解决这些局限,我们提出了一种新颖的LLM知识冲突解决框架MACR,该框架超越了传统的二元选择范式,并基于多智能体推理方法引入了显式的冲突解决机制。具体而言,我们首先提出一种自适应知识评估与检索方法,采用改进的语义熵度量来量化LLM对给定查询答案的置信度。基于此置信度估计,MACR要么将模型的内部知识外化为文本表示,要么在内部知识不足时检索相关外部知识,为后续推理生成基本上下文。然后,我们引入一个归纳式多智能体推理框架,包含三个专门智能体,分别用于归纳显式规则、分析潜在冲突以及解决所有可用上下文中的不一致性。实验结果表明,MACR在多个基准测试中显著优于最先进的基线方法,同时提供了可解释的显式冲突解决方案。
英文摘要:
Large language models (LLMs) have achieved strong performance across a wide range of language-based tasks by leveraging both extensive parametric knowledge and in-context learning ability, enabling them to incorporate external information provided in the input prompt. However, the integration of external knowledge can introduce conflicts, not only between the model's internal parametric knowledge and the external information, but also among multiple pieces of external contexts. Existing approaches typically assume that either the model or the provided context is reliable, overlooking the possibility that both sources may contain errors, and avoid conflicts by privileging one source over the other, rather than actively resolving inconsistencies. To address these limitations, we propose a novel framework MACR for LLM knowledge conflict resolution that moves beyond the conventional binary choice paradigm and incorporates an explicit conflict-resolution mechanism based on a multi-agent reasoning approach. Specifically, we first propose an adaptive knowledge assessment and retrieval approach that employs a modified semantic entropy measure to quantify an LLM's confidence in its answer to a given query. Based on this confidence estimation, MACR either externalizes the model's internal knowledge as textual representations or retrieves relevant external knowledge when internal knowledge is insufficient, generating basic contexts for subsequent reasoning. Then we introduce an inductive multi-agent reasoning framework with three specialized agents that, respectively, induce explicit rules, analyze potential conflicts, and resolve inconsistencies across all available contexts. Empirical results demonstrate that MACR significantly outperforms state-of-the-art baselines across benchmarks, while also providing interpretable resolutions of explicit conflicts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。