Manuscript Offprint
arXiv:2610.39610GistRank: Gist-Compressed Listwise Ranking with Large Language Models
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 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
Work done during internship at Tencent Yuanbao. Corresponding author

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.
2.1 Listwise Ranking
Ranking a candidate set as a whole rather than scoring documents in isolation has long been recognized as a principled formulation, and the earliest learning-to-rank approaches directly optimized list-level objectives that account for the relative ordering among all candidates (Cao et al., 2007; Xia et al., 2008; Burges, 2010). With the advent of pretrained language models, this paradigm was reframed as estimating relevance from deep contextualized interactions between a query and each document, first through cross-encoders that score pairs pointwise and then through sequence-to-sequence formulations (Nogueira & Cho, 2019; Nogueira et al., 2020; Zhuang et al., 2024). The emergence of large language models pushed this further by feeding an entire ordered list of passages into a single prompt and instructing the model to emit a permutation, which proved remarkably effective even in zero-shot settings and was subsequently distilled into smaller open models for practical deployment (Reddy et al., 2024; Qin et al., 2024). Subsequent methods have taken both accuracy and efficiency into account—for instance, sliding-window-based approaches (Sun et al., 2023), as well as those utilizing reinforcement learning or collaborative ranking (Liu et al., 2025b;c; 2026). In real-world retrieval, deploying listwise rankers requires both strong ranking performance and manageable inference costs. Yet existing token-level listwise methods have largely overlooked gist tokens trained with a discriminative ranking objective as a way to compress passage representations while retaining ranking-critical information.
2.2 Soft Context Compression
Using soft context compression for model inputs has become an effective way to reduce the computational overhead of model inference. A line of work has sought to shorten the context consumed by a language model by encoding long inputs into a handful of trainable soft tokens, where the seminal approach learns dedicated gist tokens that compress an entire instruction into a compact prefix while preserving its conditioning effect on subsequent generation (Mu et al., 2023). Building on this idea, later efforts scaled the compression to arbitrary contexts by training autoencoding objectives that reconstruct the original text from a few memory slots, or by recursively summarizing long documents into accumulated soft prompts that extend the effective context length (Chevalier et al., 2023; Ge et al., 2023; Deng et al., 2025). More recent studies have pushed the compression ratio to extreme regimes (Petrov et al., 2025; Tarasov et al., 2025; Mao et al., 2026), and integrated such condensed representations into retrieval-augmented pipelines to reduce the cost of conditioning on retrieved evidence (Li et al., 2025; Cheng et al., 2024; Lu et al., 2025). Furthermore, research has already extended pre-sorting compression to the token level in an effort to improve efficiency (Zhi et al., 2026; Lu et al., 2026). However, these works are primarily optimized for tasks such as representation compression or generative guidance, while capabilities regarding discriminative comparison tasks have been overlooked. There has no research repurposed gist-style soft tokens as compact passage representations for ranking.
3 Gist Compression for Ranking
3.1 Task Formulation
Given a user query and a list of candidate passages returned by a first-stage retriever, listwise ranking jointly compares the candidates and produces a permutation that orders them by their relevance to ,
where is the set of all permutations of , and identifies the passage placed at rank , with the aim of placing more relevant passages at earlier ranks. Let denote the token sequence of its argument. A full-text listwise ranker serializes all candidate passages into a ranking prompt. Its passage-content token count is
which grows with both the number of candidates and their average token length. Our goal is to preserve joint comparison while reducing the passage content consumed by the ranking phase.
3.2 Gist Compression
For a query–passage pair , the model first runs a compression phase over the serialized query and passage followed by gist tokens. The dense gist representation is defined as
where is the attention mask that forces the ranking-relevant information to pass through the gist positions. We further denote by the corresponding layer-wise KV-cache entries at these gist positions. The dense block is used for scoring, while is used as the compressed state consumed by the rank-phase forward pass.
With gist positions per passage, the candidate-content length in the rank phase becomes
These expressions describe the candidate-content length; query tokens, formatting tokens, and rank slots contribute additional positions to the complete rank prompt. Candidate compression is performed independently for each query–passage pair before joint ranking.
3.3 Motivation for GISTRANK
A gist trained only to predict text is encouraged to retain information sufficient for that prediction. Relevance ranking asks a different question: which of several candidate passages better satisfies this query? Passages may both contain terms that make the query predictable while differing in the specific evidence needed to order them. For example, a query about the cause of a condition may be predictable from passages that mention the condition, even if only one passage supplies the requested causal evidence. The representation must expose the distinction that affects their relative order, not just the shared topic.
4 Supervised Fine-tuning for GISTRANK
As shown in Figure 2, GISTRANK trains the same backbone in three stages: (i) query-predictive gist learning, (ii) pairwise preference training on search interactions, and (iii) listwise ranking adaptation. The gist token learned in earlier stages is reused throughout.
4.1 Stage 1: Gist Representation
Stage 1: learn the gist interface. Stage 1 learns gist representations by predicting the query associated with a passage, following the sentence-compression formulation of Tarasov et al. (2025). We use approximately 30 billion training tokens from search-engine queries and returned documents, packed into 4,096-token sequences. Observed query–passage associations provide supervision without additional relevance or preference labels.
The input is arranged as
Under the semi-bidirectional mask, passage tokens attend within the entire passage, and gist tokens attend to all passage and gist tokens. Query tokens attend only to the gist states and preceding

