Manuscript Offprint
arXiv:2611.02550ReRank: Listwise Reranking with Reasoning-Conditioned Retrieval Heads
RE³RANK: Listwise Reranking with Reasoning-Conditioned Retrieval Heads
Ruiyi Yan*
Kyoto University
Yugo Murawaki†
Kyoto University
Zhuoyuan Mao
LIGHTSPEED
zhuoyuanmao@global.tencent.com
Yiwen Guo‡
Independent Researcher
Abstract
Attention-based rerankers score each candidate by the attention mass that retrieval heads route to it from the question, but the question, serving as a fixed query, carries limited information for locating relevant evidence. We propose RE³RANK, a listwise reranker built on reasoning-conditioned retrieval heads (RRHeads). A generator first writes a reasoning trace over the question and the candidates, and a scorer then uses the trace tokens as the attention query of a few selected RRHeads, reading relevance as continuous scores. We present a straight-through estimator to propagate the ranking loss through the discrete trace, so that the generator and the scorer can be trained jointly for ranking. Averaged over 9 benchmarks, RE³RANK outperforms 11 baseline rerankers: our 4B variant exceeds the strongest baseline by 3.11 NDCG@10 points on average, and even our 0.6B variant surpasses rerankers with up to 32B parameters.
Advanced LLM-based rerankers commonly reason and verbalize relevance as a sequence of candidate identifiers (Zhang et al., 2025a; Liu et al., 2026), but verbalization can distort the model's internal judgments (Li et al., 2023; Chen et al., 2025), and long generated outputs slow down inference. A complementary line of work probes relevance directly from internal attention. Retrieval heads

Figure 1: NDCG@10 (%) of rerankers averaged over 9 datasets, against model size (left) and reranking time per query at a batch size of 50 (right).¹
locate relevant information in long contexts (Wu et al., 2025b), and query-focused retrieval heads (QRHeads) score each candidate by the attention mass it receives from the question (Zhang et al., 2025b; Li et al., 2026c).
However, existing QRHead-based rerankers fix the attention query to the tokens of the original question, which often lack the information needed to locate relevant evidence. Reasoning rerankers do make intermediate reasoning steps explicit, but they still convert their reasoning into a verbalized permutation. Written after reading the candidates, such reasoning is more expressive than the question, as it spells out information that the question omits, such as bridge entities and intermediate facts. This raises the question of whether it can replace the question as the attention query.
Inspired by this, we propose RE³RANK, a listwise reranker built on reasoning-conditioned retrieval heads (RRHeads), as illustrated in Fig-
*This work was done during internship at LIGHTSPEED. †Corresponding authors. The code is available at github.com/ryehr/RE3RANK, and models at huggingface.co/collections/Ryehr/re3rank.
¹The size of RE³RANK refers to its backbone. Its generator and scorer both have this size but run one after the other, so the number of parameters activated at any time equals the indicated size, which makes the comparison with the baselines fair in terms of loaded parameters.

Figure 2: Overview of RE³RANK. A first-stage retriever returns candidates for the question from the corpus. The generator writes a reasoning trace from the question and the candidates, and the scorer reads the same input followed by the reasoning trace. Of all attention heads in the scorer, only a few selected RRHeads are used: each candidate is scored by the attention mass that these heads route from the reasoning trace positions to it. The ranking loss updates both components and reaches the generator through a straight-through estimator.
ure 2. Given a question and its candidate pool, a reasoning generator first writes a reasoning trace. A separate scorer then uses the trace tokens as the attention queries of selected RRHeads and scores each candidate by the attention mass it receives.
Our contributions are as follows. First, we identify the attention query as a dimension of attention-based rerankers and introduce RRHeads with a generated reasoning trace as the attention query while scoring candidates continuously in one forward pass. Second, we introduce a straight-through joint training method to train the reasoning generator and the scorer jointly for ranking with a mixed ranking objective. Third, we build three RE³RANK rerankers on Qwen3 backbones at 0.6B, 4B, and 8B (Yang et al., 2025), which outperform 11 baseline rerankers on 9 benchmarks (Figure 1). The 4B variant exceeds QRRanker (4B) by 3.31 R@3 and 3.11 NDCG@10 on average, and even the 0.6B variant outperforms every baseline, including 32B rerankers, in Recall@3, Recall@5, and NDCG@10. Besides, RE³RANK can serve as the retrieval component of a memory system, and the methods of RE³RANK are compatible with Gemma 4 backbones (Team et al., 2026).
2 Preliminaries
2.1 Post-Retrieval Reranking
Retrieval-augmented generation (RAG) supplements a language model's parametric knowledge with non-parametric evidence retrieved from an external corpus, providing explicit context for knowledge-intensive reasoning and grounded generation while helping mitigate hallucinations (Lewis et al., 2020; Guu et al., 2020; Izacard and Grave, 2021; Li et al., 2024). In practical RAG pipelines, an efficient first-stage retriever constructs a candidate pool, after which a more expressive second-stage reranker can refine its ordering before generation (Karpukhin et al., 2020; Nogueira and Cho, 2020; Glass et al., 2022; Chuang et al., 2023; Zhou et al., 2025). Let denote a question and the candidate set returned by a first-stage retriever. For training and evaluation, each candidate carries a gold binary relevance label , collected in ; the labels come mostly from dataset annotations (Appendix C.3) and are not available to the reranker at inference. We write and for the indices of the in-pool relevant and irrelevant candidates, respectively.
A reranker maps the question and the candidate set to one real-valued score per candidate and or-ders the candidates by decreasing score:
Here, denotes reranker parameters. Let denote the distribution over labeled reranking instances . For a target cutoff , a reranking objective is to maximize the conditional Recall@ (R@) over the candidate pool:
Here, denotes the indices of the highest scores, and normalization by restricts recall to relevant candidates present in the candidate pool.
2.2 Reranking Paradigms
Rerankers are commonly categorized by how many candidates they compare at once. (1) Pointwise methods score each query–candidate pair independently (Nogueira and Cho, 2020; Yang et al., 2026; Chen et al., 2026). They scale linearly with the pool size but cannot use other candidates as context for an individual decision. (2) Pairwise methods instead predict a preference between two candidates and aggregate such local comparisons into a global order (Qin et al., 2024; Luo et al., 2025). (3) Listwise methods expose the model to multiple candidates and output either a permutation or a score vector (Sun et al., 2023; Gangi Reddy et al., 2024; Ren et al., 2025; Yan et al., 2026). This enables cross-candidate reasoning, at the cost of longer prefilled contexts. Recent listwise rerankers further generate a reasoning chain before the permutation (Zhang et al., 2025a; Liu et al., 2026). Zhang et al. (2025b) and Li et al. (2026c) show that listwise rerankers based on query-focused retrieval heads (QRHeads) can achieve state-of-the-art performance by extracting relevance directly from internal attention patterns. Such internal probing, rather than verbalized relevance judgments or generated permutations, offers a promising direction for LLM-based reranking.
2.3 Query-Focused Retrieval Heads (QRHeads)
Consider a decoder-only Transformer applied to a sequence in which the candidate contexts precede the question. At layer and head , let and be the query and key vectors at positions and , and let be the head dimension. The causally masked attention weight
is , normalized over the positions , with for future positions . Let denote the contiguous span of positions occupied by the tokens of candidate in the sequence, and let denote a set of attention-query positions, such as the positions occupied by the tokens of . Since the candidates precede , every satisfies for all . The attention mass routed from to candidate is
Wu et al. (2025b) identify retrieval heads as attention heads associated with locating relevant information in long contexts. Building on this idea, Zhang et al. (2025b) and Li et al. (2026c) select query-focused retrieval heads (QRHeads) whose query-to-context attention predicts relevance on a small annotated set. Let denote the selected heads. A QRHead reranker sets and instantiated Eq. 1 by averaging Eq. 3 over these heads, for :
The score vector is thus read directly from attention, without decoding document identifiers or a ranking permutation.
3 RERANK
Existing QRHead-based rerankers optimize head selection or the scoring model while fixing the attention query to . They therefore treat what serves as the attention query as immutable, overlooking the optimization space of constructing query content that better routes attention toward relevant candidates. This work addresses this neglected dimension by replacing the fixed question positions with a model-generated reasoning trace, making query construction itself trainable. Retrieval heads used in this way are termed reasoning-conditioned retrieval heads (RRHeads).
3.1 Overview
RERANK comprises a reasoning generator and a separate attention-based scorer . They are initialized from the same backbone. Given a question and its candidate pool (retrieved from the first-stage retriever), first produces a reasoning trace. then uses the trace-token positions in place of in Eq. 3 and computes continuous candidate scores. To optimize the generator despite the discrete trace, we connect the two models with a straight-through relaxation, allowing the selected ranking objective to jointly train both components.
3.2 Reasoning Trace Generation and Scoring
We denote the generator prompt as the token sequence , where denotes ordered concatenation. TokenPrompt preserves the candidate order, and applies the backbone model's native instruction format. The generator continues the prompt with a reasoning trace , whose tokens are sampled autoregressively:
Here, .
The trace occupies query positions . Using Eq. 3 to compute the attention mass from with a selected RRHead set , Eq. 4 becomes
is identified on a small labeled seed set by ranking heads according to the attention mass they assign to relevant candidates; Section 4.1 gives the selection criterion and the resulting heads.
The procedure above also defines the inference procedure: generates a trace , after which uses as its attention-query positions, computes Eq. 6, and sorts candidates by .
3.3 Ranking Objectives
Raw attention masses vary in scale across examples. The scores of each candidate pool are first normalized to :
where controls the score scale and ensures numerical stability. In the default setting, they are instantiated with 8 and , respectively.
3.3.1 Contrastive Cross-Entropy Loss
The primary objective is a grouped contrastive cross-entropy:
(8)
Each relevant candidate is contrasted against every irrelevant candidate in the same pool, and examples with are excluded. However, the loss keeps enlarging margins that are already correct, spending gradient on relevant candidates that outrank every irrelevant one rather than on those still outranked (Sun et al., 2020; Patel et al., 2022).
3.3.2 Recall@k Surrogate Loss
Recall@k, in contrast, depends only on whether relevant candidates cross the top-k boundary. Inspired by Patel et al. (2022), we target this boundary directly by relaxing the discrete rank and the top-k indicator with the tempered sigmoid
For each relevant candidate , its soft rank and the soft number of relevant candidates within the top k are
(10)
(11)
Here, controls the rank relaxation and controls the top- boundary. Clipping and normalizing by account for the maximum attainable number of hits. For a set of cutoffs , the Recall@k surrogate is
The surrogate can supplement the contrastive:
3.4 Straight-Through Joint Training
The generator and scorer define the joint stochastic objective
(14)
Here, denotes the score vector in Eq. 6. The sampled tokens in Eq. 5 block direct pathwise differentiation with respect to . We therefore use a straight-through estimator (Bengio et al., 2013). After one hard trace is sampled without gradients, is run once under teacher forcing on . Let and denote the shared vocabulary size and scorer hidden dimension, respectively, and let be the scorer's frozen token-embedding matrix. The logits at position , which predict , and the corresponding relaxed token distribution are
Here, is the straight-through relaxation temperature. The scorer embedding at trace position is constructed as
where denotes stop-gradient. Numerically, the two relaxed terms cancel in the forward pass, so . In the backward pass, however,
The scorer's embedding gradient therefore becomes a token-level signal for the generator through the softmax Jacobian. This estimator is biased, as it substitutes a relaxed backward path for the derivative of discrete sampling, but it provides a low-variance differentiable route into . A single backward pass updates both and .²
4 Experiments
4.1 RRHead Selection
RRHeads were selected independently for each Qwen3 backbone scale (Yang et al., 2025) before
| Source | #Questions | Avg. Gold | Avg. Tokens |
|---|---|---|---|
| NarrativeQA | 12,000 | 2.47 | 10,213 |
| MuSiQue | 12,000 | 1.83 | 7,378 |
| ConvoMem | 7,000 | 2.06 | 10,390 |
| QAConv | 5,000 | 1.05 | 9,857 |
| FriendsQA | 2,000 | 1.01 | 11,940 |
| Total | 38,000 | 1.93 | 9,394 |
Table 1: Statistics of the training mixture by source dataset. Avg. Gold is the mean number of in-pool relevant candidates per question; Avg. Tokens is the mean prompt length before the generated trace.
training. The base model first greedily generated a reasoning trace for each instance in a seed set of 800 labeled instances. Every attention head of the backbone (28 layers 16 heads for 0.6B and for 4B and 8B) was then scored by the average attention mass that the trace positions route to relevant candidates:
where , , and were computed for each instance as in Section 3.2. The two highest-scoring heads formed . The selected sets were for Qwen3-0.6B, for Qwen3-4B, and for Qwen3-8B. Appendix A details this procedure for Qwen3-4B.
4.2 Implementations of Training
The training mixture contained 38,000 English questions drawn from NarrativeQA (Kočiský et al., 2018), MuSiQue (Trivedi et al., 2022), ConvoMem (Pakhomov et al., 2025), QAConv (Wu et al., 2022), and FriendsQA (Yang and Choi, 2019). Each instance contained a question, for which up to 50 candidates were retrieved by Qwen3-Embedding-8B (Zhang et al., 2025c) before reranking. All constructed instances contained at least one relevant candidate. Table 1 summarizes the number of questions and in-pool relevant candidates per question, and mean prompt length for each source.³
4.3 Implementations of Evaluation
4.3.1 Benchmarks
We evaluated on nine English test sets that span four retrieval regimes: Wikipedia multi-hop QA with HotpotQA (Yang et al., 2018), 2WikiMulti-hopQA (Ho et al., 2020), and MuSiQue (Trivedi
²Appendix E details a discussion of the implications of this update for trace generation.
³Appendix C.1 gives the training hyperparameters.

Figure 3: Conditional R@3 (%) of rerankers across model sizes on the nine benchmarks and their macro average (Macro-9). Lines connect sizes of the same model family, and the dashed line marks the first-stage ranking of Qwen3-Embedding-8B.
et al., 2022); open-domain factoid QA with Natural Questions (NQ) (Kwiatkowski et al., 2019) and PopQA (Mallen et al., 2023); long-narrative QA with the NarrativeQA (Kočiský et al., 2018) subset of HELMET (Yen et al., 2025) and the English portion of DetectiveQA (Xu et al., 2025b); and long-term conversational memory with LoCoMo (Maharana et al., 2024) and LongMemEval-S (Wu et al., 2025a). For every question, the first-stage retriever of Section 4.2 returned the top 50 candidates from a dataset-specific retrieval scope, and all rerankers scored the same candidate pools.
4.3.2 Baselines
RE RANK was compared with rerankers from the paradigms introduced in Section 2.2: the QRHead-based listwise reranker QRRanker (Li et al., 2026c), built on Qwen3-4B; the pointwise rerankers Qwen3-Reranker (Zhang et al., 2025c) at 0.6B, 4B, and 8B and zerank-2 (Pipitone et al., 2025) at 4B; the listwise reranker jina-rerankerv3.5 (Nasika et al., 2026) at 0.6B; the reasoning listwise rerankers REARANK (Zhang et al., 2025a) at 7B and ReasonRank (Liu et al., 2026) at 7B and 32B; and the generative groupwise reranker GroupRank (Long et al., 2026) at 7B and 32B. All methods reranked the same top-50 candidate pools.
4.4 Main Results
Configuration. Unless stated otherwise, in Eq. 13 used throughout the paper, with cutoffs and temperatures for the Recall@k surrogate in Eqs. 10–12. RE RANK variants in this section were trained with this objective. The three scales shared the training recipe of Section 4.2 and differed only in the backbone and . At inference, the generator decoded greedily with at most 1,024 trace tokens.
Overall comparison. Figure 3 compares the R@3 of rerankers across model sizes. Appendix B defines R@3 and normalized discounted cumulative gain (NDCG@10; Järvelin and Kekäläinen, 2002), shows the corresponding NDCG@10 comparison in Figure 8, and reports all results in Tables 8–11. With the 4B backbone, RE RANK reaches 76.70 R@3 and 82.23 NDCG@10 on Macro-9, exceeding the strongest baseline, QR-Ranker, by 3.31 and 3.11 points and the first-stage ranking by 14.61 and 11.96 points.
Parameter efficiency. At each scale, RE RANK outperforms the size-matched Qwen3-Reranker by 9.05–9.28 R@3 and 8.02–8.79 NDCG@10 points on Macro-9. The 0.6B variant already achieves higher Macro-9 R@3, R@5, and NDCG@10 than every baseline, including GroupRank-32B and ReasonRank-32B; it exceeds ReasonRank-32B by
Appendix C.2 describes the corpora and chunking.

