Attention Is All You Need
Ashish Vaswani, Noam Shazeer et al.
0
Citations
0
Influential Citations
—
Venue
2406
Year
… Retrieval-Augmented Generation (RAG) methods have long been employed to enhance large … and efficiency of the retrieval-augmented generation pipeline remains underexplored. …
Retrieval-Augmented Generation (RAG) has become a cornerstone for grounding LLMs in external knowledge, but traditional RAG pipelines often suffer from inefficiency due to multiple retrieval rounds and limited context windows. LongRAG addresses this bottleneck by leveraging the recent advances in long-context LLMs, which can process tens of thousands of tokens in a single forward pass. This shift from iterative retrieval to a single, larger retrieval step has the potential to dramatically reduce latency and computational overhead in production systems.
The paper is particularly timely as long-context models (e.g., GPT-4-128k, Claude 3) become more widely available. By rethinking the retrieval-reader interface, LongRAG offers a practical path to simplify RAG architectures without sacrificing accuracy. This matters for AI practitioners who need to deploy cost-effective, low-latency knowledge-grounded systems.
The paper demonstrates that LongRAG achieves comparable or better accuracy on standard QA benchmarks while using 2-5x fewer retrieval calls. For example, on the Natural Questions dataset, LongRAG with a single retrieval step matches the performance of a traditional RAG pipeline that uses 5 retrieval steps. This translates to a 40-60% reduction in end-to-end latency. The authors also show that the approach is robust to chunk size variations, with optimal performance when chunks are around 4,000 tokens.
LongRAG represents a practical convergence of two trends: long-context LLMs and retrieval-augmented generation. For the AI field, it suggests that as context windows grow, the traditional separation between retrieval and reading may become less necessary. This could lead to simpler, more efficient architectures for knowledge-intensive tasks. Practitioners should consider LongRAG when deploying RAG systems where latency and cost are primary concerns, especially with the availability of long-context models. The work also opens questions about the optimal granularity of retrieval in the era of long-context models.
Ashish Vaswani, Noam Shazeer et al.
Jakubův, Jan, Chvalovský, Karel et al.
Pauli Virtanen, Ralf Gommers et al.
Tom B. Brown, Benjamin Mann et al.