{"title":"Manifold k-NN: Accelerated k-NN Queries for Manifold Point Clouds","authors":"Pengfei Wang, Qinghao Guo, Haisen Zhao, Shiqing Xin, Shuangmin Chen, Changhe Tu, Wenping Wang","doi":"10.1145/3811271","DOIUrl":null,"url":null,"abstract":"<jats:italic toggle=\"yes\">k</jats:italic> -nearest neighbor ( <jats:italic toggle=\"yes\">k</jats:italic> -NN) search is a fundamental primitive in geometry processing and computer graphics. While spatial partitioning structures such as <jats:italic toggle=\"yes\">kd</jats:italic> -trees are standard, they are often manifold-blind, failing to exploit the intrinsic low-dimensional structure of points sampled from 2-manifolds. Recent advances in dynamic programming-based nearest neighbor search (DP-NNS) leverage incrementally constructed Voronoi diagrams to accelerate queries, where each site <jats:italic toggle=\"yes\">p</jats:italic> maintains a list of <jats:italic toggle=\"yes\">successors</jats:italic> that progressively refine its Voronoi cell. However, DP-NNS is restricted to single nearest neighbor ( <jats:italic toggle=\"yes\">k</jats:italic> = 1) searches, precluding their adoption in applications that require local neighborhood statistics. In this paper, we generalize the DP-NNS framework to support arbitrary <jats:italic toggle=\"yes\">k</jats:italic> -NN queries for manifold-aligned data. Our approach is founded on the geometric observation that if <jats:italic toggle=\"yes\"> p <jats:sub>i</jats:sub> </jats:italic> is the nearest neighbor of a query <jats:italic toggle=\"yes\">q</jats:italic> in <jats:italic toggle=\"yes\">P</jats:italic> , then the second nearest neighbor of <jats:italic toggle=\"yes\">q</jats:italic> must reside either within the prefix set <jats:italic toggle=\"yes\">P</jats:italic> <jats:sub> 1: <jats:italic toggle=\"yes\">i</jats:italic> -1 </jats:sub> = [ <jats:italic toggle=\"yes\">p</jats:italic> <jats:sub>1</jats:sub> , ..., <jats:italic toggle=\"yes\">p</jats:italic> <jats:sub>i-1</jats:sub> } or within <jats:italic toggle=\"yes\"> p <jats:sub>i</jats:sub> </jats:italic> 's successor list. By recursively extending this principle, we introduce Manifold <jats:italic toggle=\"yes\">k</jats:italic> -NN, a recursive algorithmic scheme that significantly outperforms conventional <jats:italic toggle=\"yes\">kd</jats:italic> -trees for manifold-aligned data. Our method achieves a 1×-10× speedup in volume-to-surface query scenarios and inherently supports <jats:italic toggle=\"yes\">dynamic prefix</jats:italic> queries—enabling <jats:italic toggle=\"yes\">k</jats:italic> -NN searches within any subset <jats:italic toggle=\"yes\">P</jats:italic> <jats:sub> 1: <jats:italic toggle=\"yes\">m</jats:italic> </jats:sub> ( <jats:italic toggle=\"yes\">m</jats:italic> ≤ <jats:italic toggle=\"yes\">n</jats:italic> ) with zero overhead. Furthermore, we extend the framework to support point deletion via local Delaunay updates, providing a complete suite of dynamic operations for point set modification. Comprehensive experiments on diverse geometric datasets demonstrate the efficiency and broad applicability of our approach for modern graphics pipelines. Source code is available at https://github.com/sssomeone/manifold-knn.","PeriodicalId":50913,"journal":{"name":"ACM Transactions on Graphics","volume":"80 1","pages":""},"PeriodicalIF":13.0000,"publicationDate":"2026-07-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM Transactions on Graphics","FirstCategoryId":"94","ListUrlMain":"https://doi.org/10.1145/3811271","RegionNum":1,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0
Abstract
k -nearest neighbor ( k -NN) search is a fundamental primitive in geometry processing and computer graphics. While spatial partitioning structures such as kd -trees are standard, they are often manifold-blind, failing to exploit the intrinsic low-dimensional structure of points sampled from 2-manifolds. Recent advances in dynamic programming-based nearest neighbor search (DP-NNS) leverage incrementally constructed Voronoi diagrams to accelerate queries, where each site p maintains a list of successors that progressively refine its Voronoi cell. However, DP-NNS is restricted to single nearest neighbor ( k = 1) searches, precluding their adoption in applications that require local neighborhood statistics. In this paper, we generalize the DP-NNS framework to support arbitrary k -NN queries for manifold-aligned data. Our approach is founded on the geometric observation that if p i is the nearest neighbor of a query q in P , then the second nearest neighbor of q must reside either within the prefix set P 1: i -1 = [ p1 , ..., pi-1 } or within p i 's successor list. By recursively extending this principle, we introduce Manifold k -NN, a recursive algorithmic scheme that significantly outperforms conventional kd -trees for manifold-aligned data. Our method achieves a 1×-10× speedup in volume-to-surface query scenarios and inherently supports dynamic prefix queries—enabling k -NN searches within any subset P 1: m ( m ≤ n ) with zero overhead. Furthermore, we extend the framework to support point deletion via local Delaunay updates, providing a complete suite of dynamic operations for point set modification. Comprehensive experiments on diverse geometric datasets demonstrate the efficiency and broad applicability of our approach for modern graphics pipelines. Source code is available at https://github.com/sssomeone/manifold-knn.
k -最近邻(k -NN)搜索是几何处理和计算机图形学中的一个基本原语。虽然像kd -树这样的空间划分结构是标准的,但它们通常是流形盲的,无法利用从2-流形中采样的点的固有低维结构。基于动态规划的最近邻搜索(DP-NNS)的最新进展利用增量构建的Voronoi图来加速查询,其中每个站点p维护一个后续列表,这些后续列表逐步完善其Voronoi单元。然而,DP-NNS仅限于单个最近邻(k = 1)搜索,这阻碍了它们在需要局部邻域统计的应用程序中的采用。在本文中,我们推广了DP-NNS框架,以支持流形对齐数据的任意k -NN查询。我们的方法是建立在几何观察的基础上的,如果pi是查询q在p中的最近邻居,那么q的第二个最近邻居必须驻留在前缀集合p1中:i -1 = [p 1,…], p I -1}或p I的后继列表。通过递归扩展这一原理,我们引入了流形k -NN,这是一种递归算法方案,对于流形对齐的数据,它明显优于传统的kd -树。我们的方法在体积到表面的查询场景中实现了1×-10×的加速,并且固有地支持动态前缀查询-在任何子集p1: m (m≤n)中实现k -NN搜索,并且开销为零。此外,我们扩展了框架,通过局部Delaunay更新来支持点删除,为点集修改提供了一套完整的动态操作。在不同几何数据集上的综合实验证明了我们的方法对现代图形管道的效率和广泛适用性。源代码可从https://github.com/sssomeone/manifold-knn获得。
期刊介绍:
ACM Transactions on Graphics (TOG) is a peer-reviewed scientific journal that aims to disseminate the latest findings of note in the field of computer graphics. It has been published since 1982 by the Association for Computing Machinery. Starting in 2003, all papers accepted for presentation at the annual SIGGRAPH conference are printed in a special summer issue of the journal.