Figure 4: NDCG@10 gain of RE³RANK (4B) over QR-Ranker on each benchmark, measured as a difference and shown with the mean number of in-pool relevant chunks per question from Table 12.
1.24 R@3 and 1.33 NDCG@10 points. Scaling RE³RANK from 0.6B to 4B adds 3.15 R@3 and 2.56 NDCG@10 points.
Comparison with reasoning rerankers. REARANK and ReasonRank also reason over the candidates before ranking, but output the ranking as a generated permutation. The stronger ReasonRank-32B reaches 72.31 R@3 and 78.34 NDCG@10 on Macro-9, 4.39 and 3.89 points below RE³RANK (4B). This gap indicates effectiveness of probing relevance from internal attention compared to verbalizing the model's relevance judgments as a discrete sequence of candidate identifiers which can distort them in the process.
Comparison with QRRanker. QRRanker shares the attention-mass scoring of Eq. 3 and the Qwen3-4B backbone with RE³RANK (4B) but uses the question as the attention query. RE³RANK (4B) achieves higher NDCG@10 than QRRanker on all nine datasets and higher R@3 on eight, with the largest R@3 gains on NarrativeQA (+10.89), NQ (+5.32), and PopQA (+4.70). Figure 4 further shows that the NDCG@10 gain grows with the number of in-pool relevant chunks per question (Spearman across the nine datasets). The two datasets with the fewest such chunks, PopQA and LoCoMo, gain less than 1.5 points, whereas NQ, which has the most, gains 5.45 points; NarrativeQA is an outlier with an 11.00-point gain. This trend is consistent with reasoning traces helping most when relevant evidence spans several chunks.
4.5 Ablation Study
4.5.1 Ablation Study of Query Construction
Table 2 compares query construction on Qwen3-4B. QR denotes query-focused retrieval with QRHeads
| Method | R@1 | R@3 | R@5 | N@10 |
|---|---|---|---|---|
| QR (base) | 41.14 | 69.16 | 77.06 | 76.12 |
| RR (base) | 41.15+0.01 | 71.73+2.57 | 79.60+2.54 | 77.52+1.40 |
| QR (trained) | 42.76 | 74.05 | 81.98 | 80.33 |
| RR (trained) | 44.20+1.44 | 76.70+2.65 | 84.01+2.03 | 82.23+1.90 |
Table 2: Comparison of query construction for Qwen3-4B, reported as Macro-9 scores (%). QR uses a single model with the question tokens as attention queries and its top-2 QRHeads, (23, 10) and (15, 11). RR uses the generator's reasoning trace as attention queries with the RRHeads (23, 10) and (21, 8). Base rows kept all weights untrained, and trained rows were trained with in Eq. 13. Subscripts give the gain of RR over QR under the same training setting.

Figure 5: Ablation of joint training for RE³RANK (4B) trained with , reported as Macro-9 scores (%). Four settings refer to whether the generator () and the scorer () were trained or kept at their base weights.
(Section 2.3), where a single model scores candidates with the question tokens as attention queries. RR denotes reasoning-conditioned retrieval with RRHeads (Section 3), where the attention queries are the reasoning trace generated by a separate model. Without training, RR already improves over QR by 2.57 R@3 and 1.40 NDCG@10 points. After both were trained with , RR outperforms QR on all four metrics, by 1.44 R@1, 2.65 R@3, 2.03 R@5, and 1.90 NDCG@10 points. Appendix J analyzes which parts of the trace contribute to this advantage.
4.5.2 Ablation Study of Joint Training and Ranking Objectives
Figure 5 isolates the contributions of training the generator and the scorer (4B models). Without any training, RRHeads computed on base-model reasoning traces reach 71.73 R@3. Training only the generator, with the scorer frozen, raises R@3 by 1.52 points, and training only the scorer, with the generator frozen, raises it by 4.62 points, which means that training the scorer is more effective
| Objective | R@1 | R@3 | R@5 | N@10 |
|---|---|---|---|---|
| 43.91 | 76.57 | 83.87 | 82.05 | |
| 43.77_{-0.14}^{+0.14} | 75.60_{-0.97}^{+0.97} | 83.09_{-0.78}^{+0.78} | 81.35_{-0.70}^{+0.70} | |
| 43.79_{-0.12}^{+0.12} | 76.81_{+0.24}^{+0.24} | 83.75_{-0.12}^{+0.12} | 81.99_{-0.06}^{+0.06} | |
| 44.53_{+0.62}^{+0.62} | 76.49_{-0.08}^{+0.08} | 83.72_{-0.15}^{+0.15} | 82.28_{+0.23}^{+0.23} | |
| 44.20_{+0.29}^{+0.29} | 76.70_{+0.13}^{+0.13} | 84.01_{+0.14}^{+0.14} | 82.23_{+0.18}^{+0.18} | |
| 44.15_{+0.24}^{+0.24} | 76.62_{+0.05}^{+0.05} | 83.98_{+0.11}^{+0.11} | 82.19_{+0.14}^{+0.14} |
Table 3: Ablation of ranking objectives for RE³RANK (4B), reported as Macro-9 scores (%). used and , and all rows used the score scale in Eq. 7 unless noted. Subscripts give the difference from the first row, with gains in green and losses in red. Main configuration. Bold marks the best result in each column.
than training the generator. Joint training achieves the best result on all four metrics and improves over scorer-only training by 0.35 R@3 and 0.40 NDCG@10 points, indicating that the generator and scorer benefit from being optimized together.
Table 3 compares ranking objectives for the 4B model. The Recall@k surrogate alone yields the highest R@3 but slightly lowers the other metrics, whereas adding it to gives higher R@1 and NDCG@10 than either objective alone for every weight . With , improves over on all four metrics. Appendix D analyzes these results in detail, including the effect of the score scale .
Appendix F compares straight-through training with reinforcement learning, which yields no notable gain over scorer-only training.
4.6 RE³RANK as a Memory Retrieval Component
RE³RANK can also serve as the retrieval component of a memory system. On LoCoMo, each reranker ordered the same 50 Qwen3-Embedding-8B candidates, and only the top-3 chunks were passed to a generator LLM for question answering; Appendix G describes the setup and reports full results. Reranking raises overall F1 over the first-stage order by 16.48–18.79 points, whereas switching among GPT-4o-mini, GPT-5-mini, and GPT-6-luna as the generator changes it by at most 2.07 points. With GPT-4o-mini, all three RE³RANK variants achieve higher overall F1 than every memory framework reported by Li et al. (2026c).
4.7 Efficiency
Figure 6 compares accuracy with reranking time per query under batched inference. RE³RANK

