Retrieval meets Long Context Large Language Models

AI-generated keywords: Large Language Models Context Window Retrieval-Augmentation Downstream Tasks Performance Enhancement

AI-generated Key Points

  • Extending the context window of large language models (LLMs) is a popular trend among researchers to improve model performance.
  • Retrieval-augmentation and long context extension are two methods compared in this study for enhancing LLM performance on downstream tasks.
  • Advancements in GPU technology and memory-efficient attention mechanisms have made pretraining LLMs with longer context windows feasible.
  • Fine-tuning existing models and introducing techniques like positional interpolation have led to significant improvements in model performance.
  • Experimental results show that simple retrieval-augmentation can enhance the performance of 4K context LLMs, achieving comparable results to 16K long context models with less computation.
  • Long context LLMs with extended window sizes can benefit from retrieval augmentation, suggesting a combination of both methods yields superior results on downstream tasks.
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Authors: Peng Xu, Wei Ping, Xianchao Wu, Lawrence McAfee, Chen Zhu, Zihan Liu, Sandeep Subramanian, Evelina Bakhturina, Mohammad Shoeybi, Bryan Catanzaro

License: CC BY 4.0

Abstract: Extending the context window of large language models (LLMs) is getting popular recently, while the solution of augmenting LLMs with retrieval has existed for years. The natural questions are: i) Retrieval-augmentation versus long context window, which one is better for downstream tasks? ii) Can both methods be combined to get the best of both worlds? In this work, we answer these questions by studying both solutions using two state-of-the-art pretrained LLMs, i.e., a proprietary 43B GPT and LLaMA2-70B. Perhaps surprisingly, we find that LLM with 4K context window using simple retrieval-augmentation at generation can achieve comparable performance to finetuned LLM with 16K context window via positional interpolation on long context tasks, while taking much less computation. More importantly, we demonstrate that retrieval can significantly improve the performance of LLMs regardless of their extended context window sizes. Our best model, retrieval-augmented LLaMA2-70B with 32K context window, outperforms GPT-3.5-turbo-16k and Davinci003 in terms of average score on seven long context tasks including question answering and query-based summarization. It also outperforms its non-retrieval LLaMA2-70B-32k baseline by a margin, while being much faster at generation. Our study provides general insights on the choice of retrieval-augmentation versus long context extension of LLM for practitioners.

Submitted to arXiv on 04 Oct. 2023

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

AI assistant instructions?

Results of the summarizing process for the arXiv paper: 2310.03025v1

Extending the Context Window of Large Language Models (LLMs): Enhancing Performance through Retrieval-Augmentation and Long Context Extension In recent times, extending the context window of large language models (LLMs) has become a popular trend among researchers. This involves exploring different methods to improve the performance of these models. One such method is retrieval-augmentation, which has been around for years but is now being compared to the long context window approach. In this study, we aim to answer key questions regarding these two methods and their impact on downstream tasks. We delve into the evolution of long context LLMs and efficient attention methods in our related work section. With advancements in GPU technology and memory-efficient attention mechanisms, pretraining LLMs with longer context windows has become feasible. Researchers have pushed the boundaries by fine-tuning existing models or introducing new techniques like positional interpolation to extend context windows beyond traditional limits. These efforts have led to significant improvements in model performance on various tasks. Our experimental setup involves testing two state-of-the-art pretrained LLMs - a proprietary 43B GPT and LLaMA2-70B - on seven downstream long context tasks including question answering and query-based summarization. We find that simple retrieval-augmentation can significantly enhance the performance of 4K context LLMs, achieving comparable results to 16K long context models while requiring less computation. Additionally, our study demonstrates that long context LLMs with extended window sizes can still benefit from retrieval augmentation. Overall, our findings suggest that a combination of retrieval-augmentation and long context extension can yield superior results on downstream tasks compared to using either method alone. By providing insights into the effectiveness of these approaches, our study aims to guide practitioners in choosing the most suitable strategy for enhancing LLM performance.
Created on 30 Mar. 2024

Assess the quality of the AI-generated content by voting

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Look for similar papers (in beta version)

By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.