Faster DBSCAN via subsampled similarity queries
Heinrich Jiang, Jennifer Jang, Jakub Lacki
Abstract
DBSCAN is a popular density-based clustering algorithm. It computes the -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 . In this paper, we propose a simple variant called SNG-DBSCAN, which clusters based on a subsampled -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 , where is the sampling rate. We show under some natural theoretical assumptions that is sufficient for statistical cluster recovery guarantees leading to an complexity. We provide an extensive experimental analysis showing that on large datasets, one can subsample as little as 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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers2
- Scalable DBSCAN with Random ProjectionsHaochuan Xu, Ninh PhamNeurIPS 2024 · 10 citations
- Understanding Contrastive Learning via Gaussian Mixture ModelsParikshit Bansal, Ali Kavis, Sujay SanghaviNeurIPS 2025 · 6 citations
Related papers
- Fast Approximation of Similarity Graphs with Kernel Density EstimationPeter Macgregor, He SunNeurIPS 2023 · 5 citations
- Fast Density-Based Clustering: Geometric ApproachXiaogang Huang, Tiefeng MaSIGMOD 2023 · 3 citations
- Dynamic Similarity Graph Construction with Kernel Density EstimationSteinar Laenen, Peter Macgregor, He SunICML 2025
- An Efficient Algorithm for Distance-based Structural Graph ClusteringKaixin Liu, Sibo Wang, Yong Zhang, Chunxiao XingSIGMOD 2023 · 16 citations
- Approximate DBSCAN via Density-Biased Sampling and Kernel Density EstimationJian Lin, Siyue Wu, Dingming Wu, Tsz Nam ChanSIGMOD 2026
