- Rating
- 5
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
The paper studies whether language models can serve as corpus-scale retrievers by keeping the entire corpus in context and generating the ID of the relevant document. The authors argue that prior work has mostly tested proprietary systems, synthetic long-context tasks, or small reranking setups, leaving realistic million-token in-context retrieval underexplored. Their central claim is that LM-based in-context retrieval can work at moderate scale, but fails at very large corpus sizes because attention becomes diluted across too many irrelevant documents.
Their proposed system, BLOCKSEARCH, is a 0.6B Qwen3-based retriever trained to generate randomized four-digit document IDs. It uses block-sparse attention so document blocks are encoded independently while the query attends over the corpus, randomized document codes to avoid position overfitting, in-batch negatives, and an on-policy auxiliary loss to reduce exposure bias during multi-digit ID generation. They evaluate on MS MARCO, HotpotQA, and Natural Questions with corpora up to around 10k documents, roughly million-token contexts, using Recall@1 over the generated document ID.
Experimentally, BLOCKSEARCH performs well at small and medium corpus sizes, often matching or exceeding stronger LM-based baselines despite being much smaller. However, its performance drops sharply as the corpus approaches million-token scale, falling well behind a dense retriever baseline. The authors trace this failure to attention dilution: some attention heads still retain signal about the gold document, but the normalized attention mass assigned to that document collapses as many irrelevant documents increasingly dominate the softmax denominator.
To address this, they test length-aware attention modifications and document-level sparse routing. A simple additive attention sink gives limited gains, but SSMax substantially improves large-context performance, and top-B document routing recovers much of the gap to dense retrieval. Overall, the paper’s main contribution is not only a stronger in-context retrieval model, but a convincing diagnosis of why such systems break at scale and which attention-control mechanisms help. Its main limitations are that the study is restricted to one small backbone family, three BEIR-style datasets, and relatively small query samples, while the strongest routing intervention partly reintroduces a retrieval stage inside the LM.
Strengths and weaknesses
Strengths
-
The paper’s main strength is that it studies an interesting and timely direction: whether language models can perform corpus-scale retrieval directly in context. It demonstrates the feasibility of this direction at a much larger scale than prior small reranking or synthetic long-context studies. This gives the paper meaningful significance, since it connects long-context modeling with practical retrieval and tests the idea under more realistic corpus sizes.
-
The experimental quality is strong. The experiments are well targeted and comprehensive: they cover a wide range of corpus sizes, compare against relevant baselines, include ablations of the proposed training choices, and dive into attention behavior at the layer level. I especially appreciate that the paper does not stop at reporting a performance drop, but provides a mechanistic explanation for why large-corpus retrieval collapses. The attention-dilution analysis is convincing: the model may still preserve some gold-document signal, but the normalized attention mass assigned to the gold document is overwhelmed by many irrelevant documents as the corpus grows.
-
The proposed approaches are also well motivated. SSMax and document-level routing directly target the identified attention-dilution issue and lead to clear improvements at large scale. From an originality perspective, the framing of in-context retrieval at million-token scale, together with the layer-level diagnosis of attention dilution, makes the paper more interesting than a purely empirical scaling study. The paper is also clear and easy to follow: the motivation, method, experiments, failure analysis, and fixes are presented in a logical order, which makes the technical story coherent.
Weakness
-
The empirical scope is still limited. The evidence is based mainly on one small Qwen3 backbone and relatively small query samples, so it is unclear how broadly the conclusions generalize to larger models, other architectures, or more diverse retrieval workloads.
-
The MSA-4B comparison doesn't seem to be a strong baseline. Although it is useful to compare against a larger LM-based retriever, MSA-4B is weaker than the Qwen3-dense baseline across the reported metrics, so outperforming it with fewer parameters does not by itself establish strong competitiveness. The authors should frame MSA-4B as an external reference point rather than a decisive baseline.
-
Practical retrieval implications need more discussion. The setup uses single-document 4-digit code generation, while real retrieval often requires ranked lists, multiple relevant documents, dynamic corpora, and efficient query-time serving. The paper would benefit from a clearer analysis of latency, memory, KV-cache reuse, and how routing compares practically to standard retrieval pipelines.
Questions
-
How much does document-level routing change the nature of the method? Since routing introduces an internal shortlisting step, in what sense should the resulting system still be considered in-context retrieval rather than a retrieve-then-read hybrid?
-
Why is the additive sink disabled at evaluation? Since the sink is presented as a length-aware attention intervention, please clarify why it is only used during training and whether enabling it at test time was tried.
-
What are the practical latency and memory costs? Accuracy is reported at million-token scale, but deployment would depend heavily on KV-cache size, query throughput, and amortized prefill cost versus dense retrieval.
Limitations
-
Scope of generalization should be stated more explicitly. The conclusions are based on one small backbone family, three BEIR-style datasets, and fixed query samples. The authors should clarify whether they expect the attention-dilution findings and proposed fixes to hold for larger LMs, different architectures, multilingual corpora, or non-QA retrieval tasks.
-
Practical deployment costs should be discussed. Since the paper positions in-context retrieval as an alternative to dense retrieval, it should more directly address latency, memory, cache size, throughput, and update costs at million-token scale.
Paper formatting concerns
n/a
Final justification
My initial concerns were backbone generality, workload diversity, and missing deployment-cost analysis. The rebuttal resolved these with new experiments: the SmolLM2 replication reproduces the full mechanistic picture on a second architecture, and the Gemini-3-flash result shows the same collapse without task training, confirming the attention-dilution diagnosis is general. The authors also provided a candid system-cost analysis and showed the current bottleneck of the approach.
I weigh this lightly on the remaining limitations. Therefore, I raise my score to 5 (Accept), conditional on the revision incorporating the new results and discussions.
We thank the reviewer for a detailed and accurate summary, and for the assessment that "the experiments are well targeted and comprehensive," that "the attention-dilution analysis is convincing," and that the layer-level diagnosis "makes the paper more interesting than a purely empirical scaling study." We ran new experiments for W1 and W3.
W1
Regarding Backbone generality, we provide two additional experiments. An inference-only evaluation of Gemini-3-flash (frontier proprietary LCLM), and a BLOCKSEARCH-equivalent on SmolLM2-360M (
LlamaForCausalLM). Using our MS MARCO R@1 evaluation:Both degrade on the same curve. Gemini-3-flash falls 95.0 to 16.2 with no training and no exposure to our recipe, so the collapse is not an artifact of a small task-trained backbone; SmolLM2-360M collapses earlier, near zero by N=5,000, consistent with less capacity to sustain the gold signal against a growing distractor pool.
We also reproduced every mechanistic experiment from Section 4.2 on SmolLM2. Figures 3 and 4 rebuilt (selected layers, all 32 in the revision):
The two bands (Fig. 3). Retrieval band L17–L23, R^sum peaking at 0.59–0.69 while first-digit accuracy is still at chance (~0.10): the document is located, no digit committed. Decode band L24 onward, first-digit lifting off at L23→L24 (0.10 → 0.19, reaching 0.33 by L31) as R^sum falls away. This is Qwen3's structure, just shifted deeper.
Large N Impact (Fig. 4). R^sum collapses to 0.00 at every layer by N=10,000, matching Qwen3's L19 (0.97 → 0.01), while R^any holds at 1.00. So the model decodes nothing correctly yet some head still ranks a gold document first — the recall-generation gap, on a second backbone. The attention output shows the same swap at L23 (median, 400 queries):
GoldShare is still normalized out: the signature is identical to Qwen3 at L19 (0.91 to 0.01, ‖a‖ falling only 47.5 to 30.3). The layer keeps writing into the residual at roughly its original magnitude while the gold-driven share is normalized out.
For the concern over the lack of Diverse workloads: two evaluations beyond the BEIR-style datasets, neither of which were in the submission. First, we consider LIMIT (Weller et al., 2025), an out of distribution dataset requiring a different notion of similarity with n=1,000 and R@1:
Qwen3-dense(same backbone)In-context retrieval leads at every corpus size, by 4.3x at N=5,000 (~850k tokens), against a chance floor of 0.000. This is a sharper test than the BEIR-style benchmarks, rewarding our regime while a fixed embedding cannot express the relevance function. On OBLIQ (Tchuindjo et al., 2026), an evaluation suite capturing multiple oblique-relevance tasks (with n=151–512 queries) no method leads, but the attention ceiling is striking:
Qwen3-denseSome head ranks gold first for most queries on a relevance notion never seen in training while every readout returns near zero: the diagnosis holds well outside the training distribution, and the readout rather than the representation is the limit.
Query sample size. We agree n=400 is modest (LIMIT uses n=1,000) and have quantified the cost by re-running the MS MARCO sweep over three query draws, giving the mean ± std:
Draw-to-draw variation is 0.5–4.3 points, but the collapse from 94.6 to 0.2 is still an order of magnitude larger, so the conclusions are not subject to which 400 queries were drawn.
W2
We agree, and will re-frame MSA-4B as an external reference point rather than a decisive baseline. We evaluated against it because it is one of very few published systems at comparable scale; the decisive comparison throughout is
Qwen3-dense, the same-backbone retriever trained on the same data.W3/Q3
We thank the reviewer for raising these concerns and we will add a discussion on system-level metrics in the paper. Generally, memory requirements remain a bottleneck for this approach compared to dense retrieval, and our paper did not focus on improving them, as we focused on answering "whether it is plausible at all for an LCLM to perform retrieval." We think there are challenges (e.g., ANN is hard to integrate with Transformers because it's not GPU friendly), but also opportunities (e.g., KV cache compression, etc), which we believe are exciting opportunities for future work. We go into more specifics regarding these challenges below.
Latency. Because only the top-B=256 documents enter dense attention downstream of layer 16, per-query latency is nearly flat in corpus size: it grows 16% (0.44 s to 0.51 s) while the corpus grows 20x. We think this is a stronger result for routing than the accuracy tables alone convey: routing is not only an accuracy intervention targeting attention dilution, it is what makes decode cost tractable at this scale.
Memory. This is the key bottleneck we look to quantify. Qwen3-0.6B has 28 layers with 8 KV heads of dimension 128, so bf16 KV costs 112 KiB per token: 4.8 GiB at 45k tokens, 48.1 GiB at 450k, and 96.1 GiB at 900k. A dense retrieval index over the same 10,000 documents at 1,024 dimensions in bf16 is roughly 20 MB. The gap is about three orders of magnitude and is the strongest practical argument for dense retrieval today. We shard the cache across 8 GPUs by context parallelism to make the million-token setting feasible, but this is the most important reason for why sparser attention is necessary as context length gets longer.
Cache reuse. Prefill is, as the reviewer states, amortized: the corpus cache is computed once and reused across all queries, so the per-query cost is the decode figure above, not the prefill cost.
Q1
We appreciate this question from the reviewer: Section 5.2 notes that routing recovers part of a retrieve-then-read decomposition inside the model. The distinction still holds, for two reasons.
First, the shortlisting step is not a separate model: the layer-16 routing score comes from the same forward pass and the same attention scores Section 4 measures — no separate encoder, index, or objective.
Second, nothing is committed to a fixed representation. In retrieve-then-read each document is compressed once into an embedding fixing what it can ever be retrieved for, so changing relevance means re-embedding; here documents remain keys and values every query attends over afresh, so relevance is based on the model itself, not an external index.
Finally, routing is a test of the diagnosis rather than the system we advocate: SSMax targets the same mechanism with no shortlisting and recovers most of the gap alone. We will make this explicit in Section 5.
Q2
The sink is a training-time mechanism. As the appendix shows, it is equivalent to a multiplicative gate on the layer's residual write, scaled by that layer's log-sum-exp relative to a learned threshold. Critically the gate does not change the relative ranking of per-token attention weights; it only scales what the layer writes. Its effect is to shape what the network learns to rely on during training, by penalising diffuse layers, not to alter retrieval at inference.
As a sanity check, we did try enabling it at test time: replaying the gate at evaluation with the trained threshold and length schedule is essentially a no-op, as recall was left unchanged; this is consistent with the mechanism above and why we disable it.