It's Hard to HAC with Average Linkage!
MohammadHossein Bateni, Laxman Dhulipala, Kishen N Gowda, D Ellis Hershkowitz, Rajesh Jayaram, Jakub Łącki
TL;DR
This work provides a nuanced complexity landscape for average linkage HAC. It proves strong conditional hardness results, including an $oldsymbol{ ext{Omega}}(n^{3/2-oldsymbol{bepsilon}})$ lower bound under the Combinatorial BMM conjecture and CC-hardness on diameter-4 trees, suggesting limited prospects for near-linear or NC algorithms in general. On structured inputs, it delivers constructive positive results: AL-HAC on paths lies in NC with polylogarithmic depth and near-linear work, and a general upper bound of $oldsymbol{O}(mh ext{log }n)$ shows efficiency when the output dendrogram height $oldsymbol{h}$ is small. The paper thus delineates where efficient parallelization is possible (paths, low-height dendrograms) and where it is likely infeasible (general graphs, even simple trees), providing a rigorous foundation for algorithm design in large-scale HAC applications.
Abstract
Average linkage Hierarchical Agglomerative Clustering (HAC) is an extensively studied and applied method for hierarchical clustering. Recent applications to massive datasets have driven significant interest in near-linear-time and efficient parallel algorithms for average linkage HAC. We provide hardness results that rule out such algorithms. On the sequential side, we establish a runtime lower bound of $n^{3/2-ε}$ on $n$ node graphs for sequential combinatorial algorithms under standard fine-grained complexity assumptions. This essentially matches the best-known running time for average linkage HAC. On the parallel side, we prove that average linkage HAC likely cannot be parallelized even on simple graphs by showing that it is CC-hard on trees of diameter $4$. On the possibility side, we demonstrate that average linkage HAC can be efficiently parallelized (i.e., it is in NC) on paths and can be solved in near-linear time when the height of the output cluster hierarchy is small.
