Tech & AI

What Is a Neural Network, Really? How Machines Learn

Ask a computer to tell a cat from a dog and it will not reach for a rulebook. There is no neat list of features — pointy ears, a wet nose, a tail — that settles the question reliably, because every rule has an exception. Instead, a modern machine learns the way a child might: by looking at thousands of examples and getting better at spotting the pattern. The machinery that makes that possible is called a neural network, and despite the name, it is less like a brain than like a patient student with a large notebook.

The idea is older than the hype. In 1943, the neurophysiologist Warren McCulloch and the logician Walter Pitts described a nerve cell in mathematics, as a simple unit that fires or stays silent depending on the signals it receives. It was a sketch, not a machine. In 1957, that sketch became hardware: Frank Rosenblatt, a psychologist at the Cornell Aeronautical Laboratory, built the perceptron, a machine that learned to classify images from examples rather than from rules.

The perceptron made headlines before it made sense. At a press event in Washington in July 1958, the United States Navy, which funded the work, presented it as the embryo of a computer that would one day walk, talk and see. In the demonstration, it could do something far humbler: tell whether a square sat on the left or the right of a field. The gap between promise and performance would haunt the field for decades. But the principle was real: a machine that improves by being shown examples and corrected when it errs.

Progress stalled on a hard limit. In 1969, Marvin Minsky and Seymour Papert published Perceptrons, showing that a single-layer network of Rosenblatt’s kind could not solve certain simple problems, however much data it was given. Funding and enthusiasm drained away. The idea was not wrong, researchers later concluded. It was incomplete: nobody yet knew how to train a network with more than one layer.

The missing piece arrived in 1986, when David Rumelhart, Geoffrey Hinton and Ronald Williams published a method called backpropagation. A neural network, they showed, could be built as a stack of layers, each transforming the information it receives and passing it on. Every connection carries a weight, a number saying how much influence one unit has on the next. During training, the network guesses, compares its answer with the right one, and works out each weight’s share of the error. Backpropagation carries that blame backwards through the layers, nudging every weight a little towards a better answer. Repeat that millions of times and the network gets good.

The first real-world proof came in 1989, when Yann LeCun and colleagues at AT&T Bell Laboratories used backpropagation to read handwritten digits from postal codes, with an error rate of about one per cent. The grander ambitions still needed two things the 1980s could not supply: enormous collections of labelled examples, and computing power cheap enough to train on them. Both arrived in the 2000s, as the internet produced the data and graphics processors, built for games, proved ideal for the parallel arithmetic of neural networks.

The payoff came in 2012. A deep network called AlexNet, built by Alex Krizhevsky, Ilya Sutskever and Geoffrey Hinton, won the ImageNet image-recognition contest with a top-five error rate of 15.3 per cent, against 26.2 per cent for the runner-up. Deep learning — neural networks with many layers — became the default approach to artificial intelligence. In 2017, researchers described the transformer architecture, which learned the relationships between words in a sentence and became the foundation of today’s large language models, including GPT-4.

So what is a neural network, really? A machine for finding patterns, built from layers of simple units and millions — sometimes billions — of adjustable weights, tuned by trial and error against examples. It does not understand a cat the way a person does; it has simply been shown so many cats that its weights encode what cats tend to look like. Given enough examples, it can spot patterns no human would have time to find. Given the wrong examples, it will learn the wrong lesson just as confidently.

By the OctoPres Team

Frequently asked questions

What is a neural network?

A computing model loosely inspired by the brain, made of layers of simple units connected by adjustable weights. It is trained on examples, and its weights are tuned until its guesses match the right answers.

What is deep learning?

Deep learning uses neural networks with many layers. Each layer learns progressively more abstract features from the data, which is why deep networks became the default approach to artificial intelligence after 2012.

Do neural networks understand what they do?

No. They find patterns in data and adjust their weights to reduce errors. They can be confident and wrong, and what they learn depends entirely on the examples they are trained on.