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

利用排序模型增强问答文本检索:面向RAG的重排序器基准测试、微调与部署

Enhancing Q&A Text Retrieval with Ranking Models: Benchmarking, fine-tuning and deploying Rerankers for RAG

NVIDIA(英伟达)

Gabriel de Souza P. Moreira, Ronay Ak, Benedikt Schifferer, Mengyao Xu, Radek Osmulski, Even Oldridge

AI总结:

该研究针对RAG系统的问答文本检索场景,对多款公开排序模型做基准测试,提出NV-RerankQA-Mistral-4B-v3模型实现约14%准确率提升,还通过消融实验分析多因素影响并探讨工业应用权衡。

摘要:

排序模型在提升文本检索系统的整体准确性方面发挥着关键作用。这类多阶段系统通常利用稠密嵌入模型或稀疏词汇索引,根据给定查询检索相关段落,随后由排序模型根据段落与查询的相关性优化候选段落的排序。\n本文对多种公开可用的排序模型进行了基准测试,并考察了它们对排序准确性的影响。我们聚焦于问答任务的文本检索——这是检索增强生成(Retrieval-Augmented Generation,RAG)系统的常见应用场景。我们的评估基准涵盖了部分具备工业应用商业可行性的模型。\n我们提出了一款前沿排序模型NV-RerankQA-Mistral-4B-v3,与搭载其他重排序器的流水线相比,该模型实现了约14%的显著准确率提升。我们还开展了消融研究,对比了不同规模、损失函数和自注意力机制下排序模型的微调效果。\n最后,我们探讨了搭载排序模型的文本检索流水线在实际工业应用中的挑战,尤其是模型规模、排序准确性与索引、服务延迟/吞吐量等系统需求之间的权衡。

英文摘要:

Ranking models play a crucial role in enhancing overall accuracy of text retrieval systems. These multi-stage systems typically utilize either dense embedding models or sparse lexical indices to retrieve relevant passages based on a given query, followed by ranking models that refine the ordering of the candidate passages by its relevance to the query. This paper benchmarks various publicly available ranking models and examines their impact on ranking accuracy. We focus on text retrieval for question-answering tasks, a common use case for Retrieval-Augmented Generation systems. Our evaluation benchmarks include models some of which are commercially viable for industrial applications. We introduce a state-of-the-art ranking model, NV-RerankQA-Mistral-4B-v3, which achieves a significant accuracy increase of ~14% compared to pipelines with other rerankers. We also provide an ablation study comparing the fine-tuning of ranking models with different sizes, losses and self-attention mechanisms. Finally, we discuss challenges of text retrieval pipelines with ranking models in real-world industry applications, in particular the trade-offs among model size, ranking accuracy and system requirements like indexing and serving latency / throughput.

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

↑