arXiv:2609.07205cs.DSSep 2026

Manuscript Offprint

arXiv:2609.07205

Dasgupta's Hierarchical Clustering Objective: Geometry and the Price of the Cardinality Constraint

Peiyuan Sun

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

Peiyuan Sun

Beihang University

Abstract—The cost of a hierarchical clustering can be represented by an ultrametric whose lowest-common-ancestor labels are cluster cardinalities. We relate this known representation to the shortest-path geometry of a similarity graph. For a connected support graph GG, let dGd_G be its unit-length shortest-path metric and let the edge weights enter only the objective. We prove that the shifted Dasgupta optimum is exactly the minimum edge-weighted cost of a cardinality-realizable ultrametric that dominates dGd_G. Connectedification lemmas put this problem and its freely labeled dominating-ultrametric relaxation on the same class of connected binary hierarchies, labeled respectively by cardinality and graph diameter. As a sharp baseline, we determine the exact worst-case price of cardinality realizability: on every nn-vertex instance the ratio of the two optima is at most (2n−1)/3(2n-1)/3, with equality on the unweighted complete graph; the sharp factor for the standard unshifted objective is 2(n+1)/32(n+1)/3. Our principal structural result bounds this gap by a hereditary weighted fragmentation profile defined through connected balanced cuts. Uniform local control gives an O(log⁡n)O(\log n) gap, polynomial decay gives a constant gap, and the logarithmic order is tight even for unweighted trees of maximum degree 3. On locally regular bounded-degree trees, the hierarchy can be constructed in O(nlog⁡n)O(n \log n) time. An energy decomposition and a geometric density bound provide supporting instance-sensitive estimates. Thus the cardinality label has an unavoidable linear worst case but admits substantially smaller bounds on natural sparse graph classes.

Index Terms—hierarchical clustering, Dasgupta cost, ultrametric, graph metric, non-contractive embedding, weighted fragmentation, balanced cut, average distortion

I. INTRODUCTION

Dasgupta's objective turns similarity-based hierarchical clustering into a precise combinatorial optimization problem: an edge xyxy pays its similarity weight multiplied by the size of the smallest cluster that contains both endpoints [1]. More generally, dendrograms admit an ultrametric representation, a viewpoint used by Carlsson and Mémoli to formulate axiomatic, stability, and convergence results for hierarchical clustering [2]. In Dasgupta's model, however, the label at the lowest common ancestor of xx and yy is fixed to be the cardinality of the corresponding cluster. Roy and Pokutta established an exact correspondence between hierarchies and these restricted ultrametrics [3]. This paper asks a different geometric question. If the nonzero similarities define a connected support graph with shortest-path metric dGd_G, how costly is the requirement that the labels of a dominating ultrametric be cluster cardinalities rather than freely chosen geometric scales?

Moseley and Wang studied an affine-dual reward formulation of Dasgupta's objective and used it to analyze average linkage, divisive local search, random hierarchical clustering, and several classical heuristics [4]. Their work asks how particular algorithms compare with the optimal hierarchy. Our question is orthogonal: we compare the optimal cardinality-labeled hierarchy with a freely labeled dominating-ultrametric relaxation. The precise affine relation between the two objective normalizations is recorded in Section II.

The geometry used here is deliberately the unweighted shortest-path geometry of the support graph. Similarity magnitudes determine the measure with which stretch is averaged, but not the underlying metric. Accordingly, our interpretation concerns the interaction between support-graph geometry and cardinality labels; it is not a claim that the support metric is the unique metric representation of weighted similarities.

The distinction is meaningful even though the objective is evaluated only on support edges. A freely labeled ultrametric may choose its cluster scale from the graph diameter. A Dasgupta hierarchy must use ∣S∣−1|S|-1 for a cluster SS. These labels agree on paths but can differ by a factor of order ∣S∣|S| when many vertices lie in a small-diameter region. The comparison therefore isolates a structural restriction of the Dasgupta objective, rather than the computational difficulty of approximating that objective. The free benchmark is a controlled relaxation: it keeps dGd_G, the edge-weight measure, and the non-contraction requirement fixed, and removes only the requirement that an internal label equal ∣S∣−1|S|-1. The complete-graph separation below is therefore a baseline exposing the limitation of this relaxation in dense support graphs, rather than evidence that the support metric captures dense similarity geometry.

Our contributions are summarized by three main results.

  1. Geometric equivalence and common normal forms. Lemma 1 converts every dominating ultrametric, without increasing its value on any support edge, into a connected binary hierarchy labeled by graph diameters. Lemma 3 gives the cardinality analogue for every starting hierarchy. Consequently, Corollary 4 identifies the shifted Dasgupta optimum exactly with the minimum over cardinality-realizable ultrametrics that dominate dGd_G.

  2. Exact worst-case price of cardinality realizability. Theorem 7 proves that every connected weighted graph on n vertices satisfies

1≤OPTcard(G,w)OPTfree(G,w)≤2n−13.(1)1\leq\frac{\mathrm{OPT}_{\mathrm{card}}(G,w)}{\mathrm{OPT}_{\mathrm{free}}(G,w)}\leq\frac{2n-1}{3}. \tag{1}

The unweighted complete graph attains equality for every nn, and Corollary 8 gives the sharp factor 2(n+1)/32(n+1)/3 for the standard, unshifted objective.

  1. Hereditary structural bounds and a tight sparse example. Theorem 9 bounds the gap by the sum of a weighted fragmentation profile over cardinality scales. A uniform profile gives an O(log⁡n)O(\log n) gap, while polynomial scale decay gives a constant gap. Locally regular bounded-degree weighted trees satisfy the uniform condition and admit an explicit recursive construction; Theorem 14 shows that the resulting Θ(log⁡n)\Theta(\log n) order is tight even for unweighted trees of maximum degree 3.

Two secondary estimates make the comparison instance-sensitive. A cut-energy identity expresses the fixed-hierarchy ratio as the free-energy-weighted mean of (∣S∣−1)/diamdG(S)(|S|-1)/\mathrm{diam}_{d_G}(S) and yields an elementary tail-to-first-moment estimate, analogous in form to scaling-to-average arguments [5], [6]. A purely geometric corollary controls the gap by the maximum density of a connected set, equivalently up to a factor of 2 by linear ball growth. These results are consequences and proof tools. The sharp general gap is the baseline separation, while the hereditary fragmentation theorem and its tight bounded-degree-tree example form the principal structural contribution.

This paper does not provide a new approximation guarantee for average linkage, single linkage, complete linkage, bisecting k-means, or any other practical clustering heuristic. Its approximation factors compare two geometric optimization benchmarks, not an algorithm with the Dasgupta optimum.

The paper is organized as follows. Section II positions the comparison relative to prior ultrametric and hierarchical-clustering formulations. Section III fixes the two optimization problems. Sections IV–VI establish the common connected normal form. Section VII proves the sharp gap, and Section VIII proves the hereditary bound and its tight tree example. Sections IX and X give supporting instance-sensitive consequences.