# No, human brains are not (much) more efficient than computers

Epistemic status: grain of salt (but you can play around with the model yourself). There's lots of uncertainty in how many FLOP/s the brain can perform.

In informal debate, I've regularly heard people say something like, "oh but brains are so much more efficient than computers" (followed by a variant of "so we shouldn't worry about AGI yet"). Putting aside the weakly argued AGI skepticism, brains actually aren't all that much more efficient than computers (at least not in any way that matters).

The first problem is that these people are usually comparing the energy requirements of training large AI models to the power requirements of running the normal waking brain. These two things don't even have the same units.

The only fair comparison is between the trained model and the waking brain or between training the model and training the brain. Training the brain is called evolution, and evolution isn't particularly known for its efficiency.

Let's start with the easier comparison: a trained model vs. a trained brain. Joseph Carlsmith [estimates](https://www.openphilanthropy.org/research/how-much-computational-power-does-it-take-to-match-the-human-brain/) that the brain delivers roughly $11$ petaFLOP/s (=$10^{15}$ floating-point operations per second). If you eat a normal diet, you're expending roughly $10^{-13}$ J/FLOP.

Meanwhile, the supercomputer Fugaku delivers [450 petaFLOP/s at 30 MW](https://www.top500.org/system/179807/), which comes out to about $10^{-11.5}$ J/FLOP…. So I was wrong? Computers require almost $500$ times *more* energy per FLOP than humans?

![Pasted image 20220906142829.png](https://www.jessehoogland.com/media/pasted-image-20220906142829.png)

$\frac{\text{Supercomputer J}/\text{FLOP}}{\text{Human J} /\text{FLOP}}$

What this misses is an important practical point: supercomputers can tap pretty much directly into sunshine; human food calories are heavily-processed hand-me-downs. We outsource most of our digestion to nature and industry.

Even the most whole-foods-grow-your-own-garden vegan is 22-33 orders of magnitude less efficient at capturing calories from sunlight than your average device.[^rskt9a8c4pd] That's before animal products, industrial processing, or any of the other Joules it takes to run a modern human.

After this correction, humans and computers are about head-to-head in energy/FLOP, and it's only getting worse for us humans. The fact that the brain runs on so little actual juice suggests there's plenty of room left for us to explore specialized architectures, but it isn't the damning case many think it is. (We're already seeing early neuromorphic chips out-perform neurons' efficiency by [four orders of magnitude](https://www.nature.com/articles/d41586-018-01290-0).)

![Pasted image 20220906143040.png](https://www.jessehoogland.com/media/pasted-image-20220906143040.png)

$\frac{\text{Electronic efficiency}}{\text{Biological efficiency}}$

But what about training neural networks? Now that we know the energy costs per FLOP are about equal, all we have to do is compare FLOP required to evolve brains to the FLOP required to train AI models. Easy, right?

Here's how we'll estimate this:

1.  For a given, state-of-the-art NN (e.g., GPT-3, PaLM), determine how many FLOP/s it performs when running normally.
2.  Find a real-world brain which performs a similar number of FLOP/s.
3.  Determine how long that real-world brain took to evolve.
4.  Compare the number of FLOP performed during that period to the number of FLOP required to train the given AI.

Fortunately, we can piggyback off the [great work done by Ajeya Cotra on forecasting "Transformative" AI](https://docs.google.com/document/d/1IJ6Sr-gPeXdSJugFulwIpvavc0atjHGM82QjIfUSBGQ). She calculates that GPT-3 performs about $10^{12}$ FLOP/s,[^co4omgbvry6] or about as much as a bee.

Going off [Wikipedia](https://en.wikipedia.org/wiki/Evolution_of_insects), social insects evolved only about 150 million years ago. That translates to between $10^{38}$ and $10^{44}$ FLOP. GPT-3, meanwhile, took [about ](https://arxiv.org/pdf/2005.14165.pdf)$10^{23.5}$[ FLOP](https://arxiv.org/pdf/2005.14165.pdf). That means evolution is 15 to 22 *orders of magnitude* less efficient.

![Pasted image 20220906143416.png](https://www.jessehoogland.com/media/pasted-image-20220906143416.png)

$\log_{10}\left(\text{total FLOPs to evolve bee brains}\right)$

Now, you may have some objections. You may consider bees to be significantly more impressive than GPT-3. You may want to select a reference animal that evolved earlier in time. You may want to compare unadjusted energy needs. You may even point out the fact that [the Chinchilla results suggest GPT-3 was "significantly undertrained"](https://towardsdatascience.com/a-new-ai-trend-chinchilla-70b-greatly-outperforms-gpt-3-175b-and-gopher-280b-408b9b4510).

Object all you want, and you still won't be able to explain away the >15 OOM gap between evolution and gradient descent. This is no competition.

What about other metrics besides energy and power? Consider that [computers are about 10 million times faster than human brains](https://nautil.us/why-is-the-human-brain-so-efficient-7216/). Or that if the human brain can store a [petabyte of data](https://www.scientificamerican.com/article/new-estimate-boosts-the-human-brain-s-memory-capacity-10-fold/), S3 can do so for about [$20,000](https://aws.amazon.com/s3/pricing/) (2022). Even FLOP for FLOP, supercomputers already underprice humans.[^hsyt8ulw8vg] There's less and less for us to brag about it.

![Pasted image 20220906143916.png](https://www.jessehoogland.com/media/pasted-image-20220906143916.png)

$\frac{\$/(\text{Human FLOP/s})}{\$/(\text{Supercomputer FLOP}/s)}$

Brain are not magic. They're messy wetware, and hardware ~~will catch up~~ has caught up.

Postscript: brains actually might be magic. Carlsmith assigns less than 10% (but non-zero) possibility that the brain computes more than $10^{21}$ FLOP/s. In this case, brains would currently still be vastly more efficient, and we'd have to update in favor of additional theoretical breakthroughs before AGI.

If we include this uncertainty in brain FLOP/s, the graph looks more like this:

![Pasted image 20220906150914.png](https://www.jessehoogland.com/media/pasted-image-20220906150914.png)

$\frac{\text{Supercomputer J}/\text{FLOP}}{\text{Human J} /\text{FLOP}}$ without false overconfidence.   
  
Mean: ~$10^{19}$  
Median: 830

**Appendix**
============

The graphs in this post were generated using [Squiggle](https://www.squiggle-language.com/#code=eNqrVirOyC8PLs3NTSyqVLIqKSpN1QELuaZkluQXQURqARlkDng%3D) and the [obsidian-squiggle](https://github.com/jqhoogland/obsidian-squiggle) plugin. Click [here](https://www.squiggle-language.com/playground/#code=eNqFVQtv0zAQ%2FiunMqDdIHE60j0KSGOsYhOISpuEkCokk14Ts8QOtkNVoe23c3bSQtJuVOojvrvvPt%2Fj6%2B%2BeydTyuioKrle9U6srfOGPLubCKr0%2BEVJYwfPrn5VI0xyvrRYy7Z32vmsu5IVEna6mqCe5KuEN%2FJ7Jmc2qgst3zuxODR1H8RjCECIGVsHwcDyz9PQJ54JLb5v23w6jAbwmj6cdBM2TOgnBsGA43pg3qd9zZztmzKNH9M18tvdc5Cu4vYJESVMVpRVKtsGnaomaYrfxQuiPGOyD%2Fxi%2BGnjA2y%2B7wvd9ShdB1%2FsGncsPXOAVWScfP09n8o4QiEyJOlFFWVnUOyoI9KKozNrSnIbhcrkMrCpjxgKl09CsjMUijI5OjtlRCI5S2dxjGOPI1eCQ4cgzvnLWRdOEVzHDKHb22P8a%2Fw0NwTs1%2FPBfSufEk2thlCSIR5iHsD0QDszXY6LU%2FGKxEIlAmazWc1JmyiqzkjZDI0zLzgLGIkeVfhw6X6tVmYmk49S4RPGjcPuwHd1cdXOXDjnXAqNyrrsJ4zrjkNU%2BVnNpCmEMzVbLNYKX0Cfyx86fwga7MfcfQFh3YnPQasMO1iHsKLSH%2BKXyyo1%2Ba7becYNzoMOzFf7gcK6IxnMDs95EaUy4sbTjcHN2CUthM%2FguVK5SkfAcuEwypc2st4E6y3MgS1Ll3KUxwDWCkEARYEqeYOCa494Gk0v5FbkbVbJGrH84iv1%2BrTdtxAbjtTdBf0HghlYXwWbc0gc9%2F0LNU3Q80JBKQanKwC8X0GjCyqELA%2Fdu5y2XNmigkkUAH1yFiJ9dCxHzgaGBZ3BUa4eDay7iAtdZzFmddupXtJJioXTRj05ekJiRNjyBG1VwI26BvEXBLRKDCIcRSKQnNUdTl6uL1xLJoaNQ7%2B09nAeAOabEt8XD%2BdJyNUXcRe%2FgsSQHsOmBqzMhu4KZTT%2BOSRhGXrIianqeu7GpPXiqfIViBkXX8CDDg9qnGWY%2FoB%2FFAvfcftRKFVG%2BxtL%2Bw0C303%2FP9xpFMWu1rnHCrtzClr7WyU46p5OWJnZD%2FknWwQphG8YXkpTE2P9K5gY53HE1h9K7%2BwOAdpqV) if you want to play around with the model yourself.

    brainEnergyPerFlop = {
    	humanBrainFlops = 15; // 10 to 23;	// Median 15; P(>21) < 10%
    	humanBrainFracEnergy = 0.2;
    	humanEnergyPerDay = 8000 to 10000; // Daily kJ consumption
    	humanBrainPower = humanEnergyPerDay / (60 * 60 * 24); // kW
    	humanBrainPower * 1000 / (10 ^ humanBrainFlops) // J / FLOP
    }
    
    supercomputerEnergyPerFlop = {
        // https://www.top500.org/system/179807/ 
    	power = 25e6 to 30e6; // J
    	flops = 450e15 to 550e15;
    	power / flops
    }
    
    supercomputerEnergyPerFlop / brainEnergyPerFlop

    humanFoodEfficiency = {
    	photosynthesisEfficiency = 0.001 to 0.03
    	trophicEfficiency = 0.1 to 0.15
    	photosynthesisEfficiency * trophicEfficiency 
    }
    
    computerEfficiency = {
        solarEfficiency = 0.15 to 0.20
        transmissionEfficiency = 1 - (0.08 to .15)
        solarEfficiency * transmissionEfficiency
    }
    
    computerEfficiency / humanFoodEfficiency

    evolution = {
        // Based on Ayeja Cotra's "Forecasting TAI with biological anchors"
        // All calculations are in log space.
    	
    	secInYear = log10(365 * 24 * 60 * 60);
    	
    	// We assume that the average ancestor pop. FLOP per year is ~constant.
    	// cf. Humans at 10 to 20 FLOP/s & 7 to 10 population
    	ancestorsAveragePop = uniform(19, 23); # Tomasik estimates ~1e21 nematodes
        ancestorsAverageBrainFlops = 2 to 6; // ~ C. elegans
    	ancestorsFlopPerYear = ancestorsAveragePop + ancestorsAverageBrainFlops + secInYear;
    
    	years = log10(850e6) // 1 billion years ago to 150 million years ago
    	ancestorsFlopPerYear + years
    }

    humanLife$ = 1e6 to 10e6
    humanBrainFlops = 1e15
    humanBrain$PerFlops = humanLife$ / humanBrainFlops 
    
    supercomputer$ = 1e9
    supercomputerFlops = 450e15
    supercomputer$PerFlop = supercomputer$ / supercomputerFlops
    
    
    supercomputer$PerFlops/humanBrain$PerFlops

[^rskt9a8c4pd]: Photosynthesis has an efficiency around 1%, and jumping up a trophic level means another order of magnitude drop. The most efficient solar panels have above 20% efficiency, and electricity transmission loss is around 10%. 

[^co4omgbvry6]: Technically, it's FLOP per "subjective second" — i.e., a second of equivalent natural thought. This can be faster or slower than "truth thought." 

[^hsyt8ulw8vg]: Compare FEMA's value of a statistical life at $7.5 million to the $1 billion price tag of the Fukuga supercomputer, and we come out to the supercomputer being a fourth the cost per FLOP.