atlas

Research map / Large language models / Retrieval and knowledge

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

NeurIPS 2026 · Large language models › Retrieval and knowledge · approach: Retrieval-augmented reasoning · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Systematic study of corpus-scale in-context retrieval with a 0.6B LM (BlockSearch), diagnosing attention dilution as the cause of collapse at million-token scale and mitigating it with length-aware softmax (SSMax) and document-level top-B routing.

Problem

Whether language models can retrieve relevant documents directly from large in-context corpora (up to million tokens, and beyond training-length corpus sizes), where prior work relied on proprietary systems or small-candidate reranking.

Approach

Train a Qwen3-0.6B in-context retriever with random per-document codes, in-batch negatives, and an on-policy auxiliary loss; diagnose collapse as attention dilution (gold's softmax mass shrinks as corpus grows) and mitigate with log-N attention score scaling (SSMax) and document-level top-B routing at layer 16.

Key results

Surprising findings

Limitations

Experimental setup

Datasets: RLHN-680K (filtered) MS MARCO HotpotQA Natural Questions LIMIT

Benchmarks: MS MARCO HotpotQA Natural Questions LIMIT

Metrics: Recall@1 Recall@5

Baselines: Qwen3-dense (0.6B) MSA-4B BlockSearch-position BlockSearch-offpolicy Gemini-3-flash BlockSearch-sink

Builds on: block-sparse attention for in-context reranking SSMax GPT-OSS attention sinks RLHN DAgger

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy