[Paper Review] Hierarchical Graph Clustering using Node Pair Sampling
This paper proposes a parameter-free, fast, and memory-efficient hierarchical graph clustering algorithm based on node pair sampling to capture multi-scale community structures. By defining a reducible distance between clusters using the ratio of joint to marginal node pair probabilities, the method enables efficient agglomerative clustering via the nearest-neighbor chain algorithm, producing regular dendrograms that reveal hierarchical organization in real and synthetic graphs with superior speed compared to spectral methods.
We present a novel hierarchical graph clustering algorithm inspired by modularity-based clustering techniques. The algorithm is agglomerative and based on a simple distance between clusters induced by the probability of sampling node pairs. We prove that this distance is reducible, which enables the use of the nearest-neighbor chain to speed up the agglomeration. The output of the algorithm is a regular dendrogram, which reveals the multi-scale structure of the graph. The results are illustrated on both synthetic and real datasets.
Motivation & Objective
- To address the limitation of existing graph clustering algorithms that lack full hierarchical structure and require difficult-to-tune resolution parameters.
- To develop a parameter-free, fast, and memory-efficient algorithm that reveals multi-scale community structures in graphs.
- To design a cluster distance measure that is mathematically reducible, enabling efficient hierarchical clustering with regular dendrograms.
- To provide a full hierarchy of clusterings that can be used for multi-resolution analysis, unlike algorithms such as Louvain that produce only a few aggregation steps.
Proposed method
- The algorithm uses node pair sampling to define a distance between nodes as d(i,j) = p(i)p(j)/p(i,j), where p(i,j) is the edge weight normalized by total weight.
- This distance is extended to clusters using a reducible metric, ensuring that hierarchical clustering can be represented as a regular dendrogram.
- The nearest-neighbor chain algorithm is applied to accelerate agglomerative clustering by avoiding full distance computation at each step.
- The method is agglomerative, starting from singleton clusters and iteratively merging the closest pairs based on the defined distance.
- The algorithm is implemented efficiently using sparse matrix operations and avoids the need for spectral embedding or resolution parameter tuning.
- The approach is grounded in modularity principles but modifies the Louvain algorithm by introducing a sliding resolution through dynamic distance computation.
Experimental results
Research questions
- RQ1Can a graph clustering algorithm be designed that is both parameter-free and capable of revealing multi-scale community structures?
- RQ2Is the proposed node pair sampling distance between clusters reducible, enabling efficient hierarchical clustering with regular dendrograms?
- RQ3How does the performance of the proposed Paris algorithm compare to spectral clustering and Louvain in terms of clustering quality and running time?
- RQ4Can the algorithm produce a full hierarchy of clusterings that reflects the intrinsic multi-scale nature of real-world graphs?
Key findings
- The Paris algorithm achieves a normalized Dasgupta cost of 0.0102 on OpenStreet, outperforming spectral clustering (0.0103) and matching or surpassing it on most datasets.
- On the Amazon graph, Paris achieved a normalized cost of 0.0297 in 43 seconds, significantly faster than spectral clustering, which did not complete within the time limit.
- For the DBLP graph, Paris achieved a cost of 0.110 in 31 seconds, compared to 52 seconds for Louvain, demonstrating superior speed while maintaining competitive quality.
- On the large YouTube graph, Paris completed in 16 minutes 30 seconds, outperforming Louvain (8 minutes) in speed and providing a full hierarchy, unlike Louvain which lacks full hierarchical output.
- The algorithm achieved a cost of 0.402 on Wikipedia Schools and 0.131 on Wikipedia Humans, showing strong performance on complex, real-world datasets.
- Paris was consistently faster than spectral clustering across all tested graphs, with running times under 2 minutes for all but the largest graphs, and outperformed Louvain in speed on most datasets while providing richer hierarchical output.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.