Closed EiffL closed 4 months ago
Welllllll.... I've had to do some more refining and additional experiments.... and it works much better than I expected....
A single set of parameters, trained on CAMELS i.e. 25 Mpc/h boxes which I downsampled to 64**3 particles, seems to work on different resolutions, and even different cosmological parameters:
Some results of the implementation of SpectralConv3d in JAX from https://arxiv.org/abs/2010.08895.
Hello hello @FloList @ohahn :-) I wanted to share some results of experimentation I made after our discussions last week, I got some pretty interesting results out of the naive thing I wanted to do. Happy to have your thoughts on this, I'm thinking this might already be close to enough for a little paper.
I have been playing around with the following ideas:
And so the whole thing becomes very close to a neural ODE with minimal parameterisation.
Here is the pseudo-code:
I've tried this out by taking CAMELS IlustrisTNG-DM simulation volumes and using as a loss function the distance between particle positions at each snaphost step. Full notebook here
It's learning some interesting looking filter (seen here at different scale factors): which essentially scale as "a" but which also move in k a little bit also as a function of a. Here I've parameterised this correction kernel by a b-spline, with a neural network predicting the knots position and value of the spline as a function of a.
And it seems to be doing a good job at least at recovering the correct power spectrum, on a different initial seed and different set of cosmological parameters: Blue is IllustrisTNG-DM, yellow is without correction, dashed green is with correction.
What is interesting, is that it seems to work ok if I only try to fit the positions, but not as well if I try to fit both position and velocity at the same time. Which I think indicates it's not just refining the estimate of the grav forces but also modifying the dynamics of the simulation, and that just a filter on the potential might not be enough to recover the correct positions and velocities, probably another degree of freedom is needed for that.