arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.14848cs.CLcs.IR
收藏

利用段落嵌入实现基于大语言模型的高效列表式重排序

Leveraging Passage Embeddings for Efficient Listwise Reranking with Large Language Models

Gaoling School of Artificial Intelligence(高瓴人工智能学院);Renmin University of China(中国人民大学);Jina AI(Jina AI公司)

Qi Liu, Bo Wang, Nan Wang, Jiaxin Mao

AI总结:

本文提出PE-Rank方法,利用段落嵌入作为上下文压缩,通过特殊标记输入和动态解码约束,提升基于LLM的列表式重排序效率,同时保持排序效果。

摘要:

最近的研究表明,使用大语言模型(LLMs)在段落排序中是有效的。列表式方法(如RankGPT)已成为该任务的最新技术。然而,RankGPT模型的效率受到LLM推理的最大上下文长度和相对高延迟的限制。为了解决这些问题,本文提出PE-Rank,利用单个段落嵌入作为良好的上下文压缩,以实现高效的列表式段落重排序。通过将每个段落视为特殊标记,我们可以直接将段落嵌入输入LLMs,从而减少输入长度。此外,我们引入一种推理方法,动态将解码空间约束到这些特殊标记,加速解码过程。为使模型适应重排序,我们采用列表式学习排序损失进行训练。在多个基准上的评估结果表明,PE-Rank显著提高了预填充和解码效率,同时保持有竞争力的排序效果。代码可在https://github.com/liuqi6777/pe_rank获取。

英文摘要:

Recent studies have demonstrated the effectiveness of using large language language models (LLMs) in passage ranking. The listwise approaches, such as RankGPT, have become new state-of-the-art in this task. However, the efficiency of RankGPT models is limited by the maximum context length and relatively high latency of LLM inference. To address these issues, in this paper, we propose PE-Rank, leveraging the single passage embedding as a good context compression for efficient listwise passage reranking. By treating each passage as a special token, we can directly input passage embeddings into LLMs, thereby reducing input length. Additionally, we introduce an inference method that dynamically constrains the decoding space to these special tokens, accelerating the decoding process. For adapting the model to reranking, we employ listwise learning to rank loss for training. Evaluation results on multiple benchmarks demonstrate that PE-Rank significantly improves efficiency in both prefilling and decoding, while maintaining competitive ranking effectiveness. The Code is available at https://github.com/liuqi6777/pe_rank.

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

↑