Two bits about lossy compression: On the limits of compression in cosmology
Abstract
Astronomy is in an era of enormous sky surveys and of the large simulation suites needed to interpret them, both costly to store and slow to share. Simulation outputs are stored as 32-bit floats, yet numerical noise and astrophysical uncertainties make better than percent-level pixel accuracy unnecessary. Because cosmological fields are statistically homogeneous with nearly Gaussian mode amplitudes, classic rate-distortion results apply directly, and non-Gaussian structure permits further compression. We use the scientific compression package SZ3, and a neural compressor that fixes the quantization and learns the probability of each quantization bin with an autoregressive transformer. SZ3 beats the Gaussian approach only where the field is smooth on the pixel scale or its values pile up at a single point, while the neural approach matches or beats SZ3 on every field we consider and is 9 to 27\% below the Gaussian-optimal coder at fixed distortion, with the largest margin where the field is most non-Gaussian. Because the quantizer, not the network, sets the error, a poorly trained model can waste bits but never cost accuracy. A model trained only on weak lensing convergence maps transfers to -body density fields without retraining, suggesting it has learned generic properties of cosmological structure rather than features of one dataset. Eulerian grids need only 1-4 bits per pixel (bpp) at percent-level accuracy, and particle displacements and velocities 5-6 at the precisions they require. The approach carries over to observational data: on Rubin Observatory Data Preview 1 coadds, with the quantization step set to a quarter of the background noise, the fine-tuned transformer needs 4.0 bpp, 27\% fewer than the Gaussian coder.
Create a lesson
Metadata
- Comments
- 10 Pages, 1 figure
Related papers
Options for Compression of radio interferometry data: lossy compression of visibilities and lossless compression of uv-visibility grids for the MHONGOOSE survey
Shared title terminologyastro-ph.IMRichard Dodson, Jonghwan Rhee, W. J. G. de Blok et al.
Conservative dark-companion mass limits from partial astrometric orbits: a calibrated search strategy for Gaia DR4
Shared title terminologyastro-ph.IMDoruk Çetin
A novel quantum lattice Boltzmann methodology for cosmological radiation transport
Shared title terminologyastro-ph.IMRasmit Devkota, John Wise
Wavefront-Conditioned Photon Measurements for Exoplanet Spectroscopy: Contrast Limits and Conditional Gains
Shared title terminologyastro-ph.IMSlava G. Turyshev
FPCA-Enhanced Simulation-Based Inference for Robust Type Ia Supernova Cosmology
Shared title terminologyastro-ph.IMMoonzarin Reza, Lifan Wang
The OpenGadget3 Code for Cosmological Simulations
Shared title terminologyastro-ph.IMKlaus Dolag, Geray S. Karademir, Luca Tornatore et al.