Goals and control  ·  Article

Gradient descent and random search as baselines for gene-network behaviour optimisation

Gradient descent and random search are two ways to tune a system toward a goal. Gradient descent follows the slope of a loss or free energy. Random search samples without using slope. They appear as theory in free-energy work, as a floor for evolutionary search, and as baselines in a gene-circuit oscillator task148.

Earliest held
2006, Perkins TJ, Jaeger J, Reinitz…
Most discussed in
AI-driven automated discovery tools reveal…, 2025
In the library
47 passages in 19 works
Rewritten
2026-11-01
01

Gradient descent in theory

Friston, Daunizeau and Kiebel (2009) noted that minimising free energy could use a stochastic search, sampling the sensorium randomly for a percept with low free energy. They chose to focus on gradient descent1. Friston and Ao (2012) assumed that minimising free energy over action and internal states conforms to a generalised gradient descent2. Calvo and Friston (2017) described the minimisation of surprise in dynamical systems as, at its simplest, a gradient descent. They applied the idea to plants3. Here the descent is a model of how a system behaves, not a method used to design one.

02

Random search as a floor

Kriegman, Cheney and Bongard (2018) described the Hinton and Nowlan model, in which a bitstring has value only when it matches a target exactly. The search space has a single spike of high fitness with no slope, and evolution there is no better than random search4. In their own robot experiments, the highest mutation rate made optimisation of the non-developmental morphologies reduce to random search. The two best treatments had development, and their robots were significantly faster than those from random search5.

03

Cost of blind design

Blackiston, Kriegman, Bongard and Levin (2023) reviewed xenobot design by simulation. Searching in simulation filtered out billions of bad designs before any were built. This greatly improved efficiency in the wetlab and reduced biowaste. They also said the process is energy-intensive and that its carbon footprint grows with simulation time. They called this arguably the most pressing ethical concern of xenobot research. They proposed encoding the design space so that gradients can be followed instead of meandering through random variants. They suggested that, if successful, this could cut processing time by several orders of magnitude6.

04

Gene-circuit oscillator comparison

Etcheverry, Moulin-Frier, Oudeyer and Levin (2025) took up an oscillator engineering task from Hiscock (2019). Parameters of a gene circuit model are tuned to give oscillation with a target amplitude, frequency and offset. They compared random search, gradient descent, an evolutionary algorithm and their curiosity search, each with a budget of N=50007. The gradient descent baseline used a mean square error loss between the phenotype node activation and a cosine target. It used the Adam optimizer from a random starting parameter, with the same number of model rollouts as the other methods8.

SourcesEach quotation was checked word for word against the passage it opens.
  1. However, the minimisation in Equation 6 could use a stochastic search; sampling the sensorium randomly for a percept with low free-energy.Friston KJ, Daunizeau J, Kiebel SJ, 2009 · Reinforcement learning or active inference? · open at passage 17
  2. we will assume that the minimisation of free energy with respect to action and internal states (11) conforms to a generalised gradient descent,Friston K, Ao P, 2012 · Free energy, value, and attractors · open at passage 37
  3. At its simplest, the minimization of surprise can be regarded (in dynamical systems) as a gradient descent.Calvo P, Friston K, 2017 · Predicting green: really radical (plant) predictive processing · open at passage 9
  4. The search space therefore has a single spike of high fitness with no slope leading to the summit. In such a space, evolution is no better than random search.Kriegman S, Cheney N, Bongard J, 2018 · How morphological development can guide evolution · open at passage 3
  5. At the highest mutation rate, optimizing Evo morphologies reduces to random search, and this is the only mutation rate where Evo does not require significantly more generations than Evo-Devo to find the faster design.Kriegman S, Cheney N, Bongard J, 2018 · How morphological development can guide evolution · open at passage 30
  6. this move from trial-and-error to gradient descent could reduce processing time, and thus carbon footprint, by several orders of magnitude.Blackiston D, Kriegman S, Bongard J, Levin M, 2023 · Biological Robots: Perspectives on an Emerging Interdisciplinary Field · open at passage 28
  7. We then compare several exploration strategies: a random search, two optimization-driven strategies, one using gradient descent as proposed in Hiscock, 2019 and one using an evolutionary algorithmEtcheverry M, Moulin-Frier C, Oudeyer PY, Levin M, 2025 · AI-driven automated discovery tools reveal diverse behavioral competencies of… · open at passage 46
  8. We define a loss function which, for a set of parameters i=W,B,y0, measures the mean square error between the phenotype node activation levels y and the target oscillationEtcheverry M, Moulin-Frier C, Oudeyer PY, Levin M, 2025 · AI-driven automated discovery tools reveal diverse behavioral competencies of… · open at passage 88
Linked ideas
Gradient descent on free energy is the form this framework gives to the minimisation of surprise, as in Friston and Ao and Calvo and Friston.
The evolutionary algorithm is one of the compared strategies in the oscillator task, alongside gradient descent and random search.
Curiosity search is the diversity-driven strategy set against optimisation-driven baselines under the same budget.
Xenobot design by simulation motivates the call to replace random variant search with gradient following.
Gene circuit models are the systems whose parameters are tuned in the oscillator comparison.
Trial and errorrelated to
Blackiston and colleagues describe the move from trial-and-error to gradient descent as a way to cut computing cost.
Blackiston proposes moving xenobot morphology search from random variants to gradient descent; Etcheverry notes evolutionary and gradient methods for tuning biomolecular networks. Both treat gradient versus random search as optimisation strategies.
Where it is discussedPassages matching gradient descent, Adam optimizer, loss function target oscillation, random search
2025AI-driven automated discovery tools reveal diverse behavioral competencies of… · Etcheverry M, Moulin-Frier C, Oudeyer…19
2022Active inference, morphogenesis, and computational psychiatry · Pio-Lopez L, Kuchling F, Tung A…5
2020On Markov blankets and hierarchical self-organisation · Palacios ER, Razi A, Parr T, Kirchhoff…3
2009Reinforcement learning or active inference? · Friston KJ, Daunizeau J, Kiebel SJ3
2018How morphological development can guide evolution · Kriegman S, Cheney N, Bongard J2
2012Free energy, value, and attractors · Friston K, Ao P2
2016Towards a Neuronal Gauge Theory · Sengupta B, Tozzi A, Cooray GK, Douglas…1
2019Variational ecology and the physics of sentient systems · Ramstead MJD, Constant A, Badcock PB…1
2006Reverse engineering the gap gene network of Drosophila melanogaster · Perkins TJ, Jaeger J, Reinitz J, Glass L1
2019Modeling somatic computation with non-neural bioelectric networks · Manicka S, Levin M1