Reproduce “Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis and 4 more
The authors present Retrieval-Augmented Generation (RAG), which retrieves Wikipedia passages with a neural retriever and gives them to a sequence-to-sequence generator as context. The passages are latent alternatives whose contributions are combined, enabling generated text rather than answer-span extraction. On Natural Questions, RAG-Sequence reaches 44.5 exact match versus DPR’s 41.5, with a fixed 2018 Wikipedia index.
Key insights
- RAG models can be trained end-to-end without direct supervision on which documents to retrieve, implicitly learning to retrieve relevant information through the generation loss.
- The explicit non-parametric memory in RAG allows for easy 'hot-swapping' of world knowledge by updating the document index, eliminating the need for expensive full model retraining.
- Marginalizing over retrieved documents allows RAG to synthesize information from multiple sources, leading to more diverse and factually consistent generations compared to purely parametric models.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.