大型语言模型(LLMs)应信任哪种知识?揭示知识冲突间可泛化的引导方向
Which Knowledge Should LLMs Trust? Uncovering a Generalizable Steering Direction Across Knowledge Conflicts
AI总结:
该研究揭示LLMs在知识冲突间存在可泛化的引导方向,沿此方向引导可提升模型对外部提示信息的使用效果,适用于多任务族与模型族。
摘要:
大型语言模型(LLMs)常面临内部参数化知识与外部上下文知识之间的冲突,但支配这种选择的机制仍不明确。研究表明,上下文知识与参数化知识之间的选择以线性方式呈现,可沿模型残差流中的单一方向进行控制。首先,研究证明该方向在事实冲突场景中具有泛化性,涵盖上下文格式、知识类别及数据集,且能始终在参数化答案与上下文答案之间调整模型行为。随后,将从简单事实冲突中学习到的方向迁移至三个更复杂的任务族:检索增强生成(RAG)、记忆及规则遵循,这些任务中模型需从检索文档、交互历史或显式规则中获取信息。在四个模型族及多种迁移设置下,引导始终能提升模型对提示提供信息的使用效果,优于未引导模型。这些结果表明,该方向捕捉到对外部知识的可迁移偏好,而非仅针对事实冲突的特定机制。
英文摘要:
Large Language Models (LLMs) frequently encounter conflicts between internal parametric knowledge and external contextual knowledge, yet the mechanisms governing this selection remain unclear. We show that the choice between context and parametric knowledge is linearly represented and can be controlled along a single direction in the model's residual stream. We first demonstrate that this direction generalizes across factual-conflict settings, including context formats, knowledge categories, and datasets, while consistently shifting behavior between parametric and contextual answers. We then transfer a direction learned from simple factual conflicts to three more complex task families: RAG, memory, and rule following, where models must acquire information from retrieved documents, interaction histories, or explicit rules. Across four model families and multiple transfer settings, steering consistently improves the use of prompt-provided information over the unsteered model. These results suggest that the direction captures a transferable preference for external knowledge rather than a mechanism specific to factual conflicts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。