Parallel Batch-Dynamic Minimum Spanning Forest and the Efficiency of Dynamic Agglomerative Graph Clustering

Tom Tseng, Laxman Dhulipala, Julian Shun · DOI

Abstract

Hierarchical Agglomerative Clustering (HAC) is a fundamental technique in data mining, yet maintaining these structures in the presence of rapidly changing graph data remains a significant computational challenge. This paper presents the first parallel batch-dynamic algorithm for maintaining a Minimum Spanning Forest (MSF) with polylogarithmic work and span, effectively enabling efficient "single-linkage" clustering for dynamic datasets. Conversely, the authors establish conditional lower bounds for other popular clustering methods—such as complete and average linkage—demonstrating that achieving similar efficiency for these metrics is likely impossible under long-standing complexity conjectures like the Strong Exponential Time Hypothesis (SETH).

Introduction

In modern data analysis, graphs representing social networks, web links, or biological interactions are rarely static. As these graphs evolve through the addition and deletion of edges, the underlying cluster structures must be updated. Hierarchical Agglomerative Clustering (HAC) organizes data into nested groups (dendrograms), but updating these hierarchies is notoriously difficult; a single edge change can theoretically trigger a total re-calculation of the entire structure.

While "single-linkage" clustering—where clusters are merged based on the closest pair of points—is known to be equivalent to the Minimum Spanning Forest (MSF) problem, existing algorithms lacked the ability to handle batches of updates efficiently in parallel. This paper addresses this gap by providing a high-performance parallel MSF algorithm and investigating whether other linkage functions can ever be made similarly dynamic.

Parallel Batch-Dynamic MSF for Single-Linkage Clustering

The primary algorithmic contribution of this work is a parallelization of the classic sequential algorithm by Holm et al. (HDT) for dynamic MSF. The challenge in parallelizing HDT lies in the deletion of tree edges, which requires searching for a replacement edge to maintain connectivity. In a batch setting, many such deletions may occur simultaneously.

Technical Innovation: Augmented Euler Tour Trees

To overcome the bottleneck of finding replacement edges, the authors augment Euler Tour Trees (ETTs)—a standard data structure for dynamic forests—with relative-error quantile summaries. This innovation allows the algorithm to quickly identify the "lightest" edges incident to a connected component in parallel.

A key insight is that the algorithm does not require the absolute lightest replacement edge immediately to maintain efficiency. By using approximate quantile summaries, the algorithm can find a "light enough" edge to satisfy the amortized work requirements of the MSF while maintaining a polylogarithmic span. This approach results in an algorithm that achieves $O(k \log^6 n)$ expected amortized work and $O(\log^3 n \log k)$ span for a batch of $k$ updates.

The Hardness of Global Linkage Functions

While single-linkage clustering benefits from its relationship to MSF, other linkage functions—such as complete, average, and weighted average linkage—depend on global properties of clusters (e.g., the average distance between all pairs of nodes). The authors use conditional lower bounds to prove that these functions are fundamentally more difficult to update dynamically.

Using reductions from problems like Subgraph Connectivity and the Online Boolean Matrix-Vector Multiplication (OMv) conjecture, the paper demonstrates:

  • Complete and Weighted Average Linkage: These require $\Omega(n^{1-o(1)})$ work per update or query, assuming SETH.
  • Average Linkage: This requires $\Omega(n^{1/2-o(1)})$ work for incremental or decremental updates, assuming SETH.

These results suggest that for most clustering criteria beyond single-linkage, any dynamic algorithm will likely require near-linear time per update, making them significantly less scalable for massive, rapidly changing graphs.

Conclusion and Future Directions

This work establishes a clear dichotomy in the complexity of dynamic graph clustering. Single-linkage clustering can be maintained efficiently in parallel using the authors' new batch-dynamic MSF algorithm, providing a powerful tool for real-time data organization. However, for other linkage metrics, the paper provides rigorous theoretical evidence that efficient dynamic updates are likely unattainable.

Future research may focus on reducing the high polylogarithmic factor ($O(\log^6 n)$) in the MSF algorithm to better match the efficiency of the best sequential implementations. Additionally, exploring whether specific graph classes—such as planar graphs or those with restricted degrees—allow for faster dynamic clustering under average or complete linkage remains an open and promising area of study.

Summary updated

BibTeX
@inproceedings{tseng2022parallel,
  author = {Tom Tseng and Laxman Dhulipala and Julian Shun},
  title = {{Parallel Batch-Dynamic Minimum Spanning Forest and the Efficiency of Dynamic Agglomerative Graph Clustering}},
  booktitle = {SPAA},
  year = {2022},
  doi = {10.1145/3490148.3538584},
}
Figure