Alexey Meshkov

When does evolution pay for a bigger brain

I built a small 2D world in which every neuron costs energy, and watched what evolution does to brain size when the climate is shaken. The answer was more modest than expected — and more useful.

This is a toy model, not a study: the conclusions apply to the model, not to living nature. October 2026.

The prototype tests one hypothesis from the essay “Why nature needs a brain, and what that can teach AI”: a brain pays off where the world changes faster than evolution can keep up.

A 56×56 grid with wrapped edges (a torus). Olive — plants, ochre squares — herbivores, carmine — predators.

How the world works

  • Plants have no brain. Four genes: growth rate, size, toxicity, seed range. Only mutation and selection.
  • Herbivores have a tiny neural network. They sense food, predators, kin nearby and their own energy, and decide where to move, whether to eat and whether to reproduce.
  • Predators work the same way, but eat herbivores.

The key rule: every hidden neuron costs energy on every step. Brain size (0 to 16 neurons) is inherited with mutations, together with the weights. Evolution chooses for itself which brain it can afford.

Climate. Fertility is spread across the map as forests, steppes and deserts. A volatility knob sets how fast these zones move: at 0 the map is static, at 1 the pattern rearranges roughly within one herbivore’s lifetime.

One run is 10,000 steps: 400–500 generations for herbivores, about 100 for predators.

The world is alive

All three levels coexist for the full 10,000 steps. Predators and herbivores oscillate but do not go extinct. The balance is fragile, though: it had to be tuned by hand, and with neighbouring settings predators died out in 25–40% of runs.

Population of plants, herbivores and predators over 10,000 steps of the baseline run

Main result: climate does not affect the brain

Six volatility values, 10 runs each. I expected “the less stable the world, the bigger the brain”. I did not see it.

Climate volatility00.10.250.50.751
Herbivore brain, neurons2.852.662.172.592.872.70
Predator brain1.401.391.081.421.211.43
Herbivore skill0.620.570.560.580.650.61

The differences between columns are noise: the standard error is 0.15–0.3 neurons. Herbivores grew slightly from the initial two neurons and learned to move toward food. Predators shrank their brains: prey is plentiful and random wandering is enough.

The likely reason: animals sense food here and now. Wherever the forests move, a “go to food” network works just as well. Volatility would put pressure on the brain only if success required remembering or predicting. The model has no memory and no learning.

Brain size and skill of herbivores and predators at six levels of climate volatility

Replaying the tape: 24 identical runs

The final mean herbivore brain is 2.56 neurons, ranging from 1.6 to 3.8. In no run did the mean brain reach four. Individuals with six or more neurons appeared in 8 of 24 runs, but made up half a percent of the population. The brain never “exploded”.

Brain size trajectories in 24 runs with identical parameters

The only knob that works: neuron cost

Neuron cost per step00.0010.0020.0040.008
Herbivore brain5.33.62.72.00.4
Predator brain3.62.30.90.50.3

The more expensive the brain, the smaller it gets. Even a free brain does not inflate to the maximum: five neurons out of sixteen. More is simply not needed for “go to food”.

Brain size at five levels of neuron cost

The trackers’ invasion

I hand-built a three-neuron “tracker” that moves to where there is more food, and seeded 10% of them into a population of brainless wanderers. At a reasonable neuron cost, trackers fully displace the wanderers within 300–500 steps under any climate. Only with a very expensive brain does the takeover stall at 55–70%.

Bottom line: a 2–3 neuron brain pays off almost always, and more is not needed. That is where evolution stops.

Share of trackers in the population after the invasion at different neuron costs

What surprised me

  • At first the brain lost. In early versions the brainless wanderers consistently produced larger populations. The causes were small details of the world: random networks broke basic “eating”, and a herd of skilled trackers grazed plants down to the root and died out.
  • Smarter is not necessarily more successful as a species. Trackers win head-to-head, but their total population is lower: they overgraze. What is good for the individual is not what is good for the population.
  • Predators do not need a brain — under these conditions: they are cheap and prey is plentiful.
  • Evolution quickly finds a simple brain and stops at two or three neurons: exactly enough to compare food left and right, up and down.
Number of plant, herbivore and predator species at the start and end of runs
Diversity does not collapse: plants lose some strategies (8 → 5), animals do not. The metric is crude; some animal “species” are neutral noise.

Limitations. The main result is negative: there is no “unstable climate → bigger brain” link in this model, which does not prove there is none in nature. Parameters were tuned by hand. Everyone starts with two neurons, and the outcome partly remembers the start. The world is small, there is one task, no memory and no learning. No statistical tests were run: treat differences under 0.4 neurons as zero.

What’s next

  1. Lifetime learning: weights updated from an energy signal. The most likely place where climate starts to affect the brain.
  2. Memory: a recurrent layer or an “energy on the previous step” input.
  3. A 2D map of neuron cost × climate volatility.
  4. Starts from 0 and 8 neurons, runs longer than 10,000 steps.
  5. A wider, more complex world with longer-range senses.

Follow-ups: iteration 2 — when evolution pays for learning (items 1 and 2 of this list) and checking the model against the real lynx–hare cycle.

Updates to the experiment will appear here. To discuss, message me on Telegram.