Figure 6: Macro-9 R@3 (left) and NDCG@10 (right) against reranking time per query. For each test set, 50 sampled queries were submitted as one batch, and the wall-clock time until all were scored was divided by 50 and averaged over the nine test sets.
| Backbone | R@1 | R@3 | R@5 | N@10 |
|---|---|---|---|---|
| Qwen3-0.6B | 42.34 | 73.55 | 81.43 | 79.67 |
| Qwen3-4B | 44.20 | 76.70 | 84.01 | 82.23 |
| Qwen3-8B | 44.12 | 76.68 | 84.36 | 82.36 |
| Gemma-4-E2B | 44.00 | 75.44 | 82.99 | 81.47 |
| Gemma-4-E4B | 44.51 | 77.14 | 84.06 | 82.54 |
Table 4: Macro-9 results (%) of RE³RANK with Qwen3 and Gemma 4 backbones, all trained with . Bold marks the best result in each column.
(0.6B) is slightly faster than QRRanker and jina-reranker-v3.5 (0.26 vs. 0.28 s) while achieving higher accuracy, and the 4B and 8B variants add 3.3 R@3 points over QRRanker at 0.81 and 0.93 s per query, respectively. Truncating the reasoning trace at inference further trades accuracy for speed without retraining (Appendix H).
4.8 Generality
RE³RANK is not tied to a particular model family. To verify this, we applied the same training procedure to Gemma-4-E2B and Gemma-4-E4B (Team et al., 2026), selecting their RRHeads as in Section 4.1. As Table 4 shows, both Gemma variants reach Macro-9 accuracy comparable to the Qwen3 variants and outperform every baseline on all four metrics. The mixed objective also improves over on both Gemma backbones, as it does on Qwen3-4B (Appendix I).
5 Conclusion
We presented RE³RANK, a listwise reranker built on reasoning-conditioned retrieval heads.
RE³RANK uses a generated reasoning trace as the attention query of a few selected RRHeads and reads relevance as continuous attention scores, without verbalizing a permutation. A straight-through estimator carries the ranking loss through the discrete reasoning trace, so that the generator and the scorer can be trained jointly. On nine benchmarks, RE³RANK outperforms existing rerankers across model scales, with its smallest 0.6B variant already surpassing much larger baselines. Its design transfers across backbones, and its gains in downstream QA suggest its potential as the retrieval component of agentic memory systems.
Limitations
The generator of RE³RANK is optimized only through the ranking loss, so its reasoning traces carry no guarantee of linguistic quality or readability to humans. In addition, all experiments rerank a fixed pool of the top 50 candidates returned by a single first-stage retriever, Qwen3-Embedding-8B. Owing to constraints on computational resources and experimental scale, the correctness of the traces and the behavior of RE³RANK with other retrievers or with larger candidate pools, which may exceed the context window, remain to be explored.
References
Yoshua Bengio, Nicholas Léonard, and Aaron Courville. 2013. Estimating or propagating gradients through stochastic neurons for conditional computation. Preprint, arXiv:1308.3432.
Shijie Chen, Bernal Jimenez Gutierrez, and Yu Su. 2025. Attention in large language models yields efficient zero-shot re-rankers. In International Conference on Learning Representations, volume 2025, pages 73047–73069.
Xiaoyang Chen, Jie Liu, Haijin Liang, Haibo Shi, Jin Ma, Ben He, Yingfei Sun, and Dezhi Ye. 2026. Beyond polarization: The generative constraint of chain-of-thought in pointwise reranking. Preprint, arXiv:2608.30398.
Prateek Chhikara, Dev Khant, Saket Aryan, Taranjeet Singh, and Deshraj Yadav. 2025. Mem0: Building production-ready AI agents with scalable long-term memory. In Proceedings of the 28th European Conference on Artificial Intelligence (ECAI 2025), Frontiers in Artificial Intelligence and Applications, pages 2993–3000. SAGE Publications.
Yung-Sung Chuang, Wei Fang, Shang-Wen Li, Wen-tau Yih, and James Glass. 2023. Expand, rerank, and retrieve: Query reranking for open-domain question answering. In Findings of the Association for Computational Linguistics: ACL 2023, pages 12131–12147, Toronto, Canada. Association for Computational Linguistics.
Jizhan Fang, Xinle Deng, Haoming Xu, Ziyan Jiang, Yuqi Tang, Ziwen Xu, Shumin Deng, Yunzhi Yao, Mengru Wang, Shuofei Qiao, Huajun Chen, and Ningyu Zhang. 2026. LightMem: Lightweight and efficient memory-augmented generation. In International Conference on Learning Representations, volume 2026, pages 98706–98729.
Revanth Gangi Reddy, JaeHyeok Doo, Yifei Xu, Md Arafat Sultan, Deevya Swain, Avirup Sil, and Heng Ji. 2024. FIRST: Faster improved listwise reranking with single token decoding. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 8642–8652, Miami, Florida, USA. Association for Computational Linguistics.
Michael Glass, Gaetano Rossiello, Md Faisal Mahbub Chowdhury, Ankita Rajaram Naik, Pengshan Cai, and Alfio Gliozzo. 2022. Re2G: Retrieve, rerank, generate. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 2701–2715, Seattle, United States. Association for Computational Linguistics.
Bernal Jiménez Gutiérrez, Yiheng Shu, Weijian Qi, Sizhe Zhou, and Yu Su. 2025. From RAG to memory: Non-parametric continual learning for large language models. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 21497–21515. PMLR.
Kelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat, and Mingwei Chang. 2020. Retrieval augmented language model pre-training. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 3929–3938. PMLR.
Xanh Ho, Anh-Khoa Duong Nguyen, Saku Sugawara, and Akiko Aizawa. 2020. Constructing a multi-hop QA dataset for comprehensive evaluation of reasoning steps. In Proceedings of the 28th International Conference on Computational Linguistics, pages 6609–6625, Barcelona, Spain (Online). International Committee on Computational Linguistics.
Yuyang Hu, Jiongnan Liu, Jiejun Tan, Yutao Zhu, and Zhicheng Dou. 2026. Memory matters more: Event-centric memory as a logic map for agent searching and reasoning. In Findings of the Association for Computational Linguistics: ACL 2026, pages 22389–22407, San Diego, California, United States. Association for Computational Linguistics.
Gautier Izacard and Edouard Grave. 2021. Leveraging passage retrieval with generative models for open domain question answering. In Proceedings of the 16th
Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, pages 874–880, Online. Association for Computational Linguistics.
Kalervo Järvelin and Jaana Kekäläinen. 2002. Cumulated gain-based evaluation of ir techniques. ACM Trans. Inf. Syst., 20(4):422–446.
Hanqi Jiang, Junhao Chen, Yi Pan, Ling Chen, Weihang You, Yifan Zhou, Ruidong Zhang, Yohannes Abate, and Tianming Liu. 2026. Synapse: Empowering LLM agents with episodic-semantic memory via spreading activation. In Findings of the Association for Computational Linguistics: ACL 2026, pages 22020–22036, San Diego, California, United States. Association for Computational Linguistics.
Bowen Jin, Hansi Zeng, Zhenrui Yue, Jinsung Yoon, Sercan O Arik, Dong Wang, Hamed Zamani, and Jiawei Han. 2025. Search-R1: Training LLMs to reason and leverage search engines with reinforcement learning. In Second Conference on Language Modeling.
Jiazheng Kang, Mingming Ji, Zhe Zhao, and Ting Bai. 2025. Memory OS of AI agent. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 25961–25970, Suzhou, China. Association for Computational Linguistics.
Vladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick Lewis, Ledell Wu, Sergey Edunov, Danqi Chen, and Wen-tau Yih. 2020. Dense passage retrieval for open-domain question answering. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 6769–6781, Online. Association for Computational Linguistics.
Tomáš Kočiský, Jonathan Schwarz, Phil Blunsom, Chris Dyer, Karl Moritz Hermann, Gábor Melis, and Edward Grefenstette. 2018. The narrativeqa reading comprehension challenge. Transactions of the Association for Computational Linguistics, 6:317–328.
Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, Kristina Toutanova, Llion Jones, Matthew Kelcey, Ming-Wei Chang, Andrew M. Dai, Jakob Uszkoreit, Quoc Le, and Slav Petrov. 2019. Natural questions: A benchmark for question answering research. Transactions of the Association for Computational Linguistics, 7:452–466.
Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, Sebastian Riedel, and Douwe Kiela. 2020. Retrieval-augmented generation for knowledge-intensive NLP tasks. In Advances in Neural Information Processing Systems, volume 33, pages 9459–9474. Curran Associates, Inc.
Jiarui Li, Ye Yuan, and Zehua Zhang. 2024. Enhancing LLM factual accuracy with rag to counter hallucinations: A case study on domain-specific queries in private knowledge-bases. Preprint, arXiv:2403.10446.
Kai Li, Xuanqing Yu, Ziyi Ni, Yi Zeng, Yao Xu, Zhe-qing Zhang, Xin Li, Jitao Sang, Xiaogang Duan, Xuelei Wang, Chengbao Liu, and Jie Tan. 2026a. TiMem: Temporal-hierarchical memory consolidation for long-horizon conversational agents. In Findings of the Association for Computational Linguistics: ACL 2026, pages 21700–21720, San Diego, California, United States. Association for Computational Linguistics.
Kenneth Li, Oam Patel, Fernanda Viégas, Hanspeter Pfister, and Martin Wattenberg. 2023. Inference-time intervention: Eliciting truthful answers from a language model. In Advances in Neural Information Processing Systems, volume 36, pages 41451–41530. Curran Associates, Inc.
Yuqing Li, Jiangnan Li, Zheng Lin, Ziyan Zhou, Junjie Wu, Weiping Wang, Jie Zhou, and Mo Yu. 2026b. Mindscape-aware retrieval augmented generation for improved long context understanding. Preprint, arXiv:2512.17220.
Yuqing Li, Jiangnan Li, Mo Yu, Guoxuan Ding, Yanyu Chen, Zheng Lin, Wei Zhang, and Jie Zhou. 2026c. Query-focused and memory-aware reranker for long context processing. Preprint, arXiv:2602.12192.
Wenhan Liu, Xinyu Ma, Weiwei Sun, Yutao Zhu, Yuchen Li, Dawei Yin, and Zhicheng Dou. 2026. ReasonRank: Empowering passage ranking with strong reasoning ability. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 22007–22031, San Diego, California, United States. Association for Computational Linguistics.
Meixiu Long, Duolin Sun, Dan Yang, Yihan Jiao, Lei Liu, Jiahai Wang, Binbin Hu, Yue Shen, Jie Feng, Zhehao Tan, Junjie Wang, Lianzhen Zhong, Jian Wang, Peng Wei, and Jinjie Gu. 2026. GroupRank: A groupwise paradigm for effective and efficient passage reranking with LLMs. In Findings of the Association for Computational Linguistics: ACL 2026, pages 25165–25186, San Diego, California, United States. Association for Computational Linguistics.
Qin Luo, Erjia Chen, Zhao Shi, and Bang Wang. 2025. Anchor-based pairwise comparison via large language model for recommendation reranking. In Proceedings of the 34th ACM International Conference on Information and Knowledge Management, CIKM '25, page 5001–5005, New York, NY, USA. Association for Computing Machinery.
Wenquan Ma, Jiayan Nan, and WenLong Wu. 2026. What deserves memory: Adaptive memory distillation for LLM agents. In Proceedings of the 64th Annual Meeting of the Association for Computational
Linguistics (Volume 1: Long Papers), pages 34789–34812, San Diego, California, United States. Association for Computational Linguistics.
Adyasha Maharana, Dong-Ho Lee, Sergey Tulyakov, Mohit Bansal, Francesco Barbieri, and Yuwei Fang. 2024. Evaluating very long-term conversational memory of LLM agents. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 13851–13870, Bangkok, Thailand. Association for Computational Linguistics.
Alex Mallen, Akari Asai, Victor Zhong, Rajarshi Das, Daniel Khashabi, and Hannaneh Hajishirzi. 2023. When not to trust language models: Investigating effectiveness of parametric and non-parametric memories. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 9802–9822, Toronto, Canada. Association for Computational Linguistics.
Christina Nasika, Feng Wang, Antonis Krasakis, and Han Xiao. 2026. jina-reranker-v3.5: An efficient listwise reranker with hybrid attention and self-distillation. Preprint, arXiv:2607.18152.
Rodrigo Nogueira and Kyunghyun Cho. 2020. Passage re-ranking with BERT. Preprint, arXiv:1901.04085.
Egor Pakhomov, Erik Nijkamp, and Caiming Xiong. 2025. Convomem benchmark: Why your first 150 conversations don't need rag. Preprint, arXiv:2511.10523.
Yash Patel, Giorgos Tolias, and Jiří Matas. 2022. Recall@k surrogate loss with large batches and similarity mixup. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 7502–7511.
Nicholas Pipitone, Ghita Houir Alami, Advaith Avadhanam, Anton Kaminskyi, and Ashley Khoo. 2025. zELO: ELO-inspired training method for rerankers and embedding models. Preprint, arXiv:2509.12541.
Zhen Qin, Rolf Jagerman, Kai Hui, Honglei Zhuang, Junru Wu, Le Yan, Jiaming Shen, Tianqi Liu, Jialu Liu, Donald Metzler, Xuanhui Wang, and Michael Bendersky. 2024. Large language models are effective text rankers with pairwise ranking prompting. In Findings of the Association for Computational Linguistics: NAACL 2024, pages 1504–1518, Mexico City, Mexico. Association for Computational Linguistics.
Preston Rasmussen, Pavlo Paliychuk, Travis Beauvais, Jack Ryan, and Daniel Chalef. 2025. Zep: A temporal knowledge graph architecture for agent memory. Preprint, arXiv:2501.13956.
Ruiyang Ren, Yuhao Wang, Kun Zhou, Wayne Xin Zhao, Wenjie Wang, Jing Liu, Ji-Rong Wen, and Tat-Seng Chua. 2025. Self-calibrated listwise reranking with large language models. In Proceedings of the ACM on Web Conference 2025, WWW '25, page
3692–3701, New York, NY, USA. Association for Computing Machinery.
John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, and Pieter Abbeel. 2018. High-dimensional continuous control using generalized advantage estimation. Preprint, arXiv:1506.02438.
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. 2017. Proximal policy optimization algorithms. Preprint, arXiv:1707.06347.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. 2024. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. Preprint, arXiv:2402.03300.
Weiwei Sun, Lingyong Yan, Xinyu Ma, Shuaiqiang Wang, Pengjie Ren, Zhumin Chen, Dawei Yin, and Zhaochun Ren. 2023. 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, pages 14918–14937, Singapore. Association for Computational Linguistics.
Yifan Sun, Changmao Cheng, Yuhan Zhang, Chi Zhang, Liang Zheng, Zhongdao Wang, and Yichen Wei. 2020. Circle loss: A unified perspective of pair similarity optimization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR).
Dehao Tao, Guoliang Ma, Yongfeng Huang, and Minghu Jiang. 2026. Membox: Weaving topic continuity into long-range memory for LLM agents. Preprint, arXiv:2601.03785.
Gemma Team, Sherif El Abd, Vaibhav Aggarwal, Robin Algayres, Alek Andreev, Olivier Bachem, Ian Ballantyne, Cormac Brick, Victor Cärbune, Michelle Casbon, Mayank Chaturvedi, Aditya Chawla, Victor Cotruta, Alice Coucke, Phil Culliton, Robert Dadashi, Lucas Dixon, Mohamed Elhawaty, Utku Evci, and 304 others. 2026. Gemma 4 technical report. Preprint, arXiv:2607.02770.
Harsh Trivedi, Niranjan Balasubramanian, Tushar Khot, and Ashish Sabharwal. 2022. MuSiQue: Multi-hop questions via single-hop question composition. Transactions of the Association for Computational Linguistics, 10:539–554.
Chien-Sheng Wu, Andrea Madotto, Wenhao Liu, Pascale Fung, and Caiming Xiong. 2022. QAConv: Question answering on informative conversations. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 5389–5411, Dublin, Ireland. Association for Computational Linguistics.
Di Wu, Hongwei Wang, Wenhao Yu, Yuwei Zhang, Kai-Wei Chang, and Dong Yu. 2025a. LongMemEval:
Benchmarking chat assistants on long-term interactive memory. In The Thirteenth International Conference on Learning Representations.
Wenhao Wu, Yizhong Wang, Guangxuan Xiao, Hao Peng, and Yao Fu. 2025b. Retrieval head mechanically explains long-context factuality. In The Thirteenth International Conference on Learning Representations.
Wujiang Xu, Zujie Liang, Kai Mei, Hang Gao, Juntao Tan, and Yongfeng Zhang. 2025a. A-Mem: Agentic memory for LLM agents. In Advances in Neural Information Processing Systems, volume 38, Main Conference, pages 17577–17604. Curran Associates, Inc.
Zhe Xu, Jiasheng Ye, Xiaoran Liu, Xiangyang Liu, Tianxiang Sun, Zhigeng Liu, Qipeng Guo, Linlin Li, Qun Liu, Xuanjing Huang, and Xipeng Qiu. 2025b. DetectiveQA: Evaluating long-context reasoning on detective novels. In Workshop on Reasoning and Planning for Large Language Models.
Ruiyi Yan, Zhuoyuan Mao, and Yiwen Guo. 2026. MemDefrag: Latent memory defragmentation for large language models. Preprint, arXiv:2607.05969.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, Haoran Wei, Huan Lin, Jialong Tang, and 41 others. 2025. Qwen3 technical report. Preprint, arXiv:2505.09388.
Qingran Yang, Wenxuan Zhang, Yuting Wang, Xue Li, and Lanshun Nie. 2026. CRED: Calibrated relational enhanced distillation for llm-based pointwise reranking. In Proceedings of the 49th International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR '26, page 4311–4315, New York, NY, USA. Association for Computing Machinery.
Zhengzhe Yang and Jinho D. Choi. 2019. FriendsQA: Open-domain question answering on TV show transcripts. In Proceedings of the 20th Annual SIGDial Meeting on Discourse and Dialogue, pages 188–197, Stockholm, Sweden. Association for Computational Linguistics.
Zhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William Cohen, Ruslan Salakhutdinov, and Christopher D. Manning. 2018. HotpotQA: A dataset for diverse, explainable multi-hop question answering. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 2369–2380, Brussels, Belgium. Association for Computational Linguistics.
Howard Yen, Tianyu Gao, Minmin Hou, Ke Ding, Daniel Fleischer, Peter Izak, Moshe Wasserblat, and Danqi Chen. 2025. HELMET: How to evaluate long-context language models effectively and thoroughly. Preprint, arXiv:2410.02694.
Yang Yue, Zhiqi Chen, Rui Lu, Andrew Zhao, Zhaokai Wang, Yang Yue, Shiji Song, and Gao Huang. 2025. Does reinforcement learning really incentivize reasoning capacity in llms beyond the base model? In Advances in Neural Information Processing Systems, volume 38, Main Conference, pages 57654–57689. Curran Associates, Inc.
Le Zhang, Bo Wang, Xipeng Qiu, Siva Reddy, and Aishwarya Agrawal. 2025a. REARANK: Reasoning re-ranking agent via reinforcement learning. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 2458–2471, Suzhou, China. Association for Computational Linguistics.
Wuwei Zhang, Fangcong Yin, Howard Yen, Danqi Chen, and Xi Ye. 2025b. Query-focused retrieval heads improve long-context reasoning and re-ranking. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 23791–23805, Suzhou, China. Association for Computational Linguistics.
Yanzhao Zhang, Mingxin Li, Dingkun Long, Xin Zhang, Huan Lin, Baosong Yang, Pengjun Xie, An Yang, Dayiheng Liu, Junyang Lin, Fei Huang, and Jingren Zhou. 2025c. Qwen3 Embedding: Advancing text embedding and reranking through foundation models. Preprint, arXiv:2506.05176.
Yinxin Zhou, Qin Luo, Bin Feng, and Bang Wang. 2025. Large language models for reranking: A survey. TechRxiv, 2025(1113).
Huhai Zou, Tianhao Sun, Chuanjiang He, Yu Tian, Zhenyang Li, Li Jin, Nayu Liu, Jiang Zhong, and Kaiwen Wei. 2026. ES-Mem: Event segmentation-based memory for long-term dialogue agents. Preprint, arXiv:2601.07582.
A RRHead Selection for Qwen3-4B
This appendix details the head scan behind the Qwen3-4B RRHeads {{(23, 10), (21, 8)}} reported in Section 4.1 and examines why two heads suffice. All head indices are zero-based (layer, head) pairs.
Seed set. contained 400 instances each from the MuSiQue and NarrativeQA portions of the training mixture (Section 4.2). Instances were sampled with a fixed random seed from questions whose 50-candidate pool contains at least one relevant candidate, giving 2.31 relevant candidates per question on average. As training questions, they do not overlap with the evaluation questions in Section 4.3.1. On , the first-stage order reaches 51.78 R@3 and 64.14 NDCG@10.
Scan. A single forward pass over x || u yielded, for every head, the attention weights (Section 2.3) from the trace positions , which were
| Rank | Head | Gold mass | Gold share | R@3 | N@10 |
|---|---|---|---|---|---|
| 1 | (23,10) | 0.1813 | 0.395 | 59.42 | 70.48 |
| 2 | (21,8) | 0.1669 | 0.332 | 59.24 | 69.78 |
| 3 | (24,29) | 0.1526 | 0.336 | 59.14 | 70.01 |
| 4 | (3,5) | 0.1487 | 0.178 | 52.32 | 60.91 |
| 5 | (20,15) | 0.1412 | 0.330 | 58.73 | 68.75 |
| 6 | (15,11) | 0.1386 | 0.297 | 59.42 | 70.14 |
| 7 | (24,23) | 0.1328 | 0.325 | 55.30 | 66.44 |
| 8 | (24,5) | 0.1181 | 0.323 | 53.75 | 66.29 |
| 9 | (21,10) | 0.1120 | 0.358 | 58.92 | 69.10 |
| 10 | (20,30) | 0.1113 | 0.297 | 54.59 | 66.09 |
| 11 | (24,13) | 0.1100 | 0.318 | 58.35 | 68.32 |
| 12 | (23,30) | 0.1079 | 0.341 | 57.97 | 68.72 |
Table 5: Top-12 Qwen3-4B heads on , sorted by gold mass. R@3 and N@10 are zero-shot single-head Recall@3 and NDCG@10 (%). Bold marks the two highest gold masses, whose heads form .
converted into candidate masses by Eq. 3. Candidate spans covered only the candidate text, excluding index markers and separators. Qwen3-4B uses grouped-query attention with 32 query heads and 8 key-value heads per layer; indexes query heads.
Per-head statistics. Besides the gold mass in Eq. 18, each head was characterized by its gold share and its zero-shot ranking quality. The gold share averages over and measures how concentrated the candidate-directed attention is on relevant candidates. Zero-shot Recall@3 (Eq. 2 with ) and binary NDCG@10 were obtained by ranking candidates directly by .
Selection. consisted of the two heads with the highest gold mass, (23, 10) and (21, 8). Figure 7 shows for all 1,152 heads, and Table 5 lists the twelve heads with the highest gold mass.
Number of heads. Summing more heads does not reliably improve zero-shot ranking. Table 6 sums the masses of the top- heads by gold mass, and differences are tested with a paired bootstrap over seed instances (2,000 resamples, stratified by dataset). The top two reach 59.96 R@3 against 59.42 for (23, 10) alone, a difference that is not significant (95% interval [-0.34, +1.39]). The top four reach the highest R@3, 60.93, but their gain over the top two is not significant either ([-0.04, +2.05]) and comes with a slightly lower NDCG@10. Beyond four heads, both metrics decline: the top 16 heads, the number used by QR-Head (Zhang et al., 2025b), fall 1.40 R@3 points

