面向处理中内存的十亿级图基近似最近邻搜索协同设计
PIMCQG: Co-Designing Billion-Scale Graph-Based Approximate Nearest Neighbor Search for Processing-in-Memory
AI总结:
针对处理中内存(PIM)架构,通过算法-硬件协同设计(紧凑索引布局、异步流水线调度、无乘法距离核)实现十亿级图基近似最近邻搜索,吞吐量比CPU和GPU基线分别提升20倍和17.1倍。
摘要:
近似最近邻搜索(ANNS)是现代人工智能系统中的核心原语,而基于图的方法目前在大规模下提供了最佳的精度-效率权衡。该工作负载本质上是内存受限的:图遍历会产生频繁、不规则的内存访问,使得CPU吞吐量受限于主内存带宽,而GPU缺乏高带宽内存容量来托管十亿级索引。处理中内存(PIM)是一个自然的选择,因为将计算放置在数据旁边可以解锁此类带宽饥渴型工作负载所需的大量内部带宽。然而,将基于图的ANNS移植到PIM会暴露出几个架构不匹配问题:每个处理单元只有很小的本地内存,单元间通信成本高,主机协调增加开销,并且内存内计算单元相对较弱——这些限制迫使先前的基于PIM的ANNS设计退回到基于聚类的索引,其召回率上限远低于图方法。本文提出了一种算法-架构协同设计,通过三个组件克服了这些障碍:紧凑的索引布局,将PIM驻留内存占用缩小14.5倍;异步流水线调度器,使主机到PIM互连保持饱和;以及无乘法距离核,召回率损失低于0.08%。在三个十亿级基准测试中,所提出的设计相比CPU和GPU基线分别实现了高达20倍和17.1倍的吞吐量提升,在高召回率区域比先前的PIM加速器性能提升129倍,并且在多节点部署和新兴PIM架构中优雅地扩展。
英文摘要:
Graph-based Approximate Nearest Neighbor Search (ANNS) has emerged as the dominant approach for large-scale AI applications, offering superior accuracy-efficiency trade-offs over alternative methods. However, graph-based ANNS is inherently memory-bound due to frequent and irregular graph traversal. This constrains CPU throughput due to limited memory bandwidth, while GPUs lack sufficient HBM capacity for billion-scale indexes. Processing-in-Memory (PIM) offers massive internal bandwidth by co-locating computation with data, making it a natural fit for irregular, memory-bound workloads. However, directly mapping graph-based ANNS onto PIM exposes severe algorithm-architecture mismatches: restricted per-PU local memory, costly inter-PU communication, heavy coordination overhead, and weak compute capability, forcing existing PIM-based ANNS to rely on cluster-based algorithms that plateau at low recall. We propose PIMCQG, an algorithm-hardware co-design framework through three optimizations: (1) a compact index reducing PIM-resident footprint by 14.5x; (2) an asynchronous pipelined scheduler fully utilizing host-PIM bandwidth; and (3) a multiplication-free distance kernel with less than 0.08% recall loss. Evaluations on three billion-scale datasets show up to 20x/17.1x throughput over CPU/GPU baselines, 129x over prior PIM accelerators at high recall, and scale well across multi-node and emerging PIM architectures.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。