检测RAG系统中检索文档的矛盾信息,提升LLM输出一致性。
Contradiction Detection in RAG Systems: Evaluating LLMs as Context Validators for Improved Information Consistency
- 构建模拟RAG检索矛盾的数据生成框架。
- 大模型在矛盾检测上表现不一,效果受类型和提示策略影响。
- 链式思考提示对部分模型有效,但可能损害其他模型性能。
检索增强生成(RAG)系统通过引入实时信息提升大语言模型(LLMs)能力,但在新闻等快速变化领域,检索阶段可能获取到相互矛盾的文档,严重影响模型输出的一致性。本文从两方面应对这一挑战:首先,提出一种新颖的数据生成框架,模拟RAG检索阶段可能出现的不同类型矛盾;其次,评估不同LLMs作为上下文验证器的能力,考察其在检索文档集合中识别矛盾信息的表现。实验结果表明,即使最先进的模型在上下文验证任务中仍面临显著挑战,且性能随矛盾类型差异明显。虽然更大模型通常表现更优,但不同提示策略的效果在任务与模型架构间存在差异。链式思考提示虽使部分模型性能提升,却可能降低其他模型表现,凸显该任务的复杂性,亟需更稳健的上下文验证方法。
原文摘要 · Abstract (English)
Retrieval Augmented Generation (RAG) systems have emerged as a powerful method for enhancing large language models (LLMs) with up-to-date information. However, the retrieval step in RAG can sometimes surface documents containing contradictory information, particularly in rapidly evolving domains such as news. These contradictions can significantly impact the performance of LLMs, leading to inconsistent or erroneous outputs. This study addresses this critical challenge in two ways. First, we present a novel data generation framework to simulate different types of contradictions that may occur in the retrieval stage of a RAG system. Second, we evaluate the robustness of different LLMs in performing as context validators, assessing their ability to detect contradictory information within retrieved document sets. Our experimental results reveal that context validation remains a challenging task even for state-of-the-art LLMs, with performance varying significantly across different types of contradictions. While larger models generally perform better at contradiction detection, the effectiveness of different prompting strategies varies across tasks and model architectures. We find that chain-of-thought prompting shows notable improvements for some models but may hinder performance in others, highlighting the complexity of the task and the need for more robust approaches to context validation in RAG systems.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。