Dynamic Quality Metric Oriented Error-bounded Lossy Compression for Scientific Datasets

Jinyang Liu, Sheng Di, Kai Zhao, Xin Liang, Zizhong Chen, Franck CappelloarXiv 2023

TL;DR

QoZ is a new lossy compression framework for scientific data that moves beyond simple error bounds to dynamically optimize for user-specified quality metrics like PSNR, SSIM, or error autocorrelation. By employing a highly-parameterized, multi-level interpolation predictor and an online auto-tuning mechanism, it achieves up to a 270% improvement in compression ratios over state-of-the-art methods while maintaining the same level of data fidelity.

What Problem Does This Paper Address?

High-performance computing (HPC) simulations in fields like climate science and fusion research generate petabytes of data, creating a massive bottleneck for storage and transfer. While lossless compression is too inefficient (often achieving less than 2:1 reduction), "error-bounded" lossy compression has become the standard solution.

However, existing lossy compressors like SZ and ZFP are relatively inflexible. They typically focus on a single "absolute error bound"—ensuring no single data point deviates by more than a fixed threshold. The problem is that different scientists care about different things: a visualization expert might prioritize the Structural Similarity Index (SSIM), while a statistician might care more about the autocorrelation (AC) of the errors to ensure they behave like random white noise. Current tools cannot adapt their internal compression pipelines to optimize for these diverse metrics on the fly.

Methods

The authors introduce QoZ, which extends the SZ compression framework with several novel components:

  • Level-Adapted Interpolation: Unlike previous methods that use a fixed prediction strategy, QoZ uses a multi-level hierarchy. It can choose between different interpolation types (linear vs. cubic spline) and different dimension traversal orders for each level of the data.
  • Grid-wise Anchor Points: To prevent the "drift" and artifacts often seen in long-range interpolation (see Figure 4), QoZ saves a sparse grid of points losslessly. These act as "anchors" that keep the rest of the interpolated values grounded.
  • Dynamic Parameter Auto-tuning: The framework introduces two critical parameters, $\alpha$ and $\beta$, to control level-wise error bounds. Because lower levels of the interpolation hierarchy depend on the reconstructed values of higher levels, QoZ intelligently sets tighter bounds for those "parent" levels to improve overall accuracy.
  • Online Optimization: To avoid the "trial-and-error" overhead of running full compressions to find the best settings, QoZ uses a uniform block-based sampling method. It performs lightweight trial runs on a fraction of the data (0.5%–1%) to select the optimal predictor and parameters for the user's chosen quality metric.
Fig. 2. Design Architecture of QoZ (Quality Oriented Compression)

Datasets

The authors evaluated QoZ against six diverse, real-world scientific datasets:

  1. RTM: Seismic wave imaging.
  2. Miranda: Turbulence simulation.
  3. CESM-ATM: Climate simulation (atmosphere).
  4. Scale-LETKF: Weather forecasting.
  5. NYX: Cosmological hydrodynamics.
  6. Hurricane: Simulation of Hurricane Isabel.

Key Insights and Ideas

  • The "Parent" Priority: A major insight is that not all data points are created equal in an interpolation hierarchy. By spending a bit more "bit-budget" to compress higher-level points more accurately, the compressor significantly improves the prediction accuracy for the vast majority of points at lower levels.
  • Metric-Specific Tuning: The paper demonstrates that PSNR and SSIM are distinct metrics that cannot be substituted for one another. A setting that yields the best PSNR might produce visible artifacts that ruin the SSIM. QoZ's ability to pivot its internal logic based on the target metric is its "killer feature."
  • Fixing Spline Artifacts: While spline interpolation (introduced in SZ3) is powerful, it can create wavy artifacts in smooth data. The introduction of anchor points effectively "breaks" these long-range errors, leading to much cleaner reconstructed data.
Fig. 4. Visualization of original data and compression error (Hurricane Cloud)

Key Results

QoZ was compared against SZ2.1, SZ3, ZFP, and MGARD+. The results show a dominant lead in almost every category:

  • Compression Ratio (CR): Under the same absolute error bound, QoZ improved CR by up to 70% over the second-best compressor (SZ3) on the Miranda dataset.
  • Visual Quality: When optimizing for SSIM, QoZ achieved up to a 270% higher compression ratio than SZ3 for the same SSIM value.
  • Statistical Noise: For users concerned with error autocorrelation, QoZ improved CR by up to 427% compared to standard SZ3 settings.
  • Throughput: Despite the added complexity of auto-tuning, QoZ maintains competitive speeds (roughly 120-130 MB/s for compression), making it practical for large-scale HPC environments.

Limitations and Future Work

While QoZ is highly effective, the authors note a few areas for improvement:

  • Speed: It is currently slower than older, simpler compressors like SZ2.1 and ZFP because of the multi-level interpolation and sampling overhead.
  • Predictor Variety: The current version only supports linear and cubic spline interpolations. Adding more diverse predictors (e.g., neural network-based) could further boost performance.
  • Heuristic Selection: The policy for selecting hyper-parameters currently relies on empirical studies; the authors aim to develop more robust, theoretically-grounded selection policies in the future.

Summary updated

BibTeX
@misc{liu2023dynamic,
  author = {Jinyang Liu and Sheng Di and Kai Zhao and Xin Liang and Zizhong Chen and Franck Cappello},
  title = {{Dynamic Quality Metric Oriented Error-bounded Lossy Compression for Scientific Datasets}},
  year = {2023},
  eprint = {2310.14133},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.14133},
}
Figure