# Neural Networks Optimized by Genetic Algorithms in Cosmology

arXiv: https://arxiv.org/abs/2209.02685 · HTML: https://mlsanity.com/paper/2209.02685/

## Key facts

- Cited by 4 papers in the map (data through 14 Oct 2026).
- Builds on 7 of its 78 references that are in the map.
- First posted on arXiv 6 Sep 2022.

## Builds on (most cited first, 7 of 7)

- [Adam: A Method for Stochastic Optimization](https://mlsanity.com/paper/1412.6980/) (2014)
- [ParamILS: An Automatic Algorithm Configuration Framework](https://mlsanity.com/paper/1401.3492/) (2014)
- [DeepSphere: Efficient spherical Convolutional Neural Network with HEALPix sampling for cosmological applications](https://mlsanity.com/paper/1810.12186/) (2018)
- [Deep Neural Network Hyperparameter Optimization with Orthogonal Array Tuning](https://mlsanity.com/paper/1907.13359/) (2019)
- [Searching the Landscape of Flux Vacua with Genetic Algorithms](https://mlsanity.com/paper/1907.10072/) (2019)
- [Accelerating MCMC algorithms through Bayesian Deep Networks](https://mlsanity.com/paper/2011.14276/) (2020)
- [Machine Learning and the future of Supernova Cosmology](https://mlsanity.com/paper/1908.02315/) (2019)

## Built on by (most cited first, 4 of 4)

- [Open Source Planning & Control System with Language Agents for Autonomous Scientific Discovery](https://mlsanity.com/paper/2507.07257/) (2025)
- [Deep Learning and genetic algorithms for cosmological Bayesian inference speed-up](https://mlsanity.com/paper/2405.03293/) (2024)
- [Model-independent cosmological inference post DESI DR1 BAO measurements](https://mlsanity.com/paper/2405.19178/) (2024)
- [Dark energy reconstruction analysis with artificial neural networks: Application on simulated Supernova Ia data from Rubin Observatory](https://mlsanity.com/paper/2402.18124/) (2024)

## Abstract (arXiv)

The applications of artificial neural networks in the cosmological field have shone successfully during the past decade, this is due to their great ability of modeling large amounts of datasets and complex nonlinear functions. However, in some cases, their use still remains controversial because their ease of producing inaccurate results when the hyperparameters are not carefully selected. In this paper, to find the optimal combination of hyperparameters to artificial neural networks, we propose to take advantage of the genetic algorithms. As a proof of the concept, we analyze three different cosmological cases to test the performance of the architectures achieved with the genetic algorithms and compare them with the standard process, consisting of a grid with all possible configurations. First, we carry out a model-independent reconstruction of the distance modulus using a type Ia supernovae compilation. Second, the neural networks learn to infer the equation of state for the quintessence model, and finally with the data from a combined redshift catalog the neural networks predict the photometric redshift given six photometric bands (urgizy). We found that the genetic algorithms improve considerably the generation of the neural network architectures, which can ensure more confidence in their physical results because of the better performance in the metrics with respect to the grid method.
