Data Compression and Inference in Cosmology with Self-Supervised Machine Learning

Aizhan Akhmetzhanova, Siddharth Mishra-Sharma, Cora Dvorkin · DOI

Abstract

The influx of massive amounts of data from current and upcoming cosmological surveys necessitates compression schemes that can efficiently summarize the data with minimal loss of information. We introduce a method that leverages the paradigm of self-supervised machine learning in a novel manner to construct representative summaries of massive datasets using simulation-based augmentations. Deploying the method on hydrodynamical cosmological simulations, we show that it can deliver highly informative summaries, which can be used for a variety of downstream tasks, including precise and accurate parameter inference. We demonstrate how this paradigm can be used to construct summary representations that are insensitive to prescribed systematic effects, such as the influence of baryonic physics. Our results indicate that self-supervised machine learning techniques offer a promising new approach for compression of cosmological data as well its analysis.

Introduction

Cosmology is entering an era of "Big Data." Upcoming surveys like Euclid and the Vera C. Rubin Observatory are expected to generate petabytes of high-resolution images and catalogs. Extracting fundamental cosmological parameters—such as the matter density $\Omega_M$ and the fluctuation amplitude $\sigma_8$—directly from this raw data is a monumental computational challenge.

Traditionally, researchers rely on "summary statistics" like the power spectrum to reduce data dimensionality. While effective for Gaussian fields, these manual summaries often discard critical information contained in non-Gaussian structures like cosmic filaments and voids. While deep learning offers a solution, standard supervised models often require vast amounts of labeled data and can be sensitive to systematic "nuisance" effects not perfectly captured in training sets.

Methodology: Self-Supervised Learning for Cosmology

To address these challenges, we propose a novel compression framework based on Self-Supervised Learning (SSL), specifically utilizing the VICReg (Variance-Invariance-Covariance Regularization) architecture. Unlike supervised learning, which maps data directly to labels, SSL learns the underlying structure of the data by identifying shared features across different "views" of the same physical system.

Schematic of the proposed self-supervised learning pipeline for cosmological data compression and parameter inference.

The core innovation lies in our use of simulation-based augmentations. In standard computer vision, augmentations involve simple image transformations like rotations or flips. In our cosmological context, we define "views" as different stochastic realizations (simulation slices) generated from the same underlying physical parameters. By maximizing the similarity between summaries of these different views, the network learns to ignore random "cosmic variance" and focus on the invariant physical signals.

The VICReg loss function ensures high-quality summaries through three components:

  1. Invariance: Encourages similar summaries for different views of the same physics.
  2. Variance: Prevents the model from collapsing to a single trivial output.
  3. Covariance: Minimizes redundancy between different dimensions of the summary vector.

Datasets and Experimental Setup

We evaluated our method across three distinct tiers of complexity to test its robustness and information-capturing capabilities:

  1. Lognormal Density Fields: These 2D mock maps serve as a benchmark to compare SSL summaries against analytical theoretical expectations (Fisher information).
  2. CAMELS Project Simulations: We utilized high-fidelity hydrodynamical simulations from the IllustrisTNG and SIMBA suites. These include complex baryonic physics, such as supernova and black hole feedback, which act as significant systematic uncertainties in cosmological analysis.
  3. Toy Power Law Model: Used to specifically test "nuisance-hardening," where the model is trained to become insensitive to prescribed systematic effects.
Comparison of Gaussian and Lognormal overdensity fields used to evaluate the method's ability to capture non-Gaussian information.

Key Results

Our experiments demonstrate that SSL-based summaries are highly effective for cosmological inference:

  • Information Preservation: Fisher information analysis confirms that our SSL summaries capture nearly 100% of the available information in the maps, performing on par with optimal theoretical statistics.
  • Parameter Inference: On the complex CAMELS datasets, the SSL-derived summaries allowed for the recovery of $\Omega_M$ and $\sigma_8$ with percent-level accuracy, matching the performance of fully supervised ResNet-18 baselines while requiring no labels during the feature-learning phase.
  • Dimensionality Reduction: The method successfully compressed $256 \times 256$ pixel maps (65,536 dimensions) into compact 128-dimensional vectors without significant loss of predictive power.
  • Robustness to Systematics: By treating unknown baryonic effects as augmentations during pre-training, we produced "nuisance-hardened" summaries. These representations remained sensitive to cosmological parameters while becoming blind to the specific details of galactic feedback models.

Conclusion and Future Directions

Self-supervised learning offers a powerful new paradigm for cosmological data analysis. By leveraging simulations to define physical invariants, we can create compressed data representations that are both informative and robust to systematic noise.

Future research will focus on scaling this approach to 3D light-cones, integrating multi-modal data, and applying the pipeline to real-world survey data. Furthermore, these learned summaries could serve as a foundation for anomaly detection, potentially identifying signatures of new physics that deviate from standard cosmological models.

Summary updated

BibTeX
@inproceedings{akhmetzhanova2023data,
  author = {Aizhan Akhmetzhanova and Siddharth Mishra-Sharma and Cora Dvorkin},
  title = {{Data Compression and Inference in Cosmology with Self-Supervised Machine Learning}},
  booktitle = {Monthly},
  year = {2023},
  doi = {10.1093/mnras/stad3646},
}
Figure