ACRONYM: 面向动态向量数据库的加速内存近似最近邻搜索
ACRONYM: Accelerated Approximate Nearest Neighbor Search in Memory for Dynamic Vector Databases
AI总结:
针对动态向量数据库频繁更新导致的索引重建问题,提出算法-硬件协同设计平台ACRONYM,利用与数据分布无关的编码和基于汉明距离的搜索实现高效硬件加速,支持连续更新,在百万级数据集上达到>90%召回率、8e6 QPS吞吐量。
摘要:
在检索增强生成、推荐系统和大规模嵌入检索等应用中,需要频繁更新的向量数据库搜索变得越来越关键。现有的解决方案,如基于图和基于分区的近似最近邻搜索(ANNS),由于依赖数据分布的索引影响持续部署并导致长重建延迟,因此遭受频繁的索引重建。本文提出了一个算法-硬件协同设计的平台ACRONYM,解决了最先进的数据库搜索中的关键问题。在算法上,它利用与数据分布无关的高效编码和基于汉明距离的搜索来实现高效的硬件加速。在架构上,我们提出了基于CAM的内存并行距离计算,随后是时分复用的近似top-k选择,以实现穷举搜索。我们提出了两阶段搜索,包括粗搜索和随后的二进制精化,以在基于CAM的搜索中实现高召回率,而由于容量和字线寄生,该搜索严重受限于小向量维度。ACRONYM支持无停顿的连续更新,并集成了新颖的基于XOR-and-Accumulate(XAC)的脉动阵列编码器,用于搜索期间的高效片上编码。在百万级数据集上,服务于动态数据库时,ACRONYM在8e6查询/秒的吞吐量下实现了>90%的召回率,内存占用仅为32MB,平均每次查询能耗为2.56uJ,相对于HNSW(CPU)加速约400倍,相对于FAISS-IVF(GPU)加速约80倍。
英文摘要:
Vector database search with frequent updates is increasingly critical in applications such as retrieval augmented generation, recommendation systems, and large-scale embedding retrieval. Existing solutions, such as graph-based and partition-based approximate nearest neighbor search (ANNS), suffer from frequent index rebuilding due to data distribution-dependent indexing that impacts continuous deployment and causes long rebuilding latency. This paper proposes an algorithm-hardware co-designed platform, ACRONYM, that addresses key problems with state of the art database search. Algorithmically, it leverages efficient encoding independent of data distribution and Hamming-distance based search for efficient hardware acceleration. Architecturally, we propose CAM-based in-memory parallel distance computation followed by time multiplexed approximated top-k selection to enable the exhaustive search. We propose two-stage search that includes coarse search followed by binary refinement to achieve high recall in CAM based search which is heavily limited to small vector dimension due to capacity and wordline parasitic. ACRONYM supports continuous update without stalling and integrates novel XOR-and-Accumulate (XAC) based systolic-array encoder for efficient on chip encoding during search. Across million-scale datasets, while serving dynamic database ACRONYM achieves >90% recall at a throughput of 8e6 queries per second, with a memory footprint of only 32MB and an average energy consumption of 2.56uJ per query, speedup over HNSW (CPU) of about 400x and FAISS-IVF (GPU) of about 80x.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。