Optimizing Error-Bounded Lossy Compression for Scientific Data on GPUs

Jiannan Tian, Sheng Di, Xiaodong Yu, Cody Rivera, Kai Zhao, Sian Jin, Yunhe Feng, Xin Liang, Dingwen Tao, Franck Cappello

Overview

Modern scientific simulations, ranging from cosmology to climate modeling, generate petabytes of data that far exceed the I/O bandwidth of contemporary parallel file systems. To manage this deluge, error-bounded lossy compression is essential. However, existing GPU-accelerated compressors often face a trade-off between high compression ratios and high throughput. CUSZ+ addresses this by reimagining decompression as a multidimensional partial-sum problem and introducing an adaptive encoding workflow, achieving up to 18.4× faster decompression and 5.3× higher compression ratios than previous state-of-the-art solutions.

The Challenge: Performance vs. Ratio

Existing GPU compressors like the original CUSZ and cuZFP struggle with specific bottlenecks. CUSZ provides high compression ratios but is limited by sequential dependencies in Huffman coding and Lorenzo reconstruction. Conversely, cuZFP offers high speed but often fails to achieve the compression ratios required by scientists. As next-generation instruments like the LCLS-II laser reach data acquisition rates of 250 GB/s, the need for a compressor that is both extremely fast and highly efficient has become critical.

Methodology: The CUSZ+ Framework

CUSZ+ optimizes the compression pipeline through three primary innovations:

  1. Adaptive Workflow (RLE vs. VLE): Traditional compressors rely heavily on Variable-Length Encoding (VLE), such as Huffman coding. CUSZ+ recognizes that for "smooth" or sparse data, Run-Length Encoding (RLE) is significantly more efficient. The framework uses a mathematical tool called a madogram to estimate data smoothness on the fly, allowing it to adaptively select the optimal encoding path.
  2. Lorenzo Reconstruction as Multidimensional Partial-Sum: The core theoretical contribution of this work is proving that first-order Lorenzo reconstruction—traditionally a sequential, recursive process—is mathematically equivalent to a multidimensional partial-sum (prefix sum) computation. This allows the replacement of slow, thread-dependent loops with highly parallel "Scan" primitives.
  3. Fine-Grained GPU Optimization: The kernels were redesigned using NVIDIA’s cub library and warp-level primitives (e.g., __shfl_up_sync). Additionally, "granularity coarsening" was implemented to balance the load between memory access and computation by having a single thread process multiple data points.
Workflow comparison between cuSZ and cuSZ+, highlighting the adaptive encoding path and parallelized reconstruction.

Key Insights: Smoothness as a Driver for Efficiency

A major takeaway from the CUSZ+ research is that data sparsity and smoothness are the most critical factors for throughput. By measuring these metrics quickly using the madogram, the system can optimize the compression path before intensive processing begins.

The relationship between data smoothness, compression ratio (comparing RLE and RLE+VLE), and encoding probability.

Furthermore, the results indicate that CUSZ+ benefits more from the increased memory bandwidth of modern architectures (like NVIDIA Ampere A100) than from raw computing power (FLOPS). This suggests that the "memory wall" remains the primary bottleneck for data reduction tasks.

Performance Evaluation

The framework was evaluated using seven real-world HPC datasets, including HACC (cosmology), CESM-ATM (climate), and Hurricane ISABEL (weather).

  • Throughput: CUSZ+ achieved a peak decompression throughput of 508 GB/s on an A100 GPU, representing an improvement of up to 18.4× over the original CUSZ.
  • Compression Ratio: By integrating RLE and improving the handling of repeated patterns, CUSZ+ increased compression ratios by up to 5.3× on specific datasets like Hurricane and Nyx.
  • Hardware Scaling: The framework demonstrated significant speedups on A100 GPUs compared to the older V100, particularly in sparsity-related operations.

Conclusion and Future Directions

While CUSZ+ significantly advances GPU-based lossy compression, challenges remain. Huffman decoding still acts as a serial bottleneck that limits overall scaling. Future work may involve incorporating more complex predictors, such as linear-regression-based models, and exploring the end-to-end integration of these optimized kernels into full production parallel I/O systems.

Summary updated

BibTeX
@inproceedings{tian2021optimizing,
  author = {Jiannan Tian and Sheng Di and Xiaodong Yu and Cody Rivera and Kai Zhao and Sian Jin and Yunhe Feng and Xin Liang and Dingwen Tao and Franck Cappello},
  title = {{Optimizing Error-Bounded Lossy Compression for Scientific Data on GPUs}},
  booktitle = {CLUSTER},
  year = {2021},
  doi = {10.1109/cluster48925.2021.00047},
}
Figure