Leveraging Passage Embeddings for Efficient Listwise Reranking with Large Language Models

Qi Liu, Bo Wang, Nan Wang, Jiaxin Mao
6/21/2024
cs.CLcs.IR

Official code: liuqi6777/pe_rank (51 stars, Apache-2.0, last commit 2024-12-07).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

liuqi6777/pe_rankOfficial100%
Apache-2.0

Leveraging passage embeddings for efficient listwise reranking with large language models.

512Shell, PythonFeb 2, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{liu2024leveraging,
  title  = {Leveraging Passage Embeddings for Efficient Listwise Reranking with Large Language Models},
  author = {Qi Liu and Bo Wang and Nan Wang and Jiaxin Mao},
  year   = {2024},
  eprint = {2406.14848},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.14848v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.14848.svg)](https://codeofpaper.com/paper/2406.14848)

Discussion