arXiv:2610.31909cs.LGOct 2026

Manuscript Offprint

arXiv:2610.31909

Topological Equivalence of Spectral and Density Cluster Hierarchies

Sajjad Hashemian

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We compare two canonical ways to recover hierarchical clustering from an underlying density ff: the density cluster tree given by connected components of superlevel sets {f≥λ}\{f \geq \lambda\}, and a spectral hierarchy obtained by applying single linkage to diffusion distances induced by a Laplacian operator. We give conditions under which, at an appropriate diffusion time, the diffusion hierarchy is topologically equivalent to the density cluster tree up to a monotone rescaling of heights. It further shows that a k-NN graph implementation inherits this equivalence from uniform approximation of diffusion distances, yielding a finite-sample reduction from spectral graph constructions to density-level-set topology.

1 Introduction

Hierarchical clustering is a basic tool to describe structure in data at many scales. In this paper we study two standard hierarchies that start from an unknown density ff on a compact domain MM. The first one is the density cluster tree TfT_f, defined by the connected components of the superlevel sets of the underlying density function Lλ={x∈M:f(x)≥λ}L_\lambda = \{x \in M : f(x) \geq \lambda\} as λ\lambda decreases [Har81, CD10, EBW15]. The second one is a diffusion-spectral hierarchy, defined as a reversible Markov operator PP (or a Laplacian) from f[CL06,vL07]f[\mathrm{CL06}, \mathrm{vL07}]. Both viewpoints share the same idea and define a cluster as a set where the random walk mixes fast inside, but it escapes slowly outside.

The question we ask is simple. The density cluster tree is a canonical topological object, and it comes with a clear statistical target and stability theory [CD10, EBW15]. Diffusion distances are very popular because they are algorithmic and robust, and they are connected to spectral gaps and bottlenecks [CL06, vL07]. But it is not always clear what the diffusion hierarchy estimates as a population object. So, when does the diffusion single-linkage hierarchy give the same merge structure as the density cluster tree? This allows to consider the spectral method more than a heuristic, considering it as a certified estimator of a topological object defined by f.

To make the comparison precise we use merge heights. The density tree can be encoded by the merge-height function

mf(x,y)=sup⁡{λ≥0:xandyareinthesamecomponentofLλ}.m_{f}(x,y)=\sup\{\lambda\geq0:x and y are in the same component of L_{\lambda}\}.

The diffusion hierarchy at time tt is the single-linkage dendrogram built from (M,dt)(M, d_t), and it has its own merge-height function mt(x,y)m_t(x, y). We say the hierarchies meet if they are the same merge tree up to a monotone rescaling of heights, meaning there exists a strictly increasing map gtg_t such that mt(x,y)=gt(mf(x,y))m_t(x, y) = g_t(m_f(x, y)) for all pairs. This notion matches the idea that the two procedures may use different units on the vertical axis, but they should have the same merge events and the same nesting. We formalize mild Topological Meeting Condition (TMC) implying the meeting happens in an stable diffusive time window. Roughly, for every density level λ\lambda and every component CC of LλL_\lambda, we require two quantitative facts about the chain, it mixes fast inside CC, and also has small probability to exit CC in one step. If there exists a nontrivial time window where mixing has already happened but leakage is still small, and this window is consistent across the levels of the tree, then diffusion single linkage recovers the same hierarchy as density level sets.

Our results connect several lines of work. The density cluster tree goes back to Hartigan [Har81] and later statistical developments [CD10, EBW15]. Diffusion distance and diffusion maps give a spectral geometry view of connectivity and scales [CL06], and single linkage and MST are classical tools for building hierarchies [vL07]. On the finite-sample side, we use a modular principle, once diffusion distances are uniformly close, single linkage is stable in merge distortion, so the hard part is reduced to diffusion/Laplacian approximation on graphs [vLBB08, GTS20]. The merge-tree viewpoint is also close to stability ideas in topological data analysis [CSEH07, EH10].

We state the main results in a way that separates the topological argument from the analytic estimates. Single linkage depends only on the order in which connectivity events occur as the threshold increases. Our analytic task is to show that, at a suitable diffusion time, diffusion distance produces the same connectivity events as the density superlevel sets. Hence, agreement at every merge level then implies that the two hierarchies have the same merge tree, up to a monotone rescaling of heights.

We present three results. The first one is a population meeting theorem under an abstract hierarchical metastability condition. The second one is a finite-sample merge-distortion theorem for the standard k-NN graph algorithm, stated modularly through a uniform diffusion-distance approximation condition. The third one is a geometric theorem that implies metastability, together with a multiscale extension that removes the need for one global diffusion time.

The rest of the paper is organized as follows. Section 2 fixes notation and reviews preliminaries. Section 3 states the Topological Meeting Condition and explains how it encodes hierarchical metastability. Section 4 proves the population meeting theorem by showing within-component contraction and between-component separation of diffusion distance in the metastable window. Section 5 presents the k-NN graph algorithm and proves the merge-distortion guarantee using a stability lemma for single linkage. Section 6 gives geometric conditions that imply the metastability bounds and discusses a multiscale extension that can avoid choosing one global diffusion time. We conclude with discussion and some remaining questions.