Self-Retrieval: End-to-End Information Retrieval with One Large Language Model
Qiaoyu Tang, Jiawei Chen, Zhuoqun Li, Bowen Yu, Yaojie Lu, Cheng Fu, Haiyang Yu, Hongyu Lin, Fei Huang, Ben He, Xianpei Han, Le Sun, Yongbin Li
TL;DR
Self-Retrieval proposes an end-to-end IR system powered by a single large language model that internalizes the corpus, generates relevant passages with constrained decoding, and performs self-assessment for reranking. By unifying indexing, retrieval, and reranking within one model, it enables seamless information sharing across IR components and reduces error propagation inherent in pipelines. Empirical results on NQ, TriviaQA, and MS MARCO show substantial gains over sparse, dense, and generative baselines, with clear scaling benefits for larger LLMs and corpora. The approach also demonstrates strong performance in retrieval-augmented generation, highlighting practical impact for real-world RAG applications.
Abstract
The rise of large language models (LLMs) has significantly transformed both the construction and application of information retrieval (IR) systems. However, current interactions between IR systems and LLMs remain limited, with LLMs merely serving as part of components within IR systems, and IR systems being constructed independently of LLMs. This separated architecture restricts knowledge sharing and deep collaboration between them. In this paper, we introduce Self-Retrieval, a novel end-to-end LLM-driven information retrieval architecture. Self-Retrieval unifies all essential IR functions within a single LLM, leveraging the inherent capabilities of LLMs throughout the IR process. Specifically, Self-Retrieval internalizes the retrieval corpus through self-supervised learning, transforms the retrieval process into sequential passage generation, and performs relevance assessment for reranking. Experimental results demonstrate that Self-Retrieval not only outperforms existing retrieval approaches by a significant margin, but also substantially enhances the performance of LLM-driven downstream applications like retrieval-augmented generation.
