
A file of weights, and inside it billions of numbers that nobody wrote by hand: that is where the previous chapter left us. Before seeing what this translation into numbers brings, and what it costs, a practical question: how are these numbers stored, and how are they multiplied without getting lost? Two words answer it, words you hear constantly as soon as these models come up.
Remember that each neuron produces a number at its output, the one it gets by weighting its inputs and then adding them up. A whole layer therefore produces a whole list of these numbers, and that list is what it passes on to the next layer: that is what “flows” through the network, not the starting image or sentence, but lists of numbers, reworked a little more at every storey.

Such an ordered list has a name, the vector. The weights that connect each neuron of a layer to those of the next fall naturally into a table of rows and columns, a matrix. And the passage from one layer to the next begins with a single operation: multiplying the list by the table.
Do it once, by hand. A layer of three neurons has just produced three numbers: 0.5, 0.8 and 0.2. That is the vector. The next layer has two neurons. The first attaches a weight to each of the three lines that reach it: 0.4, 0.9 and 0.3. It does what you already know how to do: each input multiplied by its weight, 0.5 × 0.4 = 0.20, 0.8 × 0.9 = 0.72 and 0.2 × 0.3 = 0.06, then the sum, 0.98.

The second neuron has its own weights, 0.1, 0.7 and 0.5, and gets 0.05 + 0.56 + 0.10 = 0.71 in the same way. Now arrange each neuron’s weights in a column, and set the two columns side by side: that is the matrix. Multiplying the list by this table means doing both neurons’ calculations in a single move, and the new list, 0.98 and 0.71, heads off to the next layer. An operation of disarming simplicity, but repeated a dizzying number of times. You recognise the move: it is exactly the one the graphics card had been cut out for without knowing it.

Then comes a second, quieter step. Each number obtained passes through a threshold of a slightly different kind from the previous episode’s: instead of answering yes or no, it lets any positive number through unchanged and brings any negative number down to zero. Without it, stacking layers would be pointless: two layers that multiply, one by 2 and the other by 3, do nothing more than a single one that would multiply by 6. The threshold breaks that equivalence, and it is what makes stacking worthwhile.

Let us stop for a second, because this is where the shift happens. When all this was first explained to me, at engineering school, I spent a while believing I was looking at a complicated calculator. Then the true nature of the thing dawned on me, and I never saw these networks the same way again: a neural network is not a sorting machine, nor a calculating machine. It is a machine for spotting patterns, and it does nothing else.
Look at what stacking becomes once you read it this way. Each neuron of a layer receives the whole list produced by the previous layer, weights it in its own way and only sends out a strong signal when a certain combination shows up. It is, literally, a detector: it waits for a particular configuration and reacts when it goes by. Stack these detectors, and each one no longer watches the raw data but what the detectors below have already spotted. A pattern of patterns, then a pattern of patterns of patterns. Nothing in the set-up says what to look for: the network is a seeker of regularities, and training merely tells it which ones pay.

What the machine gains
Measure what this saves, because that is where the power of the whole business lies. The 2012 car could do nothing it had not been told: every behaviour was a rule written by someone, an equation set down by hand. Yet there are things nobody knows how to describe. Try, just to see, writing the definition of a handwritten eight, one that would hold for thin eights, slanted eights, closed eights and those drawn in a single stroke.

Two decades of computer vision wore themselves out on it, piling up edge detectors and sophisticated descriptors. These methods already reduced the image to rows of numbers, but rows drawn by hand. The one David Lowe published in 2004, at the University of British Columbia, describes each point of interest in an image with a hundred and twenty-eight numbers: sixteen small cells around the point, and in each one the strength of the edges along eight directions. The number of orientations, the size of the windows and the thresholds were all chosen by a researcher, then tuned by experiment.

A pattern machine gets round the obstacle from the side: you describe nothing to it, you show it. It finds by itself what the examples have in common. The work changes in nature: it moves from stating the rule to collecting the examples.
And here is the consequence I find most dizzying, the one that governs the whole rest of this series. Since the network sees only numbers, and since it looks for nothing in them but regularities, it does not know, and has no need to know, what those numbers stand for. Nothing in its mechanism tells a brightness from a sound level, a temperature or a word.
Remember the rule set out in the previous chapter: everything must first be translated into a list of numbers. Once that translation is done, the same machine applies, indifferent. That is why a single family of techniques ended up absorbing image recognition, speech, translation and then writing, when each of these fields had previously had its own specialists, its own conferences and its own methods. Not because an engineer decided to unify them, but because a seeker of regularities knows no boundaries between disciplines.

