Understanding GPU-Based Lossy Compression for Extreme-Scale Cosmological Simulations

Sian Jin, Pascal Grosset, Christopher M. Biwer, Jesus Pulido, Jiannan Tian, Dingwen Tao, James P. AhrensIPDPS 2020

TL;DR

This paper tackles the massive data generated by extreme-scale cosmological simulations by evaluating GPU-accelerated lossy compression techniques. They introduce a framework for comprehensive analysis, demonstrating that GPU compression offers significant speedups and high compression ratios (5-15x) while preserving crucial scientific insights, providing a practical solution for managing simulation data.

What Problem Does This Paper Address?

Modern cosmological simulations, run on leadership supercomputers, generate petabytes of data. This deluge of information creates significant bottlenecks in data movement and storage, impacting the efficiency and cost of scientific research. While lossy compression techniques can drastically reduce data size, a key challenge is ensuring that the compression process doesn't corrupt critical scientific information needed for post-analysis. Specifically, it's unclear how lossy compression affects derived cosmological quantities like dark matter halos and power spectra, which are vital for understanding the universe. Furthermore, the shift towards heterogeneous supercomputing architectures with GPUs necessitates evaluating compression methods that can leverage this parallelism for improved performance.

Methods

The authors developed and utilized a framework called Foresight to address these challenges. Foresight integrates:

  • CBench: A compression benchmarking tool that allows testing various lossy compressors and configurations.
  • PAT (Python Analysis Toolkit): A workflow management system for automating parameter sweeps and analysis on distributed computing networks.
  • Visualization tools: For presenting results, including Cinema Explorer.

They implemented and evaluated two leading GPU-based lossy compressors: GPU-SZ (prediction-based, error-bounded) and cuZFP (block-based, fixed-rate). The evaluation involved:

  • Rate-Distortion Analysis: Measuring compression ratio against data distortion (using PSNR) to understand the trade-offs.
  • Cosmology-Specific Metrics: Analyzing the impact of compression on derived quantities like dark matter halos (using Friends-of-Friends algorithm) and power spectra (analyzing the ratio of reconstructed to original power spectra).
  • Throughput Evaluation: Measuring compression and decompression speeds on both CPU and GPU, and analyzing the breakdown of time spent in different operations (kernel execution, data transfer).
  • Optimization Guideline Development: Providing a systematic approach for scientists to select the best compression configuration.

Datasets

The paper evaluates their approach on two real-world, extreme-scale cosmological simulation datasets:

  • HACC: Contains 1D arrays representing particle data (position, velocity) for over a billion particles, totaling 38 GB.
  • Nyx: Contains 3D grid data (baryon density, dark matter density, temperature, velocity components) for a 512x512x512 grid, totaling 6.6 GB.

These datasets are representative of the data formats generated by large-scale cosmological simulations.

Key Insights and Ideas

  • GPU Compression is Viable and Beneficial: GPU-based lossy compression offers substantial throughput improvements over CPU-based methods, making it a practical solution for managing the data deluge from extreme-scale simulations.
  • Domain-Specific Metrics are Crucial: General distortion metrics like PSNR are insufficient. Analyzing cosmology-specific quantities (dark matter halos, power spectra) is essential to ensure that compression doesn't compromise scientific insights. For instance, a seemingly good PSNR might still distort critical halo structures.
  • Compression Mode Matters: For HACC velocity data, the point-wise relative error mode (PW_REL) (achieved through logarithmic transformation with GPU-SZ's ABS mode) yielded better results for halo finder analysis than the absolute error bound (ABS) alone.
  • Trade-offs Exist, but Manageable: While higher compression ratios generally lead to lower distortion, there's a sweet spot. The goal is to find a configuration that achieves acceptable scientific accuracy while maximizing compression and throughput.
  • Data Transfer is a Bottleneck: For GPU compression, the time spent transferring data between CPU and GPU can be significant. Leveraging faster interconnects (like NVLink) and asynchronous communication can further enhance performance.

Key Results

  • Compression Ratios: Achieved compression ratios of 5-15x on the tested datasets.
  • Throughput: GPU-based compression and decompression showed significantly higher throughput compared to CPU-based methods. For example, cuZFP on a Tesla V100 GPU achieved much higher throughput than on a multi-core CPU, with GPU-based methods introducing negligible overhead (less than 0.3% of multi-core compression overhead).
  • Scientific Accuracy:
    • For Nyx, GPU-SZ provided better rate-distortion performance than cuZFP.
  • For HACC, GPU-SZ with specific error bounds (0.005 and 0.025 for position/velocity) achieved a compression ratio of 4.25x while preserving halo information well. cuZFP required a higher bitrate (8+) for comparable halo finder accuracy, resulting in a 4x compression.
  • Power spectrum analysis showed that specific configurations of both GPU-SZ and cuZFP could maintain the power spectrum ratio within ±1% for most fields.
  • Optimization Guideline: The paper provides a systematic approach: use Foresight to benchmark, identify configurations meeting scientific metric thresholds, and then select the one with the highest compression ratio for optimal throughput and storage.

Limitations and Future Work

  • GPU-SZ Memory Layout: The current GPU-SZ implementation's memory layout is noted as not being fully optimized for overall throughput, with expectations of significant improvement after optimization.
  • cuZFP Mode Limitation: cuZFP currently only supports fixed-rate mode, whereas GPU-SZ supports error-bounded modes.
  • Future Work: The authors plan to investigate more GPU-based lossy compressors as they become available and apply their framework to more real-world extreme-scale scientific simulations. They also aim to further evaluate their work on advanced supercomputers like Summit.

Summary updated

BibTeX
@inproceedings{jin2020understanding,
  author = {Sian Jin and Pascal Grosset and Christopher M. Biwer and Jesus Pulido and Jiannan Tian and Dingwen Tao and James P. Ahrens},
  title = {{Understanding GPU-Based Lossy Compression for Extreme-Scale Cosmological Simulations}},
  booktitle = {IPDPS},
  year = {2020},
  doi = {10.1109/ipdps47924.2020.00021},
}
Figure