Why brains use so little energy
The human brain runs on about 20 watts. Learn the main ideas that make brains so efficient: sparse spikes, events instead of clocks, and memory right next to computing.
In 60 seconds
Why brains use so little energy
The human brain runs on about 20 watts. Learn the main ideas that make brains so efficient: sparse spikes, events instead of clocks, and memory right next to computing.
# Commonly cited estimates (rough): about 86 billion neurons, about 20 watts.
neurons = 86e9
watts = 20
per_neuron = watts / neurons
print(f"Average power per neuron: about {per_neuron:.1e} watts")
print(f"That is about {per_neuron * 1e9:.2f} nanowatts")Idea 1: most neurons are quiet
Idea 2: work happens only when something changes
Idea 3: memory sits next to computing
| Idea | Typical computer running AI | Brain |
|---|---|---|
| Activity | Dense: every unit computes every time | Sparse: few neurons fire at once |
| Timing | Clock-driven: work on every tick | Event-driven: work when spikes arrive |
| Memory | Separate; data moves back and forth | Stored in synapses, right where it is used |
| Precision | Exact digital numbers | Noisy, but good enough, and robust |
- "The brain is just a slow computer"
- "Brains and chips can be compared watt for watt exactly"
- Brains and chips are built on very different principles, each good at different things
- Comparisons are rough; they show a big gap and point to ideas worth borrowing
Watch and read more
Lab
A toy count of operations for a dense network versus an event-driven spiking network, using made-up numbers, and the saving between them.
The problem
This runs in your browser. All numbers are made up to show the idea; they are not measurements of any real brain or chip.
- Run the starter. It makes a random spike record:
spikes[t, i]is 1 if neuronifired at stept. Each neuron sendsFANOUTconnections. - Set
dense_ops: in a dense network, every connection does one operation at every step. - Set
event_ops: in an event-driven network, only connections from neurons that fired do an operation. - Set
saving = dense_ops / event_ops, anddense_energyandevent_energyusing the made-upENERGY_PER_OP. - Change
ACTIVITYto 0.2 and then 0.5. Write two lines on how the saving changes.
Practice lab
Edit the code and run it. Python runs in your browser — nothing is sent to our server.
No output. Add print(...) to see values.
You are done when
Hard questions
Try to answer before you reveal. If you can answer these, you understood the lesson.
Q1At what activity level would the event-driven network do the same number of operations as the dense one? What does that tell you?Reveal
When every neuron fires at every step, that is ACTIVITY = 1.0, the counts are equal. In general the saving is about 1 / ACTIVITY. Event-driven computing pays off only when activity is sparse; if everything is active all the time, there is nothing to skip, and handling events may even add overhead.
Q2Our toy counts only operations. Name one real cost it leaves out.Reveal
It leaves out the energy of moving data, such as fetching weights from memory, which can be larger than the arithmetic itself. It also leaves out the cost of sending spike messages across a chip, keeping neurons' state up to date, and the power a chip uses even when idle. Real comparisons must measure these on real hardware.
Questions people ask
Is 20 watts a measured fact?
It is a commonly cited estimate for the human brain's power use, so we say "about 20 watts". The real value varies between people and moments.
If brains are so efficient, why not build AI like brains?
People are trying, with spiking networks and neuromorphic chips (lesson 7). But today's AI methods are tuned for normal chips such as GPUs, and training spiking networks is harder. Both paths are being explored.
Does sparse activity help normal AI too?
Yes. Some AI models use sparsity, for example by using only part of the network for each input, or by skipping zeros. The general idea "do not compute what you do not need" helps everywhere.
Lesson test
5 questions. Get 3 right (60%) to pass and complete this lesson.