CorpusLM: Towards a Unified Language Model on Corpus for Knowledge-Intensive Tasks
Xiaoxi Li, Zhicheng Dou, Yujia Zhou, Fangchao Liu
TL;DR
CorpusLM addresses hallucination in knowledge-intensive tasks by unifying generative retrieval, closed-book generation, and retrieval-augmented generation within a single greedy decoding framework. It introduces a ranking-oriented DocID list generation for end-to-end RAG, a continuous DocIDs-References-Answer decoding strategy to streamline retrieval and answer synthesis, and unsupervised DocID understanding tasks to align DocID semantics with downstream goals. The model is trained via multi-task learning with a combined loss and evaluated on the KILT benchmark using T5 and Llama2 backbones, achieving superior retrieval and downstream performance over strong baselines. The approach reduces memory and latency and demonstrates strong potential for integrating retrieval into a single generative language model, with implications for scalable, knowledge-grounded AI systems.
Abstract
Large language models (LLMs) have gained significant attention in various fields but prone to hallucination, especially in knowledge-intensive (KI) tasks. To address this, retrieval-augmented generation (RAG) has emerged as a popular solution to enhance factual accuracy. However, traditional retrieval modules often rely on large document index and disconnect with generative tasks. With the advent of generative retrieval (GR), language models can retrieve by directly generating document identifiers (DocIDs), offering superior performance in retrieval tasks. However, the potential relationship between GR and downstream tasks remains unexplored. In this paper, we propose \textbf{CorpusLM}, a unified language model that leverages external corpus to tackle various knowledge-intensive tasks by integrating generative retrieval, closed-book generation, and RAG through a unified greedy decoding process. We design the following mechanisms to facilitate effective retrieval and generation, and improve the end-to-end effectiveness of KI tasks: (1) We develop a ranking-oriented DocID list generation strategy, which refines GR by directly learning from a DocID ranking list, to improve retrieval quality. (2) We design a continuous DocIDs-References-Answer generation strategy, which facilitates effective and efficient RAG. (3) We employ well-designed unsupervised DocID understanding tasks, to comprehend DocID semantics and their relevance to downstream tasks. We evaluate our approach on the widely used KILT benchmark with two variants of backbone models, i.e., T5 and Llama2. Experimental results demonstrate the superior performance of our models in both retrieval and downstream tasks.