What the machine loses
All power has its price, and this one is the exact flip side of the coin. A machine that cannot be told what to look for will find everything that repeats, including what you did not want. The most famous illustration of the problem dates from 2016, in a paper by Marco Ribeiro, Sameer Singh and Carlos Guestrin devoted to the question of how far a model can be trusted.
The authors deliberately set a trap: they train a classifier to tell wolves from huskies, taking their wolf photos against a background of snow and their husky photos without snow. The classifier is therefore bad by construction, and the authors know it: what they are measuring is whether anyone will notice. Faced with its answers, more than a third of the subjects, all advanced students of machine learning, trust it.

Yet the machine learned nothing about the animals: it learned to spot snow. A husky photographed in powder snow was classified as a wolf. The regularity was perfectly real, fully present in the data, and completely beside the point.
It still had to be shown, and that is the real subject of the paper: the husky experiment is only its demonstration. Nothing in such a machine says what it relies on: it delivers a verdict, never a reason.
The authors’ method gets round the obstacle without ever opening it. The photograph is cut into small zones of neighbouring, similar pixels; copies are made in which some zones, then others, are hidden under flat grey; and each copy is submitted to the machine, noting how its answer moves. The zones whose removal changes nothing did not count; those whose removal makes the verdict waver are, by elimination, what it rested on.
All that remains is to light those up and switch off the rest: the image, reduced to a few patches, is the answer, in plain sight, to a question that could not otherwise be asked. The method has its limit: it assumes the verdict rests on a zone. A model that classified every sepia photograph as “retro”, the authors write, could not be explained by any patch, since the tint is everywhere.

The authors asked their subjects the same questions before and after showing them the explanation. Of twenty-seven, ten trusted the classifier before, only three after; and those who had spotted the snow went from twelve to twenty-five. Keep this picture in mind for everything that follows: the network does not look for what is true, it looks for what repeats, and nothing guarantees the two coincide.

This trap did not wait for deep networks: it is as old as the idea of reducing a perception to a few numbers. In 1949, in a house in the suburbs of Bristol, the neurophysiologist W. Grey Walter builds two electromechanical tortoises, Elmer and Elsie. Their whole world fits in two numbers, a light level and a contact, handled by two vacuum tubes, and from so little come exploration, the pursuit of a goal, the avoidance of obstacles.

But the machine does not know what its numbers stand for: a candle, a lamp, another tortoise’s headlamp and its own reflection in a mirror are all the same thing to it. Walter saw in this last case a form of self-recognition. Owen Holland, going back through the archives in 2003, shows that the photograph meant to establish it more probably shows the tortoise chasing the candle fixed on its own back, the very one used to trace its path. The regularity was real, and beside the point.

A pattern has no address
Reading the network as a pattern machine has a consequence that long seemed to me the most beautiful in the field: a pattern has no fixed place. What defines a handwritten eight is not cell number 412 of the grid, but a certain arrangement of strokes, and that arrangement can occur anywhere, just as a melody stays the same when transposed by a tone. A device built to recognise configurations rather than locations is, in principle, freed from the place a thing occupies in the image.
Note the “in principle”: the small network of the previous chapter, where each pixel has its own line to each neuron, in reality has no notion of neighbourhood, and a digit shifted by three cells is a completely different object to it. The principle was right; the architecture did not yet honour it. It will take an invention, in 1989, to make it hold, and twenty-five more years before anyone could open a network and see with their own eyes the staircase of patterns I have just described. Both moments will come in the following episodes.

Built once, then answering
It remains to say when all this gets set. The phase in which the weights are made, training, happens only once. Its bill has changed beyond recognition from one era to another: a few hours on an ordinary machine for the small networks of the early days, weeks or months on thousands of chips for today’s large models. Stanford’s AI Index puts the computing cost of training alone at seventy-eight million dollars for GPT-4 and a hundred and ninety-one million for Gemini Ultra, against about nine hundred dollars for the 2017 Transformer.
In every case, once the operation is over, the weights are frozen, and the model enters its second life, infinitely more modest each time but repeated endlessly: inference, the moment it answers a question. There, no weight moves any more. The model makes just one pass through its layers, from input to output. A few seconds, and above all no learning: the model you are questioning learns nothing from your conversation. It applies settings fixed before you existed for it.