Figure 7: Gold mass of all Qwen3-4B heads on . Red boxes mark the selected RRHeads (23, 10) and (21, 8).
| 1 | 2 | 4 | 8 | 16 | 32 | 64 | |
|---|---|---|---|---|---|---|---|
| R@3 | 59.42 | 59.96 | 60.93 | 59.58 | 58.56 | 58.14 | 55.58 |
| N@10 | 70.48 | 70.71 | 70.55 | 70.42 | 69.35 | 67.92 | 63.99 |
Table 6: Zero-shot R@3 and NDCG@10 (%) of Qwen3-4B on when the masses of the top- heads by gold mass are summed. is (23, 10) alone, and gives . Bold marks the best value in each row.
below the top two ([-2.41, -0.46]), and the top 64 fall 4.38 points below ([-6.05, -2.73]). Two heads therefore perform on par with the best number of heads, whereas adding many more heads hurts ranking.
Redundancy among heads. Additional heads contribute little because the strongest heads largely duplicate one another. For each seed instance and each of its relevant candidates, a head hits the candidate if it ranks the candidate among the top three of the 50 candidates, and misses it otherwise. Comparing which relevant candidates two heads hit shows whether they locate the same evidence, and Table 7 compares every other head with (23, 10) in this way; (23, 10) itself hits 55.1% of the 1,848 relevant candidates in . Whatever their strength, other heads hit only 8.1–9.2% of the relevant candidates that (23, 10) misses, whereas the first-stage ranking, a different relevance signal, hits 23.6%; a head as accurate as (23, 10) but with independent errors would hit about 55%. Conversely, the
| Ranking | #Heads | Shared | Gain | Covered |
|---|---|---|---|---|
| Rank 1–16 (excl. (23, 10)) | 15 | 92.6 | 9.0 | 10.9 |
| Rank 17–64 | 48 | 91.9 | 9.2 | 18.8 |
| Rank 65–256 | 192 | 88.0 | 9.0 | 38.2 |
| Rank 257–1152 | 896 | 74.1 | 8.1 | 52.9 |
| Random ranking | – | 54.5 | 6.2 | 55.2 |
| First-stage | – | 77.6 | 23.6 | 35.0 |
Table 7: Overlap of top-3 hits between (23, 10) and other rankings on (%). Heads other than (23, 10) are grouped by their rank in single-head R@3 among all 1,152 heads, and each group reports the median over its heads; the random ranking averages 20 random orders. Shared is the share of a ranking's hits that (23, 10) also hits, Gain is the share of the misses of (23, 10) that the ranking hits, and Covered is the share of the ranking's misses that (23, 10) hits.
weaker a head is, the more of its misses (23, 10) hits, rising from 10.9% for the 15 strongest heads to 52.9% for the weakest 896, close to the 55.2% for a random ranking. Strong heads therefore miss the same candidates as (23, 10), and most hits of weak heads are also hits of (23, 10).
B Full Reranking Results
Tables 8–11 report conditional R@1, R@3, R@5, and NDCG@10 of each reranker on each benchmark, together with the gap between the best RERANK variant and the best baseline and its statistical significance. Figure 8 plots NDCG@10 across model sizes in the format of Figure 3.
Evaluation protocol. Every reranker received the same 50 first-stage candidates per question. For a question, let be the number of relevant chunks among its candidates. Questions with were excluded, so all metrics are conditional on the candidate pool. Let be the relevance label of the candidate ranked at position by a reranker. Recall@k, which matches Eq. 2, and normalized discounted cumulative gain (NDCG@10) with binary relevance (Järvelin and Kekäläinen, 2002) are
where the numerator is the discounted cumulative gain (DCG) of the reranked list and the denominator is the DCG of an ideal ranking that places all
in-pool relevant chunks first. Each metric was averaged over questions within a dataset, and Macro-9 is the unweighted mean over the nine datasets.
Baseline inference. QRRanker was evaluated with its official release and evaluation code.⁵ Qwen3-Reranker followed its official prompt and scored each question–candidate pair by the probability of “yes” against “no” at the final position.⁶ zerank-2 was scored by its raw “Yes” logit.⁷ jina-reranker-v3.5 scored all 50 candidates in a single forward pass through its listwise interface.⁸ GroupRank scored candidates in groups of 10 and averaged the scores over two shuffled passes.⁹ REARANK and ReasonRank followed their official inference settings.¹⁰
Significance testing. The significance row tests whether the gap in the row is reliable, comparing the best RERANK variant with the best baseline on the same questions. A two-sided paired randomization test was applied to their per-question scores: the sign of each question’s score difference was flipped at random 100,000 times, and the -value is the fraction of these flips whose mean difference is at least as large in magnitude as the observed one. The test does not assume normally distributed differences, which suits the discrete per-question values of Recall@k. Markers denote *** , ** , * , and n.s. , without correction for multiple comparisons.
Significance results. Of the 36 dataset-level columns, 24 show a significant difference, 15 at , 6 at , and 3 at , and all four Macro-9 columns are significant. Every significant difference favors RERANK.
⁵https://huggingface.co/MindscapeRAG/QRRanker ⁶https://huggingface.co/Qwen/Qwen3-Reranker-0.6B, https://huggingface.co/Qwen/Qwen3-Reranker-4B, and https://huggingface.co/Qwen/Qwen3-Reranker-8B ⁷https://huggingface.co/zeroentropy/zerank-2 ⁸https://huggingface.co/jinaai/jina-reranker-v3.5 ⁹https://huggingface.co/AQ-MedAI/Diver-GroupRank-7B and https://huggingface.co/AQ-MedAI/Diver-GroupRank-32B ¹⁰https://huggingface.co/le723z/Rearank-7B, https://huggingface.co/liuwenhan/reasonrank-7B, and https://huggingface.co/liuwenhan/reasonrank-32B
| Method | Wikipedia multi-hop | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| HotpotQA | 2WikiMultihopQA | MuSiQue | ||||||||||
| R@1 | R@3 | R@5 | N@10 | R@1 | R@3 | R@5 | N@10 | R@1 | R@3 | R@5 | N@10 | |
| First-stage | 46.75 | 83.08 | 90.29 | 89.40 | 53.42 | 86.08 | 89.05 | 91.38 | 41.55 | 64.62 | 73.83 | 76.42 |
| QRRanker (4B) | 49.05 | 96.40 | 98.80 | 96.62 | 54.22 | 98.38 | 99.58 | 98.87 | 44.58 | 81.44 | 89.67 | 88.84 |
| Qwen3-Reranker (0.6B) | 48.10 | 86.49 | 91.84 | 91.23 | 54.20 | 84.78 | 87.66 | 90.38 | 41.29 | 66.02 | 73.69 | 74.91 |
| Qwen3-Reranker (4B) | 49.10 | 91.09 | 96.05 | 94.49 | 53.85 | 87.31 | 90.19 | 92.28 | 42.25 | 69.92 | 78.64 | 79.71 |
| Qwen3-Reranker (8B) | 48.90 | 91.94 | 95.65 | 94.41 | 51.45 | 88.33 | 90.99 | 91.92 | 39.71 | 69.38 | 79.25 | 78.71 |
| zerank-2 (4B) | 45.70 | 84.78 | 92.64 | 90.36 | 44.67 | 81.73 | 87.62 | 86.58 | 34.94 | 58.96 | 70.71 | 70.90 |
| jina-reranker-v3.5 (0.6B) | 49.25 | 95.95 | 98.30 | 96.57 | 54.90 | 94.51 | 97.12 | 97.50 | 45.28 | 76.02 | 83.01 | 84.71 |
| GroupRank (7B) | 44.69 | 83.18 | 92.44 | 89.13 | 47.38 | 84.00 | 90.30 | 88.23 | 38.93 | 67.11 | 77.20 | 77.22 |
| GroupRank (32B) | 45.45 | 86.64 | 93.69 | 90.65 | 45.52 | 83.00 | 89.96 | 87.21 | 37.77 | 66.78 | 78.38 | 77.75 |
| REARANK (7B) | 46.75 | 88.54 | 94.84 | 92.18 | 47.09 | 87.16 | 92.27 | 90.46 | 34.77 | 63.88 | 75.67 | 74.39 |
| ReasonRank (7B) | 48.60 | 94.24 | 96.75 | 95.29 | 51.77 | 93.83 | 95.08 | 94.68 | 38.18 | 66.63 | 74.24 | 74.87 |
| ReasonRank (32B) | 49.10 | 94.84 | 97.40 | 95.77 | 53.20 | 96.41 | 97.24 | 97.05 | 38.97 | 68.57 | 76.67 | 77.49 |
| RE³RANK (0.6B) | 48.85 | 95.85 | 98.45 | 96.38 | 54.17 | 98.17 | 99.90 | 98.90 | 44.94 | 79.28 | 88.15 | 88.36 |
| RE³RANK (4B) | 50.35 | 97.60 | 99.25 | 97.95 | 54.57 | 99.13 | 99.95 | 99.50 | 45.71 | 84.35 | 91.43 | 90.73 |
| RE³RANK (8B) | 50.00 | 98.15 | 99.30 | 98.03 | 54.48 | 99.15 | 99.95 | 99.52 | 47.00 | 86.02 | 93.10 | 92.57 |
| Δ vs. best baseline | +1.10 | +1.75 | +0.50 | +1.41 | -0.33 | +0.77 | +0.37 | +0.65 | +1.72 | +4.58 | +3.43 | +3.73 |
| Significance | *** | *** | n.s. | *** | n.s. | ** | ** | *** | ** | *** | *** | *** |
Table 8: Reranking results on the Wikipedia multi-hop datasets. R@k is conditional Recall@k and N@10 is NDCG@10 (%). First-stage is the Qwen3-Embedding-8B ranking before reranking. RE³RANK was trained with the mixed ranking loss in Eq. 13. Bold and underline mark the best and second-best reranker for each metric. The Δ row gives the difference between the best RE³RANK result and the best baseline result in each column, with gains in green and losses in red. The significance row reports two-sided paired randomization tests on per-question scores (100,000 sign flips) for the same pair: *** p < 0.001, ** p < 0.01, * p < 0.05, and n.s. not significant.
| Method | Open-domain factoid | |||||||
|---|---|---|---|---|---|---|---|---|
| NQ | PopQA | |||||||
| R@1 | R@3 | R@5 | N@10 | R@1 | R@3 | R@5 | N@10 | |
| First-stage | 25.80 | 54.57 | 72.45 | 81.49 | 54.65 | 89.90 | 91.90 | 79.66 |
| QRRanker (4B) | 23.76 | 55.18 | 73.82 | 79.30 | 54.50 | 90.70 | 96.70 | 81.84 |
| Qwen3-Reranker (0.6B) | 23.14 | 50.79 | 69.45 | 78.29 | 57.55 | 89.55 | 91.55 | 79.92 |
| Qwen3-Reranker (4B) | 26.76 | 56.79 | 75.00 | 83.02 | 53.60 | 89.75 | 93.00 | 80.05 |
| Qwen3-Reranker (8B) | 27.32 | 58.23 | 76.33 | 84.09 | 49.95 | 88.45 | 94.05 | 78.55 |
| zerank-2 (4B) | 28.32 | 58.32 | 77.42 | 84.56 | 56.80 | 89.95 | 92.65 | 82.06 |
| jina-reranker-v3.5 (0.6B) | 28.50 | 57.71 | 74.69 | 82.94 | 57.50 | 91.80 | 96.20 | 83.48 |
| GroupRank (7B) | 27.55 | 58.15 | 76.37 | 83.63 | 51.55 | 87.25 | 91.95 | 78.29 |
| GroupRank (32B) | 28.63 | 60.17 | 77.90 | 84.75 | 51.20 | 88.20 | 93.40 | 78.99 |
| REARANK (7B) | 24.70 | 54.19 | 71.05 | 79.92 | 55.80 | 90.45 | 91.90 | 80.21 |
| ReasonRank (7B) | 28.85 | 59.40 | 75.30 | 83.06 | 55.90 | 91.10 | 94.40 | 81.59 |
| ReasonRank (32B) | 28.64 | 59.99 | 76.87 | 84.23 | 56.80 | 90.90 | 94.95 | 81.91 |
| RE³RANK (0.6B) | 23.02 | 55.25 | 75.78 | 80.92 | 57.15 | 94.50 | 97.80 | 84.14 |
| RE³RANK (4B) | 27.44 | 60.50 | 78.73 | 84.75 | 54.95 | 95.40 | 98.75 | 83.30 |
| RE³RANK (8B) | 26.69 | 60.06 | 78.40 | 84.07 | 52.50 | 92.80 | 97.60 | 81.60 |
| Δ vs. best baseline | -1.41 | +0.33 | +0.83 | 0.00 | -0.40 | +3.60 | +2.05 | +0.66 |
| Significance | n.s. | n.s. | ** | n.s. | n.s. | *** | *** | n.s. |
Table 9: Reranking results on the open-domain factoid datasets. Metrics and markers follow Table 8.
C Implementation Details
C.1 Training Hyperparameters
Training used one epoch with a global batch size of 96. The generator and scorer were optimized with AdamW using a constant learning rate of .
Reasoning traces were sampled with temperature 1, top-p = 1, no top-k truncation, and a maximum length of 1,024 tokens. The straight-through relaxation used .
| Method | Long narrative | DetectiveQA | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| NarrativeQA | DetectiveQA | |||||||||
| R@1 | R@3 | R@5 | N@10 | R@1 | R@3 | R@5 | N@10 | |||
| First-stage | 16.27 | 38.59 | 52.65 | 52.91 | 9.38 | 19.87 | 27.17 | 29.65 | ||
| QRRanker (4B) | 20.88 | 42.30 | 56.01 | 55.95 | 11.33 | 24.76 | 33.50 | 34.35 | ||
| Qwen3-Reranker (0.6B) | 15.85 | 30.09 | 39.33 | 40.59 | 6.75 | 17.94 | 25.59 | 25.96 | ||
| Qwen3-Reranker (4B) | 19.04 | 36.81 | 47.81 | 48.65 | 10.15 | 19.53 | 29.05 | 29.85 | ||
| Qwen3-Reranker (8B) | 20.78 | 39.10 | 50.51 | 51.50 | 9.71 | 20.17 | 28.32 | 30.05 | ||
| zerank-2 (4B) | 20.95 | 40.13 | 52.31 | 53.12 | 10.89 | 20.73 | 28.00 | 30.66 | ||
| jina-reranker-v3.5 (0.6B) | 16.51 | 34.25 | 45.03 | 45.93 | 8.07 | 20.04 | 27.10 | 28.28 | ||
| GroupRank (7B) | 22.55 | 42.43 | 54.11 | 54.78 | 8.17 | 20.02 | 29.19 | 29.86 | ||
| GroupRank (32B) | 24.98 | 46.54 | 60.45 | 60.40 | 9.25 | 22.17 | 30.29 | 31.50 | ||
| REARANK (7B) | 15.84 | 33.79 | 46.25 | 47.53 | 7.84 | 18.45 | 27.97 | 28.22 | ||
| ReasonRank (7B) | 20.57 | 43.97 | 55.91 | 55.23 | 9.41 | 23.68 | 32.18 | 33.32 | ||
| ReasonRank (32B) | 25.76 | 46.87 | 57.43 | 58.99 | 9.72 | 23.84 | 33.75 | 34.26 | ||
| RE³RANK (0.6B) | 22.67 | 47.23 | 60.36 | 60.71 | 10.09 | 22.46 | 31.77 | 32.97 | ||
| RE³RANK (4B) | 26.80 | 53.19 | 67.50 | 66.95 | 12.36 | 26.11 | 35.55 | 37.12 | ||
| RE³RANK (8B) | 28.07 | 54.60 | 68.65 | 68.52 | 11.57 | 24.85 | 36.67 | 36.38 | ||
| Δ vs. best baseline | +2.31 | +7.73 | +8.20 | +8.12 | +1.03 | +1.35 | +2.92 | +2.77 | ||
| Significance | *** | *** | *** | *** | n.s. | n.s. | * | ** | ||
Table 10: Reranking results on the long-narrative datasets. Metrics and markers follow Table 8.
| Method | Long dialogue and overall | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| LoCoMo | LongMemEval-S | Macro-9 | ||||||||||
| R@1 | R@3 | R@5 | N@10 | R@1 | R@3 | R@5 | N@10 | R@1 | R@3 | R@5 | N@10 | |
| First-stage | 33.88 | 53.66 | 62.00 | 55.08 | 40.90 | 68.48 | 79.10 | 76.47 | 35.84 | 62.09 | 70.94 | 70.27 |
| QRRanker (4B) | 71.73 | 88.43 | 92.01 | 88.56 | 50.75 | 82.94 | 90.31 | 87.72 | 42.31 | 73.39 | 81.16 | 79.12 |
| Qwen3-Reranker (0.6B) | 61.98 | 82.97 | 88.12 | 81.62 | 44.26 | 71.40 | 78.29 | 74.98 | 39.24 | 64.45 | 71.72 | 70.88 |
| Qwen3-Reranker (4B) | 63.77 | 82.65 | 87.63 | 82.27 | 44.59 | 72.89 | 80.77 | 77.56 | 40.35 | 67.42 | 75.35 | 74.21 |
| Qwen3-Reranker (8B) | 63.28 | 81.94 | 86.99 | 81.67 | 45.11 | 71.14 | 77.43 | 75.46 | 39.58 | 67.63 | 75.50 | 74.04 |
| zerank-2 (4B) | 72.16 | 89.13 | 93.10 | 89.17 | 48.22 | 79.29 | 89.27 | 85.53 | 40.29 | 67.00 | 75.97 | 74.77 |
| jina-reranker-v3.5 (0.6B) | 72.16 | 87.07 | 90.70 | 87.90 | 47.60 | 75.44 | 82.90 | 80.77 | 42.20 | 70.31 | 77.23 | 76.45 |
| GroupRank (7B) | 66.09 | 86.51 | 91.07 | 85.56 | 43.16 | 71.91 | 82.24 | 79.33 | 38.90 | 66.73 | 76.10 | 74.00 |
| GroupRank (32B) | 70.81 | 88.59 | 92.70 | 88.35 | 46.65 | 78.36 | 88.87 | 84.43 | 40.03 | 68.94 | 78.40 | 76.00 |
| REARANK (7B) | 41.81 | 59.70 | 69.60 | 63.36 | 48.01 | 78.24 | 87.66 | 84.84 | 35.85 | 63.82 | 73.02 | 71.23 |
| ReasonRank (7B) | 68.51 | 85.83 | 89.65 | 85.41 | 46.84 | 73.84 | 80.92 | 80.71 | 40.96 | 70.28 | 77.16 | 76.02 |
| ReasonRank (32B) | 71.69 | 88.56 | 92.29 | 88.57 | 50.22 | 80.78 | 88.76 | 86.77 | 42.68 | 72.31 | 79.48 | 78.34 |
| RE³RANK (0.6B) | 68.07 | 85.40 | 89.66 | 85.55 | 52.12 | 83.79 | 90.96 | 89.10 | 42.34 | 73.55 | 81.43 | 79.67 |
| RE³RANK (4B) | 72.53 | 88.13 | 92.26 | 88.96 | 53.07 | 85.86 | 92.67 | 90.81 | 44.20 | 76.70 | 84.01 | 82.23 |
| RE³RANK (8B) | 74.11 | 89.50 | 93.30 | 90.16 | 52.66 | 85.03 | 92.29 | 90.43 | 44.12 | 76.68 | 84.36 | 82.36 |
| Δ vs. best baseline | +1.95 | +0.37 | +0.20 | +0.99 | +2.32 | +2.92 | +2.36 | +3.09 | +1.52 | +3.31 | +3.20 | +3.24 |
| Significance | * | n.s. | n.s. | * | n.s. | *** | ** | *** | ** | *** | *** | *** |
Table 11: Reranking results on the long-dialogue datasets and the macro average over all nine datasets (Macro-9). Metrics and markers follow Table 8.
C.2 Corpora and Chunking
Table 12 summarizes the evaluation benchmarks. HotpotQA, 2WikiMultihopQA, MuSiQue, NQ, and PopQA used the passages released by HippoRAG 2 (Gutiérrez et al., 2025), and each dataset shared a single corpus across its questions. The other four datasets restricted retrieval to the book, novel, conversation, or chat history associated with each question; in LongMemEval-S, every question comes
with its own chat history of about 50 sessions. NarrativeQA books were split into non-overlapping 200-token chunks, and DetectiveQA novels were packed paragraph by paragraph into chunks of at most 200 tokens. LoCoMo conversations were packed turn by turn into chunks of at most 300 tokens without crossing session boundaries, and LongMemEval-S histories were split into two-turn windows with each message truncated to 200 to-

