Why a chain of neurons adds nothing, and a bend does
Real temperature data from Norwich shows why stacking straight-line neurons never helps, and how a ReLU bend in every neuron lets a network fit a curve.
This is the text of a chapter of the animated talk A Deep Seek into LLM Architecture by Ruben Galvão . Open the page with scripts on to play the slides, one key press per idea.
Data: Norwich temperatures Real data: monthly average temperature, Norwich, 2016 to now (this year up to September) One dot per month per year; the thermometer replays a year Cold → warm → cold, but with scatter: no curve hits every dot Best we can do: a good typical guess
One neuron, no bias One neuron: a month goes in, a temperature comes out It can only multiply by a weight, w: temperature = w × month Train: the error at each dot, the gradient back, a nudge; the line swings round and settles A line through zero can’t follow the data: typical miss ≈ 5.7° Cost: 1 multiplication
Adding a bias Add a second input that is always 1: the bias, with a weight of its own, b temperature = w × month + b × 1: the line can now sit at the right height Train again: the line moves up and settles at the best straight line there is Still misses by ≈ 4.4°: a straight line can’t bend Cost: 2 operations (a multiplication and an addition)
Two neurons in a chain Second neuron after the first: each column of neurons is a layer It has no bias of its own: the first one has it Its weights are new and start off wrong: watch them being learned, and the line return to where it was Nothing improves: two weights multiplied = one weight; a chain of lines is a line
A wider layer: still a line Make the layer wider, one neuron at a time Each new neuron: the same input and bias, and a weight into the next layer, all learned Counter: 3 weights per neuron, 24 for eight Still the same straight line: a sum of lines is a line. Width alone doesn’t help
The bend: ReLU Fix: a bend in every neuron: ReLU (negative → 0) The icon on the neuron; one comparison each From the digit reader on, count only multiplies and adds Switching it on changes the curve at once, and training starts to use the bends
Training the layer Train: error flows back, hinges move, the sum bends around the year Miss drops from ≈ 4.4° to ≈ 1°; the floor is the yearly scatter Bends added together make almost any curve: the whole trick Cost: 39 operations vs 2 (31 multiplies/adds + 8 bends) ReLU off and on (n): each time it trains from the weights it has; without the bends it ends up a line
Papers and sources Minsky & Papert (1969): Perceptrons: what linear units cannot do Open-Meteo (2016–2026): Historical daily temperatures at Norwich (ERA5 reanalysis) Nair & Hinton (2010): Rectified Linear Units Improve Restricted Boltzmann Machines George Cybenko (1989): Approximation by superpositions of a sigmoidal function