Fast linkage algorithm for -medians hierarchical clustering
Abstract
Hierarchical linkage methods are widely used due to their simplicity, interpretability, and ability to produce full clusterings across all values of . The -medians objective is a fundamental measure of cluster compactness, capturing average distances to representative points. Despite its importance, existing hierarchical linkage methods that align with this objective are either computationally expensive or lack scalability. We introduce two simple hierarchical linkage algorithms, r-msi and f-msi, which, to the best of our knowledge, are the first linkage methods aligned with the -medians objective to achieve subcubic time complexity. Our methods can be seen as efficient variations of msi, a linkage method that runs in cubic time. r-msi runs in time while f-msi runs in time and produces inversion-free dendrograms. Notably, f-msi admits an implementation for datasets represented as weighted graphs that runs in time, where and are the number of vertices and edges of the graph, as well as a subquadratic-time implementation in which the merge rule is -approximated. Experiments on several datasets from different domains show that our algorithms present strong empirical performance, achieving clustering quality close to msi while being up to 75 times faster. Moreover, f-msi scales to graph datasets with over edges.
est. 32% chance this paper gets accepted at ICLR 2027.
What do you think this paper will get?
All positions stay anonymous.