# Watch a four-neuron brain teach itself to love the light

Original title: A visual explanation of reinforcement learning

> Hacker News story 50496885 · language: en · submitted 2026-11-14
> Web version: https://zeli.app/story/50496885
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 160 · by [aatish](<https://news.ycombinator.com/user?id=aatish>) · 💬 9
[original](<https://aatishb.com/myriad/how-brains-learn/>) · [HN discussion](<https://news.ycombinator.com/item?id=50496885>)

## Summary

Aatish Bhatia and neuroscientist Arkarup Banerjee build a simple digital creature called a spark with just four neurons and three adjustable parameters, then let it learn by trial and error. Through thousands of attempts, guided only by reward and punishment, the spark goes from spinning in place to expertly tracking light. The piece visualizes learning as a path through the space of possible brains, and shows how the same algorithm can produce fleeing, freezing, or fighting depending on the reward.

## Key quote

> Learning is how you navigate this vast internal space. And feedback is the compass that points the way.

## HN discussion (9 comments)

### [jspaw](<https://news.ycombinator.com/item?id=50498771>)

> It seems as if you’re using an analogy to how human brains learn, but aren’t being explicit that it’s only an analogy. Or are you asserting that this describes how human brains learn?

### [dejongh](<https://news.ycombinator.com/item?id=50499591>)

> Thanks for sharing. I am not concerned about the brain analogy - it is a good explanation of the algorithm.

### [bobosha](<https://news.ycombinator.com/item?id=50499639>)

> Love it! It's a very helpful and clear visualization. Thanks very much for putting this together.

---

## Cite

- Page: https://zeli.app/story/50496885
- Date: 2026-11-14
- Source: aatishb.com (https://aatishb.com/myriad/how-brains-learn/)
- Hacker News: https://news.ycombinator.com/item?id=50496885

## Other languages

- zh: https://zeli.app/zh/story/50496885 · markdown: https://zeli.app/zh/story/50496885.md
- ja: https://zeli.app/ja/story/50496885 · markdown: https://zeli.app/ja/story/50496885.md
- ko: https://zeli.app/ko/story/50496885 · markdown: https://zeli.app/ko/story/50496885.md
- de: https://zeli.app/de/story/50496885 · markdown: https://zeli.app/de/story/50496885.md
- es: https://zeli.app/es/story/50496885 · markdown: https://zeli.app/es/story/50496885.md
- ru: https://zeli.app/ru/story/50496885 · markdown: https://zeli.app/ru/story/50496885.md
