← All entries
Paper2026#1304

UNREAL: Unifying Retrieval and Long-Context with a Single Model

Summary

NVIDIA's UNREAL makes RAG and long-context inference two scales of one model-internal evidence-selection mechanism, replacing external bi-encoder retrievers and rerankers. The LLM backbone stays completely frozen; the only trainable parts are fewer than 500K parameters: learned retrieval tokens (a soft prompt appended after the query that elicits a retrieval mode) and layer-mixing weights that combine residual-stream states across layers for evidence ranking. Each corpus chunk is encoded independently by the frozen LLM at an intermediate layer; the query's residual states at the retrieval-token positions (conditioned on the query plus a BM25 initial context) score every chunk via late-interaction MaxSim, trained with a multi-positive InfoNCE contrastive loss. Because the readout operates on the residual stream, the same module works across dense-attention, linear-attention, state-space, and hybrid architectures. On a 3B-token, 21M-chunk Wikipedia index, all four tested UNREAL backbones outperform state-of-the-art retriever-reranker systems: the best raises recall from 49.1% to 73.2% on HotpotQA, 31.7% to 60.1% on 2WikiMultiHopQA, and 8.8% to 14.4% on MuSiQue. The same retrieval-trained module prunes distractors before generation in long-context tasks: NoLiMa accuracy jumps from 1.0% to 24.83% at 128K tokens, and LV-Eval F1 from 49.97% to 54.66% at 256K. Relative to full-context inference, UNREAL reduces FLOPs and time-to-first-token from roughly 32K tokens onward, with larger gains as context grows. arXiv 2610.08463 (cs.CL), submitted 6 Oct 2026; CC BY 4.0. No code repo linked on arXiv at catalog time.

Venue
arXiv 2610.08463 (cs.CL), submitted 6 Oct 2026
Source
x
Access
public
Language
en
Added
Oct 8, 2026
Verified
Oct 8, 2026

Topics

retrieval, RAG, long-context inference, evidence selection, frozen LLM representations, attention efficiency

Research notes

  • Discovery: link shared by user; X post by Gill (@gurtej__gill_, AI Researcher, ~2.1K followers, verified), posted 2026-10-08 ~11:54 AM ET (https://x.com/gurtej__gill_/status/2108224422016680343), 441 views, 13 likes, 15 bookmarks, linking https://arxiv.org/pdf/2610.08463. Directly relevant to the user's work: (1) his 3:1 SWA:full-attention hybrid training stack — UNREAL's distractor-pruning-before-generation reduces FLOPs and time-to-first-token past 32K tokens, and its residual-stream readout works uniformly across dense, linear, SSM, and hybrid architectures; (2) his unnamed AI agent app — model-internal RAG evidence selection removes the external bi-encoder/reranker pipeline entirely.

Similar entries