KatoANN:在CPU矩阵引擎上以有损扫描速度实现近精确向量检索
KatoANN: Enabling Near-Exact Vector Search at the Speed of Lossy Scans with CPU Matrix Engines
KatoANN是首个在CPU矩阵引擎上同时实现高吞吐与高召回率的近似最近邻(ANN)检索系统。它将每个向量编码为16-bit码并拆分为高低字节平面,用矩阵引擎支持的8-bit矩阵乘法计算近精确距离,先按高字节对候选排序、仅对少量幸存者做完整距离精修,且不保留全精度向量副本以降低内存占用。基于Intel AMX的原型实验显示,其在高召回区间优于现有基于分区的系统。
arXiv:2610.27508v3 Announce Type: replace-cross Abstract: Emerging CPU matrix engines, such as Intel AMX, enable high throughput by batching multiple queries. However, they support only low-precision formats, which can significantly degrade recall (i.e., search quality). We present KatoANN, the first approximate nearest neighbor (ANN) search system that achieves both high throughput and high recall simultaneously on CPU matrix engines. Specifically, KatoANN represents each vector using a 16-bit code, splits it into high- and low-byte planes, and computes near-exact distances using 8-bit matrix multiplications that the matrix engine supports. To reduce extra multiplication overhead, it ranks all candidates by their high bytes alone and refines only a few survivors with the full distance. KatoANN also reduces memory footprint since it does not maintain a full-precision copy of the vectors. We implement a KatoANN prototype on Intel AMX. Our experimental results show that KatoANN outperforms existing partition-based systems across the high-recall range.
来源:arXiv (Robotics + Hardware + Signal) · arxiv.org