astronomy/ai produced the result/The Open Journal of Astrophysics 2023 · v2
Neural networks estimate dark matter halo masses from a galaxy's neighbours
Researchers trained neural networks on simulated universes to work out how massive a galaxy's halo of dark matter is, using only its own mass and the positions of nearby galaxies. The networks produced the predictions the study's conclusions rest on.
spectrum · one line per step, placed by what the step does · bright lines used AI
Halo Properties from Observable Measures of Environment: I. Halo and Subhalo Masses
The Open Journal of Astrophysics, 2023
doi:10.21105/astro.2307.07549 · record aix-00095 v2 · checked 2026-10-08
- AI was for
- Property prediction
- Model family
- Multilayer perceptron
- Checked by
- Held-out695554 tested
- Code
- available
The finding the paper is about came from the AI.
What this research was about
Most of the matter in a galaxy is invisible. Each galaxy sits inside a much larger clump of dark matter, called a halo, which cannot be seen directly but can be weighed in computer simulations of the growing universe. For real observations, astronomers have to infer a halo's mass from what they can actually measure: the galaxy's light, which gives its stellar mass, and where its neighbours lie on the sky. The usual shortcut is an average relation between stellar mass and halo mass, but it is only an average, and galaxies of the same brightness can live in very different surroundings.
The researchers set out to test how much of a halo's mass is written into a galaxy's environment. They used two dark matter simulations, filled the halos with galaxies using an existing model of galaxy formation, and then described each galaxy's surroundings in two standard ways: the projected distances to its fifty nearest neighbours, and counts of neighbours inside cylinders of fixed radius on the sky. The task was to recover the peak mass of the host halo from that information alone.
Where AI came in
Three fully-connected neural networks, each with four hidden layers, were built and trained from scratch. One took the nearest-neighbour measurements, one the cylinder counts, and one both together. Training was supervised, meaning each network saw the simulated environment of a galaxy alongside the true halo mass recorded in the simulation, and adjusted itself until its guesses came close. The networks learned on one simulation box and were then applied to a second box they had never seen. The best network's predictions were off by 0.20 dex overall, a measure of scatter in the logarithm of mass, and 0.17 dex for central galaxies.
The networks stood in for the statistical relation astronomers would otherwise fit by hand between observable quantities and halo mass, and their output was compared against that simpler approach. They were also used as a probe. By blanking out parts of the input and retraining, the researchers could see which scales mattered: beyond the galaxy's own stellar mass, the useful information sat within roughly the innermost megaparsec around the halo centre, and the two ways of describing the environment performed about equally well.
Written by AIxSci from the checked record below, to give context for readers outside the field. It is not part of the record.
The work
Technical · from the record
Fully-connected neural networks were trained on simulated galaxy catalogues to predict the peak mass of a galaxy's host dark matter halo from observationally accessible information: the galaxy's own stellar mass plus two standard environment measures, projected distances to its fifty nearest neighbours and counts of neighbours in fixed cylindrical apertures. Networks were trained on the SMDPL simulation box and tested on the separate Bolshoi-Planck box, with a baseline built by interpolating the average stellar mass - halo mass relation. The best-performing network had an overall root-mean-squared error of 0.20 dex, and 0.17 dex when applied to only the central halos in the test data. Retraining with inputs masked indicated that, beyond the galaxy's stellar mass, the halo mass information was concentrated in the innermost region (about 1 Mpc) around the halo centre, and the nearest-neighbour and cylinder-count networks gave similar errors.
How AI was used
Dark matter halos from the SMDPL and Bolshoi-Planck simulations were populated with galaxies using the UniverseMachine empirical model, and galaxies with stellar mass above 10^9 M_sun were selected. For each galaxy, feature vectors were built from the projected distances and number-density-rescaled stellar masses of its fifty nearest neighbours within a 1000 km/s redshift offset, and from counts of neighbours in cylinders of radius 0.5, 1, 2 and 5 h^-1 Mpc binned by redshift separation in 250 km/s intervals up to 2000 km/s; the target galaxy's own stellar mass, converted to a cumulative number density, was appended as an input. Features and labels were individually standardised, with log scaling for masses, and a weighting scheme derived from the binned halo mass function was tested alongside unweighted training. Three fully-connected regression networks, taking kNN inputs (length 101), cylinder counts (length 33), or both (length 134), were trained with supervised learning in Keras with a TensorFlow backend to predict peak halo mass, using a mean absolute error loss, ReLU activations, Adam, an initial learning rate of 0.001, batch size 128, and up to 50 epochs with early stopping after a patience of 10 and a ten-epoch warm-up. Depth, layer-narrowing factor, an optional skip connection from the stellar mass input, activation, optimiser, learning rate and batch size were compared on the SMDPL validation split, which was 30% of the box volume, with 70% used for training. Trained networks were then run over the Bolshoi-Planck box, which was never seen during training, and compared with interpolation of the average SMDPL stellar mass - halo mass relation. To attribute the information used, networks were retrained with the same structure and hyperparameters after masking neighbours beyond a given k, the larger cylinder radii, or the larger redshift bins, and separate networks were trained and tested on central halos only.
The shape of the work
Structural · the record, drawn
no AI
Assemble simulated halo and galaxy catalogues
Obtaining raw data, whether by measurement, download or retrieval.
The neural network was trained on z=0 halo properties extracted from the SMDPL simulationwhere the paper describes this · verbatim
no AI
Encode environment as neighbour distances, cylinder counts and number densities
Encoding data into features, descriptors, embeddings or graphs.
This information was given to the neural network as a vector of stellar masses and projected separations from the target.where the paper describes this · verbatim
no AI
Standardise features and weight by halo mass
Cleaning, filtering, normalising or labelling data already obtained.
Each property was individually standardized to have a mean of zero and a standard deviation of one.where the paper describes this · verbatim
AI
Train fully-connected networks to predict peak halo mass
Fitting model parameters, including fine-tuning an existing model. The AI stood in for statistical model.
The networks were trained to minimize the loss of predicted halo masses.where the paper describes this · verbatim
AI
Search architectures and hyperparameters on validation loss
Iterative search over a space. Its result feeds back into an earlier step.
We ran a search comparing model performances with different sets of architectures and hyperparameters.where the paper describes this · verbatim
AI
Predict halo masses for the held-out simulation box
Running a trained model over new data to predict, classify or score. The AI stood in for statistical model.
we compare the performance of the nearest neighbors, cylinder counts, and combined models when applied to the Bolshoi-Planck test datawhere the paper describes this · verbatim
no AI
Evaluate errors against true simulation masses and the SHMR baseline
Testing outputs against ground truth.
the loss values shown represent the root mean squared error (RMSE) in the predicted halo mass compared to the true valueswhere the paper describes this · verbatim
AI
Retrain with inputs masked to locate the informative features
Extracting understanding from model behaviour. Its result feeds back into an earlier step.
we performed a process where information about neighbors beyond a given value of k was maskedwhere the paper describes this · verbatim
What the record says
Technical · every part carries its own basis
+ in the paper~ our reading− not reported
How to read the quotations. A quotation shows where the paper describes something. It does not quote every value beside it: one passage locates a part of the work, and values without their own quotation are our reading of that passage.
The paper's results are the halo-mass predictions of the trained neural networks and the information-content conclusions drawn from masking their inputs; without the networks there is no result.
We used supervised learning to train the networkwhere the paper describes this · verbatim
The objects in the Bolshoi-Planck box make up the test data set.where the paper describes this · verbatim
Trained models, as well as the codes used to create them, are available online atwhere the paper describes this · verbatim
What this paper did not report
Technical · absence is published deliberately
- Version of Nearest-neighbours (kNN) networkWhich version of the model was used is not stated.
- Version of Counts-in-cylinders networkWhich version of the model was used is not stated.
- Version of Combination network (kNN plus cylinder counts inputs)Which version of the model was used is not stated.
- Version of SHMR interpolation baseline (average stellar mass - halo mass relation from SMDPL)Which version of the model was used is not stated.
- Version of UniverseMachineWhich version of the model was used is not stated.
- What step 5 replacedThe paper gives no basis for what the AI stood in for.
- What step 8 replacedThe paper gives no basis for what the AI stood in for.
About this article
Record aix-00095, version 2, checked by a person on 2026-10-08. The record describes the paper; it does not assess whether the paper's findings are right. The paper is published under CC-BY; quotations are at most 25 words. How we work · Report an error