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

用于语言模型高效问答的上下文摘要语义缓存

Semantic Caching of Contextual Summaries for Efficient Question-Answering with Language Models

Microsoft 365 Research(微软365研究);University of Virginia(弗吉尼亚大学)

Camille Couturier, Spyros Mastorakis, Haiying Shen, Saravan Rajmohan, Victor Rühle

AI总结:

针对大语言模型处理长上下文时的高计算、内存与带宽开销问题,提出存储复用中间上下文摘要的语义缓存方法,在三个数据集上实现50-60%冗余计算削减且准确率与全文档处理相当,平衡成本与质量。

摘要:

大语言模型(LLMs)正越来越多地部署在边缘和云平台上,用于实时问答和检索增强生成。然而,在分布式系统中处理冗长上下文会带来高昂的计算开销、内存占用和网络带宽消耗。本文提出了一种新颖的语义缓存方法,用于存储和复用中间上下文摘要,实现基于LLM的问答工作流中相似查询的高效信息复用。我们的方法在NaturalQuestions、TriviaQA和一个合成ArXiv数据集上的实验表明,该方法可减少高达50-60%的冗余计算,同时保持与全文档处理相当的答案准确率。该方法平衡了计算成本和响应质量,对实时AI助手至关重要。

英文摘要:

Large Language Models (LLMs) are increasingly deployed across edge and cloud platforms for real-time question-answering and retrieval-augmented generation. However, processing lengthy contexts in distributed systems incurs high computational overhead, memory usage, and network bandwidth. This paper introduces a novel semantic caching approach for storing and reusing intermediate contextual summaries, enabling efficient information reuse across similar queries in LLM-based QA workflows. Our method reduces redundant computations by up to 50-60% while maintaining answer accuracy comparable to full document processing, as demonstrated on NaturalQuestions, TriviaQA, and a synthetic ArXiv dataset. This approach balances computational cost and response quality, critical for real-time AI assistants.

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

↑