TL;DR
Pre-quantization enables ultra-high-throughput parallel lossy compression for scientific data but introduces severe visual "banding" artifacts at medium-to-large error bounds. This paper introduces a novel, post-decompression interpolation algorithm that exploits the deterministic structure of quantization errors to smooth out these artifacts. It improves data quality metrics by up to 108% without altering the compression pipeline or sacrificing high throughput.
What Problem Does This Paper Address?
Modern high-performance computing (HPC) simulations generate massive streams of scientific data. To prevent storage and I/O bottlenecks, researchers rely on error-bounded lossy compression. To maximize throughput on modern GPUs, state-of-the-art compressors (like cuSZ and cuSZp) use a technique called pre-quantization. By mapping floating-point data to integer bins up front, they eliminate the sequential dependencies that typically slow down compression pipelines.
However, this speed comes at a cost. When users specify medium or large error bounds to achieve higher compression ratios, pre-quantization introduces severe visual artifacts known as posterization or banding. Traditional image de-blocking filters (like Gaussian or Wiener filters) are ill-suited for scientific data because they frequently violate strict numerical error bounds. Meanwhile, deep learning restoration models are too computationally expensive for fast HPC workflows.
This paper tackles the challenge of mitigating these visual artifacts purely as a post-decompression step, ensuring high data fidelity while preserving the compressor's blazing-fast speed.
Methods
The authors propose a Quantization-aware Interpolation framework that operates entirely on decompressed data.
The algorithm relies on a multi-step pipeline to estimate and subtract out the structured compression errors:
- Identify Quantization Boundaries ($B_1$): The algorithm locates points where the quantization index changes between neighbors. It determines the error sign based on the local gradient of the quantization index.
- First-Round Euclidean Distance Transform (EDT): It calculates every data point's distance to the nearest quantization boundary ($B_1$).
- Locate Sign-Flipping Boundaries ($B_2$): By propagating error signs across the domain, the algorithm identifies where the error crosses zero.
- Second-Round EDT: It calculates the distance of each point to these zero-crossing boundaries ($B_2$).
- Inverse Distance Weighting (IDW) Interpolation: Using the distances to both $B_1$ (where error magnitude peaks near the error bound $\epsilon$) and $B_2$ (where error is approximately 0), a two-point IDW interpolation estimates the error for every non-boundary point and applies a correction.
To scale this method for HPC workloads, the authors implemented shared-memory parallelization via OpenMP and distributed-memory parallelization via MPI. They introduced an Approximate Parallelization strategy for MPI that uses lightweight halo exchanges to eliminate artificial boundary discontinuities without incurring the massive communication overhead of a globally sequential EDT.
Datasets
The algorithm was evaluated across five real-world scientific datasets spanning diverse domains:
No new benchmarks were introduced; these represent standard, widely accepted datasets in the scientific visualization and compression communities.
Key Insights and Ideas
- Quantization Error is Not Random Noise: Because pre-quantization is entirely deterministic, the resulting error field possesses a highly predictable spatial structure that correlates strongly with the data's underlying smoothness.
- Gradient-Sign Correlation: The sign of the compression error matches the sign of the forward-difference gradient of the quantization index. This allows the algorithm to accurately map out positive and negative error zones.
- Peak Error at Boundaries: Quantization errors naturally peak at the boundaries between index zones (approaching the user-specified error bound $\epsilon$) and smoothly decay to zero at the midpoint between boundaries.
Key Results
- Perceptual Quality Boost: The proposed method achieved up to a 108.33% improvement in the Structural Similarity Index Measure (SSIM) on the S3D combustion dataset when compressed at an error bound of $0.01$.
- Compression Ratio Gains: By restoring data quality post-decompression, users can safely use larger error bounds during compression. This translates to an effective 1.17× and 1.34× gain in compression ratios for cuSZ and cuSZp, respectively, while maintaining the same target SSIM.
- Strict Error Bound Compliance: Unlike standard smoothing filters (Gaussian, Uniform) which frequently violate relaxed error bounds, the proposed method strictly respects the mathematical error constraints required by scientific applications.
- Scalable Parallel Performance: The MPI Approximate Parallelization strategy successfully eliminated visual striping artifacts at processor boundaries while maintaining over 83% parallel efficiency when scaling up to 512 cores.
Limitations and Future Work
While highly effective for smooth fields, the algorithm's performance degrades in regions with completely homogeneous quantization indices (where boundaries cannot be detected) or under extremely large error bounds where the underlying data silhouette is lost.
Additionally, the current implementation is CPU-based (OpenMP/MPI). Given that pre-quantization compressors are primarily designed to maximize GPU performance, porting and optimizing this interpolation framework directly onto GPUs remains a critical avenue for future work.
Summary updated