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

KScaNN: 在鲲鹏架构上可扩展的近似最近邻搜索

KScaNN: Scalable Approximate Nearest Neighbor Search on Kunpeng

Huawei Technologies Ltd(华为技术有限公司);Higher School of Economics(高等经济学院)
Oleg Senkevich, Siyang Xu, Tianyi Jiang, Alexander Radionov, Jan Tabaszewski, Dmitriy Malyshev, Zijian Li, Daihao Xue, Licheng Yu, Weidi Zeng, Meiling Wang, Xin… 展开作者

Oleg Senkevich, Siyang Xu, Tianyi Jiang, Alexander Radionov, Jan Tabaszewski, Dmitriy Malyshev, Zijian Li, Daihao Xue, Licheng Yu, Weidi Zeng, Meiling Wang, Xin Yao, Siyu Huang, Gleb Neshchetkin, Qiuling Pan, Yaoyao Fu

AI总结:

本文提出KScaNN算法,针对ARM架构优化近似最近邻搜索,通过算法改进和硬件优化实现性能提升,实验显示比最佳x86方案快1.63倍。

摘要:

近似最近邻搜索(ANNS)是信息检索、推荐系统和机器学习应用的核心算法。尽管x86架构在该领域占据主导地位,但工业中ARM服务器的日益普及对优化于ARM架构的ANNS解决方案提出了关键需求。将现有x86 ANNS算法简单移植到ARM平台会导致性能显著下降,无法利用底层硬件的独特能力。为解决这一挑战,我们引入KScaNN,一种为鲲鹏920ARM架构共同设计的新型ANNS算法。KScaNN采用综合方法,将复杂的、数据感知的算法改进与精心设计的硬件特定优化相结合。其核心贡献包括:1)新的算法技术,包括混合簇内搜索策略和改进的PQ残差计算方法,优化搜索过程的更高层次;2)基于机器学习的自适应搜索模块,提供每查询自适应调整搜索参数的机制,消除静态配置的低效;3)高度优化的SIMD内核,针对ARM架构最大化关键距离计算工作负载的硬件利用率。实验结果表明,KScaNN不仅缩小了性能差距,还建立了新标准,比最快的x86方案快高达1.63倍。本工作为在现代ARM架构上实现向量搜索的领导级性能提供了明确蓝图,并强调了

英文摘要:

Approximate Nearest Neighbor Search (ANNS) is a cornerstone algorithm for information retrieval, recommendation systems, and machine learning applications. While x86-based architectures have historically dominated this domain, the increasing adoption of ARM-based servers in industry presents a critical need for ANNS solutions optimized on ARM architectures. A naive port of existing x86 ANNS algorithms to ARM platforms results in a substantial performance deficit, failing to leverage the unique capabilities of the underlying hardware. To address this challenge, we introduce KScaNN, a novel ANNS algorithm co-designed for the Kunpeng 920 ARM architecture. KScaNN embodies a holistic approach that synergizes sophisticated, data aware algorithmic refinements with carefully-designed hardware specific optimizations. Its core contributions include: 1) novel algorithmic techniques, including a hybrid intra-cluster search strategy and an improved PQ residual calculation method, which optimize the search process at a higher level; 2) an ML-driven adaptive search module that provides adaptive, per-query tuning of search parameters, eliminating the inefficiencies of static configurations; and 3) highly-optimized SIMD kernels for ARM that maximize hardware utilization for the critical distance computation workloads. The experimental results demonstrate that KScaNN not only closes the performance gap but establishes a new standard, achieving up to a 1.63x speedup over the fastest x86-based solution. This work provides a definitive blueprint for achieving leadership-class performance for vector search on modern ARM architectures and underscores

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

↑