GRaSP:面向地理分布式检索增强生成的延迟感知优化
GRaSP: Latency-Aware Optimization for Geo-Distributed Retrieval-Augmented Generation
AI总结:
该研究提出GRaSP重评分层,通过延迟和成本约束优化地理分布式RAG的检索,在多基准测试中显著降低延迟且保持较高召回率。
摘要:
检索增强生成(RAG)正越来越多地部署在地理分布式的云与边缘基础设施中,这类场景中广域延迟、跨区域出口成本以及数据驻留规则与检索质量相互制约。传统管道仅基于语义相似度排序,忽略内容的存储位置,导致尾部延迟和成本上升。我们将地理RAG选择问题(GRaSP)形式化为一个可直接替换的重评分层,该层在基数预算和区域上限约束下,通过延迟衰减相关性并可选择性添加成本惩罚,无需重新训练。我们首先确定其复杂度:基础形式是划分拟阵上的线性目标,可通过O(N log N)的贪心算法最优求解,而非背包框架所暗示的NP难问题,仅在添加出口预算时才会出现难度。在模拟四区域广域网的五节点CloudLab测试平台上,使用Natural Questions语料库(268万段文本)进行实验,GRaSP的效益与位置相关:在均匀位置下,它以可忽略的质量成本降低获取延迟;在主题(驻留类)位置下,它绘制出优于仅相关性、最近k以及延迟预算基线的召回-延迟帕累托前沿。在中等延迟设置下,GRaSP将P90获取延迟降低41%,同时保留仅相关性检索78%的召回率,选择开销低于1毫秒,在200查询/秒的速率下保持稳定。该发现可推广到四个公开BEIR基准。在端到端问答中,GRaSP将上下文获取延迟降低43%,同时与仅相关性检索的绝对精确匹配(EM)偏差保持在0.062以内。
英文摘要:
Retrieval-Augmented Generation (RAG) is increasingly served across geo-distributed cloud and edge infrastructures, where wide-area latency, cross-region egress cost, and data-residency rules compete with retrieval quality. Conventional pipelines rank by semantic similarity alone and ignore where content lives, inflating tail latency and cost. We formalize the Geo-RAG Selection Problem (GRaSP), a drop-in re-scoring layer that decays relevance by latency and adds an optional cost penalty under a cardinality budget and per-region caps, with no retraining. We first settle its complexity: the base formulation is a linear objective over a partition matroid, solved optimally by an O(N log N) greedy algorithm, rather than NP-hard as a knapsack framing suggests, with hardness entering only under an additive egress budget. On a five-node CloudLab testbed emulating a four-region WAN over the Natural Questions corpus (2.68M passages), GRaSP's benefit is placement-dependent: under uniform placement it cuts fetch latency at negligible quality cost; under topical (residency-like) placement it traces a recall-latency Pareto frontier that dominates relevance-only, nearest-k, and a latency-budgeted baseline. At a moderate latency setting, GRaSP lowers P90 fetch latency by 41% while retaining 78% of relevance-only's recall, with sub-millisecond selection overhead, stable to 200 queries/s. Findings generalize across four public BEIR benchmarks. In end-to-end question answering, GRaSP reduces context-fetch latency by 43% while remaining within 0.062 absolute EM of relevance-only retrieval.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。