NDSEARCH:通过近数据处理加速基于图遍历的近似最近邻搜索
NDSEARCH: Accelerating Graph-Traversal-Based Approximate Nearest Neighbor Search through Near Data Processing
AI总结:
提出软硬件协同设计的近数据处理方案NDSEARCH,通过存内计算架构SEARSSD和定制处理模型加速基于图遍历的ANNS,显著提升吞吐量与能效。
摘要:
近似最近邻搜索(ANNS)是向量数据库和许多数据中心应用(如人员重识别和推荐系统)的关键检索技术。如今,它对于大型语言模型(LLM)的检索增强生成(RAG)也是基础性的。在所有ANNS算法中,基于图遍历的ANNS实现了最高的召回率。然而,随着数据集规模增加,图可能需要数百GB的内存,超过单个工作站节点的主存容量。尽管我们可以进行分区并使用固态硬盘(SSD)作为后备存储,但有限的SSD I/O带宽严重降低了系统性能。为应对这一挑战,我们提出了NDSEARCH,一种用于ANNS处理的软硬件协同设计的近数据处理(NDP)解决方案。NDSEARCH包含一种新颖的存内计算架构,即SEARSSD,它支持ANNS内核并利用NAND闪存芯片内部逻辑单元(LUN)级并行性。NDSEARCH还包括一个为NDP定制并与SEARSSD协作的处理模型。该处理模型使我们能够应用两级调度以改善数据局部性并利用NDSEARCH的内部带宽,以及一种推测搜索机制以进一步加速ANNS工作负载。结果显示,NDSEARCH的吞吐量分别比CPU、GPU、最先进的纯SmartSSD设计和DeepStore高出多达31.7倍、14.6倍、7.4倍和2.9倍。NDSEARCH还实现了比CPU和GPU高两个数量级的能效。
英文摘要:
Approximate nearest neighbor search (ANNS) is a key retrieval technique for vector database and many data center applications, such as person re-identification and recommendation systems. It is also fundamental to retrieval augmented generation (RAG) for large language models (LLM) now. Among all the ANNS algorithms, graph-traversal-based ANNS achieves the highest recall rate. However, as the size of dataset increases, the graph may require hundreds of gigabytes of memory, exceeding the main memory capacity of a single workstation node. Although we can do partitioning and use solid-state drive (SSD) as the backing storage, the limited SSD I/O bandwidth severely degrades the performance of the system. To address this challenge, we present NDSEARCH, a hardware-software co-designed near-data processing (NDP) solution for ANNS processing. NDSEARCH consists of a novel in-storage computing architecture, namely, SEARSSD, that supports the ANNS kernels and leverages logic unit (LUN)-level parallelism inside the NAND flash chips. NDSEARCH also includes a processing model that is customized for NDP and cooperates with SEARSSD. The processing model enables us to apply a two-level scheduling to improve the data locality and exploit the internal bandwidth in NDSEARCH, and a speculative searching mechanism to further accelerate the ANNS workload. Our results show that NDSEARCH improves the throughput by up to 31.7x, 14.6x, 7.4x 2.9x over CPU, GPU, a state-of-the-art SmartSSD-only design, and DeepStore, respectively. NDSEARCH also achieves two orders-of-magnitude higher energy efficiency than CPU and GPU.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。