Fast Approximation of Similarity Graphs with Kernel Density Estimation

Peter Macgregor, He Sun
2/12/2026

No official code found. Best implementation: pmacg/kde-similarity-graph (5 stars, LGPL-2.1, last commit 2024-05-29).

Abstract

Constructing a similarity graph from a set $X$ of data points in $\mathbb{R}^d$ is the first step of many modern clustering algorithms. However, typical constructions of a similarity graph have high time complexity, and a quadratic space dependency with respect to $|X|$. We address this limitation and present a new algorithmic framework that constructs a sparse approximation of the fully connected similarity graph while preserving its cluster structure. Our presented algorithm is based on the kernel density estimation problem, and is applicable for arbitrary kernel functions. We compare our designed algorithm with the well-known implementations from the scikit-learn library and the FAISS library, and find that our method significantly outperforms the implementation from both libraries on a variety of datasets.

View on arXivView PDF

Code Implementations(1)

LGPL-2.1

Code for the paper "Fast Approximation of Similarity Graphs with Kernel Density Estimation", at NeurIPS'23.

50C, ROct 19, 20232 years agoLGPL-2.1

Similar Papers

Cite this paper

@article{macgregor2026fast,
  title  = {Fast Approximation of Similarity Graphs with Kernel Density Estimation},
  author = {Peter Macgregor and He Sun},
  year   = {2026},
  eprint = {2310.13870},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.13870},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.13870.svg)](https://codeofpaper.com/paper/2310.13870)

Discussion