Companion to The Scaling Years

Biological neuron, artificial neuron

An artificial neuron is a very stripped-down copy of a brain cell. Both follow the same five steps, numbered below. Point at a step to see the matching part in each one, then move the sliders to watch both respond to the same input.

Neuron in the brain

living cell · ~0.1 mm body
myelin speeds the signal 1 2 3 4 5
  1. 1Dendrites collect incoming signals from thousands of other neurons.
  2. 2Synapses are the junctions. Each one passes a signal on strongly or weakly, and can excite or inhibit. Learning changes their strength.
  3. 3Cell body adds up all the incoming electrical charge.
  4. 4Axon hillock is the trigger zone. If the total voltage crosses a threshold (about −55 mV), the cell fires an all-or-nothing spike.
  5. 5Axon and terminals carry the spike away and release chemical messengers onto the next neurons.

Neuron in an AI model

one math formula
bias −0.4 Σ 0.00 ReLU 0.00 1 2 3 4 5
  1. 1Inputs are numbers coming from the previous layer of neurons, or from the data itself.
  2. 2Weights multiply each input. Positive weights excite, negative weights inhibit. Training adjusts them. These are the model's "parameters."
  3. 3Weighted sum adds the results together, plus a bias that sets how easily the neuron activates.
  4. 4Activation function decides the output. ReLU, shown here, passes positive totals through and turns negatives into zero.
  5. 5Output is a single number sent to every neuron in the next layer.

Send the same signal to both

Each slider is how active one incoming connection is. The artificial neuron turns that into a number. The biological one turns it into a rate of spikes, since a real neuron can't send "0.63." It can only fire faster or slower.

0.90
0.20
0.70
Brain neuron: spikes over 1 second—
input 2 has a negative weight, so turning it up quiets both neuronsfires

How the parts correspond

In the brainIn an AI modelWhat's really different
1DendritesUp to ~10,000 inputs per neuronInputsOften thousands per neuron in large modelsDendrites do their own processing along the branch. Inputs in AI are just numbers.
2Synapse strengthChanged by experience, chemistry and sleepWeightsSet during training, then frozenThe brain keeps learning while it works. Most AI models stop learning once training ends.
3Cell bodyAdds up voltage over timeWeighted sumOne instant calculationTiming matters in the brain. Signals arriving a few milliseconds apart add up differently.
4Threshold and spikeAll-or-nothing, around −55 mVActivation functionA smooth or piecewise curveA real neuron's output is binary spikes, so strength has to be coded in how often it fires.
5Axon and terminalsElectrical, then chemical (neurotransmitters)OutputA number copied to the next layerThe brain uses dozens of chemical messengers with different effects. AI has just one kind of signal.

At full scale

Units~86 billionneurons in a human brainmillions to billionsartificial neurons in a large model
Connections~100 trillion+synapses175 billionweights in GPT-3. Newer models aren't disclosed but are larger.
Speedup to ~1,000×/sfastest firing rate, at mostbillions of ops/sper chip, running many neurons at once
Power~20 wattsthe whole brainmegawattsto train a frontier model