Papers / Text
RAG (2020)
Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
Let a text generator look things up in Wikipedia before it answers, and give the idea its name.
Why it matters
RAG named a pattern that now underlies most practical LLM applications: retrieve documents first, then generate from them. It showed that grounding answers in retrieved text reduces made-up facts and lets a model use knowledge it was never trained on.
- Year
- 2020
- Authors
- Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, Sebastian Riedel, Douwe Kiela
- Venue
- NeurIPS 2020
- Data
- Natural Questions, MS MARCO
The idea
Pair a neural retriever, which finds relevant Wikipedia passages for a question, with a sequence-to-sequence generator that writes the answer conditioned on them, and train the two together. Knowledge lives in an index that can be updated without retraining the model.
The result
State-of-the-art results on three open-domain question answering benchmarks, including Natural Questions, and more factual answers than a generator alone on MS MARCO.
The data
Natural Questions
2019Real Google search questions, each answered by an annotator with a paragraph and a short span from Wikipedia. (1 year earlier)
what is a cvv code on a visa gift card
MS MARCO
2016A million real Bing queries with candidate web passages and human-written answers when one exists. (4 years earlier)
⌕ what is vasculitis of the skin
Builds on
- DPR (2020): Find the passage that answers a question by comparing learned embeddings, not shared words.
- BERT (2018): Pretrain a Transformer to fill in masked words, then fine-tune it for almost any language task.
- Transformer (2017): A translation model built only from attention, and the architecture behind every large language model since.
