TL;DR
Error-bounded lossy compression is essential for handling massive scientific datasets, but it frequently distorts critical topological features like local extrema and Morse-Smale segmentations. This paper introduces pMSz, a distributed parallel algorithm that scales topology correction to multiple GPUs by replacing expensive global path tracing with localized ordering constraints. By decoupling global dependencies and relaxing synchronization, pMSz achieves over 90% parallel efficiency on 128 GPUs, allowing scientists to compress data aggressively without sacrificing topological validity.
What Problem Does This Paper Address?
Modern extreme-scale scientific simulations (like cosmology or combustion modeling) generate petabytes of data, making error-bounded lossy compression (e.g., SZ3, ZFP) mandatory for storage and transfer. While these compressors guarantee that numerical errors stay within a strict user-defined bound, they often inadvertently alter the data's underlying topology.
Specifically, compression can warp Piecewise Linear Morse-Smale Segmentations (PLMSS)—structures that partition data into monotone regions based on trajectories toward local minima and maxima. When these segmentations are distorted, downstream scientific analyses fail; for instance, flame boundaries in combustion simulations get misidentified, or grain orientations in crystalline materials are misinterpreted.
A single-GPU algorithm called MSz was previously developed to fix these distortions post-decompression. However, MSz cannot scale to distributed-memory supercomputers. Its core bottleneck is its reliance on tracing global "integral paths" (gradient trajectories) across the entire dataset. When data is split across multiple GPUs, these paths constantly cross block boundaries, triggering massive inter-process communication overhead that tanks parallel efficiency.
Methods
The authors overcome the scalability bottleneck of MSz through two main innovations: algorithmic simplification and a relaxed parallel synchronization strategy.
- Local Ordering Substitution: Instead of explicitly tracing global integral paths to verify segmentations, pMSz enforces a relaxed sufficient condition. The algorithm ensures that (a) all true local extrema are preserved, and (b) the local ordering of every data point relative to its immediate neighbors is maintained. If a point's steepest ascending and descending directions match the original data, it will naturally follow the correct gradient path without needing global verification.
- Domain Decomposition with Ghost Layers: The dataset is partitioned into blocks, each assigned to a GPU and surrounded by a single-layer "ghost region" to share boundary data.
- Relaxed Synchronization: Rather than forcing all GPUs to synchronize after every single internal iteration (which causes massive waiting times), pMSz allows each block to iterate independently until it reaches local convergence. Only then do neighboring blocks exchange ghost layers. Boundary conflicts are resolved deterministically by choosing the minimum candidate value, ensuring monotonic, non-increasing updates that mathematically guarantee global convergence.
Datasets
The algorithm was evaluated using both synthetic and real-world scientific datasets:
- Synthetic Perlin Noise: Used for weak and strong scaling studies, with global problem sizes scaling up to $2048 \times 2048 \times 4096$.
- NYX & NYX (dark density): Cosmology datasets tracking dark matter density (1GB and 8GB).
- Turbulent Jet: A combustion simulation dataset (317MB).
- CSEM: Controlled-Source Electromagnetic geophysics dataset (50MB).
- Vortex: Fluid dynamics simulation tracking vortex structures (16MB).
- AT (Adenine Thymine): Molecular dynamics dataset (6.2MB).
Key Insights and Ideas
- Global Problems Can Have Local Sufficiency: The most profound insight is that preserving global gradient lines doesn't actually require global tracking. Ensuring that local neighborhood gradients point the right way is entirely sufficient to keep the macro-level Morse-Smale boundaries intact.
- Embrace Asynchrony/Relaxation for Scaling: In distributed high-performance computing, communication is often far more expensive than computation. By letting nodes run ahead and achieve local convergence before communicating, pMSz reduces the required number of global synchronizations by more than 30×.
Key Results
- Massive Speedups: On a single GPU, by eliminating global path tracing, pMSz achieves up to a 14× speedup over the original MSz algorithm.
- High Parallel Efficiency: Under weak scaling on 128 GPUs on the Perlmutter supercomputer, pMSz maintains over 90% parallel efficiency. In comparison, a naive parallelization of the original MSz algorithm drops below 20% efficiency at just 16 GPUs due to communication overhead.
- Enhanced Compression Ratios: pMSz allows scientists to achieve up to 88× compression ratios while maintaining 100% topological fidelity. Without pMSz, base compressors like SZ3 or ZFP can only preserve these features if run in lossless or near-lossless modes, which severely limits compression.
Limitations and Future Work
While highly efficient, the authors note a few trade-offs:
- Slightly More Edits: Because pMSz strictly enforces local ordering everywhere, it can introduce slightly more data modifications (edits) than the original MSz, which adds a minor storage overhead for saving those edits. The authors propose an adaptive policy to selectively relax ordering constraints in the future.
- Load Imbalance: Because different spatial blocks contain different levels of topological complexity, some GPUs converge faster than others during the local correction phase, leading to idle time. The authors plan to explore fully asynchronous communication schemes to mitigate this imbalance.
Summary updated