Distributed Asynchronous Union-Find for Scalable Feature Tracking

Jiayi Xu, Hanqi Guo, Han-Wei Shen, Mukund Raj, Xueqiao Xu, Xueyun Wang, Zhehui Wang, Tom Peterka

Introduction

In scientific visualization, identifying and tracking features—such as clouds in weather simulations or vortices in fluid flows—requires grouping related data points. The mathematical foundation for this task is the Union-Find (or Disjoint-Set) algorithm. However, as scientific datasets reach terabyte scales, traditional distributed Union-Find implementations face significant bottlenecks on High-Performance Computing (HPC) clusters.

Most existing methods rely on a "bulk-synchronous" model where processors must wait for global synchronization barriers to exchange data. This leads to high synchronization overhead, where fast processors sit idle, and severe workload imbalance, as scientific features are rarely distributed uniformly across a data grid. This paper presents a novel distributed asynchronous Union-Find algorithm designed to eliminate these bottlenecks through point-to-point communication and intelligent load balancing.

Methods: Asynchronous Distributed Union-Find

The core innovation of this work is the removal of global synchronization barriers. By leveraging the fact that set merging is order-independent, the researchers developed a "wait-free" approach where processors communicate updates whenever they are ready.

Overview of the distributed asynchronous Union-Find algorithm, showing the transition from input data to the final compressed output across multiple processes.

To ensure correctness and convergence without a global coordinator, the algorithm employs several key strategies:

  • Uniting by Identifier: To prevent infinite loops or cycles in an asynchronous environment, a strict rule is followed: a set always points to a root with a smaller unique ID. This ensures the system eventually reaches a stable, correct state.
  • Local-Tree Optimization: Each process maintains local sub-trees to resolve as many "find" operations as possible locally, minimizing network traffic.
  • K-D Tree Load Balancing: Rather than simply partitioning the raw data grid, the authors use a k-d tree decomposition to redistribute the actual features (elements) evenly across processes. This ensures that computational effort is balanced even when features are sparse or clustered.

Performance and Results

The algorithm was evaluated using synthetic benchmarks and real-world datasets, including high-speed imaging of exploding wires and fusion plasma simulations. The results demonstrate a dramatic improvement in both execution time and scaling efficiency.

Strong scaling results for critical point tracking and super-level set extraction, comparing the asynchronous method against a bulk-synchronous baseline.

On synthetic benchmarks, the asynchronous method achieved a 12.18x speedup for critical point tracking and a 15.69x speedup for super-level set extraction compared to the bulk-synchronous baseline. While the baseline's efficiency plummeted to roughly 16% when scaled to 1,024 processes, the new asynchronous method maintained over 80% efficiency. In complex real-world scenarios like fusion plasma simulations, the combination of asynchronous communication and feature-centric load balancing resulted in a staggering 141x speedup at high process counts.

Conclusion

By ditching restrictive global synchronizations in favor of an asynchronous, point-to-point communication model, this research provides a highly scalable solution for large-scale scientific feature tracking. The "uniting by ID" rule ensures mathematical correctness, while k-d tree redistribution solves the inherent workload imbalances of scientific data. Future work will focus on extending this framework to 4D (time-varying) data and developing "out-of-core" versions to handle datasets that exceed collective system memory.

Summary updated

BibTeX
@article{xu2020distributed,
  author = {Jiayi Xu and Hanqi Guo and Han-Wei Shen and Mukund Raj and Xueqiao Xu and Xueyun Wang and Zhehui Wang and Tom Peterka},
  title = {{Distributed Asynchronous Union-Find for Scalable Feature Tracking}},
  journal = {IEEE Trans. Vis. Comput. Graph.},
  year = {2020},
}
Figure