arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.05324cs.IRcs.AIcs.CL

大型语言模型中用于幻觉缓解的混合检索:一项比较分析

Hybrid Retrieval for Hallucination Mitigation in Large Language Models: A Comparative Analysis

University of Pisa(比萨大学);Scuola Normale Superiore(高等师范学院)

Chandana Sree Mala, Gizem Gezici, Fosca Giannotti

AI总结:

本文提出一种结合查询扩展与动态加权RRF融合的混合检索方法,并在HaluBench上验证其相比BM25稀疏检索和Sentence Transformers密集检索能更有效提升检索相关性、降低LLM幻觉率与拒绝率。

摘要:

大型语言模型(LLMs)在语言理解和生成方面表现出色,但容易产生幻觉,输出事实错误或缺乏依据的内容。检索增强生成(RAG)系统通过用外部知识为LLM响应提供依据来解决这一问题。本研究使用三种检索方法评估了检索器有效性与LLM幻觉减少之间的关系:基于BM25关键词搜索的稀疏检索、使用Sentence Transformers进行语义搜索的密集检索,以及一个提出的混合检索模块。该混合模块结合了查询扩展,并通过动态加权的倒数排名融合(Reciprocal Rank Fusion)分数合并稀疏检索器和密集检索器的结果。使用HaluBench数据集(一个用于问答任务中幻觉评估的基准),我们采用平均精度均值(mean average precision)和归一化折损累计增益(normalised discounted cumulative gain)等指标评估检索性能,重点关注前三个检索文档的相关性。结果表明,混合检索器取得了更好的相关性分数,优于稀疏检索器和密集检索器。进一步使用准确率、幻觉率和拒绝率等指标,将LLM生成的答案与真实答案进行对比评估后发现,混合检索器在失败案例上取得了最高准确率、最低幻觉率和最低拒绝率。这些发现凸显了混合检索器在增强检索相关性、降低幻觉率以及提高LLM可靠性方面的能力,强调了先进检索技术在缓解幻觉和提高响应准确性方面的重要性。

英文摘要:

Large Language Models (LLMs) excel in language comprehension and generation but are prone to hallucinations, producing factually incorrect or unsupported outputs. Retrieval Augmented Generation (RAG) systems address this issue by grounding LLM responses with external knowledge. This study evaluates the relationship between retriever effectiveness and hallucination reduction in LLMs using three retrieval approaches: sparse retrieval based on BM25 keyword search, dense retrieval using semantic search with Sentence Transformers, and a proposed hybrid retrieval module. The hybrid module incorporates query expansion and combines the results of sparse and dense retrievers through a dynamically weighted Reciprocal Rank Fusion score. Using the HaluBench dataset, a benchmark for hallucinations in question answering tasks, we assess retrieval performance with metrics such as mean average precision and normalised discounted cumulative gain, focusing on the relevance of the top three retrieved documents. Results show that the hybrid retriever achieves better relevance scores, outperforming both sparse and dense retrievers. Further evaluation of LLM-generated answers against ground truth using metrics such as accuracy, hallucination rate, and rejection rate reveals that the hybrid retriever achieves the highest accuracy on fails, the lowest hallucination rate, and the lowest rejection rate. These findings highlight the hybrid retriever's ability to enhance retrieval relevance, reduce hallucination rates, and improve LLM reliability, emphasising the importance of advanced retrieval techniques in mitigating hallucinations and improving response accuracy.

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

↑