DoPR: Reusable Compressed Document Prefixes for Efficient LLM Reranking

Beiya Dai, Yifan Wei, Guang Yang, Xing Shi, Xinbing Wang, Zhouhan LinarXiv 2026

TL;DR

Pointwise Large Language Model (LLM) reranking is highly effective for information retrieval but suffers from massive computational redundancy because the same document is re-encoded for every new query. DoPR (Document Prefix Framework) solves this by compressing documents into query-independent prefix states offline, allowing them to be cached and reused across different queries. This approach achieves up to an 8× reduction in online memory and over an 8× latency speedup while retaining 97.1%–99.5% of full-document ranking quality.

What Problem Does This Paper Address?

In modern search and retrieval pipelines, pointwise reranking—where an LLM independently scores the relevance of a query-document pair—is a standard paradigm for achieving high precision. However, it is incredibly expensive to deploy. In real-world retrieval systems, a single popular document might be retrieved for thousands of different queries over time. Standard pointwise rerankers re-encode the entire document every single time it is paired with a new query, leading to massive, redundant document-side computation.

Existing efficiency methods typically compress prompts on a per-query basis (losing the ability to reuse computation across queries) or rely on specialized late-interaction architectures (like ColBERT) that don't operate within standard pointwise LLM rerankers. DoPR addresses this gap by asking: Can we precompute and reuse document-side representations directly inside a pointwise LLM reranker?

Methods

DoPR decouples offline document processing from online query-time scoring using a three-stage framework:

  1. Attention-based Key Token Selection: To avoid adding a complex, trainable selector model, DoPR leverages the LLM's own internal knowledge. It runs a document-only forward pass and uses the final-layer self-attention matrix as a salience signal. Tokens that are heavily attended to by the rest of the document context are selected as "key tokens."
  2. Structured Attention Masking: During training, DoPR applies a specialized attention mask. This mask ensures that the query and scoring tokens can only access document information through the selected key tokens. This forces the model to compress ranking-critical information into a tight bottleneck.
  3. End-to-End Pairwise Training: The model is optimized using a pairwise RankNet loss function. This ensures that the compressed representations are tuned specifically for ranking relevance rather than generic text reconstruction.
  4. Offline Prefix Storage & Online Injection: At deployment, the selected key tokens are processed offline to generate multi-layer key-value (KV) states. When a query arrives online, these precomputed prefix states are injected directly into the LLM reranker. The model then only needs to compute attention for the query and a single scoring token.
Figure 1: Overview of DoPR. The framework consists of three stages: training phase, offline compression, and online reranking. During training, DoPR selects salient document token states as compressed document representations and optimizes the reranker end-to-end with the RankNet loss. During deployment, the selected document representations are converted into multi-layer prefix states, stored offline, and injected as pre-filled prefix states for efficient online reranking.
Figure 2: Structured attention mask used in training. The query and score tokens access document informa- tion only through the selected document representations.

Datasets

The authors evaluated DoPR across three major benchmarks using Qwen3 backbones ranging from 0.6B to 8B parameters, as well as a Llama-3.2-1B model:

  • TREC DL (2019 & 2020): Standard benchmarks for passage reranking with dense human relevance judgments.
  • BEIR: A diverse benchmark used to evaluate out-of-domain generalization across multiple retrieval tasks (including Covid, NFCorpus, Touche, DBPedia, SciFact, Signal, News, and Robust).
  • BRIGHT: A challenging, reasoning-intensive retrieval benchmark designed to test whether the compressed prefixes preserve complex, reasoning-relevant information.

Key Insights and Ideas

  • Query-Independent KV Caching: The core "aha" moment is that document representations can be decoupled from the query inside a standard pointwise LLM reranker by using pre-filled prefix states (KV caches).
  • Attention as a Free Selector: Self-attention concentration is a highly effective, zero-parameter signal for identifying which tokens carry the core information of a document.
  • Scale Tolerates Bottlenecks Better: Larger LLM backbones (4B and 8B) tolerate the prefix bottleneck significantly better than smaller models (0.6B). At larger scales, the performance gap between compressed prefixes and full-document processing virtually disappears.
  • Amortization Dynamics: The efficiency gains scale with document length and query volume. Long documents (like those in medical or academic datasets) see the largest speedups because the heavy lifting of document encoding is completely offloaded offline.

Key Results

  • Quality Retention: Across standard benchmarks, DoPR retains 97.1% to 99.5% of the average NDCG@10 of matched full-document rerankers. On the reasoning-heavy BRIGHT benchmark, it retains 98.6% to 99.1% effectiveness.
  • Memory Footprint: Achieves a constant 8.0× reduction in online document-side memory footprint across all datasets due to its 12.5% compression ratio.
  • Latency Speedup: Delivers a 1.21× to 1.84× speedup on shorter documents (TREC DL) and a massive 2.85× to 8.04× speedup on longer documents (Covid dataset).

As shown in Figure 3, the amortized speedup increases dramatically as the document reuse count ($r$) grows, making it incredibly efficient for high-traffic search engines.

Figure 3: Amortized speedup under controlled docu- ment reuse.
Figure 4: Effectiveness-efficiency trade-off under different inference prefix budgets Kinfer on DL19 and Covid. We vary Kinfer and report the corresponding document-side memory footprint, reranking latency, and NDCG@10.

Limitations and Future Work

  • Dependency on Document Reuse: DoPR relies on cross-query document reuse to amortize its offline prefix construction costs. For rapidly changing document collections (e.g., real-time social media streams) or rare documents, the amortization benefit is minimized.
  • Storage and Indexing Overhead: Shifting computation offline means storing multi-layer KV states for every document in the collection, which introduces non-trivial storage and indexing overhead.
  • Future Directions: The authors suggest exploring dynamic prefix budgets based on document complexity and extending the framework to handle highly dynamic document streams efficiently.

Summary updated

BibTeX
@misc{dai2026dopr,
  author = {Beiya Dai and Yifan Wei and Guang Yang and Xing Shi and Xinbing Wang and Zhouhan Lin},
  title = {{DoPR: Reusable Compressed Document Prefixes for Efficient LLM Reranking}},
  year = {2026},
  eprint = {2609.03311},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.03311},
}
Figure