Figure 8: NDCG@10 (%) of rerankers across model sizes on the nine benchmarks and their macro average (Macro-9). Lines and markers follow Figure 3.
| Dataset | Regime | #Questions | Retrieval scope | #Chunks | Tok./chunk | Gold / question | |
|---|---|---|---|---|---|---|---|
| All | In-pool | ||||||
| HotpotQA | Wiki multi-hop | 1,000 | Shared corpus | 9,811 | 138 | 2.00 | 1.96 |
| 2WikiMultihopQA | Wiki multi-hop | 1,000 | Shared corpus | 6,119 | 118 | 2.47 | 1.98 |
| MuSiQue | Wiki multi-hop | 1,000 | Shared corpus | 11,656 | 121 | 2.65 | 2.21 |
| NQ | Open-domain | 1,000 | Shared corpus | 9,633 | 148 | 3.79 | 3.79 |
| PopQA | Open-domain | 1,000 | Shared corpus | 8,676 | 146 | 2.00 | 1.17 |
| NarrativeQA | Long narrative | 1,902 | Per book (65) | 59,043 | 200 | 2.93 | 2.39 |
| DetectiveQA | Long narrative | 600 | Per novel (62) | 31,807 | 173 | 5.57 | 2.31 |
| LoCoMo | Long dialogue | 1,531 | Per conversation (10) | 849 | 261 | 1.42 | 1.39 |
| LongMemEval-S | Long dialogue | 466 | Per chat history (466) | 114,078 | 255 | 2.45 | 2.31 |
| Total | 9,499 | 251,672 | |||||
Table 12: Evaluation benchmarks. For each question, Qwen3-Embedding-8B served as the first-stage retriever and returned the top-50 candidates from the retrieval scope; parentheses give the number of scopes. #Chunks counts all chunks in the retrieval scopes before first-stage retrieval, and Tok./chunk is the mean chunk length under the Qwen3 tokenizer. All is the mean number of gold chunks per question (Appendix C.3); In-pool is the mean number within the top-50 candidates, computed over questions with at least one such chunk.
kens. Dialogue chunks were prefixed with their session date. Following QRRanker (Li et al., 2026c), NarrativeQA and MuSiQue serve as in-domain benchmarks: both contribute questions to the training mixture of Section 4.2, but their evaluation questions do not overlap with the training questions. The other seven benchmarks are not used for training.
C.3 Relevance Labels
Every training and evaluation instance consists of a question, its 50 first-stage candidates ordered by first-stage rank, and a binary label for each candidate. Labels are assigned at the chunk level, and
Table 13 lists the type and source of the labels for each dataset. Throughout the paper, gold labels refer to these labels of all three types.
Silver labels. NarrativeQA provides no evidence annotations, so its labels for training and evaluation were constructed as silver labels. Following MiA-RAG (Li et al., 2026b), the question, the question with its answer, and the answer each retrieved the top 10 chunks of the book with Qwen3-Embedding-8B; the merged list was ranked by votes and truncated to 10 chunks; and GPT-5.4 selected the chunks relevant to the question and its reference answer with the MiA-RAG filtering
| Dataset | Type | Source | Relevant if the chunk contains |
|---|---|---|---|
| Training | |||
| NarrativeQA | Silver | GPT-5.4, MiA-RAG procedure | a passage selected by GPT-5.4 |
| MuSiQue | Annotated | dataset annotation | a supporting paragraph |
| ConvoMem | Annotated | dataset annotation | an evidence message |
| QAConv | Derived | dataset answers | a reference answer string |
| FriendsQA | Annotated | dataset annotation | the turn holding the answer |
| Evaluation | |||
| HotpotQA | Annotated | dataset annotation | a supporting paragraph |
| 2WikiMultihopQA | Annotated | dataset annotation | a supporting paragraph |
| MuSiQue | Annotated | dataset annotation | a supporting paragraph |
| NQ | Annotated | HippoRAG 2 release | a supporting passage |
| PopQA | Derived | HippoRAG 2 release | the page of the question subject or the answer entity |
| NarrativeQA | Silver | GPT-5.4, MiA-RAG procedure | a passage selected by GPT-5.4 |
| DetectiveQA | Annotated | dataset annotation | an annotated clue paragraph |
| LoCoMo | Annotated | dataset annotation | an evidence turn |
| LongMemEval-S | Annotated | dataset annotation | a message marked as holding the answer |
Table 13: Type and source of the gold labels. Annotated labels come from the evidence annotations of each dataset or of the HippoRAG 2 release (Gutiérrez et al., 2025); derived labels are computed from annotated answers or entities; silver labels are selected by GPT-5.4 following MiA-RAG (Li et al., 2026b). A candidate chunk is relevant if it contains any of the listed evidence.
prompt. In the evaluation set, the 79 questions for which GPT-5.4 selected no chunk were removed.
C.4 Hardware and Software
Hardware. Unless stated otherwise, all training, evaluation, data construction, and baseline runs used a single node with eight GPUs, each providing 141 GB of HBM3e memory.
Software. The node ran with NVIDIA driver 580.65.06 and CUDA 13.0. The main environment used Python 3.12.14, PyTorch 2.13.0, Transformers 5.16.1 and vLLM 0.28.0.
D Ablation of Ranking Objectives
Table 3 in Section 4.5.2 compares ranking objectives for the 4B model, leading to three findings.
(1) A moderate score scale matters. Raising the score scale from 8 to 12 lowers all four metrics, by 0.97 R@3 and 0.70 NDCG@10 points. A larger scale sharpens the softmax in and further widens margins that are already correct, consistent with the over-sharpening effect discussed in Section 3.3.1.
(2) The Recall@k surrogate and are complementary. Replacing with the surrogate yields the highest R@3 (76.81), as expected from an objective that targets the top-3 boundary directly, but slightly lowers R@1, R@5, and NDCG@10. Because the surrogate saturates once a relevant candidate crosses a cutoff, it provides little signal for ordering candidates within the top ranks.
Combining the two objectives retains both signals: every mixed variant achieves higher R@1 and NDCG@10 than either objective alone.
(3) The mixed objective is robust to its weight. Every metric varies by at most 0.38 points across . With , the mixed objective attains the best R@1 and NDCG@10 but falls slightly below in R@3 and R@5. With , it improves over on all four metrics, achieves the best R@5 and the highest R@3 among the mixed variants, and stays within 0.11 R@3 points of the surrogate alone.
E Straight-Through Updates and Generated Traces
The trace as a medium. is not required to return the reasoning trace to the user and the trace only serves as the attention query of the scorer. The quality of a trace is therefore measured by how much attention it leads the RRHeads to place on relevant candidates, regardless of its linguistic quality or readability to humans. The question is thus whether straight-through training makes the sampled discrete traces more useful for ranking.
What the update does. Proposition 1 states what the straight-through update computes for one sampled trace .
Proposition 1. For a trace position , let be the ranking loss obtained when the scorer input at position is set to and all other inputs are kept, and let and . Define the first-order loss of placing token at position as
Then, under Eq. 16:
(i) the forward pass evaluates the loss of the discrete trace, for every t;
(ii) with held constant, the straight-through gradient with respect to the logits satisfies
Proof. (i) The last two terms of Eq. 16 are numerically equal, so for every , and the scorer reads exactly the embeddings of the sampled tokens. Hence . (ii) By the chain rule, Eq. 17, and the symmetry of , . Since and ,
which depends on only through . Its gradient is therefore , and expanding gives the last expression.
Summed over positions, the generator is thus updated by gradient descent on , where is computed under teacher forcing. Each step raises the logits of tokens whose is below the -weighted average, and the factor concentrates the update on tokens that the generator already considers likely. Two approximations separate this surrogate from the objective in Eq. 14: is a first-order expansion that is accurate only for tokens whose embeddings lie close to , and each holds the other trace tokens fixed, ignoring how changing would alter the rest of the continuation and never comparing alternative complete sequences. The estimator is therefore biased, and decreasing the surrogate does not guarantee better discrete traces.
F Training the Generator with Reinforcement Learning
Straight-through training passes the gradient of the ranking loss to the generator through the scorer. A

