Distributed-Memory Parallel Algorithms for Fixed-Radius Near Neighbor Graph Construction

Gabriel Raulet, Dmitriy Morozov, Aydin Buluç, Katherine A. YelickarXiv 2025 · DOI

Introduction

Fixed-radius near-neighbor (FRNN) graphs are fundamental to modern data science, underpinning critical algorithms such as UMAP, t-SNE, and DBSCAN. While parallel solutions for $k$-nearest neighbor ($k$-NN) search or Euclidean-restricted spaces are well-established, constructing FRNN graphs in general metric spaces remains a significant challenge. In these spaces, only the triangle inequality can be assumed, precluding the use of coordinate-based partitioning like k-d trees. This paper introduces the first scalable, distributed-memory parallel algorithms designed specifically for this task, achieving massive speedups on million-point datasets.

Methods

The proposed framework utilizes a multi-layered approach to handle the complexities of general metric spaces:

  1. Shared-Memory Cover Trees: The authors developed a high-performance, batch-constructed cover tree. Cover trees are particularly suited for general metrics as their performance guarantees are tied to the data's intrinsic dimensionality rather than the ambient space.
  2. The Systolic Algorithm: Inspired by systolic arrays, this method partitions points equally across nodes. Each node constructs a local cover tree, and query points are circulated in a ring pipeline. This design overlaps communication with computation and prevents memory exhaustion.
  3. The Landmarking Algorithm: This sophisticated spatial partitioning strategy uses a set of "centers" to generate a Voronoi diagram across the cluster. To manage neighbors across partition boundaries, the authors identify "ghost regions" based on mathematical bounds. Points within these regions are either replicated or queried across nodes using either a collective "all-to-all" or a ring-based hybrid communication approach.
Spatial partitioning using Voronoi cells and ghost regions for fixed-radius search.

Experimental Setup

The algorithms were benchmarked against a diverse suite of datasets, including Euclidean metrics (e.g., sift with 1 million points) and Hamming distance metrics (e.g., word2bits with 800 dimensions). These datasets represent a wide range of graph densities, with average neighbors per vertex varying from 6 to over 5,000.

Key Results

The experimental evaluation demonstrates exceptional scalability. On the 128-dimensional SIFT dataset, the algorithm achieved a 678.34x speedup on 1024 cores for sparse graphs and a 1590.99x speedup on 4096 cores for denser configurations.

Runtime performance across various datasets and epsilon values, comparing landmarking and systolic approaches.

As shown in the runtime plots, the proposed methods consistently outperform sequential baselines and scale effectively across different metrics and radii. While the Landmarking algorithm often excels at low-to-medium core counts, the simpler Systolic ring approach becomes highly competitive at massive scales (4096+ cores) by avoiding the overhead of complex global synchronization.

Discussion and Conclusion

A key insight of this work is that the triangle inequality is sufficient for building efficient distributed partitions without relying on spatial coordinates. Load balancing was found to be critical; the use of multiway number partitioning for assigning Voronoi cells significantly improved performance over simpler distributions.

However, challenges remain. The efficiency of these algorithms is sensitive to the intrinsic dimensionality of the data. In extremely high-dimensional "white noise" scenarios, performance may degrade toward brute-force complexity. Future work will focus on scaling to billion-point datasets and exploring more computationally expensive metrics, such as edit distance for genomic applications.

Summary updated

BibTeX
@misc{raulet2025distributed,
  author = {Gabriel Raulet and Dmitriy Morozov and Aydin Buluç and Katherine A. Yelick},
  title = {{Distributed-Memory Parallel Algorithms for Fixed-Radius Near Neighbor Graph Construction}},
  year = {2025},
  eprint = {2510.14147},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.14147},
}
Figure