Transactions of the Association for Computational Linguistics · 2023 · 341 citations · 22 references
ComputingComputer ScienceComputational LinguisticsInformation RetrievalNatural Language ProcessingLanguage ModelingLanguage ModelsNatural Language GenerationNatural Language UnderstandingRetrieval ModelsText GenerationDocument RetrievalDocument Retrieval ArchitectureGroundingLanguage Model PretrainingLanguage Modeling Approach To RetrievalLanguage Modeling For Information RetrievalLanguage Modeling For RetrievalRetrieval-augmented Language Models
Retrieval‑Augmented Language Modeling (RALM) methods condition a language model on relevant documents from a grounding corpus during generation, improving language modeling performance, mitigating factual inaccuracies, and providing source attribution, yet existing approaches complicate deployment by modifying the LM architecture. This paper proposes In‑Context RALM, which leaves the LM architecture unchanged and prepends grounding documents to the input without any further training. The approach employs off‑the‑shelf general‑purpose retrievers to retrieve documents and prepends them to the LM input, avoiding architectural changes. In‑Context RALM delivers surprisingly large language‑model gains across model sizes and diverse corpora, and specialized retrieval and ranking further boost performance, underscoring its potential to increase LM grounding in settings where pretrained models must remain unmodified.
Abstract Retrieval-Augmented Language Modeling (RALM) methods, which condition a language model (LM) on relevant documents from a grounding corpus during generation, were shown to significantly improve language modeling performance. In addition, they can mitigate the problem of factually inaccurate text generation and provide natural source attribution mechanism. Existing RALM approaches focus on modifying the LM architecture in order to facilitate the incorporation of external information, significantly complicating deployment. This paper considers a simple alternative, which we dub In-Context RALM: leaving the LM architecture unchanged and prepending grounding documents to the input, without any further training of the LM. We show that In-Context RALM that builds on off-the-shelf general purpose retrievers provides surprisingly large LM gains across model sizes and diverse corpora. We also demonstrate that the document retrieval and ranking mechanism can be specialized to the RALM setting to further boost performance. We conclude that In-Context RALM has considerable potential to increase the prevalence of LM grounding, particularly in settings where a pretrained LM must be used without modification or even via API access.1
22
Advances in neural information processing systems 7
Computers & Mathematics with Applications · 1996 · 14.4K citations
Advances in Neural Information Processing Systems 29
Onur Teymur, Kostas Zygalakis, Ben Calderhead · 2016 · 13.5K citations
Transformers: State-of-the-Art Natural Language Processing
Thomas Wolf, Lysandre Debut, Victor Sanh et al. · 2020 · 8K citations · Full text
LLaMA: Open and Efficient Foundation Language Models
Hugo Touvron, Thibaut Lavril, Gautier Izacard et al. · arXiv (Cornell University) · 2023 · 3.9K citations · Full text