Where the idea of a moving weight comes from
There remains the most beautiful question of this whole story, the one we have carefully skirted until now. We have talked about “adjusted” weights, “learned” settings. By what miracle? Nobody, obviously, sets tens of thousands of numbers by hand, let alone billions. So the network has to find them itself, from examples. But how can a machine notice that it has made a mistake, and above all, how can it know which of its thousands of settings is at fault, and by how much? Two generations of researchers stumbled on that question. Before the machine, an idea was needed.
First, someone had to imagine that these coefficients could change at all, because in McCulloch and Pitts they do not budge an inch: they are calculated by hand, once and for all, to obtain the desired behaviour.
The missing link is a 1949 book, The Organization of Behavior, by the Canadian psychologist Donald Hebb. In it he puts forward a hypothesis about the living brain, with the caution of a researcher who knows he cannot prove it.
Take two nerve cells, A and B, the first connected to the second: when A fires, it pushes B to fire in turn. Suppose this happens often, that every time B lights up, A has something to do with it. Hebb proposes that eventually something changes in one of the two cells, or in both, and that A becomes more effective at triggering B. The link grows stronger because it has been used.

The idea has since taken the form of a formula: cells that fire together wire together. The sentence is not Hebb’s. It comes from a neurobiologist, Carla Shatz, in a 1992 article, forty-three years after the book.

Hebb himself claimed no novelty: a few pages further on, he writes that the general idea is an old one. He would also say, in 1980, what his theory lacked: the postulate knows only excitation, and what switches a cell off instead of firing it, inhibition, was not known with certainty in 1949 and did not go into it, though it would have helped.
Translate the 1992 formula into the vocabulary you have just acquired, and you get the definition of learning as it is still practised today: experience does not rewrite the wiring, it changes the strength of existing connections. In other words, there is no drawer anywhere in the machine where what it knows is stored: what it has learned lies in the value of its connections, and in nothing else. That is what the 1943 neuron lacked to become more than a logical curiosity, and that is what will make it possible, eight years later, in a Cornell laboratory, to build a machine that learns to tell shapes apart.

Sources
What the machine gains
- Distinctive Image Features from Scale-Invariant Keypoints · David G. Lowe, University of British Columbia · author’s version dated 5 January 2004, accepted by the International Journal of Computer Vision 60(2), 2004, pp. 91-110, doi:10.1023/B:VISI.0000029664.99615.94 · peer-reviewed · the 4×4×8 = 128-dimension descriptor, and the method’s constants all set by experiment: three scales per octave, contrast threshold 0.03, ratio of principal curvatures 10
What the machine loses
- Why Should I Trust You? Explaining the Predictions of Any Classifier · Ribeiro, Singh and Guestrin · arXiv 1602.04938, submitted 16 February 2016, revised 9 August 2016 · authors’ working version, also published in 2016 in conference proceedings · the wolves and huskies experiment: the classifier is bad by construction; out of twenty-seven subjects, ten trust it before the explanation and three after; twelve mention the snow before, twenty-five after
- An Imitation of Life · W. Grey Walter, Scientific American 182(5), May 1950, p. 42, doi:10.1038/scientificamerican0550-42 · primary source on the electromechanical tortoises: the two sense organs and the two electronic nerve cells
- The first biologically inspired robots · Owen Holland, Robotica 21, 2003, pp. 351-363, doi:10.1017/S0263574703004971 · peer-reviewed · the building of the tortoises in 1949, their two-valve electronics, and the re-reading of the archives that more probably attributes the dance in front of the mirror to the candle fixed on the tortoise
Built once, then answering
- The training cost of frontier models · Sage Lazzaro, Fortune, 18 April 2024 · press · reports the estimates of Stanford’s AI Index 2024: seventy-eight million dollars for GPT-4, a hundred and ninety-one million for Gemini Ultra, about nine hundred dollars for the 2017 Transformer
Where the idea of a moving weight comes from
- Donald O. Hebb, The Organization of Behavior: A Neuropsychological Theory, John Wiley & Sons, New York, 1949, p. 62 · primary work, cited for the neurophysiological postulate
- The Hebb Synapse Before Hebb · Brown, Bligh and Garden, Frontiers in Behavioral Neuroscience 15, 21 October 2021, doi:10.3389/fnbeh.2021.732195 · peer-reviewed review, open access · reproduces the 1949 postulate with its page, and reports that Hebb himself considered the general idea old; also cites Hebb 1980, p. 101, on inhibition, which the 1949 theory did not include
- The Developing Brain · Carla J. Shatz, Scientific American 267(3), September 1992, pp. 60-67, doi:10.1038/scientificamerican0992-60 · signed science journalism, not peer-reviewed · the article where the formula about cells that fire together originates