Figure 2: Overview of the training workflow. Stage 1 trains the ability to compress gist tokens. Stage 2 involves continued training to enhance discriminative capabilities using search data. Finally, Stage 3 aligns the model with listwise ranking objectives.
query tokens; passage and gist tokens cannot attend to the target query. Thus, passage information reaches query prediction through the gist tokens.
Let denote the passage gist states and the t-th query token. We minimize
with loss computed only over non-padding query tokens, excluding passage and gist positions.
4.2 Stage 2: Discriminative Capability
Stage 2 uses citation feedback from search-engine interactions as implicit preference supervision. For each query, the search engine returns results ordered by its ranking model. A result cited in the interaction is treated as , and a returned but uncited result as . We use approximately 15.36 million queries, each with one cited-uncited pair assigned labels 1 and 0. The texts come from the existing search data; citation feedback supplies the preference labels, no additional information is introduced.
For each query–passage pair , the input is arranged as:
The gist positions encode the passage before the query prompt is introduced. Under the attention mask, neither the query-prompt positions nor the final CLS position can attend directly to raw passage tokens, while CLS can attend to both the gist block and the query prompt. Consequently, the gist block serves as a compact document representation through which passage information reaches CLS. Pairwise supervision encourages the query-conditioned CLS state to distinguish the cited result from the uncited one, and encourages the gist representation to retain evidence useful for that distinction.
Let denote the final hidden state at CLS. A lightweight scoring head assigns
Let be the set of valid cited–uncited pairs within the same query in a training batch. We optimize a pairwise hinge loss:
Here, , the margin is fixed to 1, and . A batch without a valid cited–uncited pair contributes zero pairwise loss.
4.3 Stage 3: Listwise Ranking
Stage 3 adapts the learned gist representations to joint listwise ranking using the GPT-4o-annotated candidate orderings provided by Liu et al. (2025d).
(i) Compression phase. We independently encode each query–passage pair as:
Unlike Stage 2, the query now precedes the gist tokens, so their states can encode query-conditioned passage information. Before compression, we add a learned document-position embedding to each gist-token input embedding:
where is the candidate's position in the input list and the embedding table is indexed from zero. From this forward pass, we retain both the layer-wise gist keys and values and the final normalized gist hidden states.
(ii) Rank phase. We assemble the candidates' gist slots into a single rank prompt followed by RANK slots. At each transformer layer, the keys and values are replaced with those produced by the corresponding gist tokens; the keys use the slots' positions in the rank prompt for RoPE. The rank forward uses standard causal and padding masks. Let be the final hidden state of the -th RANK slot, and let be the mean of candidate 's final normalized gist states. We score candidate at output position by
where is the hidden dimension.
In Stage 2, the gist represents the passage before seeing the query, so the query-conditioned CLS state performs the discriminative comparison. In Stage 3, the gist itself is query-conditioned; mean pooling yields one candidate vector shared across output positions, while the RANK states capture listwise context.
For valid candidates, let identify the candidate at teacher rank . We optimize a rank-slot formulation of ListMLE Xia et al. (2008):
Here, contains the remaining teacher candidates. Gradients reach compression through pooled gist states and injected layer-wise keys and values. At inference, each rank slot selects the highest-scoring unselected candidate. Padded candidates are excluded from loss and selection.
5 Experiment
5.1 Experimental Setup
Evaluation Datasets.
We utilized the TREC DL 2019 (Craswell et al., 2020) and TREC DL 2020 (Craswell et al., 2021) datasets for our evaluation experiments, and also employed various datasets from the BEIR benchmark (Thakur et al., 2021) for performance comparisons. Specifically, we selected five publicly available subsets from the BEIR collection (including Covid, DBPedia, SciFact, NFCorpus and Touche) to conduct evaluations.
Baselines.
For the primary efficiency experiments, we used Qwen3-4B (Yang et al., 2025) as the base model and performed Supervised Fine-Tuning (SFT) on the same training set using two approaches: full-context ranking and ranking based on a summary extracted via BM25 for each passage.
| Model | Strategy | DL19 | DL20 | ||||
|---|---|---|---|---|---|---|---|
| P50 (ms) | TFLOPs/q | Relative latency | P50 (ms) | TFLOPs/q | Relative latency | ||
| Qwen3-SFT-Full | Sliding window | 43,304 | 132.34 | 26.65× | 32,093 | 132.24 | 19.64× |
| Qwen3-SFT-Full | One-shot full list | 22,827 | 71.44 | 14.05× | 22,760 | 71.62 | 13.93× |
| Qwen3-SFT-Summary | Sliding window | 42,169 | 56.95 | 25.95× | 30,595 | 55.31 | 18.72× |
| Qwen3-SFT-Summary | One-shot full list | 18,312 | 28.35 | 11.27× | 18,305 | 28.22 | 11.20× |
| GISTRANK | Gist | 1,625 | 158.66 (85.05) | 1.00× | 1,634 | 160.16 (86.12) | 1.00× |
Table 1: Efficiency comparison on DL19 and DL20. Relative latency is each method's P50 divided by that of GISTRANK. Parentheses give FLOPs excluding padding. Latencies cover the complete reranking pipeline.
Each SFT model was implemented in both full-context and sliding-window variants, serving as direct benchmarks for efficiency. Regarding performance experiments, in addition to the basic BM25Robertson & Zaragoza (2009) baseline, we included the following models for comparison spanning pointwise, sliding-window, full-context, and embedding-based approaches: monoBERT (340M) (Nogueira & Cho, 2019), monoT5 (220M) (Nogueira et al., 2020), RankT5 (3B) (Zhuang et al., 2024), RankVicuna (7B) (Pradeep et al., 2023a), RankZephyr (7B) (Pradeep et al., 2023b), FullRank₁₀₀ (7B) (Liu et al., 2025d), and PE-RankBM25 (7B) (Liu et al., 2025a). MonoBERT, monoT5, RankT5, PE-Rank and FullRank were trained on annotated query-passage pairs from the MS MARCO training set, whereas RankVicuna and RankZephyr were derived from ranking lists generated by GPT-4.
Metrics.
We evaluate our method from two perspectives: efficiency and retrieval quality. For efficiency, we report three metrics:
-
P50 latency (ms/query) is the median end-to-end wall-clock time per query, reflecting the responsiveness perceived by users in online serving.
-
TFLOPs/query is the number of floating-point operations per query, expressed in trillions, indicating how effectively a method utilizes the available compute.
-
Relative latency is the ratio of a baseline's P50 latency to that of GISTRANK under the same evaluation environment.
For effectiveness, we adopt nDCG@10, which jointly assesses the relevance and the ranking order of the top-10 retrieved results, rewarding methods that place highly relevant documents near the top of the list.
Implementation Details.
We adopt Qwen3-4B-Base as the backbone to study efficient listwise reranking with a compact open-source language model. The backbone provides a 32k context window. For Stage 3, we reuse the MS MARCO-based candidate lists and GPT-4o-annotated teacher permutations provided by Liu et al. (2025d), using a single training epoch by default. The controlled full-text, summary, and gist variants use the same Stage 3 training examples and teacher permutations. We compress each passage into 4 gist tokens, and adopt a listwise ranking window of size 100. The model is optimized with a micro batch size of 1 and a global batch size of 8, using a learning rate of . Training is conducted on a single node with GPUs using the DeepSpeed framework (Rasley et al., 2020) and bfloat16 mixed precision. All evaluations, including both effectiveness and latency measurements, are performed on a single H20 GPU.
5.2 Efficiency Performance
In this section, we conduct efficiency experiments on DL19 and DL20 to verify that GISTRANK substantially accelerates listwise ranking, which is the central motivation of this work. Specifically, we rerank the top-100 passages retrieved by BM25 and compare three ranking regimes: the conventional sliding window (with a window size of 20 and a step size of 10), full ranking that consumes the entire list in a single pass, and our gist-token ranking. As controlled full-context baselines, we build two SFT variants on the same Qwen3-4B backbone as GISTRANK: one that serializes every passage verbatim, and one that first condenses each passage into a BM25-extracted summary. We
| Models | Strategies | DL19 | DL20 | Covid | DBPedia | SciFact | NFCorpus | Touché | Avg. |
|---|---|---|---|---|---|---|---|---|---|
| BM25 | - | 50.58 | 47.96 | 59.47 | 31.80 | 67.89 | 33.75 | 44.22 | 47.95 |
| monoBERT(340M) | Pointwise | 70.72 | 67.28 | 73.45 | 41.69 | 62.22 | 34.92 | 30.26 | 54.36 |
| monoT5(220M) | Pointwise | 70.58 | 67.33 | 75.94 | 42.43 | 65.07 | 35.42 | 46.98 | 57.68 |
| RankT5(3B) | Pointwise | 72.29 | 69.14 | 79.03 | 44.85 | 74.60 | 38.19 | 34.66 | 58.97 |
| RankVicuna(7B) | Sliding | 67.72 | 65.98 | 79.19 | 44.51 | 70.67 | 34.51 | 33.00 | 56.51 |
| RankZephyr(7B) | Sliding | 73.39 | 70.02 | 82.92 | 44.42 | 75.42 | 31.41 | 30.22 | 58.26 |
| FullRank₁₀₀(7B) | Full | 72.55 | 71.29 | 82.24 | 43.54 | 77.04 | 39.14 | 34.63 | 60.06 |
| PE-RankBM25(7B) | Embedding | 70.48 | 63.54 | 77.72 | 40.05 | 69.38 | 36.39 | 33.06 | 55.80 |
| Qwen3-SFT-Full | Sliding | 72.83 | 69.47 | 77.67 | 42.18 | 74.68 | 37.50 | 30.24 | 57.80 |
| Full | 72.58 | 68.30 | 76.52 | 41.70 | 73.34 | 36.17 | 31.57 | 57.17 | |
| Qwen3-SFT-Summary | Sliding | 64.25 | 58.59 | 67.18 | 36.09 | 70.08 | 33.33 | 31.11 | 51.52 |
| Full | 64.45 | 61.14 | 69.11 | 35.60 | 70.34 | 33.58 | 32.19 | 52.34 | |
| GISTRANK | Gist Token | 73.88 | 70.82 | 82.42 | 43.20 | 75.46 | 36.27 | 32.15 | 59.17 |
Table 2: Effectiveness nDCG@10 results across seven datasets. Bold represents the best results, while underlined denotes the second-best.
report end-to-end P50 latency, TFLOPs per query, and relative latency with respect to GISTRANK. When calculating the TFLOPs for GISTRANK, we report both the computational cost associated with the padding process and the computational cost attributed to the actual padded tokens.
Table 1 reports the corrected SFT efficiency measurements on DL19 and DL20. One-shot full-list ranking consistently achieves lower latency than sliding-window ranking. On DL19, processing the full list reduces P50 latency from 43,304 ms to 22,827 ms, and using BM25 passage summaries further lowers it to 18,312 ms. The corresponding DL20 latencies are 32,093 ms, 22,760 ms, and 18,305 ms. These results suggest that repeated processing of overlapping passages and input length both contribute to ranking latency. GISTRANK compresses the candidates into gist states and performs joint ranking in one non-autoregressive forward pass, with total P50 latencies of 1,625 ms on DL19 and 1,634 ms on DL20, including candidate compression and KV assembly. Relative to one-shot full-text ranking, these latencies give 14.05×/13.93× speedups; relative to full-text sliding-window ranking, the factors are 26.65×/19.64×. The corresponding factors for summary-based one-shot and sliding-window ranking are 11.27×/11.20× and 25.95×/18.72×, respectively. The gains reflect the complete inference procedure, including batched candidate compression and non-autoregressive ranking, rather than the isolated effect of shortening the rank prompt. Therefore, GISTRANK demonstrates a significant efficiency advantage throughout the entire inference process.
5.3 Effectiveness Performance
In this section, we evaluate the ranking effectiveness of GISTRANK. We rerank the top-100 passages retrieved by BM25 and report nDCG@10 on seven datasets, including the two TREC deep-learning sets DL19 and DL20 as well as five BEIR subsets covering diverse domains, namely TREC-COVID, DBPedia, SciFact, NFCorpus, and Touché. We compare against a broad set of baselines that spans pointwise, sliding-window, full-context, and embedding-based models, and further include two Qwen3-4B variants trained under full-context and summary-based settings. Finally, we report the nDCG@10 results for each subset, as well as the average performance across the seven datasets.
The results are presented in Table 2. Despite compressing each passage into only a few gist tokens, GISTRANK achieves an average nDCG@10 of 59.17, ranking second among all evaluated methods and trailing the strongest baseline, FullRank₁₀₀, by 0.89 points. On the in-domain TREC datasets, GISTRANK achieves the highest score on DL19 at 73.88 and the second-highest score on DL20 at 70.82. These results suggest that compact gist representations retain relevance information needed for effective ranking. Compared with the Qwen3-SFT-Full baselines built on the same backbone, GISTRANK improves average nDCG@10 by 1.37 points over sliding-window ranking and 2.00 points over full-list ranking, demonstrating that its compact representations support competitive effectiveness even when compared with methods that retain the original passage text. In Section 5.4, we establish a more direct performance reference by employing a full-text rank slot variant based on the uncompressed outputs from Stage 2. The comparison with Qwen3-SFT-Summary further highlights the effectiveness of learned soft compression: GISTRANK exceeds the summary-based baselines by 6.83–7.65 points on average. This gap suggests that learned gist representations preserve ranking-relevant information more effectively than BM25-extracted
| Configuration | Candidate input | DL19 | DL20 | COVID | DBPedia | SciFact | NFCorpus | Touché | Avg. |
|---|---|---|---|---|---|---|---|---|---|
| Stage 1 → Stage 2 → Stage 3 (GISTRANK) | Gist | 73.88 | 70.82 | 82.42 | 43.20 | 75.46 | 36.27 | 32.15 | 59.17 |
| Stage 1 → Stage 3 (w/o Stage 2) | Gist | 71.34 | 66.55 | 80.61 | 41.19 | 72.74 | 34.11 | 30.23 | 56.68 |
| Matched full-text reference | Full text | 75.15 | 67.86 | 80.24 | 45.02 | 74.99 | 36.53 | 40.80 | 60.09 |
Table 3: Ablation results in nDCG@10 across seven datasets. The full-text reference shares the Stage 2 initialization, Stage 3 training data, hyperparameters, training steps, and rank-slot readout with GISTRANK.
| Inference stage | DL19 | DL20 | ||||||
|---|---|---|---|---|---|---|---|---|
| Latency | Computation | Latency | Computation | |||||
| Mean (ms) | Share | TFLOPs/q | Share | Mean (ms) | Share | TFLOPs/q | Share | |
| Candidate compression | 1,450.23 | 92.85% | 149.09 | 93.97% | 1,463.74 | 92.89% | 150.59 | 94.03% |
| KV assembly | 1.30 | 0.08% | - | - | 1.32 | 0.08% | - | - |
| Joint ranking + scoring | 110.39 | 7.07% | 9.56 | 6.03% | 110.69 | 7.02% | 9.57 | 5.97% |
| Total | 1,561.93 | 100% | 158.66 | 100% | 1,575.75 | 100% | 160.16 | 100% |
Table 4: Stage-wise inference cost of GISTRANK on DL19 and DL20. Latency is reported as the per-query mean. Computation include padding and exclude KV assembly.
summaries. On the out-of-domain five BEIR datasets, performance varies across domains, but GISTRANK remains competitive on Covid and DBPedia, achieving scores of 82.42 and 43.20, respectively. Its overall average also exceeds those of the evaluated baselines, although individual methods retain advantages on particular datasets. These results indicate that GISTRANK can significantly reduce ranking latency while still maintaining robust overall ranking performance.
5.4 Ablation Study
Table 3 examines the contribution of Stage 2 and the effectiveness retained by gist compression. Since Stage 3 provides the listwise training required by the final ranking task, we retain it in both gist variants and ablate only Stage 2. Removing Stage 2 reduces average nDCG@10 from 59.17 to 56.68, a decrease of 2.49 points, with degradation across all seven datasets. The largest drop occurs on DL20, from 70.82 to 66.55, followed by SciFact, from 75.46 to 72.74. These consistent
improvements suggest that learning to compress passages in Stage 1 does not fully capture the discriminative information needed for ranking, and that the citation-derived preference supervision in Stage 2 provides a useful initialization for subsequent listwise training. At the same time, the variant without Stage 2 remains competitive after Stage 3, indicating that Stage 2 strengthens ranking effectiveness rather than being a prerequisite for learning the ranking task.
| Input-order variant | DL19 | DL20 |
|---|---|---|
| Shuffled order | 73.95 | 70.24 |
| Original order | 73.88 | 70.82 |
Table 5: Input-order for GISTRANK: nDCG@10 with shuffled and original candidate orders.
The matched full-text reference shares the Stage 2 initialization, Stage 3 data, hyperparameters, training steps, and 100-rank-slot readout with GISTRANK. Both compute the two-dimensional scores from Equation 10, optimize the same ListMLE objective, and use identical permutation selection. Only the candidate representation changes from explicit passage content to gist tokens. We use this as a full-text baseline under the same configuration, serving as no compression effectiveness reference, while ensuring that no context window overflow occurs. The full-text reference obtains 60.09 average nDCG@10 versus 59.17 for GISTRANK, a difference of 0.92 points. This result shows that gist compression retains much of the effectiveness achievable by the same scoring design with access to explicit passage content.
Moreover, we evaluate input order as an inference-time variant by shuffling the candidate list before reranking. Table 5 compares this variant with the original input order on DL19 and DL20. Shuffling changes nDCG@10 from 73.88 to 73.95 on DL19 and from 70.82 to 70.24 on DL20. These small changes, with opposite directions across datasets, suggest that GISTRANK has limited sensitivity to the initial candidate order in this experiment. This is consistent with ranking decisions guided by query-conditioned candidate representations rather than dominated by the original retrieval order. This demonstrates that our method is robust to the ordering of input positions.
5.5 Inference-cost accounting
We analyze the inference cost of GISTRANK by separating candidate compression, KV assembly, and joint ranking. Latency measurements cover the complete reranking pipeline, from processing the query and candidate passages to producing the final ranked candidate list. Table 4 shows that candidate compression dominates inference latency, accounting for approximately 92.9% of total time on both datasets. Its mean latency is 1,450.23 ms on DL19 and 1,463.74 ms on DL20, whereas joint ranking requires only 110.39 ms and 110.69 ms, respectively. KV assembly contributes less than 0.1% of total time. Including all three stages, total P50 latency is 1,624.66 ms on DL19 and 1,634.37 ms on DL20. These results show that gist representations make listwise ranking inexpensive, with query-conditioned candidate encoding accounting for most of the remaining overhead.
The computation breakdown follows the same pattern. Candidate compression requires 149.09 and 150.59 TFLOPs/q on DL19 and DL20, accounting for approximately 94% of total estimated operations. Joint ranking requires only 9.56 and 9.57 TFLOPs/q, bringing the totals to 158.66 and 160.16 TFLOPs/q. Although these totals exceed those of the one-shot baselines, GISTRANK achieves lower latency through batched candidate compression and joint ranking over compact gist states. The stage-wise results identify candidate compression as the main target for further latency improvements.
5.6 Parameter Analysis
In this section, we analyze the effect of the number of gist tokens , which is used to compress each passage in Stage 3. This critical hyperparameter controls the number of inserted gist tokens, representing the trade-off between the compression rate and the amount of relevance signal preserved for each segment. To isolate the general representational capacity of gist tokens, we remove the explicit query from the Stage 3 ranking format and retrain the model while keeping all other settings fixed. This diagnostic evaluates whether the compressed passage states themselves remain useful for ranking. We vary and report the average nDCG@10 across all seven evaluation datasets.
The results are presented in Figure 3. Performance increases rapidly when grows from 1 to 4, showing that a small number of gist tokens is sufficient to recover useful passage signal. After , however, the curve enters a clear saturation region: adding more gist tokens brings only marginal gains while increasing the context length and computation. This diminishing return suggests that larger gist representations provide limited additional benefit for ranking, while requiring the joint rank phase to process more candidate-token positions. We therefore view as the elbow point of the efficiency-effectiveness trade-off. It preserves sufficient ranking quality while keeping the representation compact, and we adopt as the default hyperparameter.

