Retrieval Augmented Generation
1
Retrieval Augmented Generation
2
RAG Details
3
Agenda
4
Agenda
5
Retrieval-Augmented Language Model (REALM)
Guu, Kelvin, Kenton Lee, Zora Tung, Panupong Pasupat, and Mingwei Chang. "Retrieval augmented language model pre-training." In ICML, pp. 3929-3938. PMLR, 2020.
6
Retrieval-Augmented Language Model (REALM)
Guu, Kelvin, Kenton Lee, Zora Tung, Panupong Pasupat, and Mingwei Chang. "Retrieval augmented language model pre-training." In ICML, pp. 3929-3938. PMLR, 2020.
7
Retrieval-Augmented Language Model (REALM)
Guu, Kelvin, Kenton Lee, Zora Tung, Panupong Pasupat, and Mingwei Chang. "Retrieval augmented language model pre-training." In ICML, pp. 3929-3938. PMLR, 2020.
8
REALM Performance
Guu, Kelvin, Kenton Lee, Zora Tung, Panupong Pasupat, and Mingwei Chang. "Retrieval augmented language model pre-training." In ICML, pp. 3929-3938. PMLR, 2020.
9
Agenda
10
Retrieval-Augmented Generation (RAG)
Lewis, Patrick, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler et al. "Retrieval-augmented generation for knowledge-intensive nlp tasks." NIPS (2020): 9459-9474.
11
Retrieval-Augmented Generation (RAG)
Lewis, Patrick, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler et al. "Retrieval-augmented generation for knowledge-intensive nlp tasks." NIPS (2020): 9459-9474.
12
How does RAG perform compared to BART and T5?
Lewis, Patrick, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler et al. "Retrieval-augmented generation for knowledge-intensive nlp tasks." NIPS (2020): 9459-9474.
https://ai.facebook.com/blog/retrieval-augmented-generation-streamlining-the-creation-of-intelligent-natural-language-processing-models/
13
Agenda
14
What is Retrieval-Enhanced Transformer (RETRO)?
Borgeaud, Sebastian, Arthur Mensch, Jordan Hoffmann, Trevor Cai, Eliza Rutherford, Katie Millican, George Bm Van Den Driessche et al. "Improving language models by retrieving from trillions of tokens." In ICML, pp. 2206-2240. PMLR, 2022.
15
What is Retrieval-Enhanced Transformer (RETRO)?
Borgeaud, Sebastian, Arthur Mensch, Jordan Hoffmann, Trevor Cai, Eliza Rutherford, Katie Millican, George Bm Van Den Driessche et al. "Improving language models by retrieving from trillions of tokens." In ICML, pp. 2206-2240. PMLR, 2022.
16
H
What is Retrieval-Enhanced Transformer (RETRO)?
Borgeaud, Sebastian, Arthur Mensch, Jordan Hoffmann, Trevor Cai, Eliza Rutherford, Katie Millican, George Bm Van Den Driessche et al. "Improving language models by retrieving from trillions of tokens." In ICML, pp. 2206-2240. PMLR, 2022.
17
H
How does RETRO perform?
Borgeaud, Sebastian, Arthur Mensch, Jordan Hoffmann, Trevor Cai, Eliza Rutherford, Katie Millican, George Bm Van Den Driessche et al. "Improving language models by retrieving from trillions of tokens." In ICML, pp. 2206-2240. PMLR, 2022.
18
Agenda
19
ATLAS architecture and training
20
ATLAS architecture and training
21
ATLAS architecture and training
22
How does Atlas perform?
Izacard, Gautier, Patrick Lewis, Maria Lomeli, Lucas Hosseini, Fabio Petroni, Timo Schick, Jane Dwivedi-Yu, Armand Joulin, Sebastian Riedel, and Edouard Grave. "Few-shot learning with retrieval augmented language models." arXiv:2208.03299 (2022).
23
Question Answering
How does Atlas perform?
Izacard, Gautier, Patrick Lewis, Maria Lomeli, Lucas Hosseini, Fabio Petroni, Timo Schick, Jane Dwivedi-Yu, Armand Joulin, Sebastian Riedel, and Edouard Grave. "Few-shot learning with retrieval augmented language models." arXiv:2208.03299 (2022).
24
MMLU
FEVER
Agenda
25
Few-shot prompting for Internet-augmented LMs
Lazaridou, Angeliki, Elena Gribovskaya, Wojciech Stokowiec, and Nikolai Grigorev. "Internet-augmented language models through few-shot prompting for open-domain question answering." arXiv:2203.05115 (2022).
26
Few-shot prompting for Internet-augmented LMs
Lazaridou, Angeliki, Elena Gribovskaya, Wojciech Stokowiec, and Nikolai Grigorev. "Internet-augmented language models through few-shot prompting for open-domain question answering." arXiv:2203.05115 (2022).
27
Few-shot prompting for Internet-augmented LMs
Lazaridou, Angeliki, Elena Gribovskaya, Wojciech Stokowiec, and Nikolai Grigorev. "Internet-augmented language models through few-shot prompting for open-domain question answering." arXiv:2203.05115 (2022).
28
Results
Lazaridou, Angeliki, Elena Gribovskaya, Wojciech Stokowiec, and Nikolai Grigorev. "Internet-augmented language models through few-shot prompting for open-domain question answering." arXiv:2203.05115 (2022).
29
Results on 4 question answering datasets using the GOPHER-280B model.
Agenda
30
QAC and TrieNLG
Kaushal Maurya, Maunendra Sankar Desarkar, Manish Gupta, Puneet Agrawal. TrieNLG: Trie Context Augmentation to Improve Personalized Query Auto-Completion for Short and Unseen Prefixes. ECML-PKDD 2023.
31
QAC and TrieNLG
Kaushal Maurya, Maunendra Sankar Desarkar, Manish Gupta, Puneet Agrawal. TrieNLG: Trie Context Augmentation to Improve Personalized Query Auto-Completion for Short and Unseen Prefixes. ECML-PKDD 2023.
32
Bing dataset (improvements wrt MPCTrain+MPCSynth)
Agenda
33
KAT: Knowledge Augmented Transformer for Vision-and-Language
Gui, Liangke, Borui Wang, Qiuyuan Huang, Alex Hauptmann, Yonatan Bisk, and Jianfeng Gao. "Kat: A knowledge augmented transformer for vision-and-language." arXiv:2112.08614 (2021).
34
How does KAT perform?
Gui, Liangke, Borui Wang, Qiuyuan Huang, Alex Hauptmann, Yonatan Bisk, and Jianfeng Gao. "Kat: A knowledge augmented transformer for vision-and-language." arXiv:2112.08614 (2021).
35
REVEAL: Retrieval-Augmentation with Multi-Source Multimodal Knowledge Memory
Hu, Ziniu, Ahmet Iscen, Chen Sun, Zirui Wang, Kai-Wei Chang, Yizhou Sun, Cordelia Schmid, David A. Ross, and Alireza Fathi. "Reveal: Retrieval-augmented visual-language pre-training with multi-source multimodal knowledge memory." In CVPR, pp. 23369-23379. 2023.
36
Results
Hu, Ziniu, Ahmet Iscen, Chen Sun, Zirui Wang, Kai-Wei Chang, Yizhou Sun, Cordelia Schmid, David A. Ross, and Alireza Fathi. "Reveal: Retrieval-augmented visual-language pre-training with multi-source multimodal knowledge memory." In CVPR, pp. 23369-23379. 2023.
37
REVEAL can use knowledge from different sources to correctly answer the question.
Retrieval-Augmented Multimodal Language Modeling
38
Retrieval-Augmented Multimodal Language Modeling
39
Knowledge-intensive multimodal generation
Summary
40
Problems (specifically for search grounding)
41
Thanks!
42