SRN-SZ: Deep Leaning-Based Scientific Error-bounded Lossy Compression with Super-resolution Neural Networks

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

TL;DR

SRN-SZ is a novel scientific data compressor that treats compression as a hierarchical super-resolution problem. By leveraging the Hybrid Attention Transformer (HAT) network, it achieves up to a 75% improvement in compression ratios over state-of-the-art traditional compressors while maintaining strict, user-defined error bounds.

What Problem Does This Paper Address?

As supercomputing enters the exascale era, scientific simulations generate massive amounts of data that far outpace storage capacity and memory bandwidth. Error-bounded lossy compression is the standard solution, allowing for significant size reduction while guaranteeing that the reconstructed data stays within a specific point-wise error tolerance.

However, traditional compressors like SZ3 or ZFP struggle with "hard-to-compress" datasets—complex data fields where standard mathematical models (like linear regression or wavelets) fail to capture intricate patterns. Recent deep learning attempts have also faltered: Coordinate networks require time-consuming training for every single file, while Autoencoder-based methods often fail to outperform traditional algorithms because they must store large "latent vectors" alongside the compressed data.

Methods

The authors introduce SRN-SZ, a framework that replaces traditional data prediction with a hierarchical grid expansion paradigm powered by super-resolution (SR) neural networks.

The Compression Pipeline

As shown in the framework overview, the process involves four main stages:

  1. Data Grid Sparsification: The original data is sampled to create a sparse grid (e.g., 1/32 of the original size), which is stored losslessly to serve as an accurate foundation.
  2. Data Grid Expansion: The sparse grid is expanded iteratively (2x per step) until the original resolution is reached.
  3. Hybrid Prediction: For small, early-stage grids, the system uses traditional interpolators. For larger grids (where most data points reside), it employs the Hybrid Attention Transformer (HAT), a state-of-the-art SR network.
  4. Error Quantization & Encoding: To ensure strict error bounds, the difference between the SR prediction and the original data is quantized, then compressed using Huffman encoding and Zstd.
SRN-SZ compression framework

Innovative Training

Unlike previous methods, SRN-SZ uses a pre-trained network, avoiding per-input training. The authors adapted the HAT network for scientific data by:

  • 3D to 2D Slicing: To keep computational costs manageable, 3D scientific volumes are processed as 2D slices along three axes.
  • Denoise Training: The network is trained with Gaussian noise to simulate the lossy nature of intermediate reconstructed grids, making the final SR output more robust.
  • Domain-Specific Fine-Tuning: While the base model is general, fine-tuning on specific simulation types (like climate or turbulence) further boosts performance.

Datasets

The authors utilized a diverse array of scientific simulations for both training and evaluation, covering climate science, weather, turbulence, cosmology, and oceanology.

  • Training: CESM-ATM, Hurricane, JHTDB, Miranda, NYX, OCEAN, RTM, and Scale-LETKF.
  • Evaluation: Specific fields from CESM-ATM (CLDHGH, FREQSH), Ocean (TMXL), NYX (Dark Matter Density), and Hurricane-ISABEL (QRain, QGraup).

Key Insights and Ideas

  • SR as a Compression Primitive: The core "aha moment" is realizing that super-resolution is a form of prediction. If a network can accurately "hallucinate" high-resolution scientific data from a low-resolution version, we only need to store the low-resolution version and the small corrections (quantized errors).
  • Eliminating Latent Overhead: Unlike autoencoders, SR networks don't generate a latent representation that needs to be stored. The "representation" is simply the lower-resolution grid, which is inherently part of the data.
  • The Hybrid Advantage: Neural networks often struggle with very small input sizes. By using traditional interpolators for the initial expansion steps and switching to HAT for the final, data-heavy steps, SRN-SZ gets the best of both worlds.

Key Results

SRN-SZ consistently outperformed traditional state-of-the-art compressors (SZ3, SPERR, FAZ) and deep learning models (AE-SZ) across multiple benchmarks:

  • Compression Ratio: On the CESM-ATM (CLDHGH) dataset, SRN-SZ achieved a 75% improvement in compression ratio over the second-best compressor (QoZ) at an error bound of 1e-4.
  • Signal Quality: Under the same Peak Signal-to-Noise Ratio (PSNR), it improved compression ratios by up to 80%.
  • Visual Fidelity: Reconstructions from SRN-SZ preserved local data patterns significantly better than competitors. For example, at a compression ratio of ~32, SRN-SZ maintained a PSNR of 68.5, while the next best (FAZ) trailed at 63.4.

Limitations and Future Work

Despite its performance, SRN-SZ has two primary drawbacks:

  1. Speed: Because it relies on a complex Transformer-based architecture, its throughput is lower than traditional CPU-based compressors and even some simpler autoencoder models.
  2. High-Compressibility Data: On datasets that are already very easy to compress (where traditional methods excel), the overhead of the neural network might not provide a significant enough gain to justify the computational cost.

Future work will focus on accelerating the inference speed of the integrated networks and automating the fine-tuning process for new scientific domains.

Summary updated

BibTeX
@misc{liu2023srn,
  author = {Jinyang Liu and Sheng Di and Sian Jin and Kai Zhao and Xin Liang and Zizhong Chen and Franck Cappello},
  title = {{SRN-SZ: Deep Leaning-Based Scientific Error-bounded Lossy Compression with Super-resolution Neural Networks}},
  year = {2023},
  eprint = {2309.04037},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.04037},
}
Figure