arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.09017cs.CLcs.LG
收藏

多样性提升大语言模型在RAG与长上下文任务中的性能

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

Salesforce(赛富时)

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

AI总结:

本文针对大语言模型上下文窗口限制导致的RAG和长上下文任务性能问题,借鉴MMR和FPS原理将多样性引入内容选择,证明其能显著提升相关句子或块的召回率,从而改善问答和摘要效果。

摘要:

大语言模型(LLMs)的快速发展凸显了上下文窗口限制的挑战,这主要源于自注意力机制的二次时间复杂度(\(O(N^2)\),其中\(N\)表示上下文窗口长度)。这一约束影响了问答(Q&A)中的检索增强生成(RAG)以及长上下文摘要等任务。一种常见方法是选择与查询相似度最高的内容;然而,这往往导致冗余,并排除了多样但相关的信息。基于最大边际相关性(MMR)和最远点采样(FPS)的原理,我们将多样性整合到内容选择过程中。我们的研究结果表明,引入多样性可显著提高在基于LLM的问答和摘要之前选择相关句子或块的召回率。这些结果凸显了在未来LLM应用中保持多样性的重要性,以进一步改善摘要和问答结果。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