TL;DR
Researchers from NVIDIA and UIUC have introduced InstructRetro, scaling retrieval-augmented pretraining to a massive 48 billion parameters. By "Retro-fitting" a standard GPT model with a retrieval mechanism and then applying instruction tuning, they achieved significant performance gains—up to 16% in summarization—while discovering that the underlying decoder becomes a much more powerful reasoner even when the retrieval encoder is later removed.
What Problem Does This Paper Address?
Large Language Models (LLMs) often struggle with factual accuracy and "hallucinations" because they rely solely on the knowledge baked into their weights during training. Retrieval-Augmented Generation (RAG) helps by letting models look up external information, but most models designed for this (like the original Retro) have been relatively small (around 7.5B parameters).
Small models lack the "emergent" reasoning and instruction-following capabilities found in massive models like GPT-4. However, scaling retrieval-augmented models is computationally expensive and complex. The authors set out to see if they could scale these models to the 50B-parameter range and whether the benefits of retrieval-augmented pretraining would actually translate into better instruction-following performance.
Methods
The authors employed a three-stage pipeline to build and refine InstructRetro:
- Base Pretraining: They started with a standard 43B parameter GPT model trained on 1.1 trillion tokens.
- Retro-fitting (Continued Pretraining): Instead of starting from scratch, they "Retro-fitted" the model. They added a shallow bidirectional Retro encoder and chunk-wise cross-attention layers to the existing GPT decoder. They then continued pretraining on another 100 billion tokens, retrieving relevant information from a 1.2 trillion-token database. Crucially, they unfroze the decoder weights, allowing the whole system to learn how to integrate retrieved facts.
- Instruction Tuning: Finally, they fine-tuned the model on a blend of 128,000 high-quality instruction samples (e.g., FLAN, Self-Instruct) to create InstructRetro.
To keep the retrieval efficient, they used the Faiss library for fast approximate nearest neighbor searches, achieving a query time of just 4ms per chunk.
Datasets
- Pretraining/Retrieval: A 1.2 trillion token English corpus including web crawls (Common Crawl), news, books, and scientific data (Wikipedia, ROOTS).
- Instruction Tuning: A blend of SODA (dialogue), ELI5 (long-form QA), Self-Instruct, Unnatural Instructions, FLAN, and OpenAssistant.
- Evaluation: Short-form QA (Natural Questions, TriviaQA, SQuAD), Long-form QA (doc2dial, proprietary manuals), and Summarization (QMSum, SummScreenFd, GovReport).
Key Insights and Ideas
- Efficiency at Scale: Retro-fitting a 43B model required only 2.58% additional GPU hours compared to standard GPT pretraining. This suggests that retrieval is a highly efficient way to improve model quality without a massive increase in compute.
- The "Ablation" Surprise: The most striking finding is that you can disable the Retro encoder during inference—effectively turning the model back into a standard GPT decoder—and it still significantly outperforms a standard GPT model. This implies that pretraining with retrieval actually improves the decoder's internal representation and its ability to handle context, even when it's not explicitly "looking things up" via the encoder.
- Scaling Diminishing Returns? Not Yet: While standard retrieval benefits sometimes saturate as models get bigger, the authors found that the gap between Retro and GPT actually widened or stayed significant as they scaled from 8B to 48B parameters.
Key Results
InstructRetro 43B (the version with the encoder disabled for simplicity) showed massive improvements over its instruction-tuned GPT counterpart:
- Short-form QA: +7% average improvement.
- Long-form QA: +10% average improvement.
- Summarization: +16% average improvement.
- Perplexity: Retro 48B achieved a validation perplexity comparable to a standard GPT model with 4x more parameters, demonstrating superior knowledge density.
- Competitive Performance: InstructRetro 43B outperformed much larger models, including Llama 2 70B (with RAG), on several benchmarks.
Limitations and Future Work
- Domain Specificity: The model performed slightly worse than standard GPT on MT-Bench categories like coding and roleplay. The authors attribute this to the pretraining corpus not being specifically optimized for those domains.
- Static Database: While retrieval helps with facts, the retrieval database itself is static. Future work could explore dynamic updates to the 1.2T token database.
- Safety and Bias: Like all LLMs, InstructRetro can still generate biased or toxic content present in its training data. The authors note that while retrieval can reduce hallucinations, it doesn't automatically solve the problem of "persuasive" misinformation.
- Encoder Integration: The authors suggest that further research into high-quality "retrieval-augmented instruction data" could help unlock even more potential from the Retro encoder during the final tuning stage.
Summary updated