TL;DR
High-performance scientific simulations generate massive datasets that overwhelm storage and I/O systems, requiring the use of lossy compression. However, the two leading compressors—SZ and ZFP—perform inconsistently across different data fields. This paper introduces a lightweight, online selection algorithm that accurately predicts rate-distortion performance on the fly, automatically choosing the optimal compressor for each data field to boost compression ratios by up to 70% with negligible overhead.
What Problem Does This Paper Address?
Modern High-Performance Computing (HPC) applications, such as climate modeling or cosmology simulations, generate terabytes to petabytes of data in a single run. Because supercomputer storage capacity and I/O bandwidth cannot keep pace with this data explosion, scientists rely on error-controlled lossy compression to shrink file sizes while preserving scientific validity.
The two state-of-the-art lossy compressors for scientific data are SZ (which relies on point-wise prediction) and ZFP (which relies on block-based transform coding). The catch? Neither compressor wins across the board. For instance, in climate simulation data, SZ yields a better compression ratio on roughly 73% of the data fields, while ZFP wins on the remaining 27%.
Choosing the wrong compressor wastes massive amounts of storage space. However, running both compressors completely to see which one performs better is too computationally expensive for in situ operations (compressing data directly in memory while the simulation is running). This paper addresses the challenge of building a lightweight, online mechanism to accurately predict and select the best-fit compressor on the fly.
Methods
The authors break down the lossy compression pipeline into three distinct stages to model performance mathematically:
- Stage I (Lossless Transformation): Compacting data energy via prediction (SZ) or block orthogonal transform (ZFP).
- Stage II (Lossy Reduction): Quantizing the transformed values into integer bins.
- Stage III (Lossless Entropy Coding): Encoding the integers into a compact bitstream.
The core innovation is an online, low-overhead selection algorithm that uses a small sample (default 5%) of the data blocks.
- Predicting SZ Performance: The authors utilize Shannon entropy theory to estimate the bit-rate based on the probability density function (PDF) of the sampled prediction errors.
- Predicting ZFP Performance: The algorithm analyzes the "staircase shape" of significant bits in the transformed coefficients to interpolate the required bit-rate.
Crucially, the authors mathematically prove norm invariance—meaning that the overall data distortion ($L_2$-norm error, or Peak Signal-to-Noise Ratio [PSNR]) can be accurately predicted in the transformed domain before full compression takes place. The workflow operates seamlessly in an in situ environment:
Datasets
The selection model was evaluated using three real-world HPC simulation datasets representing nearly 100 distinct data fields:
- NYX: A 3D cosmology simulation dataset (147 GB, 6 fields like baryon density and temperature).
- ATM: A 2D climate simulation dataset from the Community Earth Simulation Model (1.5 TB, 79 fields).
- Hurricane: A 3D weather simulation dataset of Hurricane Isabela (62.4 GB, 13 fields).
Key Insights and Ideas
- Optimizing for Rate-Distortion vs. Fixed Error Bounds: Previous attempts at compressor selection evaluated performance under a fixed maximum error bound. However, ZFP often "over-preserves" data, resulting in a higher quality (PSNR) than requested but a lower compression ratio. By switching the selection metric to rate-distortion (maximizing PSNR for a given bit-rate), the authors created a much fairer and more effective comparison.
- Symmetry in Error Distributions: The authors observed that prediction errors in scientific data consistently exhibit a highly symmetric, zero-centered distribution. This predictability allows a 5% sample to accurately represent the entire dataset's PDF.
Key Results
- High Selection Accuracy: The online algorithm achieved a selection accuracy of 98.7% on the Hurricane dataset and 88.3% on the ATM dataset. Even when it chose the "wrong" compressor, the performance difference between SZ and ZFP was so small that the resulting compression ratio degradation was negligible (<3.3%).
- Significant Compression Gains: By always picking the best-fit tool, the proposed solution improved compression ratios by 12% to 70% compared to standalone SZ or ZFP at the same distortion level.
- Minimal Overhead: The time overhead required for sampling and estimation was kept under 7% (typically between 3% and 5%), and memory overhead was restricted to ~1%.
- Scalability: Tested in a parallel environment across 1,024 cores, the higher compression ratios translated directly to reduced I/O bottlenecks, improving overall data loading and storing throughput by 79% and 68%, respectively.
Limitations and Future Work
A minor limitation involves the SZ bit-rate estimation. Because it relies on theoretical Shannon entropy, it can occasionally under-predict the actual bit-rate when real-world entropy encoders (like Huffman coding) fail to reach the theoretical optimum. The authors patched this by introducing a fixed 0.5 bits/value offset.
For future work, the authors plan to adaptively optimize this offset based on data features and extend their predictive framework to support additional lossy compression techniques and advanced quantization methods.
Summary updated