Figure 3: Parameter analysis across seven datasets. Performance rises sharply up to and then saturates, making a favorable efficiency-effectiveness trade-off.
5.7 Token Cost
In this section, we quantify the rank-stage token cost to explain, at the token level, why GISTRANK is both faster and more predictable than the baselines. As shown in Table 6, we measure the rank-stage prompt length on DL19 and DL20 for passages. At the per-passage level, serializing a passage verbatim consumes about 79 tokens and a BM25 summary about 26, whereas GISTRANK represents each passage with only 4 gist tokens in the rank phase. This propagates to the full listwise rank input: over the candidates, the median full-text prompt spans more than 8,000 tokens on both DL19 and DL20 and the summary prompt around 3,000, while GISTRANK needs only about 1,250. This result shows that GISTRANK drastically reduces the context length of the listwise rank phase. A more distinctive property of GISTRANK is that every candidate contributes exactly gist slots regardless of its
| Case Study: "causes of left ventricular hypertrophy" | |
|---|---|
| (a) Full Context | 115 tokens |
| Chamber Hypertrophy and Enlargement. In hypertrophy the heart muscle becomes thicker. ... a congenital misalignment of cardiomyocytes, resulting in hypertrophy. | |
| (b) BM25 Summary | 28 tokens |
| Left ventricular hypertrophy results from an increase in left ventricular workload, e.g., during hypertension or aortic valve stenosis. | |
| (c) GISTRANK | 4 tokens |
| <|gist_0|> <|gist_1|> <|gist_2|> <|gist_3|> | |
Figure 4: A single DL19 candidate passage under the three ranking protocols. Full Context feeds the whole passage (115 tokens, abbreviated here), BM25 Summary keeps one 28-token sentence, and GISTRANK represents the passage with gist tokens.
raw length. This near-constant rank-phase length makes the downstream latency, the KV-cache footprint, and the batching throughput more predictable.
Figure 4 makes this compression concrete by rendering one candidate passage under the three protocols. The full text keeps all 115 tokens, the summary retains only the single sentence that directly answers the query, and GISTRANK collapses the whole passage into 4 gist tokens. Although the summary happens to preserve the answering sentence, it discards the passage's discussion of alternative causes that a ranker may need to distinguish this candidate from its competitors; GISTRANK keeps the discriminative signal that Stage 2 is trained to preserve by a fixed number of gist tokens. By combining a fixed-size
| Strategy | Per-psg. | Prompt (N=100) | Reduct. | |
|---|---|---|---|---|
| DL19 | DL20 | |||
| Full | 79 | 8,358 | 8,590 | 1.0× |
| Summary | 26 | 3,015 | 2,884 | 2.8× |
| Gist Token | 4 | 1,253 | 1,254 | 6.8× |
Table 6: Rank-stage prompt length on DL19 and DL20 with candidates. Representing each passage with four gist tokens reduces the full-list prompt to about 1.25k tokens, yielding a reduction over full-context serialization.
ranking representation with competitive ranking performance and low inference latency, GISTRANK offers predictable rank-stage costs and practical potential for deployment in search systems.
6 Conclusion
In this paper, we introduce GISTRANK, a three-stage training framework for gist-compressed listwise ranking. The framework combines query-predictive gist learning, citation-derived pairwise supervision, and listwise adaptation to optimize compact passage representations for relevance ranking. Experiments on TREC DL19/20 and five BEIR subsets show that GISTRANK achieves competitive average nDCG@10. GISTRANK reduces reranking latency relative to autoregressive SFT baselines, while approaching the effectiveness of a full-text reference with the same rank-slot scoring procedure. These results highlight the potential of GISTRANK for efficient deployment in practical search systems. The inference-cost breakdown shows that candidate compression accounts for most of the remaining latency, motivating further optimization of this stage. Future work will investigate query-independent passage compression that allows gist states to be precomputed and reused across queries.
References
Christopher JC Burges. From ranknet to lambdarank to lambdamart: An overview. Learning, 11 (23-581):81, 2010.
Zhe Cao, Tao Qin, Tie-Yan Liu, Ming-Feng Tsai, and Hang Li. Learning to rank: from pairwise approach to listwise approach. In Proceedings of the 24th international conference on Machine learning, pp. 129–136, 2007.
Xin Cheng, Xun Wang, Xingxing Zhang, Tao Ge, Si-Qing Chen, Furu Wei, Huishuai Zhang, and Dongyan Zhao. xrag: Extreme context compression for retrieval-augmented generation with one token. Advances in Neural Information Processing Systems, 37:109487–109516, 2024.
Alexis Chevalier, Alexander Wettig, Anirudh Ajith, and Danqi Chen. Adapting language models to compress contexts. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 3829–3846, 2023.
Nick Craswell, Bhaskar Mitra, Emine Yilmaz, Daniel Campos, and Ellen M. Voorhees. Overview of the trec 2019 deep learning track, 2020. URL https://arxiv.org/abs/2003.07820.
Nick Craswell, Bhaskar Mitra, Emine Yilmaz, and Daniel Campos. Overview of the trec 2020 deep learning track, 2021. URL https://arxiv.org/abs/2102.07662.
Chenlong Deng, Zhisong Zhang, Kelong Mao, Shuaiyi Li, Xinting Huang, Dong Yu, and Zhicheng Dou. A silver bullet or a compromise for full attention? a comprehensive study of gist token-based context compression. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 4861–4879, 2025.
Jincheng Feng, Wenhan Liu, and Zhicheng Dou. Sumrank: Aligning summarization models for long-document listwise reranking. arXiv preprint arXiv:2603.24204, 2026.
Tao Ge, Jing Hu, Lei Wang, Xun Wang, Si-Qing Chen, and Furu Wei. In-context autoencoder for context compression in a large language model. arXiv preprint arXiv:2307.06945, 2023.
Zongqian Li, Yixuan Su, and Nigel Collier. 500xcompressor: Generalized prompt compression for large language models. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 25081–25091, 2025.
Nelson F Liu, Kevin Lin, John Hewitt, Ashwin Paranjape, Michele Bevilacqua, Fabio Petroni, and Percy Liang. Lost in the middle: How language models use long contexts. Transactions of the association for computational linguistics, 12:157–173, 2024.
Qi Liu, Bo Wang, Nan Wang, and Jiaxin Mao. Leveraging passage embeddings for efficient listwise reranking with large language models. In Proceedings of the ACM on Web Conference 2025, pp. 4274–4283, 2025a.
Wenhan Liu, Xinyu Ma, Weiwei Sun, Yutao Zhu, Yuchen Li, Dawei Yin, and Zhicheng Dou. Reason-rank: Empowering passage ranking with strong reasoning ability. arXiv preprint arXiv:2508.07050, 2025b.
Wenhan Liu, Xinyu Ma, Yutao Zhu, Lixin Su, Shuaiqiang Wang, Dawei Yin, and Zhicheng Dou. Coranking: Collaborative ranking with small and large ranking agents. arXiv preprint arXiv:2503.23427, 2025c.
Wenhan Liu, Xinyu Ma, Yutao Zhu, Ziliang Zhao, Shuaiqiang Wang, Dawei Yin, and Zhicheng Dou. Sliding windows are not the end: Exploring full ranking with long-context large language models. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 162–176, 2025d.
Wenhan Liu, Yutao Zhu, Zhicheng Dou, and Yujia Zhou. Demorank: Selecting effective demonstrations for large language models in ranking task. ACM Transactions on Information Systems, 44(3): 1–25, 2026.
Songshuo Lu, Hua Wang, Yutian Rong, Zhi Chen, and Yaohua Tang. Turborag: Accelerating retrieval-augmented generation with precomputed kv caches for chunked text. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pp. 6599–6612, 2025.
Xuan Lu, Haohang Huang, Yingqi Fan, Junlong Tong, Yuxuan Zhang, Ping Nie, Rui Meng, and Xiaoyu Shen. Comprank: Efficient llm reranking via token-level compression and decoding-free scoring. arXiv preprint arXiv:2606.11700, 2026.
Xueguang Ma, Xinyu Zhang, Ronak Pradeep, and Jimmy Lin. Zero-shot listwise document reranking with a large language model. arXiv preprint arXiv:2305.02156, 2023.
Yuzhen Mao, Michael Y Li, and Emily B Fox. Forget, then recall: Learnable compression and selective unfolding via gist sparse attention. arXiv preprint arXiv:2604.20920, 2026.
Jesse Mu, Xiang Li, and Noah Goodman. Learning to compress prompts with gist tokens. Advances in Neural Information Processing Systems, 36:19327–19352, 2023.
Rodrigo Nogueira and Kyunghyun Cho. Passage re-ranking with bert. arXiv preprint arXiv:1901.04085, 2019.
Rodrigo Nogueira, Zhiying Jiang, Ronak Pradeep, and Jimmy Lin. Document ranking with a pretrained sequence-to-sequence model. In Findings of the association for computational linguistics: EMNLP 2020, pp. 708–718, 2020.
Aleksandar Petrov, Mark Sandler, Andrey Zhmoginov, Nolan Miller, and Max Vladymyrov. Long context in-context compression by getting to the gist of gisting. arXiv preprint arXiv:2504.08934, 2025.
Ronak Pradeep, Sahel Sharifymoghaddam, and Jimmy Lin. Rankvicuna: Zero-shot listwise document reranking with open-source large language models. arXiv preprint arXiv:2309.15088, 2023a.
Ronak Pradeep, Sahel Sharifymoghaddam, and Jimmy Lin. Rankzephyr: Effective and robust zero-shot listwise reranking is a breeze! arXiv preprint arXiv:2312.02724, 2023b.
Zhen Qin, Rolf Jagerman, Kai Hui, Honglei Zhuang, Junru Wu, Le Yan, Jiaming Shen, Tianqi Liu, Jialu Liu, Donald Metzler, et al. Large language models are effective text rankers with pairwise ranking prompting. In Findings of the Association for Computational Linguistics: NAACL 2024, pp. 1504–1518, 2024.
Jeff Rasley, Samyam Rajbhandari, Olatunji Ruwase, and Yuxiong He. Deepspeed: System optimizations enable training deep learning models with over 100 billion parameters. In Proceedings of the 26th ACM SIGKDD international conference on knowledge discovery & data mining, pp. 3505–3506, 2020.
Revanth Gangi Reddy, JaeHyeok Doo, Yifei Xu, Md Arafat Sultan, Deevya Swain, Avirup Sil, and Heng Ji. First: Faster improved listwise reranking with single token decoding. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pp. 8642–8652, 2024.
Stephen Robertson and Hugo Zaragoza. The probabilistic relevance framework: BM25 and beyond, volume 4. Now Publishers Inc, 2009.
Weiwei Sun, Lingyong Yan, Xinyu Ma, Shuaiqiang Wang, Pengjie Ren, Zhumin Chen, Dawei Yin, and Zhaochun Ren. Is chatgpt good at search? investigating large language models as re-ranking agents. In Proceedings of the 2023 conference on empirical methods in natural language processing, pp. 14918–14937, 2023.
Dmitrii Tarasov, Elizaveta Goncharova, and Kuznetsov Andrey. Sentence-anchored gist compression for long-context llms. arXiv preprint arXiv:2511.08128, 2025.
Nandan Thakur, Nils Reimers, Andreas Rücklé, Abhishek Srivastava, and Iryna Gurevych. Beir: A heterogenous benchmark for zero-shot evaluation of information retrieval models. arXiv preprint arXiv:2104.08663, 2021.
Fen Xia, Tie-Yan Liu, Jue Wang, Wensheng Zhang, and Hang Li. Listwise approach to learning to rank: theory and algorithm. In Proceedings of the 25th international conference on Machine learning, pp. 1192–1199, 2008.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.
Zhewei Zhi, Yingyi Zhang, Yizhen Jing, Xianneng Li, Jianing Liu, Huajie Liu, and Yongliang Ding. Compress-then-rank: Faster and better listwise reranking with large language models via ranking-aware passage compression. 2026.
Honglei Zhuang, Zhen Qin, Kai Hui, Junru Wu, Le Yan, Xuanhui Wang, and Michael Bendersky. Beyond yes and no: Improving zero-shot llm rankers via scoring fine-grained relevance labels. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 2: Short Papers), pp. 358–370, 2024.