Figure 9: Training curves of GRPO and PPO for the Qwen3-4B generator. The reward is the NDCG@10 that the frozen scorer assigns to each sampled trace. Thin lines show the value at each update, and thick lines show an 11-update moving average. The shaded region marks the first 10 PPO updates, which train only the critic.
common alternative treats the scorer as a black-box reward model and trains the generator with reinforcement learning (RL). This appendix compares straight-through training with RL for training the generator of RE RANK on Qwen3-4B.
Two-stage setup. RL requires a fixed reward, so the scorer and the generator were trained in two stages. In the first stage, the generator was kept at the base Qwen3-4B weights, and only the scorer was trained on its reasoning traces, following the training setup of the main experiments. In the second stage, this scorer was frozen and served as the reward model: the reward of a sampled trace u is the NDCG@10 of the ranking that the scorer produces from u.
Prompt pool. Over all prompts, greedy traces already reached a mean reward of 0.920, the best of eight samples improved it by only 0.019, and 73% of the eight-sample groups received identical rewards, which leaves group-normalized advantages without a learning signal. Among prompts with a greedy reward below 0.9, the greedy reward was 0.591, the best-of-eight gain rose to 0.093, and only 18% of the groups were tied. RL therefore used the 6,633 prompts of the training mixture whose greedy reward is below 0.9.
RL algorithms. We trained the generator with GRPO (Shao et al., 2024) and PPO (Schulman et al., 2017), both for 200 updates of 128 episodes each. Both used a learning rate of with a clip-
| Setting | R@1 | R@3 | R@5 | N@10 |
|---|---|---|---|---|
| Scorer only | 43.60 | 76.35 | 83.54 | 81.83 |
| + PPO | 43.66_{+0.06}^{-0.06} | 76.38_{+0.03}^{-0.03} | 83.69_{+0.15}^{-0.15} | 81.90_{+0.07}^{-0.07} |
| + GRPO | 43.57_{-0.03}^{-0.03} | 76.31_{-0.04}^{-0.04} | 83.55_{+0.01}^{-0.01} | 81.77_{-0.06}^{-0.06} |
| Joint training | 44.20_{+0.60}^{-0.60} | 76.70_{+0.35}^{-0.35} | 84.01_{+0.47}^{-0.47} | 82.23_{+0.40}^{-0.40} |
Table 14: Macro-9 scores (%) of RE³RANK (4B) when the generator is trained with RL against the frozen scorer. Scorer only is the setting of Figure 5 in which only the scorer is trained, and joint training is the setting in which both are trained with the straight-through estimator, as in RE³RANK. Subscripts give the difference from scorer only, with gains in green and losses in red.
ping ratio of 0.2, two epochs over two minibatches per update, and a KL coefficient of toward the base generator. Rollouts were sampled at temperature 1 in thinking mode with at most 1,024 tokens, the trace budget of the main experiments. GRPO drew eight samples for each of 16 prompts per update. PPO drew one sample for each of 128 prompts per update and trained a separate critic initialized from Qwen3-4B, using generalized advantage estimation (Schulman et al., 2018) with for both the actor and the critic. Its KL term entered the reward as a per-token penalty, and its first 10 updates trained only the critic.
Evaluation. Table 14 compares the RL-trained generators with the scorer-only setting of Figure 5, which corresponds to the first stage before RL. Neither algorithm improves on it noticeably: PPO changes the four Macro-9 metrics by at most 0.15 points, and GRPO by at most 0.06 points, with slight losses on three of them. The training curves in Figure 9 show the same picture: the reward of both algorithms stays around 0.60 throughout the 200 updates, while the KL divergence from the base generator grows steadily to about 0.07 for GRPO and 0.05 for PPO. RL thus moves the generator away from its initialization without making its traces more useful to the frozen scorer. In contrast, joint straight-through training improves over scorer-only training by 0.35 R@3 and 0.40 NDCG@10 points (Section 4.5.2).
Why RL brings little gain. Three factors limit RL in this two-stage setting. First, analyses of RL with verifiable rewards find that it mainly concentrates probability on high-reward outputs that the base model can already sample, rather than expanding what the model can produce (Yue et al., 2025). A trace that scores higher on one prompt need not reflect a way of writing that also helps on other prompts. Without a consistent pattern to reinforce, the updates change the generator without raising the reward: the KL divergence from the base generator keeps growing while the reward stays flat (Figure 9). Second, the frozen scorer was trained on traces of the base generator and therefore relies on features of their style. It rewards traces that express these features but not new ways of writing that it has never learned to read. Third, the scorer itself is imperfect: on the same prompts, even the best of eight traces reaches a mean reward of only 0.684, far below the maximum of 1, so the attainable reward is often limited by the scorer rather than by the trace. Together, these factors indicate that alternating between training the scorer and training the generator against it is limited in improving how the two models work together, whereas straight-through training updates both jointly so that each adapts to the other.
G Downstream Question Answering on LoCoMo
Setup. We followed the LoCoMo question answering protocol of Li et al. (2026c). For each question, a reranker ordered the same 50 Qwen3-Embedding-8B candidates as in Section 4.3.1, and only the top-3 chunks were passed to the generator as context, without summaries or other memory mechanisms. We used GPT-4o-mini, GPT-5-mini, and GPT-6-luna as generators and report token-level F1 against the reference answers on four question categories. Figure 10 shows the prompt given to the generator.
Effect of reranking. Reranking the same candidates raises overall F1 over the first-stage order by 16.48–18.79 points across rerankers and generators, whereas changing the generator moves the overall F1 of any fixed ranking by at most 2.07 points. In this setting, which chunks reach the generator matters far more than which generator reads them.
Comparison with memory frameworks. With GPT-4o-mini, three RE³RANK variants achieve higher overall F1 than every memory framework while passing only three dialogue chunks to the generator. RE³RANK (8B) reaches 57.37, 2.97 points above TiMem, and RE³RANK (0.6B) still leads it by 1.44 points. The 4B and 8B variants score higher than all frameworks on single-hop, multi-hop, and temporal questions.
| Generator | Method | Single-hop | Multi-hop | Temporal | Open-domain | Overall F1 |
|---|---|---|---|---|---|---|
| GPT-4o-mini | A-Mem (Xu et al., 2025a)† | 44.65 | 27.02 | 45.85 | 12.14 | 39.65 |
| MemoryOS (Kang et al., 2025)† | 48.62 | 35.27 | 41.15 | 20.02 | 42.84 | |
| Zep (Rasmussen et al., 2025)† | 49.56 | 35.74 | 42.00 | 19.37 | 43.56 | |
| Mem0 (Chhikara et al., 2025)† | 47.65 | 38.72 | 48.93 | 28.64 | 45.09 | |
| Nemori (Ma et al., 2026)† | 46.33 | 32.36 | 55.99 | 29.19 | 44.72 | |
| LightMem (Fang et al., 2026)† | 47.64 | 32.11 | 53.79 | 26.14 | 44.73 | |
| TiMem (Li et al., 2026a)† | – | – | – | – | 54.40 | |
| Synapse (Jiang et al., 2026)† | 48.90 | 35.70 | 50.10 | 25.90 | 40.50 | |
| Membox (Tao et al., 2026)† | 60.09 | 39.88 | 58.03 | 27.96 | 53.10 | |
| CompassMem (Hu et al., 2026)† | 57.36 | 38.84 | 57.96 | 26.61 | 52.18 | |
| ES-Mem (Zou et al., 2026)† | 50.07 | 36.52 | 47.90 | 24.77 | 45.56 | |
| SFT-Emb-8B (Li et al., 2026c)† | 57.22 | 37.06 | 56.27 | 29.11 | 51.58 | |
| Qwen3-Emb-8B (no reranking) | 46.29 | 24.98 | 35.37 | 20.17 | 38.58 | |
| QRRanker (4B) | 64.78 | 41.65 | 59.06 | 24.92 | 57.02 | |
| RE³RANK (0.6B) | 63.73 | 37.18 | 59.08 | 28.58 | 55.84 | |
| RE³RANK (4B) | 64.39−0.39 | 42.03+0.38 | 59.84+0.78 | 26.79+1.87 | 57.15+0.13 | |
| RE³RANK (8B) | 64.78 | 41.69 | 59.80 | 28.26 | 57.37 | |
| GPT-5-mini | Qwen3-Emb-8B (no reranking) | 46.20 | 27.81 | 38.87 | 29.14 | 40.30 |
| QRRanker (4B) | 63.55 | 40.16 | 64.16 | 33.18 | 57.62 | |
| RE³RANK (0.6B) | 63.19 | 38.90 | 63.27 | 34.00 | 57.05 | |
| RE³RANK (4B) | 63.90+0.35 | 42.29+2.13 | 66.31+2.15 | 37.15+3.97 | 58.88+1.26 | |
| RE³RANK (8B) | 64.13 | 41.77 | 64.76 | 34.34 | 58.43 | |
| GPT-6-luna | Qwen3-Emb-8B (no reranking) | 47.83 | 27.57 | 37.62 | 25.11 | 40.65 |
| QRRanker (4B) | 64.14 | 43.03 | 66.79 | 31.71 | 58.93 | |
| RE³RANK (0.6B) | 62.98 | 38.85 | 64.05 | 34.65 | 57.13 | |
| RE³RANK (4B) | 64.26+0.12 | 43.19+0.16 | 66.17−0.62 | 34.54+2.83 | 59.06+0.13 | |
| RE³RANK (8B) | 64.71 | 43.30 | 67.26 | 31.41 | 59.37 |
Table 15: Downstream question answering on LoCoMo (F1, %) with different generator LLMs. †Results reported by Li et al. (2026c), where “−” marks metrics not reported. All non-† rows rerank the same Qwen3-Embedding-8B candidates and are evaluated by us. Subscripts on RE³RANK (4B) give the difference from QRRanker (4B) under the same generator. Bold marks the best result in each column within each generator.
Comparison with QRRanker. At the 4B scale, RE³RANK achieves higher overall F1 than QR-Ranker under all three generators, by 1.26 points with GPT-5-mini and 0.13 points with the other two. The gains concentrate on open-domain questions (1.87–3.97 points), while single-hop differences stay within 0.39 points. The small overall margins are consistent with the close LoCoMo retrieval scores of the two rerankers (88.13 vs. 88.43 R@3 and 88.96 vs. 88.56 NDCG@10; Table 11).
H Effect of Trace Budget
To examine how much of the reasoning trace RE³RANK needs, we kept the trained models fixed and truncated the trace to tokens at inference (Figure 11). All models were trained with , and uses the question as the attention query without generating a trace.
Compared with the full budget of 1024 tokens, scoring with the question alone () lowers R@3 by 3.06, 4.51, and 3.92 points for the 0.6B, 4B, and 8B models, respectively. Since the model weights are identical in both settings, this gap measures how much the trace contributes as the attention query. Short traces close most of the gap: with 64 tokens, the three models recover 85.6%, 67.0%, and 48.5% of it, and the 4B and 8B models already surpass QRRanker (4B), which the 0.6B model does at 128 tokens.
The budget at which accuracy saturates grows with model size: the 0.6B model levels off at 128 tokens, the 4B model between 256 and 512 tokens, and the 8B model keeps improving up to 1024 tokens. Smaller budgets therefore reduce generation cost at a small loss in accuracy (Figure 12); at 256 tokens, the 4B and 8B models trail the full budget by only 0.26 and 0.49 R@3 points.
| LoCoMo Question Answering Prompt | |
|---|---|
| You are an intelligent memory assistant tasked with retrieving accurate information from conversation memories. | |
| CONTEXT: | |
| You have access to memories from two speakers in a conversation. These memories contain timestamped information that may be relevant to answering the question. | |
| INSTRUCTIONS: | |
| 1. | Carefully analyze all provided memories from both speakers. |
| 2. | Pay special attention to the timestamps to determine the answer. |
| 3. | If the question asks about a specific event or fact, look for direct evidence in the memories. |
| 4. | If the memories contain contradictory information, prioritize the most recent memory. |
| 5. | If there is a question about time references (like “last year”, “two months ago”, etc.), calculate the actual date based on the memory timestamp. For example, if a memory from 4 May 2022 mentions “went to India last year,” then the trip occurred in 2021. |
| 6. | Always convert relative time references to specific dates, months, or years. For example, convert “last year” to “2022” or “two months ago” to “March 2023” based on the memory timestamp. Ignore the reference while answering the question. |
| 7. | Focus only on the content of the memories from both speakers. Do not confuse character names mentioned in memories with the actual users who created those memories. |
| 8. | The answer should be less than 5-6 words. |
| APPROACH (THINK STEP BY STEP): | |
| 1. | First, examine all memories that contain information related to the question. |
| 2. | Examine the timestamps and content of these memories carefully. |
| 3. | Look for explicit mentions of dates, times, locations, or events that answer the question. |
| 4. | If the answer requires calculation (e.g., converting relative time references), show your work. |
| 5. | Formulate a precise, concise answer based solely on the evidence in the memories. |
| 6. | Double-check that your answer directly addresses the question asked. |
| 7. | Ensure your final answer is specific and avoids vague time references. |
| RELEVANT MEMORIES: | |
| {context} | |
| QUESTION: {question} | |
| ANSWER: | |
Figure 10: Generation prompt for LoCoMo question answering. {context} is filled with the top-3 reranked chunks and {question} with the question.
I Results with Gemma 4 Backbones
We applied the training method of Section 3 to Gemma-4-E2B and Gemma-4-E4B (Team et al., 2026), which have 2.3B and 4.5B effective parameters (5.1B and 8B including embeddings). RRHeads were selected as in Section 4.1, giving for Gemma-4-E2B and for Gemma-4-E4B. As Table 4 shows, Gemma-4-E2B falls between Qwen3-0.6B and Qwen3-4B on all four Macro-9 metrics, and Gemma-4-E4B slightly exceeds Qwen3-4B and Qwen3-8B in R@3 and NDCG@10. Both Gemma 4 variants also outperform every baseline in Section 4.4 on all four Macro-9 metrics.
Table 16 reports per-dataset results, together with the same backbones trained with alone. The mixed objective improves Macro-9 R@3 and NDCG@10 over on both backbones and achieves higher R@3 on seven of the nine datasets for each.
J What the Reasoning Trace Contributes
We analyze which parts of the reasoning trace drive the ranking of RE RANK (4B). The generator's greedy traces and the trained scorer were kept fixed, and only the query text after <think> in the scorer input was replaced. Each variant was used as is and, to compare variants with the same number of query positions, also repeated line by line to the token length of the original trace (881 tokens on average). As a control, the neutral sentence "Let me look through the retrieved chunks." was repeated in the same way, which adds query positions without question-specific content. The answer, keywords, and evidence summary were extracted from the trace by GPT-6-luna given only the question and the trace, and verbatim excerpts and chunk identifiers by string matching. To isolate the effect of training, the question, the neutral sentence, and the full trace were also scored by the untrained Qwen3-4B with the same RRHeads, input, and

