Asynchronous and Load-Balanced Union-Find for Distributed and Parallel Scientific Data Visualization and Analysis

Jiayi Xu, Hanqi Guo, Han‐Wei Shen, Mukund Raj, Xueyun Wang, X. Q. Xu, ‪Zhehui Wang, Tom Peterka

Introduction

Union-find, or disjoint-set, is a cornerstone algorithm in scientific visualization and analysis. It is frequently employed to identify and track connected components, such as "blobs" in fluid dynamics or critical points (maxima and minima) across temporal sequences in large-scale simulations. However, as scientific datasets scale toward the terabyte regime, traditional distributed union-find implementations encounter significant performance bottlenecks.

The two primary challenges addressed in this work are synchronization overhead and load imbalance. Most existing distributed methods rely on Bulk-Synchronous Parallelism (BSP), where every process must reach a global barrier before merging results. This "stop-and-wait" approach leads to substantial idle time for faster nodes. Furthermore, scientific features are rarely distributed uniformly across a spatial mesh. Standard spatial partitioning often results in some processes being overwhelmed with features while others remain underutilized, creating a computational bottleneck.

Methods

This paper introduces a two-pronged approach to overcome these limitations: asynchronous parallelism and feature-centric load balancing.

Asynchronous Parallelism

The authors prove that because set "unitings" are order-independent, global synchronization is mathematically unnecessary. They propose a pipeline utilizing asynchronous point-to-point communication via MPI. This allows processes to issue merge requests and continue local processing without waiting for a global state update. To maintain consistency and prevent deadlocks or infinite loops in this asynchronous environment, the algorithm implements a strict "unite by identifier (ID)" rule, ensuring that sets always merge toward the element with the smallest unique ID.

Overview of the asynchronous union-find algorithm steps, including data redistribution, set uniting, and path compression.

K-D Tree Load Balancing

To address load imbalance, the algorithm shifts from volume-centric to feature-centric partitioning. Instead of balancing the spatial extent of the mesh, a k-d tree decomposition is used to redistribute the actual features (elements) across processes. This ensures that each CPU core handles a similar number of union-find operations regardless of the features' physical locations. Additionally, the implementation uses local-tree optimizations to minimize inter-process communication; only "local roots" communicate across the network to resolve their global "set roots."

Experimental Evaluation

The algorithm's performance was evaluated using synthetic $1024^3$ resolution volumes, high-speed imaging data from exploding wire experiments (3.2 million points), and ion density fluctuation data from BOUT++ fusion plasma simulations (1.7 million voxels).

Key Results

The proposed asynchronous method demonstrated dramatic performance improvements over traditional distributed union-find baselines. On synthetic benchmarks, the method achieved a 12.18x speedup for critical point tracking and a 15.69x speedup for super-level set extraction.

Strong scaling performance comparison between the baseline and proposed asynchronous methods for critical point tracking and super-level set extraction.

Scalability was also significantly enhanced. At a scale of 1,024 processes, the baseline algorithm's efficiency dropped to approximately 17%, while the new method maintained a strong scaling efficiency of over 80%. In the fusion plasma simulation—a case with extreme load imbalance—the k-d tree redistribution alone improved scaling efficiency from a dismal 0.07% to 11%, marking a substantial practical advancement for domain scientists.

Conclusion

By replacing global synchronization with asynchronous point-to-point communication and adopting a feature-centric load balancing strategy, this work provides a highly scalable solution for distributed union-find. While the current implementation requires unique ID preprocessing and is limited by system memory, future work aims to develop out-of-core versions and extend the methodology to 4D spatial-temporal analysis.

Summary updated

BibTeX
@article{xu2020asynchronous,
  author = {Jiayi Xu and Hanqi Guo and Han‐Wei Shen and Mukund Raj and Xueyun Wang and X. Q. Xu and ‪Zhehui Wang and Tom Peterka},
  title = {{Asynchronous and Load-Balanced Union-Find for Distributed and Parallel Scientific Data Visualization and Analysis}},
  journal = {IEEE Trans. Vis. Comput. Graph.},
  year = {2020},
}
Figure