Parallel kd-tree with Batch Updates
Ziyang Men, Zheqi Shen, Yan Gu, Yihan Sun
摘要
The 𝑘d-tree is one of the most widely used data structures to manage multi-dimensional data. Due to the ever-growing data volume, it is imperative to consider parallelism in 𝑘d-trees. However, we observed challenges in existing parallel 𝑘d-tree implementations, for both constructions and updates.
The goal of this paper is to develop efficient in-memory 𝑘d-trees by supporting high parallelism and cache-efficiency. We propose the Pkd-tree (Parallel 𝑘d-tree), a parallel 𝑘d-tree that is efficient both in theory and in practice. The Pkd-tree supports parallel tree construction, batch update (insertion and deletion), and various queries including 𝑘-nearest neighbor search, range query, and range count. We proved that our algorithms have strong theoretical bounds in work (sequential time complexity), span (parallelism), and cache complexity. Our key techniques include 1) an efficient construction algorithm that optimizes work, span, and cache complexity simultaneously, and 2) reconstruction-based update algorithms that guarantee the tree to be weight-balanced. With the new algorithmic insights and careful engineering effort, we achieved a highly optimized implementation of the Pkd-tree.
We tested Pkd-tree with various synthetic and real-world datasets, including both uniform and highly skewed data. We compare the Pkd-tree with state-of-the-art parallel 𝑘d-tree implementations. In all tests, with better or competitive query performance, Pkd-tree is much faster in construction and updates consistently than all baselines. We released our code.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- PIM-zd-tree: A Fast Space-Partitioning Index Leveraging Processing-in-Memory 引用了 Parallel Dynamic Spatial Indexes
- PIM-zd-tree: A Fast Space-Partitioning Index Leveraging Processing-in-Memory 引用了 Parallel Integer Sort: Theory and Practice
- Parallel Dynamic Spatial Indexes 引用了 PaC-trees: supporting parallel and compressed purely-functional collections
引用它的顶会 Paper3
- PIM-zd-tree: A Fast Space-Partitioning Index Leveraging Processing-in-MemoryYiwei Zhao, Hongbo Kang, Ziyang Men, Yan Gu 等PPoPP 2026 · 1 次引用
- Parallel Dynamic Spatial IndexesZiyang Men, Bo Huang, Yan Gu, Yihan SunPPoPP 2026 · 1 次引用
- Trading Vector Data in Vector DatabasesJin Cheng, Xiangxiang Dai, Ningning Ding, John C. S. Lui 等ICDE 2026
它引用的 Paper4
- Fast Parallel Algorithms for Euclidean Minimum Spanning Tree and Hierarchical Spatial ClusteringYiqiu Wang, Shangdi Yu, Yan Gu, Julian ShunSIGMOD 2021 · 34 次引用
- PaC-trees: supporting parallel and compressed purely-functional collectionsLaxman Dhulipala, Guy E. Blelloch, Yan Gu, Yihan SunPLDI 2022 · 16 次引用
- Parallel Integer Sort: Theory and PracticeXiaojun Dong, Laxman Dhulipala, Yan Gu, Yihan SunPPoPP 2024 · 9 次引用
- A Scalable and Generic Approach to Range JoinsMaximilian Reif, Thomas NeumannVLDB 2022 · 6 次引用
相关 Paper
- UFO Trees: Practical and Provably-Efficient Parallel Batch-Dynamic TreesQuinten De Man, Atharva Sharma, Kishen N. Gowda, Laxman DhulipalaPPoPP 2026 · 1 次引用
- Tree Embedding in High Dimensions: Dynamic and Massively ParallelGramoz Goranci, Shaofeng H.-C. Jiang, Peter Kiss, Qihao Kong 等SODA 2026
- PIM-tree: A Skew-resistant Index for Processing-in-MemoryHongbo Kang, Yiwei Zhao, Guy E. Blelloch, Laxman Dhulipala 等VLDB 2023 · 40 次引用
- ParallelNN: A Parallel Octree-based Nearest Neighbor Search Accelerator for 3D Point CloudsFaquan Chen, Rendong Ying, Jianwei Xue, Fei Wen 等HPCA 2023 · 37 次引用
- Evaluating Persistent Memory Range IndexesLucas Lersch, Xiangpeng Hao, Ismail Oukid, Tianzheng Wang 等VLDB 2020 · 97 次引用
