What this is about
A brain that cannot learn is a fixed machine. Real brains change as they live. Links between cells get stronger or weaker, depending on what happened. In our simulations we let a small part of the brain change in this way, and we watch whether the animal or character gets better.
This article shows two examples, one from a fly brain model and one from a game character, and one shared lesson: learning helps most when the world changes, and it needs a signal it can use.
Why it matters
A script or a frozen brain does the same thing every time. That is fine while the world stays the same. When something changes, a fixed brain keeps doing the old thing. A brain that learns can adjust.
But learning has costs. It adds noise, it can fix the wrong thing, and it needs feedback. Knowing when learning helps and when it hurts is the point of the exercise.
How learning works in a model
In plain words, the idea has three parts.
- Something is active. A smell arrives, or a character does something.
- Something is rewarded or punished. Food shows up, or a threat hurts.
- The links that were active change. A few of them get a bit stronger or weaker, so the next time, the brain responds differently.
In our fly model, only one set of links is allowed to change. These sit between the cells that code for smell, the Kenyon cells, and about 60 output cells that vote. Some vote "go toward this" and some vote "get away from this". Dopamine cells act as the teacher. When food arrives, the teacher turns down the "get away" vote for the smell that was active a moment ago. When a shock arrives, it turns down the "go toward" vote instead. Every other wire stays exactly as the map says.
In our game character, the brain has a frozen base shared by everyone, and a small owned layer of 216 weights that one character can change during its life. When it dies, those weights are lost.
Example one: the fly learns, then the walker catches up
Our first pain loop looked like a failure. The trap smell's score inside the brain fell from plus 0.77 to plus 0.08, which means the brain had learned. The fly kept walking into the trap anyway, with behavior no better than an untrained twin's (p = 0.80). The brain had learned, and the walker, the part that turns brain output into steps, could not use it.
Getting there took a run of fixes.
- Every smell made the same pattern. On the authors' brain, about 3,400 of the 5,177 Kenyon cells fired for every smell, so the overlap between two smells was 0.98. Reward one smell and you turn down the other's votes too. We found the flood upstream, in the first relay after the nose, and multiplied the strength of its local inhibitory links by 12. Activity fell to 6.2 percent and the overlap fell to 0.19. We applied that change to every brain we compared.
- Reward found the right smell only one time in three. The rule worked where the smell drove the memory area hard, and failed where it barely did.
- The vote counter was wrong. Total output failed. A sourced rule, from work by Aso and colleagues in 2014, gave each smell one score from minus 1 (avoid) to plus 1 (approach). With that, reward lifted the rewarded smell above its partner in 6 of 6 tests and flipped the preference in 3.
- Credit went to the wrong smell. One pain loop passed at p = 0.000000011, and it was a bug: credit for every punishment went to the wrong smell, which happened to be the trap. We asked what the "last sniff" actually was.
After the fixes, food learning passed at p = 0.0049 and pain learning at 31 of 32 pairs. The full account is in The brain learned first; the fly improved only when its walker could use it.
Example two: the character, before and after a change
Each life lasts 2000 ticks. In a stable world, learning did not help. Our best learning arm scored 0.521 against 0.531 for the instinct alone. The gap was minus 0.010, with a standard error of 0.004, so learning cost about two standard errors. In a world that does not change, the changes the character made mostly added noise to a good instinct.
Then we made the world change. At tick 1000, one habit started to hurt. The characters' favorite habit was talking, and from that tick on, talking raised the safety need and gave no relief. We scored only the second half of each life, so the change had time to show.
- The scripted characters fell from 0.623 to 0.051.
- The frozen instinct fell from 0.521 to 0.211.
- The learners fell too, but they recovered about 0.10 more than the instinct did.
That is the first clean result where learning inside a life did something that a script and a frozen instinct could not. It is described in In-life learning wins back about 0.10, but only after a shift.
What the two examples share
- Learning needs a signal it can use. In the fly, the signal had to go to the right smell. In the game, a threatened character first got no reward at all, so there was nothing to learn from. We told that in How a game character learns to say no.
- Learning pays when the world changes. In a calm world it costs a little. After a shift, it earns more than it costs.
- A sham control is essential. In the fly, we trained cells that were active for neither smell, to prove that the drop was learning and not the network shaking.
- A brain can learn before behavior changes. The fly's inner score moved long before its walk did.
What we do not claim
We did not show that a real fly learns this way. We showed that a model with these rules does. We also did not show that a learning network belongs in the game. The game runs a small bandit today, because the network did not earn its place on measured costs.
Glossary
- Plasticity: the ability of links between cells to change with experience.
- Kenyon cell: a cell in the fly's memory area that responds to a mix of smells.
- Dopamine neuron: a cell that carries a teaching signal.
- Owned layer: the small part of a character's brain that only it can change.
- Sham control: a test that trains something irrelevant, to show that a result is not just noise.
- Standard error: how much a score would wobble if you reran the test with new random starts.
Try it
- Look at the learning checks in the fly-connectome repository. Its README is open about which learning gates still fail on their real bars.
- Visit aiazic.com and meet the robot guide. It steers with path-finding rules, not a learned brain, so it is a reminder of what a fixed character is like to meet.
- Exercise: think of something you learned this year. What was the signal that told you it worked? A learner with no such signal could not have learned it either.
Previous in the series: Why we test a real brain map against a scrambled one. Next: Simulating a spider: when the CPU beats the GPU.

Comments
No comments yet.
Log in to comment.