Ascend-RaBitQ: 1位量化支持十亿级相似性搜索的异构NPU-CPU加速
Ascend-RaBitQ: Heterogeneous NPU-CPU Acceleration of Billion-Scale Similarity Search with 1-bit Quantization
AI总结:
本文提出Ascend-RaBitQ,通过异构NPU-CPU架构实现十亿级向量搜索,利用1位量化技术提升性能,解决传统CPU在大规模数据处理中的效率瓶颈。
摘要:
向量相似性搜索是现代AI系统的关键组成部分,但传统基于CPU的实现因计算开销和内存带宽限制在十亿级数据集上面临根本性的可扩展性瓶颈。尽管神经处理单元(NPUs)提供了数量级更高的计算密度,但现有的CPU/GPU优化的1位RaBitQ量化实现无法直接移植到NPUs架构中,因为存在根本性的硬件不匹配问题,且同构设计范式难以同时平衡精度、内存占用和性能。本文提出了Ascend-RaBitQ,这是首个针对十亿级向量搜索优化的异构NPU-CPU IVF-RaBitQ系统,其核心思想是将粗略排名(NPU)与精细排名(CPU)解耦,使每个阶段都能利用其最佳硬件,打破长期存在的精度-内存-性能权衡。我们提出一个三阶段异构流水线,包括由AI Core加速的1位量化向量粗略排名、设备上的AI CPU Top-k处理,以及主机CPU上的全精度精细重新排名。我们引入了四种针对NPU架构原生的优化:融合AIC-AIV操作符用于并行距离计算、计算流重构以利用旋转正交性、细粒度的索引块级负载平衡以打破查询边界,以及AI Core与AI CPU之间的NPU内流水线并行性以掩盖Top-k延迟。在标准数据集上的评估表明,Ascend-RaBitQ在索引构建速度上比CPU基线快3.0至62.8倍,比最快的CPU IVF-RaBitQ实现快4.6倍,且在数学上等效的CPU基线上快100倍,同时在分布式多NPU系统上表现出良好的可扩展性。
英文摘要:
Vector similarity search is a critical component of modern AI systems, but traditional CPU-based implementations face fundamental scalability bottlenecks for billion-scale corpora due to prohibitive computational overhead and memory bandwidth limitations. While Neural Processing Units (NPUs) offer orders-of-magnitude higher compute density, existing CPU/GPU-optimized 1-bit RaBitQ quantization implementations cannot be directly ported to NPU architectures due to fundamental hardware mismatches, and homogeneous design paradigms struggle to simultaneously balance accuracy, memory footprint, and performance. This paper presents Ascend-RaBitQ, the first heterogeneous NPU-CPU optimized IVF-RaBitQ system for billion-scale vector search, built on the core insight that decoupling coarse ranking (NPU) from fine ranking (CPU) allows each stage to leverage its optimal hardware, breaking the long-standing accuracy-memory-performance trade-off. We propose a three-stage heterogeneous execution path comprising AI Core-accelerated coarse ranking on 1-bit quantized vectors, on-device AI CPU Top-k processing, and host CPU fine re-ranking on full-precision vectors. We introduce four NPU architecture-native optimizations: fused AIC-AIV operators for parallel distance computation, computation flow restructuring to exploit rotation orthogonality, fine-grained index block-level load balancing that breaks query boundaries, and intra-NPU pipeline parallelism between AI Core and AI CPU to mask Top-k latency. Evaluation on standard datasets shows that Ascend-RaBitQ achieves 3.0X to 62.8X faster index construction than the CPU baseline, up to 11.7X throughput improvement over the fastest CPU IVF-RaBitQ implementation, and over two orders of magnitude over the mathematically equivalent CPU baseline, while demonstrating encouraging scalability on distributed multi-NPU systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。