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

大型语言模型如何在内部知识与用户和文档断言之间取得平衡

How Large Language Models Balance Internal Knowledge with User and Document Assertions

Santa Clara University(圣克拉拉大学);Nanyang Technological University(南洋理工大学);California Institute of Technology(加州理工学院)

Shuowei Li, Haoxin Li, Wenda Chu, Yi Fang

AI总结:

本文研究了大型语言模型在处理内部知识与外部信息时的平衡问题,提出三源交互框架,评估27个模型,发现模型更依赖文档断言,且通过微调可提升其区分能力。

摘要:

大型语言模型(LLMs)经常需要在内部参数化知识与外部信息(如用户信念和检索文档内容)之间取得平衡,特别是在RAG或基于聊天的系统中。模型可靠处理这些来源的能力对系统安全至关重要。先前关于知识冲突和阿谀的研究局限于二元冲突范式,主要探讨参数化知识与文档或用户之间的冲突,但忽略了同时存在三种来源的交互环境。为填补这一空白,我们提出一个三源交互框架,并系统评估了27个LLM,来自3个家族,在2个数据集上。我们的发现揭示了普遍模式:大多数模型更依赖文档断言而非用户断言,且这种偏好受到微调后的强化。此外,我们的行为分析表明,大多数模型易受影响,无法有效区分有益和有害的外部信息。为解决此问题,我们证明通过在多样化的来源交互数据上进行微调可以显著提高模型的区分能力。总之,我们的工作为开发能够有效且可靠整合多种信息来源的可信LLM铺平了道路。代码可在https://github.com/shuowl/llm-source-balancing获取。

英文摘要:

Large language models (LLMs) often need to balance their internal parametric knowledge with external information, such as user beliefs and content from retrieved documents, in real-world scenarios like RAG or chat-based systems. A model's ability to reliably process these sources is key to system safety. Previous studies on knowledge conflict and sycophancy are limited to a binary conflict paradigm, primarily exploring conflicts between parametric knowledge and either a document or a user, but ignoring the interactive environment where all three sources exist simultaneously. To fill this gap, we propose a three-source interaction framework and systematically evaluate 27 LLMs from 3 families on 2 datasets. Our findings reveal general patterns: most models rely more on document assertions than user assertions, and this preference is reinforced by post-training. Furthermore, our behavioral analysis shows that most models are impressionable, unable to effectively discriminate between helpful and harmful external information. To address this, we demonstrate that fine-tuning on diverse source interaction data can significantly increase a model's discrimination abilities. In short, our work paves the way for developing trustworthy LLMs that can effectively and reliably integrate multiple sources of information. Code is available at https://github.com/shuowl/llm-source-balancing.

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

↑