potentialpaper

Can Language Models Actually Retrieve In-Context? Drowning in Documents at Million Token Scale

Import the versions from OpenReview: the same title at other venues

@openreview[bot] · 2026-11-22 20:15 UTC · dd1971c8bd09 ·

versions/v_2dx4g7zq.json added

+++ b/versions/v_2dx4g7zq.json
@@ -0,0 +1,18 @@
+{
+ "date": "2026-06-20",
+ "kind": "submitted",
+ "label": "VecDB @ VLDB 2026",
+ "submissions": [
+ {
+ "venue": "VecDB @ VLDB 2026",
+ "status": "accepted",
+ "url": "https://openreview.net/forum?id=tKGBy5VYF0"
+ }
+ ],
+ "title": "Can Language Models Actually Retrieve In-Context? Drowning in Documents at Million Token Scale",
+ "url": "https://openreview.net/forum?id=tKGBy5VYF0",
+ "evidence": [
+ "https://openreview.net/forum?id=tKGBy5VYF0"
+ ],
+ "abstract": "Language models (LMs) raise an intriguing alternative to vector-based retrieval: conditioning on an in-context corpus and directly generating a relevant answer.\nHowever, prior work has largely focused on proprietary systems or the smaller-scale reranking task, leaving corpus-scale in-context retrieval largely unexplored.\nIn this work, we present the first systematic study of in-context retrieval on two scales practical retrievers demand: million-token corpora and length-generalization far beyond training-time sizes.\nWe first introduce BLOCKSEARCH, a 0.6B LCLM retriever whose architectural and training modifications improve over prior LM baselines and length-generalize up to $10\\times$ beyond its training regime. Nevertheless, its retrieval still collapses under more extreme extrapolation.\nWe trace this failure to an attention dilution effect: as the corpus grows, irrelevant documents dominate the softmax denominator, minimizing the normalized mass on the gold document even as its pre-softmax score stays high. Motivated by this analysis, we introduce length-aware adjustments to the attention softmax and document-level sparse attention, improving retrieval at million-token scale, better performance than the concurrent $7\\times$-larger MSA system, and comparable performance to dense retrieval. Together, our results position in-context retrieval as a viable alternative to classical retrieval, emphasizing attention control under extreme context growth as a new challenge."
+}