English

Spectral Clustering in Birthday Paradox Time

Data Structures and Algorithms 2026-01-12 v1

Abstract

Given a vertex in a (k,φ,ϵ)(k, \varphi, \epsilon)-clusterable graph, i.e. a graph whose vertex set can be partitioned into a disjoint union of φ\varphi-expanders of size n/k\approx n/k with outer conductance bounded by ϵ\epsilon, can one quickly tell which cluster it belongs to? This question goes back to the expansion testing problem of Goldreich and Ron'11. For k=2k=2 a sample of n1/2+O(ϵ/φ2)\approx n^{1/2+O(\epsilon/\varphi^2)} logarithmic length walks from a given vertex approximately determines its cluster membership by the birthday paradox: two vertices whose random walk samples are `close' are likely in the same cluster. The study of the general case k>2k>2 was initiated by Czumaj, Peng and Sohler [STOC'15], and the works of Chiplunkar et al. [FOCS'18], Gluch et al. [SODA'21] showed that poly(k)n1/2+O(ϵ/φ2)\approx \text{poly}(k)\cdot n^{1/2+O(\epsilon/\varphi^2)} random walk samples suffice for general kk. This matches the k=2k=2 result up to polynomial factors in kk, but creates a conceptual inconsistency: if the birthday paradox is the guiding phenomenon, then the query complexity should decrease with the number of clusters kk! Since clusters have size n/k\approx n/k, we expect to need (n/k)1/2+O(ϵ/φ2)\approx (n/k)^{1/2+O(\epsilon/\varphi^2)} random walk samples, which decreases with kk. We design a novel representation of vertices in a (k,φ,ϵ)(k, \varphi, \epsilon)-clusterable graph by a mixture of logarithmic length walks. This representation uses the optimal (n/k)1/2+O(ϵ/φ2)\approx (n/k)^{1/2+O(\epsilon/\varphi^2)} walks per vertex, and allows for a fast nearest neighbor search: given kk vertices representing the clusters, we can find the cluster of a given query vertex xx using nearly linear time in the representation size of xx. This gives a clustering oracle with query time (n/k)1/2+O(ϵ/φ2)\approx (n/k)^{1/2+O(\epsilon/\varphi^2)} and space complexity k(n/k)1/2+O(ϵ/φ2)k\cdot (n/k)^{1/2+O(\epsilon/\varphi^2)}, matching the birthday paradox bound.

Keywords

Cite

@article{arxiv.2601.05883,
  title  = {Spectral Clustering in Birthday Paradox Time},
  author = {Michael Kapralov and Ekaterina Kochetkova and Weronika Wrzos-Kaminska},
  journal= {arXiv preprint arXiv:2601.05883},
  year   = {2026}
}

Comments

Abstract shortened to meet the arXiv character limit