Skip to content

Glance: Can One Generator Replace a Separate Reranker?

THE ARGUMENT

In the evaluated setting—two retrieval datasets, one QA set and one backbone family—a generator with a lightweight adapter can rerank and answer with one resident backbone, but a dedicated cross-encoder is still faster and the evidence is narrow.

On this page

A team with one 9B generator and 20 candidate passages per query must decide whether to add a separate reranker, but the usual advice—deploy a cross-encoder—leaves two models resident and processes every passage twice. Most people assume the reranker must be its own model because scoring each query–passage pair separately is the standard recipe. The paper asks a narrower question: since the generator will read those passages anyway, can it score them during the same read? Glance adds a lightweight decision adapter and a 256-dimensional pointer head to a frozen 9B backbone, prefills k candidates once, branches short relevance probes from the shared cache, and produces one score per passage without a second prefill per pair [1].

Two Models by Default, One Backbone in the Paper

Retrieval-augmented generation (RAG) usually separates evidence selection from answer generation: a cross-encoder reranker scores each query–passage pair separately, then the generator reads the top passages. Glance keeps one resident 9B backbone and attaches a rank-16 LoRA adapter plus a 256-d pointer head; the backbone stays frozen. The adapter is active during reranking and disabled during answer generation in the main pipeline.

The method prefills k candidates once, then runs k short probes (about 30 tokens each) that branch from the shared cache. Each probe asks whether passage i supports the query; the pointer head turns the hidden state into a relevance score. The paper compares three packings: packed_all (all passages in the state, one probe per passage), packed_q (query in the state, passage inside each probe), and listwise (one multiple-choice question over k passages).

  • Method: one shared passage prefill, passage-specific probes, and a pointer head; the backbone is frozen.
  • Evidence: two BEIR retrieval datasets, one HotpotQA QA set, and a scaling study up to 200 candidates.
  • Serving: several small decision adapters share one resident backbone and switch per request.

One Prefill, Many Probes: Where the Scores Come From

The paper compares three packings. packed_all puts all k passages into the shared state and asks one probe per passage; packed_q puts the query in the state and one passage inside each probe; listwise turns the k passages into a single multiple-choice question. All three do one shared prefill, but each probe sees a different amount of context. nDCG@10 measures ranking quality in the top 10 results, where higher is better.

Zero-shot methodSciFact nDCG@10NFCorpus nDCG@10ms/query (SciFact/NFCorpus)
BM250.6620.306–
bge-reranker-v2-m30.7210.32631 / 60
Same 9B, 20 separate calls0.7290.3232210 / 2485
Glance packed_all (one pass)0.7150.341614 / 670
Glance packed_q (one pass)0.7210.328773 / 847
Glance listwise (one pass)0.6840.331544 / 573

Without retrieval training, packed_all reaches 0.715 nDCG@10 on SciFact versus 0.729 for 20 separate calls to the same 9B model, at 3.6× lower latency; on NFCorpus it reaches 0.341 versus 0.323 for separate calls and 0.326 for bge-reranker-v2-m3. The dedicated cross-encoder is still far faster at 31–60 ms per query, while one-pass Glance runs at 544–847 ms on a shared RTX PRO 6000. The paper notes that BEIR differences are not significance-tested and gaps below about 0.02 nDCG@10 at n≈300 should be read as indicative.

After 39 Minutes of Training: Retrieval and QA Numbers

Training uses 4,000 MS MARCO queries, each packing one positive and 7–19 hard negatives: 55,598 labelled probes and 7.7M forward tokens. The adapter is rank-16 LoRA with a learning rate of 5e-5 (head 1e-4), batch 8, one B200, 39 minutes, and 21 GiB peak GPU memory. No BEIR or HotpotQA data is used in training.

MethodSciFact zero-shotSciFact trainedNFCorpus zero-shotNFCorpus trained
BM250.662–0.306–
bge-reranker-v2-m30.721–0.326–
Glance packed_all0.7150.7410.3410.345
Glance packed_q0.7210.7380.3280.338
Glance listwise0.6840.6920.3310.334

Trained packed_all reaches 0.741 on SciFact and 0.345 on NFCorpus, 0.020 and 0.019 above bge-reranker-v2-m3. On 300 HotpotQA validation questions (10 paragraphs each, 2 gold), Glance top-3 with the adapter off gives F1 0.718 versus 0.683 for bge top-3; with the adapter on, Glance gives 0.757 versus 0.702. The abstract reports a paired bootstrap 95% CI [0.014, 0.076] for a 0.045 F1 gain over cross-encoder-selected context under the same base generator.

The gain is about context selection, not a different answer model. The generator is the same 9B backbone in all rows; only the selected three passages change. The paper does not decompose the gain into ranking quality and distribution match, so the result does not prove that generator self-scoring beats cross-encoders in general.

Scaling to 200 Candidates, With Memory as the Constraint

On the first 100 SciFact queries, the paper scales candidates per shared prefill from 10 to 200 and trims passages to 100 words. The zero-shot adapter peaks at k=20 and falls to 0.584 at k=100. The MS MARCO-trained adapter improves with k: 0.682 at k=100 (21.6k tokens) versus 0.637 for the cross-encoder on the same 100 candidates. Another 14 minutes on longer records (trained-long) reaches 0.697 at k=100, 0.060 above the cross-encoder. At k=200 (43.4k tokens) the request no longer fits in one call; the chunked path reaches 0.717 versus 0.659 for the cross-encoder, at 15.8 s per query.

k candidatestokens/passtrained-long nDCG@10bge-v2-m3 nDCG@10ms/querypeak GiB
102.2k–0.62625215.4
204.3k0.6740.62416516.7
5010.8k0.6910.64241725.5
10021.6k0.6970.637104956.4
20043.4k0.7170.6591579020.5

Memory grows faster than linearly because every probe branch continues from its own copy of the shared attention cache: 56 GiB at k=100. Under a 64 GiB cap, zero-shot single-call runs out of memory at k=200 (43k tokens). The chunked serving path runs k=200 and k=300 (65k tokens, 23 GiB, about 22 s per query), but zero-shot quality collapses to 0.505 on 38 queries at k=200. Batching across queries lowers throughput from 2.87 queries/s at B=1 to 1.57 at B=16 and runs out of memory at B=32.

Out of Scope: When This Method Does Not Apply

The paper limits its evaluation to two retrieval datasets (SciFact with 300 test queries, NFCorpus with 323), one QA dataset (300 HotpotQA questions) and one backbone family (MiMo-V2.6-Distill-Qwen-9B, a 3:1 hybrid of Gated DeltaNet and full attention). BEIR gaps are not significance-tested; at n≈300, differences below about 0.02 nDCG@10 are only indicative. This method is out of scope when the backbone family, language or retrieval domain changes without new evidence.

Latency is the second boundary. A dedicated cross-encoder takes 31–60 ms per query; trained packed_all takes 420 ms on SciFact and 411 ms on NFCorpus on a B200, and HotpotQA reranking takes 378 ms versus 29 ms for bge. The main pipeline also re-prefills the selected top-n passages (about 1.5k tokens) before answering. Glance-Activated continues the original cache, but that cache still holds all k candidates; losing passages are not removed.

The method fails when the serving budget is tens of milliseconds, and it does not apply when candidates scale to tens of thousands or when cross-language and cross-domain generalization is required. Serving also stays non-trivial: adapters remain unmerged, reranking turns them on and answering turns them off, and each extra decision skill costs about 0.1 GiB while candidate count and cache implementation change total memory. The paper demonstrates a feasible one-backbone design, not a universal replacement for rerankers [1]. My judgment is to run a controlled pilot on your own query distribution and compare nDCG@10 and end-to-end F1 before replacing anything.

References

  1. Glance: The Generator Is Its Own Reranker

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…