Skip to content
AI Learning Ground Start learning

Research ·

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

UNREAL is a model-native framework that unifies corpus retrieval and long-context evidence selection using a frozen LLM's internal representations, adding under 500K trainable parameters while beating state-of-the-art retrievers and improving long-context accuracy.

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

Researchers introduced UNREAL (UNifying REtrieval And Long-Context with a Single Model), a framework that handles evidence selection at both extremes of scale, from a single long prompt to an entire corpus, with one mechanism. Instead of an external retriever, UNREAL encodes chunks and derives retrieval queries directly from a frozen LLM's internal representations, adding fewer than 500K trainable parameters while leaving the backbone unchanged.

On a 3B-token, 21M-chunk Wikipedia index, all four dense and hybrid UNREAL backbones outperformed state-of-the-art retriever-reranker systems. The best model raised recall on HotpotQA from 49.1% to 73.2%, on 2WikiMultiHopQA from 31.7% to 60.1%, and on MuSiQue from 8.8% to 14.4%. Applied to long-context tasks, the same mechanism removes distractors before generation, lifting NoLiMa accuracy from 1.0% to 24.83% at 128K tokens and LV-Eval F1 from 49.97% to 54.66% at 256K.

The approach also cuts FLOPs and time-to-first-token relative to full-context inference from roughly 32K tokens onward, with gains growing as context lengthens. For builders, this points to a way to combine retrieval and long-context generation in a single frozen model, reducing serving cost while improving multi-hop retrieval quality without swapping in a separate embedding or reranker system.

References

Read the full story at Hugging Face ↗Like, save or discuss on Buzz

#research