CLEANN: Lock-Free Augmented Trees for Low-Dimensional k-Nearest Neighbor Search
Author(s)
Manohar, Magdalen; Wei, Yuanhao; Blelloch, Guy
Download3694906.3743339.pdf (4.349Mb)
Publisher with Creative Commons License
Publisher with Creative Commons License
Creative Commons Attribution
Terms of use
Metadata
Show full item recordAbstract
We develop a linearizable lock-free data structure, the CLEANN-tree (Concurrent Linearizable Efficient Augmented Nearest Neighbor tree), for low dimensional κ-nearest-neighbor searching. The data structure maintains a set of points P in d dimensions under insertion and deletion, while supporting queries that, given a point, return the k nearest points in P. The CLEANN-tree is constructed by modifying a kd-tree, a type of spatial decomposition commonly used for κ-nearest neighbor searching, for the concurrent environment. It is the first such concurrent structure---two previous structures were either not linearizable or only supported κ=1. Furthermore CLEANN-tree stores an augmented value (more specifically, a bounding box) in each internal node of the kd-tree. These bounding boxes significantly improve query performance by allowing more aggresive pruning. However, correctly and efficiently maintaining these augmented values is challenging in the linearizable lock-free setting because queries can examine large parts of the structure, which might be changing, and an insert or delete can require updating all the augmented values from the leaf to the root.
We develop new approaches for maintaining concurrent augmented trees which leverage recent work on lock-free locks and snapshotting. Based on these, we implement two variations of the CLEANN-tree and present experimental results for both. Both variations significantly outperform previous concurrent κ-nearest-neighbor search structures and get near linear speedup over optimized sequential structures.
Description
SPAA ’25, July 28–August 1, 2025, Portland, OR, USA
Date issued
2025-07-16Department
Massachusetts Institute of Technology. Computer Science and Artificial Intelligence LaboratoryPublisher
ACM|37th ACM Symposium on Parallelism in Algorithms and Architectures
Citation
Magdalen Dobson Manohar, Yuanhao Wei, and Guy E. Blelloch. 2025. CLEANN: Lock-Free Augmented Trees for Low-Dimensional κ-Nearest Neighbor Search. In Proceedings of the 37th ACM Symposium on Parallelism in Algorithms and Architectures (SPAA '25). Association for Computing Machinery, New York, NY, USA, 131–143.
Version: Final published version
ISBN
979-8-4007-1258-6