用更精准的相似度评分提升多模态检索相关性,减少幻觉。
Re-ranking the Context for Multimodal Retrieval Augmented Generation
- 基于自研相关性评分动态筛选最多k条相关上下文
- 在COCO数据集上显著提升检索准确率与生成质量
- 适合需要高精度多模态知识检索的应用场景
检索增强生成(RAG)通过引入外部知识提升大语言模型的生成准确性并减少幻觉。然而,多模态RAG面临独特挑战:(i)检索过程可能选出与用户查询无关的内容(如图像、文档);(ii)视觉语言模型或GPT-4o等多模态模型在处理这些内容时可能产生幻觉。本文聚焦解决第一个问题,即改进多模态RAG中检索阶段从知识库中选择相关上下文的能力。具体地,我们采用先前工作中设计的相关性评分(RS)机制,在检索阶段筛选更相关的条目。基于嵌入(如CLIP嵌入)和余弦相似度的检索在多模态数据上表现不佳,我们证明使用更先进的相关性度量,可通过自适应选择最多k条相关内容,而非固定数量,有效提升检索效果并剔除无关内容。在COCO数据集上的评估表明,该方法显著提升了上下文相关性及生成结果的准确性。
原文摘要 · Abstract (English)
Retrieval-augmented generation (RAG) enhances large language models (LLMs) by incorporating external knowledge to generate a response within a context with improved accuracy and reduced hallucinations. However, multi-modal RAG systems face unique challenges: (i) the retrieval process may select irrelevant entries to user query (e.g., images, documents), and (ii) vision-language models or multi-modal language models like GPT-4o may hallucinate when processing these entries to generate RAG output. In this paper, we aim to address the first challenge, i.e, improving the selection of relevant context from the knowledge-base in retrieval phase of the multi-modal RAG. Specifically, we leverage the relevancy score (RS) measure designed in our previous work for evaluating the RAG performance to select more relevant entries in retrieval process. The retrieval based on embeddings, say CLIP-based embedding, and cosine similarity usually perform poorly particularly for multi-modal data. We show that by using a more advanced relevancy measure, one can enhance the retrieval process by selecting more relevant pieces from the knowledge-base and eliminate the irrelevant pieces from the context by adaptively selecting up-to-$k$ entries instead of fixed number of entries. Our evaluation using COCO dataset demonstrates significant enhancement in selecting relevant context and accuracy of the generated response.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。