KBest: 面向 Kunpeng CPU 的高效向量搜索
KBest: Efficient Vector Search on Kunpeng CPU
AI总结:
KBest 是针对 Kunpeng 920 CPU 优化的高效向量搜索库,通过硬件感知和算法优化提升查询吞吐量超过 2 倍。
摘要:
向量搜索通过从大规模向量数据集中返回与给定查询向量最相似的向量,是搜索、推荐和大语言模型等重要应用的基础。为了经济高效,向量搜索需要减少给定查询工作负载所需的资源。然而,现有向量搜索库(如 Faiss 和 DiskANN)是为 x86 CPU 架构(即 Intel 和 AMD CPU)优化的,而华为 Kunpeng CPU 基于 ARM 架构且在计算性能上具有竞争力。在本文中,我们提出了 KBest,这是一个针对最新 Kunpeng 920 CPU 的向量搜索库。为了高效,KBest 融合了广泛的硬件感知和算法优化,包括 SIMD 加速的距离计算、数据预取、索引细化、提前终止和向量量化。实验结果表明,KBest 在 x86 CPU 上的现有向量搜索库上表现更优,我们的优化可将查询吞吐量提高超过 2 倍。目前,KBest 服务于我们内部业务和外部企业客户,每天处理数千万次查询。
英文摘要:
Vector search, which returns the vectors most similar to a given query vector from a large vector dataset, underlies many important applications such as search, recommendation, and LLMs. To be economic, vector search needs to be efficient to reduce the resources required by a given query workload. However, existing vector search libraries (e.g., Faiss and DiskANN) are optimized for x86 CPU architectures (i.e., Intel and AMD CPUs) while Huawei Kunpeng CPUs are based on the ARM architecture and competitive in compute power. In this paper, we present KBest as a vector search library tailored for the latest Kunpeng 920 CPUs. To be efficient, KBest incorporates extensive hardware-aware and algorithmic optimizations, which include single-instruction-multiple-data (SIMD) accelerated distance computation, data prefetch, index refinement, early termination, and vector quantization. Experiment results show that KBest outperforms SOTA vector search libraries running on x86 CPUs, and our optimizations can improve the query throughput by over 2x. Currently, KBest serves applications from both our internal business and external enterprise clients with tens of millions of queries on a daily basis.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。