Introduction
Modern scientific research, ranging from high-performance computing (HPC) simulations to large-scale experimental facilities like particle accelerators, generates massive volumes of floating-point data. Storing and transferring this data has become a critical bottleneck. While lossless compression typically yields only a 2:1 ratio for floating-point data, lossy compression offers a viable alternative. However, scientific applications require strict error bounds to ensure that subsequent analysis remains physically valid.
Traditional error-bounded compressors like SZ and ZFP perform well at low compression ratios but struggle to maintain data quality as ratios increase. Conversely, deep learning-based autoencoders (AEs) excel at high-ratio image compression but lack the rigorous error-bounding mechanisms necessary for scientific data. This paper introduces AE-SZ, a hybrid framework that integrates convolutional autoencoders into the SZ compression pipeline to achieve superior compression ratios without violating user-defined error constraints.
The AE-SZ Framework
AE-SZ operates as a block-wise hybrid compression system. Rather than replacing traditional methods entirely, it uses a deep learning model as a sophisticated predictor within the established SZ workflow.
The framework consists of two primary phases:
- Offline Training: The training data is partitioned into small, fixed-size blocks (e.g., 8x8x8). A Sliced-Wasserstein Autoencoder (SWAE) is trained on these blocks. The SWAE architecture utilizes Generalized Divisive Normalization (GDN) activation functions, which provide better stability and accuracy for floating-point data than standard ReLU functions.
- Online Compression: During compression, the input data is split into blocks. For each block, the system adaptively selects between two predictors: a traditional Lorenzo predictor (ideal for smooth or constant regions) and the Autoencoder predictor (ideal for complex patterns). The predictor that minimizes the residual error is chosen.
To ensure strict error bounding, the difference between the prediction and the actual data is linearly quantized based on the user's specified error bound. Furthermore, to minimize overhead, AE-SZ applies lossy compression to the autoencoder's latent vectors, significantly reducing the storage footprint of the model's internal representations.
Experimental Evaluation
The authors evaluated AE-SZ across five diverse scientific datasets from the SDRBench suite, including climate simulations (CESM), seismic wave data (RTM), cosmology (NYX), and X-ray diffraction (EXAFEL).
Key Results
- Compression Efficiency: AE-SZ achieved compression ratios 100% to 800% higher than state-of-the-art compressors like SZ2.1 and ZFP at equivalent Peak Signal-to-Noise Ratios (PSNR). This advantage is particularly pronounced in high-compression scenarios.
- Visual Fidelity: Reconstructions from AE-SZ exhibit significantly fewer artifacts compared to traditional methods at extreme ratios.
- Performance: While neural network inference makes AE-SZ slower than pure C-based compressors (operating at 10%–40% the speed of SZ2.1), it represents a 30x to 200x speedup over previous AE-based scientific compressors. This improvement stems from optimized network design and the removal of heavy pre/post-processing steps.
Discussion and Insights
A critical insight of this work is the "latent bottleneck." In many AE-based approaches, the storage required for latent vectors negates the compression gains. AE-SZ overcomes this by treating latent vectors as data that can itself be compressed with a tighter error bound. Additionally, the hybrid approach—using AEs for complex patterns and Lorenzo for simple ones—allows the system to leverage the strengths of both deep learning and classical numerical methods.
Despite its success, the primary limitation remains computational throughput. The overhead of neural network inference makes AE-SZ less suitable for real-time in-situ compression during active simulations. Future research will focus on further accelerating inference and optimizing hyperparameters to bridge the performance gap with traditional compressors.
Summary updated