Accelerating Graph Indexing for ANNS on Modern CPUs
Mengzhao Wang, Haotian Wu, Xiangyu Ke, Yunjun Gao, Yifan Zhu, Wenchao Zhou
摘要
In high-dimensional vector spaces, Approximate Nearest Neighbor Search (ANNS) is a key component in database and artificial intelligence infrastructures. Graph-based methods, particularly HNSW, have emerged as leading solutions among various ANNS approaches, offering an impressive trade-off between search efficiency and accuracy. Many modern vector databases utilize graph indexes as their core algorithms, benefiting from various optimizations to enhance search performance. However, the high indexing time associated with graph algorithms poses a significant challenge, especially given the increasing volume of data, query processing complexity, and dynamic index maintenance demand. This has rendered indexing time a critical performance metric for users. In this paper, we comprehensively analyze the underlying causes of the low graph indexing efficiency on modern CPUs, identifying that distance computation dominates indexing time, primarily due to high memory access latency and suboptimal arithmetic operation efficiency. We demonstrate that distance comparisons during index construction can be effectively performed using compact vector codes at an appropriate compression error. Drawing from insights gained through integrating existing compact coding methods in the graph indexing process, we propose a novel compact coding strategy, named Flash, designed explicitly for graph indexing and optimized for modern CPU architectures. By minimizing random memory accesses and maximizing the utilization of SIMD (Single Instruction, Multiple Data) instructions, Flash significantly enhances cache hit rates and arithmetic operations. Extensive experiments conducted on eight real-world datasets, ranging from ten million to one billion vectors, exhibit that Flash achieves a speedup of 10.4× to 22.9× in index construction efficiency, while maintaining or improving search performance.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- SPANN: Highly-efficient Billion-scale Approximate Nearest Neighborhood Search 引用了 Accelerating Large-Scale Inference with Anisotropic Vector Quantization
- SPANN: Highly-efficient Billion-scale Approximate Nearest Neighborhood Search 引用了 HM-ANN: Efficient Billion-Point Nearest Neighbor Search on Heterogeneous Memory
- Distribution-Aware Exploration for Adaptive HNSW Search 引用了 A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor Search
- A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor Search 引用了 SONG: Approximate Nearest Neighbor Search on GPU
- A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor Search 引用了 HM-ANN: Efficient Billion-Point Nearest Neighbor Search on Heterogeneous Memory
- DistVS: Large-scale Vector Search with Compute-Memory Disaggregation 引用了 SPANN: Highly-efficient Billion-scale Approximate Nearest Neighborhood Search
- DistVS: Large-scale Vector Search with Compute-Memory Disaggregation 引用了 SONG: Approximate Nearest Neighbor Search on GPU
- DistVS: Large-scale Vector Search with Compute-Memory Disaggregation 引用了 A Topology-Aware Localized Update Strategy for Graph-Based ANN Index
- GPS: Revisiting the Data Layout for Disk-based High-Dimensional Vector Search 引用了 SPANN: Highly-efficient Billion-scale Approximate Nearest Neighborhood Search
- GPS: Revisiting the Data Layout for Disk-based High-Dimensional Vector Search 引用了 HM-ANN: Efficient Billion-Point Nearest Neighbor Search on Heterogeneous Memory
- Approximate Nearest Neighbor Search for Modern AI: A Projection-Augmented Graph Approach 引用了 Accelerating Large-Scale Inference with Anisotropic Vector Quantization
- A Topology-Aware Localized Update Strategy for Graph-Based ANN Index 引用了 SPANN: Highly-efficient Billion-scale Approximate Nearest Neighborhood Search
- A Topology-Aware Localized Update Strategy for Graph-Based ANN Index 引用了 A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor Search
- A Topology-Aware Localized Update Strategy for Graph-Based ANN Index 引用了 HM-ANN: Efficient Billion-Point Nearest Neighbor Search on Heterogeneous Memory
引用它的顶会 Paper9
- A Topology-Aware Localized Update Strategy for Graph-Based ANN IndexSong Yu, Shengyuan Lin, Shufeng Gong, Yongqing Xie 等VLDB 2026 · 10 次引用
- Distribution-Aware Exploration for Adaptive HNSW SearchChao Zhang, Renée J. MillerSIGMOD 2026 · 9 次引用
- DistVS: Large-scale Vector Search with Compute-Memory DisaggregationPeiqi Yin, Xiao Yan, Shiyuan Deng, Hui Li 等NSDI 2026 · 3 次引用
- GPS: Revisiting the Data Layout for Disk-based High-Dimensional Vector SearchPeiqi Yin, Xiao Yan, Qihui Zhou, Hui Li 等SIGMOD 2026 · 2 次引用
- Approximate Nearest Neighbor Search for Modern AI: A Projection-Augmented Graph ApproachKejing Lu, Zhenpeng Pan, Yoshiharu Ishikawa, Chuan Xiao 等ICML 2026 · 1 次引用
它引用的 Paper42
- Accelerating Large-Scale Inference with Anisotropic Vector QuantizationRuiqi Guo, Philip Sun, Erik Lindgren, Quan Geng 等ICML 2020 · 539 次引用
- A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor SearchMengzhao Wang, Xiaoliang Xu, Qiang Yue, Yuxiang WangVLDB 2021 · 354 次引用
- SPANN: Highly-efficient Billion-scale Approximate Nearest Neighborhood SearchQi Chen, Bing Zhao, Haidong Wang, Mingqin Li 等NeurIPS 2021 · 219 次引用
- HM-ANN: Efficient Billion-Point Nearest Neighbor Search on Heterogeneous MemoryJie Ren, Minjia Zhang, Dong LiNeurIPS 2020 · 136 次引用
- SONG: Approximate Nearest Neighbor Search on GPUWeijie Zhao, Shulong Tan, Ping LiICDE 2020 · 103 次引用
相关 Paper
- Accelerating Approximate Nearest Neighbor Search in Hierarchical Graphs: Efficient Level Navigation with ShortcutsZengyang Gong, Yuxiang Zeng, Lei ChenVLDB 2025 · 12 次引用
- SymphonyQG: Towards Symphonious Integration of Quantization and Graph for Approximate Nearest Neighbor SearchYutong Gou, Jianyang Gao, Yuexuan Xu, Cheng LongSIGMOD 2025 · 21 次引用
- FGIM: a Fast Graph-based Indexes Merging Framework for Approximate Nearest Neighbor SearchZekai Wu, Jiabao Jin, Peng Cheng, Xiaoyao Zhong 等SIGMOD 2026
- Angular Distance-Guided Neighbor Selection for Graph-Based Approximate Nearest Neighbor SearchSungjun Jung, Yongsang Park, Haeun Lee, Young H. Oh 等WWW 2025 · 3 次引用
- CAGRA: Highly Parallel Graph Construction and Approximate Nearest Neighbor Search for GPUsHiroyuki Ootomo, Akira Naruse, Corey Nolet, Ray Wang 等ICDE 2024 · 59 次引用