Figure 11: Macro-9 R@3 (top) and NDCG@10 (bottom) of RE³RANK when the reasoning trace is truncated to a given token budget at inference. All models were trained with a budget of 1024 tokens. A budget of 0 generates no trace and uses the question as the attention query. The dashed line marks QRRanker (4B).

Figure 12: Macro-9 R@3 (left) and NDCG@10 (right) against reranking time per query at a batch size of 50, extending Figure 6 with the trace budgets of Figure 11. Each RE³RANK curve connects budgets of 0, 64, 128, 256, 512, and 1024 tokens from left to right. Open circles mark , where no trace is generated and the question serves as the attention query, and stars mark the training budget of 1024 tokens. Baseline points repeat Figure 6.
scoring, where the full trace still came from the trained generator. Table 17 reports Macro-9 scores; differences were tested with a paired bootstrap over questions.
Format, positions, and content. Relative to reading the question in the user turn, the full trace improves R@3 by 4.51 points. Placing the question after <think>, where the scorer reads its queries
during training, accounts for 3.08 of these points, and the reasoning content adds 1.43 points over this question-only query and 1.13 points over the question repeated to trace length. Additional query positions alone do not help: repeating the question changes R@3 by +0.30, which is not significant, and a repeated neutral sentence lowers it by 0.77 points. The gain also depends on question-specific
| Dataset | ||||||||
|---|---|---|---|---|---|---|---|---|
| R@1 | R@3 | R@5 | N@10 | R@1 | R@3 | R@5 | N@10 | |
| Gemma-4-E2B | ||||||||
| HotpotQA | 49.30 | 96.65 | 98.60 | 97.13 | 49.85 | 97.35 | 98.95 | 97.57 |
| 2WikiMultihopQA | 54.40 | 98.55 | 99.54 | 99.10 | 54.77 | 99.26 | 99.82 | 99.65 |
| MuSiQue | 44.57 | 82.47 | 90.12 | 89.20 | 47.48 | 84.11 | 90.92 | 91.29 |
| NQ | 26.35 | 57.77 | 77.52 | 83.31 | 26.48 | 58.68 | 77.44 | 83.58 |
| PopQA | 54.80 | 94.65 | 98.90 | 83.15 | 57.65 | 93.55 | 97.65 | 84.21 |
| NarrativeQA | 24.30 | 49.36 | 64.00 | 62.99 | 24.69 | 49.79 | 64.50 | 63.59 |
| DetectiveQA | 10.40 | 23.90 | 33.11 | 34.08 | 10.08 | 22.37 | 32.94 | 33.70 |
| LoCoMo | 72.49 | 88.24 | 92.37 | 88.96 | 72.42 | 88.48 | 92.34 | 89.02 |
| LongMemEval-S | 51.65 | 84.74 | 91.89 | 89.69 | 52.55 | 85.38 | 92.33 | 90.59 |
| Macro-9 | 43.14 | 75.15 | 82.89 | 80.85 | 44.00 | 75.44 | 82.99 | 81.47 |
| Gemma-4-E4B | ||||||||
| HotpotQA | 49.45 | 97.80 | 99.20 | 97.52 | 50.00 | 97.90 | 99.25 | 97.82 |
| 2WikiMultihopQA | 54.80 | 99.42 | 100.00 | 99.76 | 54.70 | 99.57 | 99.95 | 99.72 |
| MuSiQue | 46.78 | 86.78 | 93.20 | 92.38 | 46.80 | 86.84 | 93.11 | 92.50 |
| NQ | 27.21 | 59.85 | 79.23 | 84.53 | 27.01 | 59.97 | 78.02 | 84.34 |
| PopQA | 53.55 | 94.00 | 97.90 | 82.52 | 55.75 | 93.90 | 98.45 | 83.36 |
| NarrativeQA | 28.51 | 54.06 | 68.32 | 68.09 | 28.55 | 55.26 | 68.42 | 68.55 |
| DetectiveQA | 10.75 | 23.91 | 34.86 | 34.75 | 10.35 | 23.50 | 32.71 | 34.46 |
| LoCoMo | 73.75 | 88.80 | 92.61 | 89.73 | 74.03 | 90.01 | 93.25 | 90.29 |
| LongMemEval-S | 51.92 | 85.28 | 92.03 | 90.15 | 53.41 | 87.31 | 93.42 | 91.79 |
| Macro-9 | 44.08 | 76.66 | 84.15 | 82.16 | 44.51 | 77.14 | 84.06 | 82.54 |
Table 16: Per-dataset reranking results of RE³RANK with Gemma 4 backbones (%). Metrics follow Table 8. In the Macro-9 rows, bold marks the better objective on each metric.
content, as the trace of another question falls 5.88 points below the full trace.
Which content matters. Each component extracted from the trace, repeated to trace length, scores below the full trace; the evidence summary comes closest (-0.81 R@3). Removing verbatim excerpts or chunk identifiers from the trace changes R@3 by less than 0.1 points. The ranking signal thus comes from the question-specific reasoning context as a whole; keywords, verbatim excerpts, and chunk identifiers alone recover only part of it. Even the neutral sentence, which carries no content, reaches 74.50 R@3 with the trained scorer, above the question in the user turn (72.19). We attribute this to the causal attention of the scorer: the hidden state at each query position is built from all preceding tokens, including the question and the candidates, so its attention query depends mainly on this context and only partly on the embedding of the token at that position.
Required entities. Naming the required entities is one source of the gain of the trace. Whether an entity is required was judged by GPT-6-luna from the question, its answer, and its gold chunks, so the variants built on this judgment give near-oracle results that are unavailable at inference. Relative to the full trace, deleting them lowers R@3 by 0.59 and NDCG@10 by 0.55 points (76.11 vs. 76.70 and 81.68 vs. 82.23). Since the full trace outperforms the question after <think> by 1.43 R@3 and 0.99 NDCG@10 points, the deletion accounts for 41% and 56% of this gain, and the trace without required entities still outperforms the question after <think> (76.11 vs. 75.27 R@3). Which entities are named also matters. Appending the required entities named in the trace to the question reaches 77.78 R@3 with 20 tokens, 1.08 points above the full trace, whereas appending as many other entities from the trace (74.98) or all of its entities (75.30) brings no gain over the question after <think> (75.27). Appending all required entities, including those the trace misses, gives an upper bound of 80.71 R@3. The trace thus supplies the required entities within reasoning that singles them out among the many entities in the candidates, which a plain entity list achieves only with this near-oracle selection.
Effect of training. The untrained scorer ranks better with the question after <think> than with the full trace (71.97 vs. 67.95 R@3), and long query text degrades its ranking: repeating the question or the neutral sentence to trace length lowers R@3
| Query text after <think> | Tokens | As is | At trace length | ΔR@3 [95% CI] | ||
|---|---|---|---|---|---|---|
| R@3 | N@10 | R@3 | N@10 | |||
| Question and neutral text (ΔR@3 vs. full trace) | ||||||
| Question in the user turn (B = 0) | 15 | 72.19 | 78.35 | – | – | -4.51 [-5.00, -4.03] |
| Question | 15 | 75.27 | 81.24 | 75.57 | 81.07 | -1.13 [-1.46, -0.80] |
| Neutral sentence | – | – | – | 74.50 | 80.22 | -2.20 [-2.57, -1.84] |
| Content extracted from the trace (ΔR@3 vs. full trace) | ||||||
| Answer only | 6 | 71.60 | 78.18 | 74.64 | 80.32 | -2.05 [-2.43, -1.69] |
| Chunk identifiers | 68 | 74.51 | 80.06 | 75.15 | 80.62 | -1.55 [-1.89, -1.23] |
| Keywords | 111 | 74.39 | 80.03 | 75.17 | 80.67 | -1.53 [-1.87, -1.20] |
| Verbatim excerpts | 249 | 75.40 | 80.88 | 75.38 | 80.91 | -1.32 [-1.64, -0.99] |
| Evidence summary | 47 | 75.63 | 81.26 | 75.89 | 81.39 | -0.81 [-1.12, -0.52] |
| Question + all trace entities | 76 | 75.30 | 80.83 | – | – | -1.40 [-1.78, -1.01] |
| Perturbed traces (ΔR@3 vs. full trace) | ||||||
| Trace of another question | 881 | 70.82 | 77.04 | – | – | -5.88 [-6.36, -5.40] |
| Trace without verbatim excerpts | 535 | 76.66 | 82.20 | – | – | -0.04 [-0.23, +0.15] |
| Trace without chunk identifiers | 810 | 76.65 | 82.15 | – | – | -0.05 [-0.18, +0.09] |
| Required entities (ΔR@3 vs. full trace) | ||||||
| Trace without required entities | 844 | 76.11 | 81.68 | – | – | -0.59 [-0.73, -0.45] |
| Question + named required entities | 20 | 77.78 | 83.33 | – | – | +1.08 [+0.72, +1.43] |
| Question + as many other trace entities | 19 | 74.98 | 80.85 | – | – | -1.71 [-2.10, -1.33] |
| Question + all required entities | 22 | 80.71 | 86.05 | – | – | +4.01 [+3.57, +4.47] |
| Full trace | 881 | 76.70 | 82.23 | – | – | – |
| Untrained Qwen3-4B scorer with the same RRHeads (ΔR@3 from training) | ||||||
| Question in the user turn (B = 0) | 15 | 70.01 | 76.60 | – | – | +2.18 [+1.65, +2.73] |
| Question | 15 | 71.97 | 77.96 | 64.03 | 73.52 | +11.54 [+10.94, +12.14] |
| Neutral sentence | – | – | – | 60.37 | 70.87 | +14.13 [+13.50, +14.79] |
| Full trace | 881 | 67.95 | 74.16 | – | – | +8.75 [+8.17, +9.36] |
Table 17: Macro-9 scores (%) of RE³RANK (4B) when the query text read by the scorer is replaced, with the scorer and its RRHeads fixed. Tokens is the mean length of the text as is; at trace length, the text is repeated line by line to the token length of the original trace. The neutral sentence (“Let me look through the retrieved chunks.”) carries no question-specific content and was only used at trace length. The first row keeps the question in the user turn, as for B = 0 in Appendix H. Required entities are the bridge entities and answers that the question needs but omits, annotated by GPT-6-luna from the question, its answer, and its gold chunks; named ones are those mentioned in the trace. Variants built with them rely on gold labels and serve only for analysis; the control adds as many other entities from the trace. ΔR@3 compares the full trace with the version at trace length when it exists and with the text as is otherwise. The last group replaces the trained scorer with the untrained Qwen3-4B; its last column is the R@3 of the trained scorer minus that of the untrained one for the same query text, at trace length when it exists. Intervals come from a paired bootstrap over questions.
by 7.95 and 11.61 points. Training mitigates this degradation, as both repeated texts stay within 0.8 points of the question after <think> for the trained scorer. It also raises the R@3 of the full trace by 8.75 points, so the full trace moves from below the question after <think> to above it. The effect of training extends beyond the reasoning trace to filler text at the query positions: training raises the R@3 of the repeated question and the neutral sentence by 11.54 and 14.13 points, more than that of the full trace. This again follows from how the hidden states are built. Each query position aggregates the question and the candidates from its preceding context, and training teaches the scorer to route attention from these contextual states to relevant candidates, whichever tokens occupy the positions.
K Comparison with Closed-Source LLM Rerankers
We compared RE³RANK with two closed-source reasoning LLMs, GPT-6.1-sol and GPT-6-luna, used as listwise rerankers. They serve only as a reference for the ranking quality of frontier models, separate from the baselines of Section 4.3.2. Each model was called once per question with the question and all 50 candidates in first-stage order. Both models received the same prompt (Figure 13), ran at their default reasoning effort, and returned the identifiers of their 10 most useful candidates, which were ranked first in that order, followed by the remaining candidates in first-stage order. Table 18 reports Macro-9 scores from a single run.
Listwise Reranking Prompt for Closed-Source LLMs
System: You are an expert at judging which retrieved passages are needed to answer a query.
User: I will give you 50 passages, each labelled with a number in square brackets. Rank them by how useful they are for answering this query: {question}
{passages}
Query: {question}
A passage is useful when it states information that the answer depends on: the answer itself, or, when reaching the answer takes more than one step, a fact needed for one of the steps (for example, the passage that identifies a person, place or work that the query only describes, or one of several facts that the query compares or combines). Rank first the passages that state such information, the most essential first. A passage that only shares the topic or the wording of the query is not useful.
Reply with the numbers of the 10 most useful passages, the most useful first, in the form [4] > [17] > [2] > ... : exactly 10 different numbers and nothing else.
Figure 13: Listwise reranking prompt for GPT-6.1-sol and GPT-6-luna. {passages} lists the 50 candidates as [1] to [50] in first-stage order, separated by blank lines, and {question} is the question.
| Reranker | R@1 | R@3 | R@5 | N@10 |
|---|---|---|---|---|
| Closed-source LLMs | ||||
| GPT-6.1-sol | 46.85 | 79.19 | 86.11 | 84.87 |
| GPT-6-luna | 46.15 | 77.88 | 84.67 | 83.55 |
| RE³RANK with Qwen3 | ||||
| 0.6B | 42.34 | 73.55 | 81.43 | 79.67 |
| 4B | 44.20 | 76.70 | 84.01 | 82.23 |
| 8B | 44.12 | 76.68 | 84.36 | 82.36 |
| RE³RANK with Gemma 4 | ||||
| Gemma-4-E2B | 44.00 | 75.44 | 82.99 | 81.47 |
| Gemma-4-E4B | 44.51 | 77.14 | 84.06 | 82.54 |
Table 18: Macro-9 scores (%) of closed-source LLMs used as listwise rerankers and of RE³RANK with Qwen3 and Gemma 4 backbones. Bold marks the best result among the closed-source LLMs and among the versions of RE³RANK.
The gap between RE³RANK and these frontier LLMs is small. GPT-6.1-sol and GPT-6-luna lead RE³RANK (4B) by only 2.49 and 1.19 R@3 points, RE³RANK with Gemma-4-E4B comes within 0.74 R@3 points of GPT-6-luna, and RE³RANK (8B) is on par with GPT-6-luna on R@5 (84.36 vs. 84.67; paired difference +0.31 [-0.19, +0.81]). RE³RANK reaches this level with open backbones of a few billion parameters that run locally, at 0.81 s per query for the 4B model under batched inference (Figure 6), whereas the two LLMs are closed-source models of undisclosed size whose API calls took 5.2 and 11.0 s per question on average. Moreover, when the scorer of RE³RANK (4B) reads the question followed by all required entities (Table 17), it reaches 80.71 R@3 and 86.05 NDCG@10, above GPT-6-luna used as a reranker (77.88 and 83.55), the same model that identified these entities. This result shows that the attention-based scorer is effective and that RE³RANK has considerable potential as its generator learns to state the required information more precisely.