Introduction
Particle tracing is a critical technique for visualizing and analyzing large-scale vector fields in scientific domains such as fluid dynamics, oceanography, and meteorology. As datasets grow to petascale and beyond, tracing must be parallelized across distributed-memory supercomputers. However, parallel particle tracing faces two primary bottlenecks: severe workload imbalance due to particles clustering in complex flow regions (e.g., vortices) and massive communication overhead as particles move across data block boundaries. This paper introduces a reinforcement learning (RL) approach to dynamically balance these workloads while minimizing communication costs.
Methodology
The proposed system replaces traditional reactive "work stealing" with a proactive RL-based "work donation" algorithm. The workflow consists of several stages: particle tracing, cost estimation, work donation, and data migration.
RL-Based Work Donation
Instead of idle processes requesting work, overloaded processes proactively donate data blocks to underloaded neighbors. Each process hosts an RL agent that employs a policy-gradient method to decide which blocks to donate. The agent's reward function is designed to penalize both high local execution times and high data transfer costs, ensuring a balance between computation and communication.
High-Order Workload and Communication Models
To inform the RL agent, the system utilizes two predictive models:
- High-Order Workload Estimation: A "trajectories tree" acts as a high-order Markov chain, predicting future computation time based on the sequence of blocks a particle has previously visited. This reduces estimation errors significantly compared to simple averaging.
- Communication Cost Model: A linear transmission model estimates network latency for moving blocks and particles, allowing the agent to simulate rewards without performing actual, slow network transfers during policy training.
Experimental Evaluation
The method was evaluated on four diverse scientific datasets: Nek5000 (thermal-hydraulics), Ocean (global eddy simulation), Isabel (hurricane atmospheric flow), and Turbulence (isotropic fluid flow). Testing was conducted on the Bebop HPC cluster and the Theta supercomputer, scaling up to 16,384 processors.
Key Results
- Significant Speedups: The RL method achieved speedups of up to 36.93x on the Isabel dataset compared to state-of-the-art lifeline-based work stealing.
- Communication Efficiency: On the Isabel dataset, I/O and communication time were reduced by approximately 99%, dropping from 5,601 seconds to just 51 seconds.
- Scalability: The system maintained a strong-scaling efficiency of 91.41% for 134.2 million particles across 16,384 processes on the Turbulence dataset.
- Low Overhead: The computational cost of running RL agents and estimation models remained low, typically between 1% and 8% of total execution time.
Conclusion
By combining proactive work donation with high-order predictive models, this RL-based approach effectively addresses the dual challenges of workload imbalance and communication overhead in parallel particle tracing. Future work will explore hybrid approaches combining donation and stealing, as well as the use of deep neural networks for RL latent functions.
Summary updated