Abstract
As scientific simulations scale toward the exascale, managing the resulting petabytes of data requires a combination of Adaptive Mesh Refinement (AMR) and error-bounded lossy compression. However, the interaction between multi-resolution AMR grids and compression artifacts remains under-explored. This paper investigates how different compression strategies within the SZ framework affect visualization quality, specifically focusing on isosurface generation. Our findings reveal a significant trade-off: advanced visualization techniques designed to mitigate AMR mesh discontinuities can inadvertently amplify visual artifacts introduced by lossy compression, suggesting that simpler re-sampling methods may be preferable in high-compression scenarios.
Introduction
Modern scientific simulations, such as those in cosmology (Nyx) and particle physics (WarpX), generate massive datasets that exceed storage and bandwidth capacities. To address this, researchers employ two primary data reduction strategies: Adaptive Mesh Refinement (AMR), which focuses computational resources on regions of high interest, and lossy compression, which reduces data size by discarding non-essential information within specified error bounds.
While AMR effectively manages spatial resolution, it introduces "cracks" or discontinuities at the boundaries between different refinement levels during visualization. Advanced "dual-cell" visualization methods have been developed to mend these gaps. However, the introduction of lossy compression adds a new layer of complexity. This study evaluates how different compression algorithms interact with these visualization techniques and identifies the resulting impacts on visual and quantitative data integrity.
Methodology
Compression Frameworks
The study utilizes the SZ compression framework, evaluating two distinct approaches:
- SZ-L/R (Lorenzo/Regression): A local, block-based compressor that utilizes Lorenzo and linear regression predictors. It is designed to capture local data patterns efficiently.
- SZ-Interp (Interpolation): A global approach that employs spline interpolation across the dataset, generally performing better on data with smooth gradients.
Visualization Techniques
The research focuses on the generation of isosurfaces (3D contour maps) using two methods:
- Basic Re-sampling: This standard approach interpolates cell-centered data to vertices. While computationally efficient, it is prone to "cracks" at AMR level boundaries.
- Dual-cell Method: This advanced technique connects cell centers to form a continuous grid, effectively eliminating mesh cracks but potentially altering the representation of compressed data.
Evaluation Metrics
To assess quality, the authors used Peak Signal-to-Noise Ratio (PSNR) and Structural Similarity Index (SSIM). Notably, they introduced Reverse SSIM (R-SSIM), defined as $1 - SSIM$. R-SSIM provides a more intuitive scale for high-quality reconstructions, as it highlights the subtle differences that standard SSIM (often yielding values like 0.9999) tends to obscure.
Experimental Setup and Datasets
The study leveraged the AMReX framework to analyze two simulation types:
- WarpX: An electromagnetic simulation characterized by relatively smooth data gradients.
- Nyx: A cosmology simulation featuring complex, irregular structures like baryon density and temperature.
Results and Discussion
The Dual-Cell Paradox
The most striking finding is that the dual-cell method—traditionally the superior choice for AMR visualization—actually amplifies compression artifacts. Because the dual-cell method increases effective resolution through interpolation, it makes the block-wise errors introduced by local compressors like SZ-L/R much more apparent to the human eye. In high-compression scenarios, the resulting isosurfaces appear "bumpy" or "blocky," whereas basic re-sampling maintains a smoother, albeit slightly less resolved, appearance.
Data Characteristics and Compressor Performance
The choice of compressor is highly dependent on the underlying data:
- Smooth Data (WarpX): SZ-Interp outperformed SZ-L/R, as its global spline interpolation aligns well with the smooth gradients of electromagnetic fields, resulting in higher PSNR and lower R-SSIM.
- Irregular Data (Nyx): SZ-L/R proved more robust. Its block-based nature is better suited to capturing the sharp, localized features of cosmological structures, which SZ-Interp tended to smear or distort.
Metric Sensitivity
Quantitative analysis confirmed that R-SSIM is a more sensitive indicator of visual degradation than standard SSIM. The metric showed a strong correlation with the visible "blocky" artifacts in the dual-cell reconstructions, providing a clearer mathematical representation of the perceived loss in quality.
Conclusion
This research demonstrates that the interaction between AMR visualization and lossy compression is non-trivial. While dual-cell methods are essential for fixing mesh discontinuities in raw data, they can be counterproductive when applied to heavily compressed data by magnifying local errors.
Future work should expand this analysis to other visualization types, such as volume rendering and streamlines, and explore the integration of these findings into in-situ workflows. Additionally, testing a broader range of compressors (e.g., ZFP or MGARD) will help establish more generalized guidelines for data reduction in AMR-based scientific computing.
Summary updated