Lune

NeurIPS2022Top-tier venue

Stars: Tera-Scale Graph Building for Clustering and Learning

CJ Carey, Jonathan Halcrow, Rajesh Jayaram, Vahab Mirrokni, Warren Schudy, Peilin Zhong

Abstract

A fundamental procedure in the analysis of massive datasets is the construction of similarity graphs. Such graphs play a key role for many downstream tasks, including clustering, classification, graph learning, and nearest neighbor search. For these tasks, it is critical to build graphs which are sparse yet still representative of the underlying data. The benefits of sparsity are twofold: firstly, constructing dense graphs is infeasible in practice for large datasets, and secondly, the runtime of downstream tasks is directly influenced by the sparsity of the similarity graph. In this work, we present Stars: a highly scalable method for building extremely sparse graphs via two-hop spanners, which are graphs where similar points are connected by a path of length at most two. Stars can construct two-hop spanners with significantly fewer similarity comparisons, which are a major bottleneck for learning based models where comparisons are expensive to evaluate. Theoretically, we demonstrate that Stars builds a graph in nearly-linear time, where approximate nearest neighbors are contained within two-hop neighborhoods. In practice, we have deployed Stars for multiple data sets allowing for graph building at the Tera-Scale, i.e., for graphs with tens of trillions of edges. We evaluate the performance of Stars for clustering and graph learning, and demonstrate 10 1000-fold improvements in pairwise similarity comparisons compared to different baselines, and 2 10-fold improvement in running time without quality loss.

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.

1 top-tier paper has 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

  • PiPNN: Ultra-Scalable Graph-Based Nearest Neighbor Indexing cites Hierarchical Agglomerative Graph Clustering in Nearly-Linear Time
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. PiPNN: Ultra-Scalable Graph-Based Nearest Neighbor IndexingTobias Rubel, Richard Wen, Laxman Dhulipala, Lars Gottesbüren et al.KDD 2026 · 2 citations

Builds on4

  1. Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong et al.NeurIPS 2020 · 3,935 citations
  2. Learning Space Partitions for Nearest Neighbor SearchYihe Dong, Piotr Indyk, Ilya P. Razenshteyn, Tal WagnerICLR 2020 · 104 citations
  3. Hierarchical Agglomerative Graph Clustering in Nearly-Linear TimeLaxman Dhulipala, David Eisenstat, Jakub Lacki, Vahab S. Mirrokni et al.ICML 2021 · 30 citations
  4. Massively Parallel and Dynamic Algorithms for Minimum Size ClusteringAlessandro Epasto, Mohammad Mahdian, Vahab S. Mirrokni, Peilin ZhongSODA 2022 · 2 citations

Related papers

  1. Fast Approximation of Similarity Graphs with Kernel Density EstimationPeter Macgregor, He SunNeurIPS 2023 · 5 citations
  2. Dynamic Similarity Graph Construction with Kernel Density EstimationSteinar Laenen, Peter Macgregor, He SunICML 2025
  3. Sparse Neighborhood Graph-Based Approximate Nearest Neighbor Search Revisited: Theoretical Analysis and OptimizationXinran Ma, Zhaoqi Zhou, Chuan Zhou, Zaijiu Shang et al.VLDB 2026 · 1 citation
  4. SCARA: Scalable Graph Neural Networks with Feature-Oriented OptimizationNingyi Liao, Dingheng Mo, Siqiang Luo, Xiang Li et al.VLDB 2022 · 36 citations
  5. Succinct Graph Representations as Distance Oracles: An Experimental EvaluationArpit Merchant, Aristides Gionis, Michael MathioudakisVLDB 2022 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines