GWLZ: A Group-wise Learning-based Lossy Compression Framework for Scientific Data

Wenqi Jia, Sian Jin, Jinzhen Wang, Wei Niu, Dingwen Tao, Miao Yin

Introduction

Modern High-Performance Computing (HPC) simulations generate staggering volumes of data, often reaching the exascale. Managing this data is a significant bottleneck for scientific discovery. Traditional lossless compression algorithms, such as GZIP, are largely ineffective for scientific datasets composed of diverse floating-point numbers, typically yielding only a 1x-3x reduction.

To address this, researchers utilize lossy compression frameworks like SZ or ZFP. These tools can achieve massive compression ratios (up to 400x) by discarding non-essential information within user-defined error bounds. However, scientific data is frequently "spiky" and complex; traditional linear or cubic predictors often struggle to accurately reconstruct these high-frequency features, leading to fidelity loss. While Deep Learning (DL) has been proposed as a solution, most DL models are too large—adding significant storage overhead—or require expensive pre-training that fails to generalize across scientific domains.

This paper introduces GWLZ, a novel "Group-wise Learning-based Lossy Compression" framework that acts as a lightweight neural enhancer to bridge the gap between compression ratio and reconstruction quality.

The GWLZ Framework

GWLZ is designed as a plug-and-play post-processing step that enhances the output of standard lossy compressors. Its architecture is built on three innovative pillars:

1. Residual Learning

Rather than attempting to learn the entire raw dataset, which often features a high dynamic range, GWLZ focuses on the residual map. This map represents the difference between the original data and the data reconstructed by a standard lossy compressor (e.g., SZ3). It is significantly easier for a neural network to learn these small, localized error patterns than the raw data itself.

2. Group-wise Strategy

Scientific data often exhibits highly skewed distributions, where a few high-value "spikes" coexist with many low-value points. A single neural network typically struggles to converge on such biased data. GWLZ addresses this by partitioning the data into multiple groups based on value ranges. By grouping data by magnitude, the framework transforms a biased, skewed distribution into several approximately Gaussian (normal) distributions, which are much more conducive to neural network learning.

3. Ultra-Lightweight Enhancers

For each partitioned group, GWLZ trains a tiny encoder-decoder neural network. These "enhancers" are incredibly small, consisting of only about 200 parameters each. Because of this minimal footprint, the model weights can be bundled with the compressed file with negligible impact on the overall compression ratio. During decompression, these models predict the residual map, which is then added back to the standard decompressed data to "clean up" the noise and improve fidelity.

Experimental Evaluation

The framework was evaluated using the Nyx Cosmological Simulation Dataset, a standard benchmark in the scientific community. The authors specifically tested the Temperature field (characterized by a massive range from ~2,000 to 4.8 million) and the Dark Matter Density field to test generalizability. The data consisted of 3D volumes (512 x 512 x 512) in 32-bit floating-point (FP32) format.

Key Results

  • Reconstruction Quality: On the Nyx Temperature field, GWLZ improved the Peak Signal-to-Noise Ratio (PSNR) by up to 20.2% compared to the state-of-the-art SZ3 compressor.
  • Storage Overhead: The cost of including the neural network weights was found to be exceptionally low. In testing, the overhead was as low as 0.0003x the size of the compressed data, effectively providing a "free" quality boost.
  • Scalability: The group-wise strategy proved robust; as the number of groups increased from 1 to 20, reconstruction quality consistently improved, confirming that specialized models for specific data ranges are more effective than a single monolithic model.

Discussion and Future Work

GWLZ demonstrates that tiny, specialized neural networks can significantly enhance traditional compression techniques without the storage penalties typically associated with Deep Learning. By acting as an AI "denoiser" for lossy compression, it provides a scalable path forward for exascale data management.

However, some challenges remain. While the models are small, they still require training during the compression phase, which introduces latency into HPC workflows. Future research will focus on optimizing this training time and investigating the "diminishing returns" threshold to automatically determine the optimal number of groups for any given dataset. Additionally, the authors plan to expand testing to other scientific domains, such as HACC or EXAFEL simulations, to further validate the framework's generalizability.

Summary updated

BibTeX
@inproceedings{jia2024gwlz,
  author = {Wenqi Jia and Sian Jin and Jinzhen Wang and Wei Niu and Dingwen Tao and Miao Yin},
  title = {{GWLZ: A Group-wise Learning-based Lossy Compression Framework for Scientific Data}},
  booktitle = {FlexScience@HPDC},
  year = {2024},
  url = {https://openreview.net/forum?id=aCn8U9Rn9T},
}
Figure