- The paper demonstrates that substituting classical predictors with DNNs improves reconstruction fidelity but does not enhance overall compression ratio due to the structured nature of residuals.
- The study benchmarks various models on the ERA5 dataset, revealing that ML predictors excel for smooth, predictable variables while underperforming for turbulent fields.
- The analysis highlights the need for spatially-aware entropy coders and compression-aware training objectives to fully leverage DNN advantages in scientific data compression.
Deep Neural Networks as Predictors for Bounded Lossy Compression of Large-Scale Scientific Data
Introduction
Error-bounded lossy compression is a linchpin technique for managing exabyte-scale scientific datasets, providing guarantees on the maximum deviation between original and reconstructed values. The central architectural paradigm—prediction-residual encoding—realizes its efficacy through predictively minimizing the entropy of the stored residual stream. Contemporary compressors such as SZ3.1 employ spatial polynomial predictors to exploit local coherence, but they are limited in capturing physical priors and long-range dependencies.
This study interrogates the viability of leveraging pretrained, domain-specific deep neural networks (DNNs) as predictors within an error-bounded pipeline, benchmarking them against classical methods using a unified backend in quantization and entropy coding. Uniquely, the experiment is not limited to compression-specific neural architectures, but repurposes highly-accurate weather forecasting foundation models (GraphCast, Aurora, CRA5) as generic predictors, conducted on the canonical ERA5 climate dataset (∼1.7 TB).
Compression Framework and Models
The core compression pipeline involves four stages: (1) prediction, (2) error-bounded quantization, (3) entropy encoding, and (4) outlier handling. Typical methods’ performance is tightly coupled to the predictor module that feeds quantization and entropy coding with small-magnitude, spatially coherent residuals, requisite for maximal compression.
Figure 1: Prediction-residual error-bounded compression pipeline, highlighting the central role of the predictor for overall efficiency.
Baselines
These ML models are integrated as drop-in predictors, with the error-bounded back-end enforcing uniform quantization (ϵrX bin width) and fixed, lossless entropy coding.
Figure 3: A single ERA5 field (e.g., 2-meter temperature) at one timestep, showcasing the highly structured, spatially coherent nature of the data relevant to predictor effectiveness.
Experimental Protocol
The evaluation used 1,997 six-hourly timesteps spanning nine common ERA5 variables, quantized at three error bounds (ϵ=10−2,10−3,10−4), processed independently per variable/level.
- Objective: Evaluate aggregate and per-variable compression ratio, fidelity (MAE/RMSE), quantized-residual statistics, and throughput.
- Uniform Backend: All predictors share an identical quantizer and entropy code, isolating the impact of the prediction module.
Aggregate Compression and Fidelity Results
Dataset-Level Compression Ratio
Table results demonstrate that SZ3.1 consistently outperforms all ML-based predictors in aggregate compression ratio at all error bounds, with ML-based models only reaching comparable ratios when model-weight overhead is ignored or for highly predictable variables. For instance, at ϵ=10−2, SZ3.1 achieves ρ∼200, compressing 1.7 TB to 8.6 GB.
Speed
As anticipated, traditional methods exhibit much higher throughput due to simple predictors, while Aurora and GraphCast—especially given their auto-regressive architecture and, for GraphCast, CPU-bound execution—are orders of magnitude slower.
Reconstruction Fidelity
Despite not winning in compression, ML-based predictors (notably CRA5 and Aurora) demonstrate significant improvements in per-variable mean absolute error (up to 91% lower for geopotential), with error distributions that are smoother and less structured than SZ3.1, which is prone to quantization artifacts.
Figure 4: CDFs of pointwise absolute error at ϵ=10−2, illustrating variable-dependent differences in error concentration around zero.
Spatial and Per-Variable Analysis
ML predictors yield markedly better compression ratios and fidelity for smooth, highly predictable fields like geopotential and mean sea level pressure, often exceeding SZ3.1 by up to 9.6× in per-variable CR. For less predictable variables (winds, humidity), their advantage vanishes or becomes negative compared to SZ3.1.
Figure 5: Time-averaged per-pixel MAE at ϵ=10−2 demonstrates that ML-based errors are spatially organized, following synoptic patterns.
Figure 6: Per-variable compression ratio at ϵ=10−2, log-scale, highlights dramatic gains by ML-based predictors for select variables.
Figure 7: Per-level analysis shows Aurora’s compression ratio for geopotential surging above 45,000× at upper levels, with diminishing returns at lower/turbulent fields.
Analysis of Prediction, Residual Structure, and Coding
Entropy Bottleneck
Although DNN predictors lower pointwise RMSE/MAE, they do not always reduce the entropy of the quantized residual stream. The key result is that improved accuracy does not guarantee lower compressibility: ML residuals are spatially structured, with corrections concentrated along physical gradients or weather features, rather than as spatially uncorrelated zero-centered noise that 1D entropy coders exploit efficiently.
Figure 8: Binary support mask for quantized residuals (T2m, ϵrX0): ML correction regions are spatially contiguous, classical (SZ3.1) are randomly distributed pixels.
This 2D structure is not utilized by conventional row-major, 1D entropy coders (e.g., Huffman+Zstd), thus the actual benefits from lower RMSE are not realized in the final compression ratio. A significant implication is that further improvement will require spatially/temporally-aware residual coding, or predictors co-trained with an information-theoretic objective.
Stability and Overhead
Regret from initialization overhead (e.g., seed timesteps for auto-regressive models) is amortized over long sequences; the error-bounded feedback loop ensures stability with no error accumulation over thousands of steps.
Figure 9: Compression ratio versus sequence length, showing rapid amortization of seed overhead for long sequences except at the tightest ratios.
Figure 10: Normalized MAE over 1,997-step autoregressive rollouts confirms absence of error drift, enabled by step-wise error correction.
Implications and Future Directions
Practically, this analysis reveals that the main bottleneck in realizing compression gains from ML predictors in error-bounded frameworks now lies in entropy coding, not in prediction. Theoretical implications include:
- Residual entropy, not only prediction error, governs compression ratio.
- Spatial coherence in residuals, beneficial for DNN error correction, is detrimental under backends blind to such structure.
- Hybrid frameworks must consider joint optimization of predictors and coders.
- Dataset-level results are dominated by turbulent, high-entropy fields; ML gains reside in smooth-structured fields.
Key directions for future work include developing 2D/3D spatial-entropy coders, compression-aware training objectives (minimizing residual entropy under error constraint), or adaptive, variable-dependent hybrid pipelines.
Conclusion
The systematic experimental investigation on error-bounded lossy compression using deep neural network predictors finds that, for large-scale scientific data, substituting classical spatial predictors with DNN-based temporal or learned-spatial predictors does not increase dataset-level compression ratio when exchanging the predictor alone. ML-based predictors yield improved reconstruction fidelity and per-variable gains for smooth variables, but overall compression is limited by the entropy characteristics of the residuals and the inability of 1D coders to exploit structured corrections. The study delineates the boundaries separating ML-centric from classical approaches, and identifies necessary innovations in residual coding and objective functions as the next frontier for ML-enabled scientific data compression.
Reference: "Can Deep Neural Networks Improve Compression of Very Large Scientific Data?" (2606.14353)