# Diversity Enhances an LLM's Performance in RAG and Long-context Task

Source: [Diversity Enhances an LLM's Performance in RAG and Long-context Task](<https://www.sota2.com/research/paper/68fa77d81e209131cea7584b>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-26T04:27:29.052Z

Authors: Zhichao Wang, Bin Bi, Yanqi Luo, Sitaram Asur, Claire Na Cheng

Published: 2025-02-13T07:11:01.000Z

## Abstract

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.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2502.09017>)

[PDF](<https://arxiv.org/pdf/2502.09017.pdf>)
