Reproduce “UNREAL: Unifying Retrieval and Long-Context with a Single Model” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Edan Kinderman, Elad Hoffer, Yochai Blau, Brian Chmiel, Ron Banner, Daniel Soudry, Boris Ginsburg
UNREAL uses a frozen decoder-only language model’s internal representations to select evidence chunks before answering, treating long-context reading and corpus-scale retrieval as one selection task. It ranks chunks using learned retrieval tokens and a BM25-seeded query, then re-encodes selected text for generation. On a 21-million-chunk Wikipedia index, complete-evidence recall@10 rises from 49.1% to 73.2% on HotpotQA; results concern sparse-evidence QA.
Key insights
- Retrieval-trained representations transfer to long-context evidence selection without additional long-context training, linking corpus RAG and prompt-level selection as related tasks.
- Selecting a limited set of passages can help not only by finding evidence but also by excluding distracting material; on NoLiMa, accuracy declines when too many chunks are included.
- The approach is aimed at sparse-evidence tasks; it does not establish that selection can replace full-context processing when answers require integrating information throughout the input.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.