Diversity Enhances an LLM's Performance in RAG and Long-context Task
Wang, Zhchao, Bi, Bin, Luo, Yanqi, Asur, Sitaram, Cheng, Claire Na
–arXiv.org Artificial Intelligence
The rapid advancements in large language models (LLMs) have highlighted the challenge of context window limitations, primarily due to the quadratic time complexity of the self-attention mechanism (\(O(N^2)\), where \(N\) denotes the context window length). This constraint impacts tasks such as retrieval-augmented generation (RAG) in question answering (Q\&A) and long context summarization. A common approach involves selecting content with the highest similarity to the query; however, this often leads to redundancy and the exclusion of diverse yet relevant information. Building on principles from Maximal Marginal Relevance (MMR) and Farthest Point Sampling (FPS), we integrate diversity into the content selection process. Our findings reveal that incorporating diversity substantially increases the recall of selecting relevant sentences or chunks before LLM-based Q\&A and summarization. These results highlight the importance of maintaining diversity in future LLM applications to further improve summarization and Q\&A outcomes.
arXiv.org Artificial Intelligence
Feb-13-2025
- Country:
- North America > United States
- New York > New York County > New York City (0.04)
- Europe
- Monaco (0.04)
- Spain > Catalonia
- Barcelona Province > Barcelona (0.04)
- Italy > Calabria
- Catanzaro Province > Catanzaro (0.04)
- Asia
- Myanmar > Tanintharyi Region
- Dawei (0.04)
- Middle East
- Japan > Honshū
- Chūbu > Toyama Prefecture > Toyama (0.04)
- Myanmar > Tanintharyi Region
- Africa > Zambia
- Southern Province > Choma (0.04)
- North America > United States
- Genre:
- Research Report (0.70)
- Technology: