Hybrid Physical-Neural Simulator for Fast Cosmological Hydrodynamics
Arne Thomsen, Tilman Tröster, François Lanusse
TL;DR
This work introduces a differentiable forward model for cosmological hydrodynamics by hybridizing a differentiable particle-mesh gravity solver with a neural network that learns an effective gas pressure. Trained in a solver-in-the-loop setup on a single fully hydrodynamical Camels Simba simulation, the model evolves both dark matter and gas in comoving coordinates, with gravity computed on a mesh and gas dynamics augmented by a learned pressure field. Results show improved field-level agreement and comparable or better two-point statistics relative to baselines like Enthalpy Gradient Descent, while achieving strong data efficiency. This approach enables field-level inference of cosmological parameters and initial conditions, with potential to fit directly to observational data such as Sunyaev–Zeldovich signals and weak lensing, albeit with limitations on history dependence which could be addressed via latent-variable neural ODE extensions.
Abstract
Cosmological field-level inference requires differentiable forward models that solve the challenging dynamics of gas and dark matter under hydrodynamics and gravity. We propose a hybrid approach where gravitational forces are computed using a differentiable particle-mesh solver, while the hydrodynamics are parametrized by a neural network that maps local quantities to an effective pressure field. We demonstrate that our method improves upon alternative approaches, such as an Enthalpy Gradient Descent baseline, both at the field and summary-statistic level. The approach is furthermore highly data efficient, with a single reference simulation of cosmological structure formation being sufficient to constrain the neural pressure model. This opens the door for future applications where the model is fit directly to observational data, rather than a training set of simulations.
