Abstract
A wealth of cosmological and astrophysical information is expected from many ongoing and upcoming large-scale surveys. It is crucial to prepare for these surveys now and develop tools that can efficiently extract most information. We present HIFlow: a fast generative model of the neutral hydrogen (HI) maps that is conditioned only on cosmology ($Ω_{m}$ and $σ_{8}$) and designed using a class of normalizing flow models, the Masked Autoregressive Flow (MAF). HIFlow is trained on the state-of-the-art simulations from the Cosmology and Astrophysics with MachinE Learning Simulations (CAMELS) project. HIFlow has the ability to generate realistic diverse maps without explicitly incorporating the expected 2D maps structure into the flow as an inductive bias. We find that HIFlow is able to reproduce the CAMELS average and standard deviation HI power spectrum (Pk) within a factor of $\lesssim$ 2, scoring a very high $R^{2} > 90\%$. By inverting the flow, HIFlow provides a tractable high-dimensional likelihood for efficient parameter inference. We show that the conditional HIFlow on cosmology is successfully able to marginalize over astrophysics at the field level, regardless of the stellar and AGN feedback strengths. This new tool represents a first step toward a more powerful parameter inference, maximizing the scientific return of future HI surveys, and opening a new avenue to minimize the loss of complex information due to data compression down to summary statistics.
1. Introduction
As we enter a golden age of radio astronomy with upcoming surveys like the Square Kilometer Array (SKA), mapping the distribution of neutral hydrogen (HI) will be central to tracing the large-scale structure of the universe. However, extracting the full breadth of information from these maps is notoriously difficult. Traditionally, cosmologists rely on summary statistics like the power spectrum, which discard significant non-Gaussian information found in the filaments and voids of the cosmic web.
To utilize the full map (field-level inference), a tractable likelihood function is required. In high-dimensional spaces, such as $64 \times 64$ pixel images, calculating this likelihood is computationally prohibitive. HIFlow addresses this by providing a generative model with an exact, tractable likelihood.
2. Methodology
HIFlow is built upon Normalizing Flows (NF), specifically the Masked Autoregressive Flow (MAF) architecture. Unlike standard generative models that only produce samples, a Normalizing Flow learns a series of invertible, differentiable transformations that map a simple high-dimensional Gaussian distribution to the complex distribution of HI maps.
The model is "conditional," meaning it generates maps based on specific cosmological parameters: the total matter density ($\Omega_m$) and the amplitude of matter fluctuations ($\sigma_8$). Because the transformation is invertible, an observed map can be passed backward through the flow to calculate its exact likelihood for parameter inference.
3. Datasets
The model was trained using the CAMELS (Cosmology and Astrophysics with MachinE Learning Simulations) project. The training set included 15,000 HI maps from 1,000 different simulations, incorporating two distinct galaxy formation physics models (IllustrisTNG and SIMBA). These simulations represent a cosmic slice of approximately 25 $h^{-1}$ Mpc at a redshift of $z \sim 6$, the end of the Epoch of Reionization.
4. Key Results and Discussion
HIFlow demonstrates a remarkable ability to reproduce the statistical properties of the CAMELS simulations. It achieves a coefficient of determination ($R^2$) of over 90% across the testing set for the power spectrum.
Astrophysical Marginalization
A critical finding is that at $z \sim 6$, the HI distribution is dominated by gravity rather than the "messy" feedback from stars and Active Galactic Nuclei (AGN). HIFlow exploits this by conditioning only on cosmology, allowing it to successfully marginalize over astrophysical uncertainties. The model can accurately recover cosmological parameters even when feedback strengths are varied wildly in the underlying simulations.
Field-Level Advantage
By treating the maps as flattened vectors, HIFlow avoids the need for explicit 2D spatial inductive biases (like convolutional kernels) while still capturing the large-scale cosmic web structure. This approach provides a direct path to field-level inference, potentially capturing information that summary statistics like the power spectrum inherently miss.
5. Conclusion and Future Work
HIFlow represents a significant step toward maximizing the scientific return of future HI surveys. While the current model struggles with some small-scale details due to the flattening of vectors, future iterations could incorporate 2D-aware architectures like Neural Spline Flows. Additionally, extending the model to lower redshifts, where astrophysical feedback plays a more dominant role, will be essential for applying this technique to a broader range of astronomical data.
Summary updated