通过验证链提升检索生成的准确性和一致性。
Retrieving, Rethinking and Revising: The Chain-of-Verification Can Improve Retrieval Augmented Generation
- 引入验证模块,动态修正检索查询和生成内容。
- 在多个模型上显著优于现有基线方法。
- 适合需要高可靠性的问答与生成任务。
最近的检索增强生成(RAG)通过引入外部知识来提升大语言模型(LLM)的表现,但仍面临两个挑战:原始查询可能不适配精准检索,导致错误上下文;且模型因知识边界限制,易生成与外部参考不一致的答案。为此,我们提出链式验证机制(CoV-RAG),通过集成验证模块实现评分、判断与重写。为纠正外部检索错误,使用修正后的查询重新检索知识;为纠正内部生成错误,训练时统一问答与验证任务,并采用思维链(CoT)推理。在多种大型语言模型上的综合实验表明,该方法在准确性和适应性方面均优于其他强基线,尤其在不同模型骨架下显著超越当前最优方法。
原文摘要 · Abstract (English)
Recent Retrieval Augmented Generation (RAG) aims to enhance Large Language Models (LLMs) by incorporating extensive knowledge retrieved from external sources. However, such approach encounters some challenges: Firstly, the original queries may not be suitable for precise retrieval, resulting in erroneous contextual knowledge; Secondly, the language model can easily generate inconsistent answer with external references due to their knowledge boundary limitation. To address these issues, we propose the chain-of-verification (CoV-RAG) to enhance the external retrieval correctness and internal generation consistency. Specifically, we integrate the verification module into the RAG, engaging in scoring, judgment, and rewriting. To correct external retrieval errors, CoV-RAG retrieves new knowledge using a revised query. To correct internal generation errors, we unify QA and verification tasks with a Chain-of-Thought (CoT) reasoning during training. Our comprehensive experiments across various LLMs demonstrate the effectiveness and adaptability compared with other strong baselines. Especially, our CoV-RAG can significantly surpass the state-of-the-art baselines using different LLM backbones.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。