ImageNet classification with deep convolutional neural networks
Alex Krizhevsky, Ilya Sutskever et al.
29
Citations
0
Influential Citations
arXiv.org
Venue
2024
Year
Extending context windows (i.e., Long Context, LC) and using retrievers to selectively access relevant information (i.e., Retrieval-Augmented Generation, RAG) are the two main strategies to enable LLMs to incorporate extremely long external contexts. This paper revisits recent studies on this topic, highlighting their key insights and discrepancies. We then provide a more comprehensive evaluation by filtering out questions answerable without external context, identifying the most effective retrieval methods, and expanding the datasets. We show that LC generally outperforms RAG in question-answering benchmarks, especially for Wikipedia-based questions. Summarization-based retrieval performs comparably to LC, while chunk-based retrieval lags behind. However, RAG has advantages in dialogue-based and general question queries. These insights underscore the trade-offs between RAG and LC strategies, offering guidance for future optimization of LLMs with external knowledge sources. We also provide an in-depth discussion on this topic, highlighting the overlooked importance of context relevance in existing studies.
This paper addresses a critical decision for AI practitioners: whether to extend the context window of LLMs (Long Context, LC) or use retrieval-augmented generation (RAG) to handle long external contexts. As LLMs are increasingly deployed in real-world applications that require processing large documents, understanding the trade-offs between these two strategies is essential. The paper provides a comprehensive comparison, going beyond prior studies by filtering out questions answerable without external context and expanding the evaluation to multiple domains. This is significant because it offers empirical evidence that challenges the assumption that RAG is always necessary for long-context tasks, and it reveals that the choice depends on the nature of the query.
The study also highlights the overlooked importance of context relevance, which is a crucial factor in determining when LC or RAG is more effective. By identifying that summarization-based retrieval can match LC performance, the paper suggests that the way information is retrieved matters as much as the retrieval itself. This insight can guide practitioners in designing more effective RAG systems and in deciding when to rely on LC alone.
The paper reports that LC generally outperforms RAG on question-answering benchmarks, particularly for Wikipedia-based questions. For example, LC achieves higher accuracy on datasets like Natural Questions and TriviaQA compared to RAG with chunk-based retrieval. Summarization-based retrieval, however, performs comparably to LC, closing the gap. In contrast, RAG shows advantages in dialogue-based tasks (e.g., MultiDoc2Dial) and general question queries, where the ability to retrieve specific relevant passages is more beneficial. The results also indicate that filtering out answerable questions changes the performance landscape, making the comparison more meaningful.
This paper provides actionable insights for AI practitioners: when dealing with Wikipedia-like factual queries, extending the context window may be sufficient and even superior to RAG. However, for dialogue or open-domain queries, RAG remains valuable. The finding that summarization-based retrieval can match LC suggests that improving retrieval quality—rather than simply increasing context length—can be a cost-effective alternative. The emphasis on context relevance opens new research directions, encouraging the development of methods that assess and leverage the relevance of retrieved content. Overall, this work helps guide the design of more efficient and effective LLM systems with external knowledge sources.
Alex Krizhevsky, Ilya Sutskever et al.
Ashish Vaswani, Noam Shazeer et al.
Douglas M. Bates, Martin Mächler et al.
Diederik P. Kingma, Jimmy Ba