Guaranteed Conditional Diffusion: 3D Block-based Models for Scientific Data Compression

Jaemoon Lee, Xiao Li, Liangji Zhu, Sanjay Ranka, Anand RangarajanarXiv 2025

TL;DR

The researchers introduce GCDTC (Guaranteed Conditional Diffusion with Tensor Correction), a novel framework that brings the power of generative diffusion models to lossy scientific data compression. By combining 3D block-based conditioning with a deterministic 2D denoising process and a strict error-guarantee mechanism, the system achieves high compression ratios while ensuring that reconstructed data never exceeds user-defined error bounds.

What Problem Does This Paper Address?

Scientific simulations (like climate modeling or combustion studies) generate massive amounts of data that are difficult to store and transmit. While lossy compression is necessary, scientific data has a unique requirement: error guarantees. Unlike a JPEG image where a slightly "off" pixel doesn't matter, a scientist needs to know that the reconstructed data is within a specific tolerance to ensure post-analysis remains valid.

Existing methods like standard autoencoders (AE) or prediction-based compressors (like SZ3) often struggle to balance high compression ratios with the preservation of complex spatiotemporal features. Generative AI, specifically diffusion models, has shown incredible promise in creating high-fidelity images, but these models are typically stochastic (random) and prone to "hallucinating" details—a dealbreaker for rigorous science.

Methods

The authors propose a three-step pipeline to bridge the gap between generative power and scientific precision:

  1. 3D Conditional Diffusion (CD): Instead of performing expensive 3D diffusion, the team uses a hybrid approach. They divide the data into 3D blocks to capture temporal and spatial correlations. These blocks are encoded into 3D latent variables. A 2D denoising U-Net then reconstructs the data slice-by-slice, conditioned on these 3D latents. Crucially, for compression, the sampling is made deterministic by starting with zero noise instead of random Gaussian noise.
  2. Tensor Correction (TC): A feedforward neural network acts as a post-processor, learning a reverse mapping from the reconstructed tensor back to the original to refine the details.
  3. Error Guarantee (EG): This is the "safety net." The system identifies blocks where the reconstruction error exceeds a pre-set threshold ($\tau$). It then uses Principal Component Analysis (PCA) on the residuals to selectively add back just enough information to bring those specific blocks back within the allowed error bound.
Fig. 1. Overview of our conditional diffu- sion model for compression. We compress 3D blocks to capture spatiotemporal cor- relations in scientific datasets. The latent variables guide a 2D denoising diffusion process. Our denoising decoder reconstructs each of the 2D slices in 3D blocks based on its corresponding latent data zi. This en- ables us to keep a relatively simple U-Net architecture while getting effective condi- tioning via 3D block compression.

Datasets

The framework was evaluated on two complex scientific datasets:

  • E3SM Dataset: Climate simulation data from the Energy Exascale Earth System Model, specifically focusing on sea-level pressure (PSL) variables.
  • S3D Dataset: Chemical combustion simulation data involving mass fractions of different chemical species across hundreds of timesteps.

Key Insights and Ideas

  • Dimensionality Mixing: The "aha moment" here is using 3D blocks for conditioning but 2D U-Nets for denoising. This captures the 3D nature of scientific data (space + time) without the massive computational overhead of a full 3D diffusion model.
  • Deterministic Diffusion: By removing the stochasticity (random noise) during the reverse diffusion process, the authors transform a generative model into a reliable reconstruction engine suitable for compression.
  • Hybrid Compression: The paper treats the model size, PCA basis, and dictionaries as part of the "compression cost." This ensures a fair comparison against traditional methods, preventing the use of massive models that "cheat" by effectively storing the dataset in their weights.
Detailed architecture of the 3D conditional diffusion model, highlighting the 3D block mapping and the 2D denoising U-Net.

Key Results

  • Superior Performance: GCDTC consistently outperformed standard convolutional autoencoders (GCAE) across both datasets.
  • Competitive with Gold Standards: Compared to SZ3 ( a dominant non-ML scientific compressor), GCDTC achieved at least twice the compression ratio for the E3SM dataset at higher accuracy levels (NRMSE above $1 \times 10^{-4}$).
  • Visual Fidelity: Qualitative results show that GCDTC captures fine-grained details and textures in the simulation data that standard autoencoders smooth over.

Limitations and Future Work

The primary drawback of this approach is decoding speed. Because diffusion models are iterative, the decoding time for GCDTC was significantly higher than its competitors (978 seconds vs. 12.2 seconds for SZ3).

To address this, the authors suggest future work involving progressive distillation—a technique to reduce the number of iterations required for denoising. They also plan to explore hyperprior approaches for better quantization and the incorporation of attention mechanisms within the U-Net to further boost quality.

Summary updated

BibTeX
@misc{lee2025guaranteed,
  author = {Jaemoon Lee and Xiao Li and Liangji Zhu and Sanjay Ranka and Anand Rangarajan},
  title = {{Guaranteed Conditional Diffusion: 3D Block-based Models for Scientific Data Compression}},
  year = {2025},
  eprint = {2502.12951},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.12951},
}
Figure