Improving Language Models by Retrieving from Trillions of Tokens | NLP Journal Club

preview_player
Показать описание

Abstract: We enhance auto-regressive language models by conditioning on document chunks retrieved from a large corpus, based on local similarity with preceding tokens. With a 2 trillion token database, our Retrieval-Enhanced Transformer (RETRO) obtains comparable performance to GPT-3 and Jurassic-1 on the Pile, despite using 25× fewer parameters. After fine-tuning, Retro performance translates to downstream knowledge-intensive tasks such as question answering. Retro combines a frozen Bert retriever, a differentiable encoder and a chunked cross-attention mechanism to predict tokens based on an order of magnitude more data than what is typically consumed during training. We typically train Retro from scratch, yet can also rapidly RETROfit pre-trained transformers with retrieval and still achieve good performance. Our work opens up new avenues for improving language models through explicit memory at unprecedented scale.
Рекомендации по теме
Комментарии
Автор

I think there is a mistake in your explaination. They are not freezing the Transformer Encoder you show in the image, rather another BERT encoder that is used to fetch neighbours.

RohitKumarSingh
Автор

hi, , can i get your mailid, i want to run the github repository of it.

GauravKumar-ghfz