arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.21023cs.LG
收藏

EdgeRAG:面向边缘设备的在线索引检索增强生成

EdgeRAG: Online-Indexed RAG for Edge Devices

University of Virginia(弗吉尼亚大学);University of Waterloo(滑铁卢大学);Google(谷歌)

Korakit Seemakhupt, Sihang Liu, Samira Khan

AI总结:

EdgeRAG 针对边缘设备内存受限问题,通过簇内嵌入剪枝、按需生成与自适应缓存策略,在保持生成质量的同时显著降低检索延迟,并实现数据集全部装入内存。

摘要:

在资源受限的边缘设备上部署检索增强生成(RAG)因有限的内存和处理能力而具有挑战性。本文提出 EdgeRAG,通过在簇内剪枝嵌入并在检索过程中按需生成嵌入来解决内存约束问题。为避免为大型尾部簇生成嵌入所带来的延迟,EdgeRAG 为这些簇预先计算并存储嵌入,同时自适应地缓存其余嵌入,以减少冗余计算并进一步优化延迟。BEIR 套件上的结果表明,与基线 IVF 索引相比,EdgeRAG 显著降低了延迟,同时保持了相似的生成质量,并使得所有评估数据集都能装入内存。

英文摘要:

Deploying Retrieval Augmented Generation (RAG) on resource-constrained edge devices is challenging due to limited memory and processing power. In this work, we propose EdgeRAG which addresses the memory constraint by pruning embeddings within clusters and generating embeddings on-demand during retrieval. To avoid the latency of generating embeddings for large tail clusters, EdgeRAG pre-computes and stores embeddings for these clusters, while adaptively caching remaining embeddings to minimize redundant computations and further optimize latency. The result from BEIR suite shows that EdgeRAG offers significant latency reduction over the baseline IVF index, but with similar generation quality while allowing all of our evaluated datasets to fit into the memory.

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

↑