TL;DR
Neural networks are brilliant at shrinking massive scientific datasets with minimal quality loss, yet they are notoriously sluggish—often crawling at less than 1 GB/s, which makes them impractical for supercomputing. CAIEC fixes this by jointly accelerating both halves of the compression pipeline: neural network inference and entropy coding. The result is an up to 112$\times$ speedup that finally brings high-fidelity, AI-driven compression up to HPC speeds without wrecking the data.
What Problem Does This Paper Address?
Modern climate simulations, cosmological models, and particle accelerators spit out petabytes of data. To keep storage systems from buckling, scientists rely on lossy compression—strategically discarding tiny details to drastically shrink file sizes.
Traditional, rule-based GPU compressors are blazingly fast (hundreds of GB/s), but their rigid math struggles to capture complex, nonlinear patterns when you try to compress data aggressively. Learning-based compressors (neural networks) adapt to the data and achieve vastly superior compression ratios at the same fidelity.
Here’s the catch: learned compressors run at a glacial pace—often two to three orders of magnitude slower than traditional GPU compressors. A learned compressor is a two-stage relay race:
- Model Inference: A neural network transforms raw data into compact "latent" symbols and estimates their probabilities.
- Entropy Coding: A lossless coder (typically Asymmetric Numeral Systems, or ANS) packs those symbols into a final bitstream.
Speeding up just one runner simply exposes the other as the new bottleneck. Shrinking neural network precision uniformly to 8-bit floating point (FP8) ruins reconstruction quality, while parallelizing inherently serial ANS coding on a GPU adds metadata overhead that bloats the file size.
Methods
Instead of treating inference and coding in isolation, CAIEC co-designs them around a user-specified quality budget, without requiring any model retraining.
- Quality-Controlled Mixed Precision (Inference): Exhaustively testing FP32, FP16, and FP8 across $k$ network modules takes $3^k$ runs (days of compute). CAIEC instead probes one module at a time—reducing complexity to $O(k)$, or just minutes—to see which parts of the network are numerically delicate and which yield big speedups. It assigns FP8 to resilient modules, FP16 to sensitive ones, and progressively restores higher precision if the combined setup violates the user's quality budget.
- Granularity-Adaptive ANS, or GA-ANS (Coding): Standard ANS updates a single state serially. GA-ANS unlocks GPU parallelism by grouping every $P_{\text{ch}}$ latent channels into an independent chunk, assigning a 32-thread GPU warp to process interleaved subsequences within each chunk. It also replaces slow 64-bit integer division with precomputed bit-shifts and multiplications, stages probability tables in fast shared memory, and interleaves output words so memory reads coalesce cleanly.
- Inference–Coding Co-Design: Finer chunks ($P_{\text{ch}}$) run faster on GPUs, while coarser chunks compress better. CAIEC measures the exact inference time of its chosen mixed-precision model and picks the largest (most compression-efficient) chunk size that finishes just inside that inference time window. At runtime, two separate GPU streams overlap inference of batch $i+1$ with the entropy coding of batch $i$.
- Scientific Data Adaptation: To feed scientific arrays into standard image-compression backbones, CAIEC normalizes data slice-by-slice, stacks adjacent slices into multi-channel inputs, and fuses overlapping spatial blocks using a smooth Hann window to erase boundary seams.
Datasets
CAIEC introduces no new benchmarks, evaluating pretrained models across seven existing real-world datasets:
- Simulations & Climate: CESM (1.9 GB climate simulation), NYX (512 MB cosmology simulation), and ERA5 (global climate reanalysis fields, used in a downstream case study).
- Scientific Imaging: COVID (1.3 GB medical X-ray), STEM (248 MB electron microscopy), and TomoBank (640 MB X-ray tomography).
- Natural Images: Tecnick (55 MB photography), serving as an in-domain reference for pretrained image backbones.
Key Insights and Ideas
- Slower coding can be a feature, not a bug: Standalone GPU coders usually race for maximum throughput, sacrificing compression ratios (5.3$\times$–9.0$\times$) in the process. Because CAIEC hides coding latency behind neural network inference in a two-stream pipeline, GA-ANS intentionally trades spare coding speed for coarser chunks—achieving a 20.6$\times$ compression ratio on latent data without slowing down the overall pipeline.
- Not all layers feel quantization equally: Feature transforms and probability-estimating entropy modules react very differently to low precision. Treating them individually preserves rate–distortion curves nearly identical to full 32-bit precision while unlocking FP8 Tensor Core speeds.
- Global normalization breaks scientific data: Unlike natural photos where pixel values sit neatly between 0 and 255, scientific slices vary wildly in magnitude. Global normalization lets extreme slices drown out subtle ones (even causing negative PSNR on CESM), making slice-wise normalization essential.
Key Results
- End-to-End Speedups: Using a lightweight backbone (Ballé2016), CAIEC hits average compression/decompression throughputs of 23.40 / 15.23 GB/s on an NVIDIA H100 (and 16.90 / 11.43 GB/s on an RTX 5090)—up to 112.72$\times$ / 101.04$\times$ faster than original PyTorch/CPU implementations.
- Real-World Climate Simulation: Applied to CRA5 (a specialized ERA5 climate compressor), CAIEC boosts throughput nearly tenfold from 2.1 / 1.4 GB/s to 20.4 / 13.7 GB/s at a ~446$\times$ compression ratio. In an 8-day MPTRAC particle-trajectory simulation, it preserves high scientific accuracy, beating the faster rule-based compressor
cuSZ-Hiat comparable compression ratios. - Multi-GPU Scaling: Across 4 GPUs, CAIEC achieves 97.3% strong-scaling and 93.0% weak-scaling efficiency.
Limitations and Future Work
- Heavy backbones remain heavy: System optimizations cannot erase intrinsic model complexity. On the deep, attention-heavy DCAE2025 model, CAIEC achieves a ~9–10$\times$ speedup, yet absolute throughput tops out around 0.89 GB/s on an H100. The authors suggest future neural compressors must co-design GPU-friendly architectures from the ground up.
- Offline profiling cost: Finding the sweet spot takes a few minutes of offline profiling per GPU, quality budget, and data distribution. While trivial for long-running supercomputing campaigns, it makes CAIEC less appealing for one-off compression of small files.
- Future directions: Extending CAIEC to additional scientific domains and wiring it directly into storage I/O paths so compression happens transparently under the hood.
Summary updated