arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2504.04062cs.IR
收藏

QE-RAG:一个针对查询输入错误的鲁棒检索增强生成基准

QE-RAG: A Robust Retrieval-Augmented Generation Benchmark for Query Entry Errors

Kepu Zhang, Zhongxiang Sun, Weijie Yu, Xiaoxue Zang, Kai Zheng, Yang Song, Han Li, Jun Xu

AI总结:

针对RAG基准未考虑用户查询输入错误的问题,提出首个鲁棒基准QE-RAG,通过注入错误评估模型表现,并设计基于对比学习的检索器训练与查询纠正方法,显著提升了RAG在查询错误下的鲁棒性且兼容现有方法。

摘要:

检索增强生成(RAG)已成为一种广泛采用的方法,用于增强大型语言模型(LLMs)的事实准确性。尽管当前的基准从多个角度评估了RAG方法的性能,但它们都有一个共同的假设,即用于检索的用户查询是无错误的。然而,在用户与LLMs的实际交互中,查询输入错误(如键盘邻近错误、视觉相似错误和拼写错误)频繁发生。这些错误对当前RAG方法的影响在很大程度上仍未被探索。为了弥补这一空白,我们提出了QE-RAG,这是第一个专门设计用于评估查询输入错误下性能的鲁棒RAG基准。我们通过以20%和40%的比例将三种常见类型的查询输入错误注入到随机选择的用户查询中,扩充了六个广泛使用的数据集,以模拟现实场景中的典型用户行为。我们分析了这些错误对LLM输出的影响,发现损坏的查询会降低模型性能,这可以通过查询纠正和训练鲁棒检索器来检索相关文档来缓解。基于这些见解,我们提出了一种基于对比学习的鲁棒检索器训练方法和一种检索增强的查询纠正方法。广泛的同领域和跨领域实验表明:(1)包括顺序、分支和迭代方法在内的最先进的RAG方法对查询输入错误表现出较差的鲁棒性;(2)我们的方法显著增强了RAG在处理查询输入错误时的鲁棒性,并且与现有RAG方法兼容,进一步提升了它们的鲁棒性。

英文摘要:

Retriever-augmented generation (RAG) has become a widely adopted approach for enhancing the factual accuracy of large language models (LLMs). While current benchmarks evaluate the performance of RAG methods from various perspectives, they share a common assumption that user queries used for retrieval are error-free. However, in real-world interactions between users and LLMs, query entry errors such as keyboard proximity errors, visual similarity errors, and spelling errors are frequent. The impact of these errors on current RAG methods against such errors remains largely unexplored. To bridge this gap, we propose QE-RAG, the first robust RAG benchmark designed specifically to evaluate performance against query entry errors. We augment six widely used datasets by injecting three common types of query entry errors into randomly selected user queries at rates of 20\% and 40\%, simulating typical user behavior in real-world scenarios. We analyze the impact of these errors on LLM outputs and find that corrupted queries degrade model performance, which can be mitigated through query correction and training a robust retriever for retrieving relevant documents. Based on these insights, we propose a contrastive learning-based robust retriever training method and a retrieval-augmented query correction method. Extensive in-domain and cross-domain experiments reveal that: (1) state-of-the-art RAG methods including sequential, branching, and iterative methods, exhibit poor robustness to query entry errors; (2) our method significantly enhances the robustness of RAG when handling query entry errors and it's compatible with existing RAG methods, further improving their robustness.

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

↑