arXiv:2609.01975cs.DCSep 2026

Manuscript Offprint

arXiv:2609.01975

RT-HiSS: Ray Tracing Accelerated High Dimensional Vector Similarity Searches

Revanth Reddy Munugala, Michael Gowanlock

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Revanth Reddy Munugala

School of Informatics, Computing, and Cyber Systems

Northern Arizona University

Flagstaff, AZ, U.S.A.

rm2878@nau.edu

Michael Gowanlock

School of Informatics, Computing, and Cyber Systems

Northern Arizona University

Flagstaff, AZ, U.S.A.

michael.gowanlock@nau.edu

Abstract—Recent GPU generations include special-purpose ray tracing (RT) cores for graphics applications. While RT cores are primarily used for rendering, recent works show they can be leveraged for general-purpose tasks, including similarity searches. However, existing approaches do not support datasets exceeding three dimensions. In this work, we propose RT-HiSS, the first exact GPU RT-core-based similarity search algorithm for high-dimensional datasets. GPU similarity search often scales poorly for large datasets with substantial search distances. To address this, RT-HiSS uses RT cores for fast index construction and searches, followed by candidate refinement on CUDA cores. We introduce a two-pass approach to estimate an upper bound on result size, enabling efficient batching under GPU memory constraints with near-perfect load balancing. Additionally, we examine shared memory tiling and compressed result masks to improve GPU resource utilization. RT-HiSS yields speedups up to 8.37× over competitive state-of-the-art GPU algorithms and up to 2,368.26× relative to the brute-force algorithm across six real-world datasets.

Index Terms—Distance Similarity Search, GPU, High Dimensional, In-memory Databases, Parallel Computing, Vector Search

I. INTRODUCTION

Current scientific instruments generate enormous quantities of data that need to be processed, and consequently there has been significant effort to efficiently compute data analysis workflows on parallel and high performance computing (HPC) systems. In this paper, we examine distance similarity searches (DSS) which are a data analytic method that are used for numerous tasks, including clustering [1], outlier detection [2], and natural language processing [3], among others. DSS on points refer to identifying points in a dataset that are similar to a given query point based on a similarity metric. These searches are computationally expensive as they require numerous distance comparisons between query and data points.

HPC systems are becoming increasingly heterogeneous and nodes often contain two or more processor types, including CPUs, Graphics Processing Units (GPUs), and Data Processing Units (DPUs). Even GPUs themselves are equipped with both tensor and ray tracing cores [4]. An example of a highly heterogeneous HPC system is Frontera which contains both Nvidia V100 and RTX 5000 GPUs to address FP32 and FP64 workloads [5], and of particular interest to this paper is that the RTX 5000 GPUs contain ray tracing (RT) cores.

Several papers have examined kernel-level optimizations for DSS on GPUs [6]–[10] including those using GPU RT cores because they benefit from hardware-accelerated searches on Bounding Volume Hierarchy (BVH) trees [8], [11]. These similarity search algorithms employ two phases: (i) An index search phase that prunes the search to identify candidate neighbors that may be within the search distance ( ϵ\epsilon) of query points. (ii) A refinement phase that compares query and candidate neighbor points to identify the exact neighbors within ϵ\epsilon. The search-and-refine approach using RT cores yields two major challenges, as follows.

Challenge #1: Unconstrained Result Set Sizes: DSS identify all neighbors within ϵ\epsilon of a given query point. The number of neighbors identified for each query is a function of dataset properties (i.e., distribution, number of points, and dimensionality). Subsequently, the result set size often exceeds GPU global memory capacity when processing large datasets and typically batching is employed to address this limitation. We identify several unintended consequences of batching which include: (i) poor saturation of GPU resources due to insufficient work in each batch; (ii) load imbalance across batches; and (iii) overhead costs [10], [12].

Challenge #2: Limitations of RT Cores: RT cores are limited to datasets having ≤\leq 3 dimensions; therefore, they cannot be directly employed for high-dimensional datasets [8], [13]. RT similarity search algorithms typically represent each data point as an individual geometrical primitive and use it to construct a BVH tree to efficiently prune the data space [8], [11]. However, this approach results in a large number of ray-primitive intersections during BVH tree traversals, particularly for large datasets which significantly deteriorates performance.

We demonstrate that using RT cores for indexing on three dimensions in conjunction with CUDA cores for refinement addresses the challenges above. To our knowledge, we propose the first algorithm to compute DSS on high-dimensional datasets using RT cores. In summary, this paper makes the following contributions:

• We propose a scalable RT accelerated High-dimensional

This material is based upon work supported by the National Science Foundation under Grant No. 2042155. This paper to appear in the Proceedings of the 2026 International Conference for High Performance Computing, Networking, Storage and Analysis (SC '26).

Similarity Search algorithm (RT-HiSS) by indexing on RT cores, and refining candidate neighbors using CUDA cores.

• We identify nearby data points, and represent the ϵ\epsilon-neighborhood of all such data points as a single primitive in the OPTiX scene to mitigate ray-primitive intersections.

• We design a multi-pass ray-tracing approach that yields the upper bound on the number of neighbors for each query and a batching scheme to mitigate global memory limitations.

• We propose a method for compressing the result set by representing neighbors on the bit level. This method increases GPU utilization across batches.

Paper organization: Section II outlines background material. Section III details the OPTiX programming model. Section IV describes our algorithm, RT-HiSS. Section V presents the evaluation. Section VI concludes the paper.

References (41)