Manuscript Offprint

arXiv:2610.39610

GistRank: Gist-Compressed Listwise Ranking with Large Language Models

Guo Chen, Wenhan Liu, Reed Li, Qianwen Ma, Yu Lu, Haibo Shi, Bingbing Xu, Junjie Huang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language models (LLMs) have become a powerful tool for listwise relevance ranking, which can improve web search by comparing retrieved passages jointly. However, processing every candidate verbatim and generating a permutation autoregressively can make inference costly, every candidate must be serialized verbatim into the prompt and the input therefore grows linearly with both the number and the length of the passages. While sliding-window ranking handles context limits through repeated re-encoding of overlapping blocks, hard compression techniques sacrifice the fine-grained details required for accurate discriminative judgment. To better understand and mitigate this trade-off, we conduct a comprehensive study of soft compression for LLM-based listwise ranking. Our findings reveal that a vanilla gist representation is ill-suited to ranking for two reasons: strictly causal encoding weakens how thoroughly each gist token absorbs its passage, and the representation is never trained to expose the relative-preference structure that separates closely competing candidates. To this end, we propose GISTRANK, a three-stage training framework that equips a large language model with gist-compressed passage representations by learning faithful gist tokens under a semi-bidirectional attention scheme, instilling discriminative comparison through pairwise training, and adapting the model to the listwise objective. GISTRANK collapses each passage into only K=4 gist tokens, this gives 14×14\times speedups over one-shot full-text ranking while reaching 59.17 average nDCG@10 over TREC DL19/20 and five BEIR subsets within 0.89 of the strongest full-context baseline. Overall, GISTRANK provides an effective means to enhance efficiency for searches in real-world environments.

1 Introduction

Large language models have rapidly become a powerful tool for relevance ranking, where a single model is prompted with a query alongside an ordered list of candidate passages and asked to directly emit the permutation that best reflects their relevance (Sun et al., 2023; Ma et al., 2023; ?). This listwise formulation lets the model reason jointly over all candidates and exploit cross-passage comparisons that pointwise and pairwise scorers cannot capture, and it has proven so effective that the capability of proprietary models has been distilled into compact open-source rankers that now serve as strong and reproducible baselines (Pradeep et al., 2023a;b). Driven by these successes, listwise ranking with large language models has quickly become a central paradigm in modern retrieval pipelines. However, in web search and retrieval-augmented applications, the response must also be produced within an inference budget. A conventional listwise reranker serializes the candidate passages into the ranking prompt. Its input grows with both the number and length of passages, even when the entire list fits inside the model's context window (Liu et al., 2024). A long candidate list, or passages that are individually long, quickly inflates inference latency, degrading both ranking quality and responsiveness. As shown in Figure 1, the prevailing remedy is to process the list through a sliding window that reranks overlapping blocks and propagates the ordering across passes (Sun et al., 2023; Liu et al., 2025d), but this comes at the cost of repeatedly re-encoding overlapping content. These costs motivate reducing the information consumed by the ranking stage, while explicitly accounting for any work needed to prepare that information.

A promising solution is to compress each passage before ranking, for example, extracting a

1^{1}Work done during internship at Tencent Yuanbao. †^{\dagger}Corresponding author

Figure

Figure 1: Comparison of existing listwise ranking strategies: Sliding Window, Full Ranking and GISTRANK, corresponding to panels (a), (b), and (c), respectively.

summary or embedding the passage (Feng et al., 2026; Liu et al., 2025a). Besides, a family of soft-compression methods encodes long inputs into a handful of trainable gist tokens that retain the conditioning effect of the original text while drastically shortening the sequence (Mu et al., 2023; Ge et al., 2023). We argue that such compression is a natural fit for improving inference efficiency in ranking tasks, as it could replace each verbatim passage with a compact set of gist tokens. Prior work has in fact measured gist and KV-level compression on reranking and reported a large gap to full attention (Deng et al., 2025), but has treated that gap as an intrinsic cost of compression. We argue it is instead a feature of the compression objective: relevance judgment hinges on fine-grained, query-conditioned distinctions among closely competing candidates, whereas objectives optimised for reconstruction or generative conditioning are never asked to preserve those distinctions. In ranking, the compressed states must expose relative preference across candidates, not merely preserve a useful account of each passage. Bridging this gap therefore requires adapting the gist representation so that it preserves the discriminative signals on which ranking depends.

We propose GISTRANK, which equips a large language model with compressed gist tokens passage representations for efficiency listwise ranking through a three-stage training procedure. In the first stage, we learn faithful gist representations: fixed-length documents are followed by a set of gist tokens that are in turn concatenated with the query, with the query trailing the gist tokens. The model is trained to predict the subsequent tokens conditioned solely on the gist, while granting the gist tokens richer bidirectional access to their source context. In the second stage, with the gist tokens visible, but the original documents hidden, we train these representations on real-world search engine interaction data with pairwise objectives, instilling the discriminative capability required to distinguish competing candidates for the purpose of ranking. In the third stage, we continue training the model directly on labeled ranking data, so that it learns to leverage the gist tokens to produce the listwise permutation both efficiently and accurately.

We evaluate both relevance and inference cost rather than treating a shorter prompt as proof of a faster complete pipeline. Over TREC DL19/20 and five BEIR subsets, GISTRANK obtains 59.17 mean nDCG@10. GISTRANK has total end-to-end P50 latencies of 1,625 ms on DL19 and 1,634 ms on DL20. Relative to the one-shot full-text baseline these correspond to 14.05× and 13.93× speedups. The measurement includes compression, KV assembly, and ranking. Direct stage measurements show that the compact rank forward accounts for only about 7% of the model time: most work remains in candidate compression. This confirms that compressed segments can significantly reduce overhead during the inference phase. These results highlight the potential of gist-compressed ranking for scalable search applications.

Our main contributions are threefold:

  • We articulate the mismatch between gist objectives for compact conditioning and the relative-preference information required for listwise relevance ranking, and use it to motivate ranking-aware training.
  • We propose GISTRANK, a three-stage training method that first learns compressed gist representations, then continues training on real-world search engine data to enhance discriminative ability, and finally adapts gist tokens to efficient listwise ranking.
  • We evaluate both ranking effectiveness and end-to-end latency on TREC DL19/20 and

five BEIR subsets, demonstrating substantially lower latency than the controlled full-text baselines while maintaining competitive average nDCG@10.

References (35)