arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.09985cs.LGcs.ARcs.IR
收藏

FaTRQ:面向远内存感知的ANNS系统中的分层残差量化

FaTRQ: Tiered Residual Quantization for LLM Vector Search in Far-Memory-Aware ANNS Systems

San Diego State University(圣地亚哥州立大学)

Tianqi Zhang, Flavio Ponzina, Tajana Rosing

AI总结:

FaTRQ通过分层残差量化和自定义加速器,提升ANNS系统的存储效率和吞吐量。

摘要:

近似最近邻搜索(ANNS)是检索增强生成(RAG)中的关键技术,能够快速从大规模向量数据库中识别最相关的高维嵌入。现代ANNS引擎通过预建索引加速这一过程,并在高速内存中存储压缩的向量量化表示。然而,它们仍然依赖于一个成本较高的二次精修阶段,该阶段需要从SSD等较慢的存储中读取全精度向量。对于现代文本和多模态嵌入,这些读取现在主导了整个查询的延迟。我们提出FaTRQ,一种利用分层内存的远内存感知精修系统,消除了从存储中获取完整向量的需要。它引入了一种逐步的距离估计器,利用从远内存流式传输的紧凑残差来细化粗略分数。精修在候选物被证明不在前k时提前停止。为此,我们提出了分层残差量化,将残差编码为三元值,并高效存储在远内存中。一个自定义加速器被部署在CXL Type-2设备中,以在本地执行低延迟的精修。共同作用下,FaTRQ将存储效率提高了2.4倍,比最先进的GPU ANNS系统将吞吐量提高了高达9倍。

英文摘要:

Approximate Nearest-Neighbor Search (ANNS) is a key technique in retrieval-augmented generation (RAG), enabling rapid identification of the most relevant high-dimensional embeddings from massive vector databases. Modern ANNS engines accelerate this process using prebuilt indexes and store compressed vector-quantized representations in fast memory. However, they still rely on a costly second-pass refinement stage that reads full-precision vectors from slower storage like SSDs. For modern text and multimodal embeddings, these reads now dominate the latency of the entire query. We propose FaTRQ, a far-memory-aware refinement system using tiered memory that eliminates the need to fetch full vectors from storage. It introduces a progressive distance estimator that refines coarse scores using compact residuals streamed from far memory. Refinement stops early once a candidate is provably outside the top-k. To support this, we propose tiered residual quantization, which encodes residuals as ternary values stored efficiently in far memory. A custom accelerator is deployed in a CXL Type-2 device to perform low-latency refinement locally. Together, FaTRQ improves the storage efficiency by 2.4$\times$ and improves the throughput by up to 9$ \times$ than SOTA GPU ANNS system.

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

↑