Lune

NeurIPS2020Top-tier venue

Faster DBSCAN via subsampled similarity queries

Heinrich Jiang, Jennifer Jang, Jakub Lacki

Abstract

DBSCAN is a popular density-based clustering algorithm. It computes the ϵ\epsilon-neighborhood graph of a dataset and uses the connected components of the high-degree nodes to decide the clusters. However, the full neighborhood graph may be too costly to compute with a worst-case complexity of O(n2)O(n^2). In this paper, we propose a simple variant called SNG-DBSCAN, which clusters based on a subsampled ϵ\epsilon-neighborhood graph, only requires access to similarity queries for pairs of points and in particular avoids any complex data structures which need the embeddings of the data points themselves. The runtime of the procedure is O(sn2)O(sn^2), where ss is the sampling rate. We show under some natural theoretical assumptions that s≈log⁡n/ns \approx \log n/n is sufficient for statistical cluster recovery guarantees leading to an O(nlog⁡n)O(n\log n) complexity. We provide an extensive experimental analysis showing that on large datasets, one can subsample as little as 0.1%0.1\% of the neighborhood graph, leading to as much as over 200x speedup and 250x reduction in RAM consumption compared to scikit-learn's implementation of DBSCAN, while still maintaining competitive clustering performance.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. Scalable DBSCAN with Random ProjectionsHaochuan Xu, Ninh PhamNeurIPS 2024 · 10 citations
  2. Understanding Contrastive Learning via Gaussian Mixture ModelsParikshit Bansal, Ali Kavis, Sujay SanghaviNeurIPS 2025 · 6 citations

Related papers

  1. Fast Approximation of Similarity Graphs with Kernel Density EstimationPeter Macgregor, He SunNeurIPS 2023 · 5 citations
  2. Fast Density-Based Clustering: Geometric ApproachXiaogang Huang, Tiefeng MaSIGMOD 2023 · 3 citations
  3. Dynamic Similarity Graph Construction with Kernel Density EstimationSteinar Laenen, Peter Macgregor, He SunICML 2025
  4. Towards Metric DBSCAN: Exact, Approximate, and Streaming AlgorithmsGuanlin Mo, Shihong Song, Hu DingSIGMOD 2024 · 7 citations
  5. An Efficient Algorithm for Distance-based Structural Graph ClusteringKaixin Liu, Sibo Wang, Yong Zhang, Chunxiao XingSIGMOD 2023 · 16 citations
Dusk over the sea between two cliffs drawn in fine vertical lines