E2Rank: Your Text Embedding can Also be an Effective and Efficient Listwise Reranker

Qi Liu, Yanzhao Zhang, Mingxin Li, Dingkun Long, Pengjun Xie, Jiaxin Mao

TL;DR

$E^2\text{Rank}$ (Efficient Embedding-based Ranking) unifies text retrieval and listwise reranking into a single text embedding model, eliminating the high latency bottleneck of traditional LLM rerankers. By treating a listwise prompt as a pseudo-relevance feedback query, it achieves state-of-the-art ranking accuracy using simple cosine similarity, delivering up to a 5× inference speedup.

What Problem Does This Paper Address?

Modern search engines typically use a two-stage "retrieve-then-rerank" architecture to balance speed and accuracy. In the first stage, text embedding models quickly narrow down millions of documents to a small candidate pool (e.g., top 100) using vector similarity. In the second stage, Large Language Models (LLMs) act as "listwise rerankers," evaluating the query and all candidate documents together to capture fine-grained interactions.

While highly accurate, these LLM rerankers are incredibly slow and computationally expensive. They rely on autoregressive text generation to output a sorted list of document IDs, introducing massive prefilling and decoding delays that make real-time deployment impractical. The authors of this paper tackle a fundamental question: Can we transfer the powerful interaction signals of listwise LLM reranking into a fast, embedding-based framework that doesn't require autoregressive decoding?

Methods

The core innovation of $E^2\text{Rank}$ is re-interpreting the listwise reranking prompt as a Pseudo-Relevance Feedback (PRF) query. Instead of forcing the LLM to generate text (e.g., outputting [2] > [1] > [3]), $E^2\text{Rank}$ feeds the query and its top candidate documents into the model to generate a single, context-enriched query embedding. Reranking is then performed via simple cosine similarity between this new query vector and precomputed document vectors.

The authors implement a two-stage training pipeline:

  1. Stage I (Embedding Foundation): The model undergoes standard contrastive learning using an InfoNCE loss to align matching query-document pairs in a shared vector space.
  2. Stage II (Listwise Reranking Integration): The model is fine-tuned using multi-task learning. It optimizes a joint objective combining the InfoNCE loss (to preserve retrieval capabilities) and a pairwise RankNet loss. The training targets are distilled from a powerful teacher model (Qwen3-32B) that generates high-quality ranking permutations for the listwise prompts.
Overview of the $E^2\text{Rank}$ framework, its performance edge on BEIR, and its latency advantages over generative baselines.

Datasets

  • Training: Stage I utilizes the public portion of the E5 dataset (~1.5 million samples). Stage II uses a downsampled mixture of ~157k samples drawn from E5 and BGE-M3 benchmarks (including HotpotQA, MS MARCO, NQ, and Chinese datasets like cMedQAv2 and MMarco Chinese).
  • Evaluation: Reranking performance was tested on TREC DL (2019/2020), eight diverse subsets of the BEIR benchmark, and the reasoning-intensive BRIGHT benchmark. Pure embedding capability was validated using the Massive Text Embedding Benchmark (MTEB).

Key Insights and Ideas

  • Autoregressive Generation is Unnecessary for Ranking: The "secret sauce" of listwise LLM rerankers isn't the text generation process itself, but rather the rich contextual interactions that occur when a query and multiple documents are processed together in the same prompt window.
  • Listwise Prompts as Learned PRF: Embedding a prompt containing candidate documents acts as an implicit, automated form of pseudo-relevance feedback. Instead of using hand-crafted vector fusion rules (like classical Rocchio feedback), the model naturally learns how to weight and extract weak relevance signals from the surrounding context.
  • The Law of Diminishing Contextual Returns: Performance scales up as more candidate documents are packed into the listwise prompt, but it plateaus sharply around 20 documents. Adding more documents beyond this point introduces noise and can hurt ranking quality.
Analysis showing how performance plateaus around 20 input documents (left) and how listwise prompts create sharper score discrimination between relevant and irrelevant documents (right).

Key Results

  • State-of-the-Art Accuracy: $E^2\text{Rank}$ achieves state-of-the-art reranking performance on BEIR, outperforming strong fine-tuned listwise baselines like RankZephyr and ListT5, and even beating much larger zero-shot models like RankGPT-4o.
  • Significant Latency Reductions: By bypassing text generation entirely, $E^2\text{Rank}$ achieves up to a ~5× speedup over generative listwise models (such as RankQwen3) at the 8B parameter scale on the TREC-COVID dataset.
  • Dual-Capability Efficiency: Unlike specialized rerankers that ruin a model's base embedding space, $E^2\text{Rank}$ maintains highly competitive text embedding performance on MTEB, meaning a single model can handle both first-stage retrieval and second-stage reranking.

Limitations and Future Work

  • Architecture Constraints: The study focuses exclusively on decoder-only LLM embedding models. Validating the framework on encoder-only architectures remains an item for future work.
  • Context Window Bottlenecks: Because the listwise prompt length scales linearly with the number of candidate documents, processing exceptionally long documents or massive candidate pools could hit hardware memory limits or increase prefill latency.
  • First-Stage Dependency: The quality of the final reranking is bounded by the quality of the initial candidate pool. If the first-stage retriever fails to surface any relevant documents, the pseudo-relevance feedback mechanism has no good signals to exploit.

Summary updated

BibTeX
@misc{liu2025e,
  author = {Qi Liu and Yanzhao Zhang and Mingxin Li and Dingkun Long and Pengjun Xie and Jiaxin Mao},
  title = {{E2Rank: Your Text Embedding can Also be an Effective and Efficient Listwise Reranker}},
  year = {2025},
  eprint = {2510.22733},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.22733},
}
Figure