GPU-Accelerated Construction of the Gabriel Graph: Parallelization Strategies and Applications to Large-Margin Classification and Graph-Based Clustering
Diego Sanches Nere dos Santos, Luiz Carlos Bambirra Torres
Abstract
The Gabriel graph is a proximity graph widely used in computational geometry and geometric machine learning, underlying large-margin classifiers and, as we show in this work, density-aware clustering methods. Its construction, however, has cubic time complexity O(N3) in the naive formulation, which severely limits its use on datasets beyond a few thousand samples. This paper presents a set of GPU parallelization strategies, implemented in CUDA, that make Gabriel graph construction practical at scale. We introduce (i) an implicit closed-form mapping from a linear thread index to the corresponding vertex pair (i,j), which removes the need for an explicit O(N2) adjacency structure and lets every thread locate its pair in constant time and constant memory; (ii) a two-pass, bitmask-based, atomically-compacted edge-list construction that produces a dense edge array proportional only to the number of edges actually found; and (iii) a thread-coarsening strategy in which each thread evaluates several candidate pairs, trading launch and scheduling overhead against load balance. We evaluate these strategies on the acceleration of a Gabriel-graph-based large-margin classifier (NN-clas) and on a novel Gabriel-graph clustering algorithm that identifies connected components on a residual graph and performs GPU-parallel Union-Find with hierarchical edge-based merging. On 14 public benchmark datasets, the GPU implementation reduces Gabriel graph construction time by two to nearly four orders of magnitude relative to a sequential CPU baseline (up to 8484x), without loss of classification accuracy, and the proposed clustering method is statistically competitive with DBSCAN on the topological validity index Dunn while eliminating the need for an explicit density radius parameter.
Create a lesson
Related papers
Matching Architecture to Workload: Comparing RISC-V Parallel Accelerators for Energy-Efficient Embedded Computing
Shared title terminology · Luca Colombo, Luigi Ghionda, Amirhossein Kiamarzi et al.
Accelerating Direct Sparse Solvers with Graph Computing Accelerators
Shared title terminology · Jiya Su, François-Henry Rouet, Jeff Beisheim et al.
GARDEN: Efficient GPU-Accelerated Billion-Scale GNN Training via Caching-Sampling-Batching Co-Design
Shared title terminology · Qingrui Zhu, Lei Liu, Yushu Cai et al.
Introducing Cluster Efficiency to LLM Serving: Pooling Economical Accelerators over Fast Interconnects
Shared title terminology · Youhe Jiang, Pavle Glušac, Binhang Yuan et al.
Autotuning GPU Thread Block Sizes for Large-Scale Stencil Applications Using the OPS DSL
Shared title terminology · Kevin Antonio Nava Garcia, Istvan Zoltan Reguly
Falcons: Pushing the Speed-Ratio Limits of Lossy Compression for Parallel Scientific Applications
Shared title terminology · Bing Lu, Jinyang Liu, Xinyang Ma et al.