Learning Hierarchical Structure of Clusterable Graphs

Michael Kapralov, Akash Kumar, Silvio Lattanzi, Aida Mousavifar · OpenReview

Abstract

Testing graph cluster structure has been a central object of study in property testing since the foundational work of Goldreich and Ron [STOC'96] on expansion testing, i.e. the problem of distinguishing between a single cluster (an expander) and a graph that is far from a single cluster. More generally, a $(k, \epsilon)$-clusterable graph $G$ is a graph whose vertex set admits a partition into $k$ induced expanders, each with outer conductance bounded by $\epsilon$. A recent line of work initiated by Czumaj, Peng and Sohler [STOC'15] has shown how to test whether a graph is close to $(k, \epsilon)$-clusterable, and to locally determine which cluster a given vertex belongs to with misclassification rate $\approx \epsilon$, but no sublinear time algorithms for learning the structure of inter-cluster connections are known. As a simple example, can one locally distinguish between the 'cluster graph' forming a line and a clique? In this paper, we consider the problem of testing the hierarchical cluster structure of $(k, \epsilon)$-clusterable graphs in sublinear time. Our measure of hierarchical clusterability is the well-established Dasgupta cost, and our main result is an algorithm that approximates Dasgupta cost of a $(k, \epsilon)$-clusterable graph in sublinear time, using a small number of randomly chosen seed vertices for which cluster labels are known. Our main result is an $O(\sqrt{\log k})$ approximation to Dasgupta cost of $G$ in $\approx n^{1/2+O(\epsilon)}$ time using $\approx n^{1/3}$ seeds, effectively giving a sublinear time simulation of the algorithm of Charikar and Chatziafratis [SODA'17] on clusterable graphs. To the best of our knowledge, ours is the first result on approximating the hierarchical clustering properties of such graphs in sublinear time.

Introduction

Graph clustering is a fundamental tool in data science, typically used to partition networks into distinct communities. However, flat partitions often fail to capture the multi-scale nature of real-world data. Hierarchical clustering addresses this by providing a tree of partitions, illustrating how small communities merge into larger ones. The standard objective for this task is the Dasgupta cost.

While significant progress has been made in flat clustering using sublinear-time algorithms—which process only a tiny fraction of the graph—hierarchical clustering has remained computationally expensive. Previous sublinear methods could identify which cluster a node belonged to but were unable to resolve the "macro-structure" of the clusters. For example, they could not distinguish whether clusters were arranged in a simple line or a dense clique. This paper introduces the first sublinear-time algorithm to approximate the hierarchical structure of well-clusterable graphs.

Distinguishing between line and clique configurations of clusters is a key challenge in understanding hierarchical macro-structure.

Methodology

The authors operate in a random sample model, where the algorithm is provided with a small set of "seed" vertices sampled proportional to their degree, along with their correct cluster labels. The approach relies on three primary technical pillars:

  1. Cost Decomposition: The total Dasgupta cost is decomposed into two parts: the internal cost of individual clusters and the cost of the "contracted graph," where each cluster is treated as a single supernode.
  2. Spectral Simulation: To analyze the contracted graph without explicit construction, the authors develop a weighted dot product oracle. This tool uses short random walks to estimate the spectral embeddings of vertices.
  3. Sublinear Simulation: The algorithm simulates the high-quality hierarchical clustering approach of Charikar and Chatziafratis (2017) using these sublinear-time spectral tools and Semidefinite Programming (SDP) rounding to handle noisy estimates.
Algorithm 1: ESTIMATEDCOST(G) for sublinear hierarchical cost estimation.

Key Results and Theoretical Bounds

The algorithm achieves an $O(\sqrt{\log k})$ approximation of the optimal Dasgupta cost, matching the performance of the best known polynomial-time algorithms while operating in sublinear time.

  • Time Complexity: The algorithm runs in approximately $\tilde{O}(n^{1/2 + O(\epsilon)})$ time. For graphs with low inter-cluster conductance (small $\epsilon$), this represents a massive speedup over traditional $O(n+m)$ methods.
  • Seed Complexity: The authors prove a tight bound for seed requirements: estimating the cost of a single irregular expander requires $\approx n^{1/3}$ seeds. For $k$ clusters, the algorithm utilizes $\approx n^{O(\epsilon)}$ seeds.
  • Structural Identification: The paper demonstrates that while flat clustering can sometimes be performed blindly, hierarchical structure essentially requires labeled seeds to resolve the ambiguity of inter-cluster connections in sublinear time.

Conclusion

This work establishes a theoretical framework for learning the global hierarchical relationships between clusters without processing the entire graph. While currently optimized for bounded-degree graphs with clear clusterability, it paves the way for future applications in massive real-world networks. Future research will focus on extending these results to graphs with high degree variance and improving the dependence on the clusterability parameter $\epsilon$.

Summary updated

BibTeX
@inproceedings{kapralov2025learning,
  author = {Michael Kapralov and Akash Kumar and Silvio Lattanzi and Aida Mousavifar},
  title = {{Learning Hierarchical Structure of Clusterable Graphs}},
  booktitle = {ICALP},
  year = {2025},
  doi = {10.4230/lipics.icalp.2025.103},
}
Figure