Accelerated Forward Models of the Universe
Going beyond the Training Set
[Video Credit: N-body simulation Francisco Villaescusa-Navarro]
Carolina Cuesta-Lazaro
Flatiron Institute
NYU

Forward Model
Evaluations

DESI


Forward Modeling All The Way To Baryons

Adapted from arXiv:1804.03097
Symmetries
Connected to Underlying Physics
Hydro sims
Nbody + Empirical
Halo Occupation Distribution (HOD)
EFT bias expansion
Matter Density
Galaxy Distribution
Carolina Cuesta-Lazaro @ Learning the Universe 2026
Carolina Cuesta-Lazaro @ Learning the Universe 2026


[Video credit: Francisco Villaescusa-Navarro]
Gas density
Gas temperature
Subgrid model 1
Subgrid model 2
Subgrid model 3
Subgrid model 4
Carolina Cuesta-Lazaro @ Learning the Universe 2026
Accelerated Forward Models that can beyond their training set?
- Interpolate across parameter space
Carolina Cuesta-Lazaro @ Learning the Universe 2026

Generate New Samples
Field Level Likelihood!
Simulated
Emulated
["Diffusion-HMC: Parameter Inference with Diffusion Model driven Hamiltonian Monte Carlo" Mudur, Cuesta-Lazaro and Finkbeiner NeurIPs 2023 ML for the physical sciences, arXiv:2405.05255]
Initial Conditions
Simulator
Simulator

GANS

Deep Belief Networks
2006

VAEs

Normalising Flows

BigGAN

Diffusion Models

2014
2017
2019
2022
A folk music band of anthropomorphic autumn leaves playing bluegrass instruments
Contrastive Learning
2023
Meanwhile, on Earth...
2026
"Write a C compiler"
AGI?
Carolina Cuesta-Lazaro @ Learning the Universe 2026
Carolina Cuesta-Lazaro @ Learning the Universe 2026


Goal: Estimate unknown p(x1) from samples
Base
Target
Transport Map


Carolina Cuesta-Lazaro @ Learning the Universe 2026
Carolina Cuesta-Lazaro @ Learning the Universe 2026

Autoregressive in Frequency
Accelerated Forward Models that can beyond their training set?
- Interpolate across parameter space
Carolina Cuesta-Lazaro @ Learning the Universe 2026

1) Train a local mapping on small volume simulations

ICs Matched Cheap Gravity solver
PARTICLE MESH
GALAXIES/GAS

2) Run inference over larger volumes
Carolina Cuesta-Lazaro @ Learning the Universe 2026
Yao Zhang

GOTHAM: From Approximate Matter to Dark Matter Haloes

Shivam Pandey

["Teaching Dark Matter simulations to speak the halo language" Pandey, Lanusse, Modi, Wandelt arXiv:2409.11401]

Carolina Cuesta-Lazaro @ Learning the Universe 2026
Yao Zhang

Shivam Pandey


Carolina Cuesta-Lazaro @ Learning the Universe 2026

Carolina Cuesta-Lazaro @ Learning the Universe 2026
5000 CPU hours
~5 mins 1 GPU
150k CPU hours
~15 GPU hours
~1 hour on 16 GPUs
Forward Modeling All The Way To Baryons

Adapted from arXiv:1804.03097
Symmetries
Connected to Underlying Physics
Hydro sims
Nbody + Empirical
Halo Occupation Distribution (HOD)
EFT bias expansion
Matter Density
Galaxy Distribution
Carolina Cuesta-Lazaro @ Learning the Universe 2026

Amanda Lue
Carolina Cuesta-Lazaro @ Learning the Universe 2026
Diffusion Models for Galaxies


Galaxies
N-body
N-body
Galaxies



Amanda Lue
Supernovae Feedback
N-body
Galaxies
Carolina Cuesta-Lazaro @ Learning the Universe 2026
Diffusion Models for Galaxies
Carolina Cuesta-Lazaro @ Learning the Universe 2026
Testing the models at the Field Level

4 TNG parameters

28 TNG parameters

35 TNG parameters
Joint constraints on Galaxies may be a must
Carolina Cuesta-Lazaro @ Learning the Universe 2026

Max Lee
BIND

["BIND (Baryonic INpainting with Deep learning): A Field-level Emulator for Galaxy Groups and Clusters" Lee, Genel, Haiman, Bryan, Lovell, Hadzhiyska
arxiv:2609.10709v1]


Max Lee
Carolina Cuesta-Lazaro @ Learning the Universe 2026

Carolina Cuesta-Lazaro @ Learning the Universe 2026

Max Lee
Fully Self Consistent Samples!
(Jointly constraining Galaxies and Baryons)
Carolina Cuesta-Lazaro @ Learning the Universe 2026

Niall Jeffrey
Alternative: Macrocanonical Generators
Summary Statistic (spatially averaged)
Wavelets


["Macrocanonical Generator Networks: a data-scarce solution for cosmology AI surrogate simulations"
Jeffrey, Wandelt (in prep)]Carolina Cuesta-Lazaro @ Learning the Universe 2026
Nicolas Chartier

Correcting clustering with displacement potentials

["Point set clustering correction with a displacement potential"
Chartier, Bairagi, Bartlett, Ho, Wandelt (in prep)]Before Correction
After Correction


