skip to main content
10.1145/3577193.3593738acmconferencesArticle/Chapter ViewAbstractPublication PagesicsConference Proceedingsconference-collections
research-article
Open access

RT-kNNS Unbound: Using RT Cores to Accelerate Unrestricted Neighbor Search

Published: 21 June 2023 Publication History

Abstract

The problem of identifying the k-Nearest Neighbors (kNNS) of a point has proven to be very useful both as a standalone application and as a subroutine in larger applications. Given its far-reaching applicability in areas such as machine learning and point clouds, extensive research has gone into leveraging GPU acceleration to solve this problem. Recent work has shown that using Ray Tracing cores in recent GPUs to accelerate kNNS is much more efficient compared to traditional acceleration using shader cores. However, the existing translation of kNNS to a ray tracing problem imposes a constraint on the search space for neighbors. Due to this, we can only use RT cores to accelerate fixed-radius kNNS, which requires the user to set a search radius a priori and hence can miss neighbors. In this work, we propose TrueKNN, the first unbounded RT-accelerated neighbor search. TrueKNN adopts an iterative approach where we incrementally grow the search space until all points have found their k neighbors. We show that our approach is orders of magnitude faster than existing approaches and can even be used to accelerate fixed-radius neighbor searches.

References

[1]
D.A. Adeniyi, Z. Wei, and Y. Yongquan. 2016. Automated web usage data mining and recommendation system using K-Nearest Neighbor (KNN) classification method. Applied Computing and Informatics 12, 1 (2016), 90--108.
[2]
Alexandr Andoni and Piotr Indyk. 2006. Near-Optimal Hashing Algorithms for Approximate Nearest Neighbor in High Dimensions. In 2006 47th Annual IEEE Symposium on Foundations of Computer Science (FOCS'06). 459--468.
[3]
Martin Aumüller, Erik Bernhardsson, and Alexander John Faithfull. 2018. ANN-Benchmarks: A Benchmarking Tool for Approximate Nearest Neighbor Algorithms. CoRR abs/1807.05614 (2018). arXiv:1807.05614 http://arxiv.org/abs/1807.05614
[4]
G. Baudat and F. Anouar. 2000. Generalized Discriminant Analysis Using a Kernel Approach. Neural Comput. 12, 10 (oct 2000), 2385--2404.
[5]
Jon Louis Bentley. 1975. Multidimensional Binary Search Trees Used for Associative Searching. Commun. ACM 18, 9 (sep 1975), 509--517.
[6]
Paolo Ciaccia, Marco Patella, and Pavel Zezula. 1997. M-Tree: An Efficient Access Method for Similarity Search in Metric Spaces. In Proceedings of the 23rd International Conference on Very Large Data Bases (VLDB '97). Morgan Kaufmann Publishers Inc., San Francisco, CA, USA, 426--435.
[7]
T. Cover and P. Hart. 1967. Nearest neighbor pattern classification. IEEE Transactions on Information Theory 13, 1 (1967), 21--27.
[8]
I. Evangelou, G. Papaioannou, K. Vardis, and A. A. Vasilakis. 2021. Fast Radius Search Exploiting Ray Tracing Frameworks. Journal of Computer Graphics Techniques (JCGT) 10, 1 (5 February 2021), 25--48. http://jcgt.org/published/0010/01/02/
[9]
Evelyn Fix and Joseph L. Hodges. 1989. Discriminatory Analysis - Nonparametric Discrimination: Consistency Properties. International Statistical Review 57 (1989), 238.
[10]
Andreas Geiger, Philip Lenz, Christoph Stiller, and Raquel Urtasun. 2013. Vision meets Robotics: The KITTI Dataset. International Journal of Robotics Research (IJRR) (2013).
[11]
Khronos Group. 2009. OpenCL. https://www.khronos.org/opencl/
[12]
Harold Hotelling. 1933. Analysis of a complex of statistical variables into principal components. Journal of Educational Psychology 24 (1933), 498--520.
[13]
Jeff Johnson, Matthijs Douze, and Hervé Jégou. 2019. Billion-scale similarity search with GPUs. IEEE Transactions on Big Data 7, 3 (2019), 535--547.
[14]
Manohar Kaul, Bin Yang, and Christian S. Jensen. 2013. Building Accurate 3D Spatial Networks to Enable Next Generation Intelligent Transportation Systems. In 2013 IEEE 14th International Conference on Mobile Data Management, Vol. 1. 137--146.
[15]
Luis Moreira-Matias, João Gama, Michel Ferreira, João Mendes-Moreira, and Luis Damas. 2013. Predicting Taxi-Passenger Demand Using Streaming Data. IEEE Transactions on Intelligent Transportation Systems 14, 3 (2013), 1393--1402.
[16]
Nate Morrical, Will Usher, Ingo Wald, and Valerio Pascucci. 2019. Efficient Space Skipping and Adaptive Sampling of Unstructured Volumes Using Hardware Accelerated Ray Tracing. 2019 IEEE Visualization Conference (VIS) (2019), 256--260.
[17]
Nate Morrical, Ingo Wald, Will Usher, and Valerio Pascucci. 2020. Accelerating Unstructured Mesh Point Location with RT Cores. IEEE transactions on visualization and computer graphics (2020).
[18]
Prakash Nadkarni. 2016. Chapter 10 - Core Technologies: Data Mining and "Big Data". In Clinical Research Computing, Prakash Nadkarni (Ed.). Academic Press, 187--204.
[19]
Parth Nagarkar, Arnab Bhattacharya, and Omid Jafari. 2021. Exploring State-of-the-Art Nearest Neighbor (NN) Search Techniques. In Proceedings of the 3rd ACM India Joint International Conference on Data Science; Management of Data (8th ACM IKDD CODS; 26th COMAD) (Bangalore, India) (CODS-COMAD '21). Association for Computing Machinery, New York, NY, USA, 443--446.
[20]
NVIDIA. 2007. CUDA. https://developer.nvidia.com/cuda-zone
[21]
NVIDIA. 2021. NVIDIA Turing Architecture Whitepaper. https://gpltech.com/wp-content/uploads/2018/11/NVIDIA-Turing-Architecture-Whitepaper.pdf
[22]
Victor Pankratius, A. Coster, Juha Vierinen, Philip Erickson, and Bill Rideout. 2015. GPS Data Processing for Scientific Studies of the Earth's Atmosphere and Near-Space Environment. (01 2015), 1--12.
[23]
Deyuan Qiu, Stefan May, and Andreas Nüchter. 2009. GPU-Accelerated Nearest Neighbor Search for 3D Registration. In Computer Vision Systems, Mario Fritz, Bernt Schiele, and Justus H. Piater (Eds.). Springer Berlin Heidelberg, Berlin, Heidelberg, 194--203.
[24]
Sebastian Raschka, Joshua Patterson, and Corey Nolet. 2020. Machine Learning in Python: Main developments and technology trends in data science, machine learning, and artificial intelligence. arXiv preprint arXiv:2002.04803 (2020).
[25]
Nick Roussopoulos, Stephen Kelley, and Frédéric Vincent. 1995. Nearest Neighbor Queries. SIGMOD Rec. 24, 2 (may 1995), 71--79.
[26]
Jagan Sankaranarayanan, Hanan Samet, and Amitabh Varshney. 2006. A Fast k-Neighborhood Algorithm for Large Point-Clouds. In Symposium on Point-Based Graphics, Mario Botsch, Baoquan Chen, Mark Pauly, and Matthias Zwicker (Eds.). The Eurographics Association.
[27]
Ingo Wald, Nathan Morrical, and Haines E. 2020. OWL-The Optix 7 Wrapper Library.
[28]
Ingo Wald, Will Usher, Nathan Morrical, Laura Lediaev, and Valerio Pascucci. 2019. RTX Beyond Ray Tracing: Exploring the Use of Hardware Ray Tracing Cores for Tet-Mesh Point Location. In High-Performance Graphics - Short Papers, Markus Steinberger and Tim Foley (Eds.). The Eurographics Association.
[29]
Roger Weber, Hans-Jörg Schek, and Stephen Blott. 1998. A Quantitative Analysis and Performance Study for Similarity-Search Methods in High-Dimensional Spaces. In Proceedings of the 24rd International Conference on Very Large Data Bases (VLDB '98). Morgan Kaufmann Publishers Inc., San Francisco, CA, USA, 194--205.
[30]
Patrick Wieschollek, Oliver Wang, Alexander Sorkine-Hornung, and Hendrik P. A. Lensch. 2016. Efficient Large-Scale Approximate Nearest Neighbor Search on the GPU. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR). 2027--2035.
[31]
Wenchao Xing and Yilin Bei. 2020. Medical Health Big Data Classification Based on KNN Classification Algorithm. IEEE Access 8 (2020), 28808--28819.
[32]
Stefan Zellmann, Martin Weier, and Ingo Wald. 2020. Accelerating Force-Directed Graph Drawing with RT Cores. In 2020 IEEE Visualization Conference (VIS). 96--100.
[33]
Yuhao Zhu. 2022. RTNN: Accelerating Neighbor Search Using Hardware Ray Tracing. In Proceedings of the 27th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming (Seoul, Republic of Korea) (PPoPP '22). Association for Computing Machinery, New York, NY, USA, 76--89.

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
ICS '23: Proceedings of the 37th ACM International Conference on Supercomputing
June 2023
505 pages
ISBN:9798400700569
DOI:10.1145/3577193
This work is licensed under a Creative Commons Attribution International 4.0 License.

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 21 June 2023

Check for updates

Author Tags

  1. ray tracing
  2. k nearest neighbors
  3. neighbor search

Qualifiers

  • Research-article

Conference

ICS '23
Sponsor:

Acceptance Rates

Overall Acceptance Rate 629 of 2,180 submissions, 29%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)376
  • Downloads (Last 6 weeks)52
Reflects downloads up to 28 Jan 2025

Other Metrics

Citations

Cited By

View all

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Login options

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media