NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Adaptive Configuration of In Situ Lossy Compression for Cosmology Simulations via Fine-Grained Rate-Quality Modeling

Sian Jin, Jesus Pulido, Pascal Grosset, Jiannan Tian, Dingwen Tao, James P. Ahrens

TL;DR

This research presents an adaptive in situ lossy compression framework for massive cosmology simulations. By modeling how compression errors affect scientific analyses like power spectra and halo finding, the system automatically optimizes error bounds for different spatial regions, achieving up to a 73% improvement in compression ratios without compromising scientific integrity.

The Challenge: Data-Hungry Simulations

Modern cosmological simulations, such as Nyx, generate staggering amounts of data. A single high-resolution snapshot can reach 2.8 TB, and a full simulation run can produce petabytes of data, creating significant I/O bottlenecks on even the world’s fastest supercomputers.

To mitigate this, researchers employ lossy compression (e.g., the SZ compressor). Traditionally, a single "static" error bound is applied globally. However, cosmological data is highly heterogeneous; vast "voids" of empty space coexist with dense "halos" of matter. Applying the same precision to both is inefficient. The core challenge is compressing different regions at different strengths without breaking the scientific validity of the final analysis.

Spatial heterogeneity and evolution of features in a cosmological simulation.

Proposed Method: Adaptive In Situ Compression

The authors propose an in situ framework that adaptively configures compression for each compute partition while the simulation is running. The core of this approach is a set of mathematical models that predict how compression noise propagates into specific scientific metrics:

  1. FFT-based Power Spectrum Model: Uses the Central Limit Theorem to predict how spatial domain compression noise affects the frequency domain (3D FFTs).
  2. Halo Finder Model: Estimates the probability of "fault detection" (missing or falsely adding cells to a halo) to control errors in calculated halo masses.
  3. Compression Ratio Model: An empirical model predicting the bit-rate based on local data entropy and mean values.
The optimization framework linking error bounds, compression ratio, and analysis quality.

By combining these models, the framework identifies the highest possible compression ratio for every individual partition that keeps the total scientific error within a user-defined limit (e.g., 1%). This "post-hoc awareness" ensures that the optimization is tuned for the actual math the scientist will perform later, rather than generic metrics like Peak Signal-to-Noise Ratio (PSNR).

Key Results and Scientific Impact

The framework was evaluated using the Nyx simulation on supercomputers like NERSC's Cori and TACC's Frontera. Key findings include:

  • Massive Efficiency Gains: Improved compression ratios by an average of 56%, with peaks of 73% improvement over traditional static methods.
  • Scientific Integrity: Maintained a target ±1% distortion ratio for power spectrum analysis ($k < 10$), which is the standard requirement for cosmological verification.
  • Halo Accuracy: Achieved 29.8% higher accuracy in halo mass calculations compared to traditional methods at similar compression levels.
  • Low Overhead: The in situ optimization adds only about 1% to the total runtime, making it highly practical for production-scale runs.

Conclusion

This work demonstrates that scientific importance is spatially heterogeneous. By moving away from generic metrics and focusing on error propagation into domain-specific analyses, this adaptive framework significantly reduces the storage and I/O burden of large-scale simulations while preserving their scientific value. Future work aims to extend these models to other domains like climate science and incorporate additional metrics such as the Structural Similarity Index (SSIM).

Summary updated

BibTeX
@inproceedings{jin2021adaptive,
  author = {Sian Jin and Jesus Pulido and Pascal Grosset and Jiannan Tian and Dingwen Tao and James P. Ahrens},
  title = {{Adaptive Configuration of In Situ Lossy Compression for Cosmology Simulations via Fine-Grained Rate-Quality Modeling}},
  booktitle = {HPDC},
  year = {2021},
  doi = {10.1145/3431379.3460653},
}
Figure