LLM优化解锁实时成对重排序
LLM Optimization Unlocks Real-Time Pairwise Reranking
AI总结:
针对成对重排序提示(PRP)在实时应用中的高延迟问题,本文通过应用小模型、限制重排序集合等优化方法,实现延迟降低166倍(61.36秒→0.37秒/查询)且Recall@k性能微降,提升了LLM重排序的实时可行性。
摘要:
高效重排序从信息检索(IR)流水线中检索到的文档以提升检索增强生成(RAG)系统的整体质量,仍是一个重要且具挑战性的问题。近期研究强调了大型语言模型(LLMs)在重排序任务中的重要性,其中成对重排序提示(PRP)因其易用性和有效性成为一种有前景的即插即用方法。然而,该算法的固有复杂性,加上LLMs带来的高计算需求和延迟,使其在实时应用中的可行性受到质疑。为解决这些挑战,本文针对成对重排序展开聚焦研究,证明精心应用的优化方法可显著缓解这些问题。通过实施这些方法,我们实现了高达166倍的延迟降低,每个查询的延迟从61.36秒降至0.37秒,而Recall@k衡量的性能仅出现微小下降。我们的研究强调了此前被忽视的设计选择的重要性,例如使用更小的模型、限制重排序集合、使用更低精度、通过单向顺序推理减少位置偏差以及限制输出token。这些优化使基于LLM的重排序在对延迟敏感的实际部署中更高效、更可行。
英文摘要:
Efficiently reranking documents retrieved from information retrieval (IR) pipelines to enhance overall quality of Retrieval-Augmented Generation (RAG) system remains an important yet challenging problem. Recent studies have highlighted the importance of Large Language Models (LLMs) in reranking tasks. In particular, Pairwise Reranking Prompting (PRP) has emerged as a promising plug-and-play approach due to its usability and effectiveness. However, the inherent complexity of the algorithm, coupled with the high computational demands and latency incurred due to LLMs, raises concerns about its feasibility in real-time applications. To address these challenges, this paper presents a focused study on pairwise reranking, demonstrating that carefully applied optimization methods can significantly mitigate these issues. By implementing these methods, we achieve a remarkable latency reduction of up to 166 times, from 61.36 seconds to 0.37 seconds per query, with an insignificant drop in performance measured by Recall@k. Our study highlights the importance of design choices that were previously overlooked, such as using smaller models, limiting the reranked set, using lower precision, reducing positional bias with one-directional order inference, and restricting output tokens. These optimizations make LLM-based reranking substantially more efficient and feasible for latency-sensitive, real-world deployments.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。