Accelerated Forward Models that can beyond their training set?
- Interpolate across parameter space
Carolina Cuesta-Lazaro @ Learning the Universe 2026
- Scale up in volume
- Interpolating across subgrid implementations

Can we learn a general and continuous representation of Baryonic feedback?

Gas
Galaxies




Dark Matter
Baryonic fields
Marginalize over a broader set of subgrid physics
Interpolate between simulators
Mingshau Liu
(Ming)

Constrain z via multi-wavelength observations
["Continuous Representations of Baryonic Feedback for Robust Inference from Multiple Simulation Suites"
Liu, Cuesta-Lazaro
NeurIPs ML4PS 2025]Carolina Cuesta-Lazaro @ Learning the Universe 2026

Trained on:
TNG, SIMBA, Astrid, EAGLE
Encoder



1) Encoder

Gas
Galaxies




Dark Matter
Baryonic fields
2) Probabilistic Decoder
Carolina Cuesta-Lazaro @ Learning the Universe 2026



Dark Matter
Baryonic fields
(Test suite)
Carolina Cuesta-Lazaro @ Learning the Universe 2026

Gas Density
Temperature
Astrid
EAGLE
Interpolating over Simulations
Carolina Cuesta-Lazaro @ Learning the Universe 2026
Generalizing to unseen simulations: Magneticum



Carolina Cuesta-Lazaro @ Learning the Universe 2026
Accelerated Forward Models that can beyond their training set?
- Interpolate across parameter space
Carolina Cuesta-Lazaro @ Learning the Universe 2026
- Scale up in volume
- Interpolating across subgrid implementations
- Replacing add hoc subgrid models

Learned Subgrid Models
Carolina Cuesta-Lazaro @ Learning the Universe 2026
Leena Iwamoto

Olga Borodina

Black Hole powered jets regulate star formation
But jets interact with the turbulent interstellar medium!

Text

Carolina Cuesta-Lazaro @ Learning the Universe 2026
Leena Iwamoto

Olga Borodina

Carolina Cuesta-Lazaro @ Learning the Universe 2026
Leena Iwamoto

Olga Borodina


A Matryoshka of Scales
Carolina Cuesta-Lazaro @ Learning the Universe 2026



Fast emulation of haloes from Particle Mesh matter +
HOD Galaxies
Carolina Cuesta-Lazaro @ Learning the Universe 2026



Quijote
AbacusSummit
MilleniumTNG
L-Galaxies
Carolina Cuesta-Lazaro @ Learning the Universe 2026


The challenge of AFM in production: Shivam's pain

["Joint cosmological parameter inference and initial condition reconstruction with Stochastic Interpolants" Cuesta-Lazaro, Bayer, Albergo et al NeurIPs 2024 ML for the Physical Sciences]
Carolina Cuesta-Lazaro @ Learning the Universe 2026
Shortcut: Accelerated Backward Models

1) Likelihood not necessarily Gaussian
2) Forward model no need differentiable
3) Amortized
Marginalizing over ICs
Fixing ICs
HMC: Marginalizing over ICs
Carolina Cuesta-Lazaro @ Learning the Universe 2026

True
Reconstructed

Can We Avoid Simulating Large Volumes?
Carolina Cuesta-Lazaro @ Learning the Universe 2026



Chris Lovell
We know the Large Scale Behaviour
Large Scale Reconstruction

True

Reconstructed


["Reconstructing Cosmological Initial Conditions from Late-Time Structure with Convolutional Neural Networks"
Shallue, Eisenstein 2022]["Initial conditions from galaxies: machine-learning subgrid correction to standard reconstruction"
Parker, Bayer, Seljak 2025]Carolina Cuesta-Lazaro @ Learning the Universe 2026

PT


Power Spectrum
Cross Correlation

Peculiar Velocities
True
Reconstructed
Carolina Cuesta-Lazaro @ Learning the Universe 2026



Fast emulation of haloes from Particle Mesh matter +
HOD Galaxies
Fast emulation of Physical Models of Galaxies
Carol's wishlist for AFM next year (sign up after the talk)
- Interpolate across parameter space
Carolina Cuesta-Lazaro @ Learning the Universe 2026
- Scale up in volume
- Interpolating across subgrid implementations
- Replacing add hoc subgrid models
Models that don't need to be retrained for changes in the background cosmology (w0wa)
Models that take advantage of PT on large scales to only do inference on small scales
Forward models that connect to the physics of galaxy formation and incorporate additional observables to jointly constrain it
Machine learned subgrid models that run in Arepo


Carolina Cuesta-Lazaro @ Learning the Universe 2026


Shivam Pandey
CHARM: From Approximate Matter to Dark Matter Haloes

Particle Mesh for Gravity

Gas Properties
Density
Temperature
["BaryonBridge: Interpolants models for fast hydrodynamical simulations" Horowitz, Cuesta-Lazaro, Yehia ML4Astro workshop 2025]Probabilistic
Local
Carolina Cuesta-Lazaro @ Learning the Universe 2026


Simulated
Emulated
Lyman Alpha Flux

LyA Forest
AFM - LTU meeting - 2026
By carol cuesta
AFM - LTU meeting - 2026
- 19