The History of AI, Part 9 of 24. In Part 8, the second AI winter froze funding and pushed researchers toward more modest, data-driven work. But a small group had never given up on neural networks. This chapter is the story of how they cracked the problem that doomed the perceptron, and how the idea that nearly died became the foundation of modern AI.

Let's recap where neural networks stood by the early 1970s.

Frank Rosenblatt's Perceptron (Part 5) could learn, but only simple, linearly separable patterns. Minsky and Papert's 1969 book (Part 6) had spelled out the limitations precisely, and, in a famously pessimistic aside, doubted that the multi-layer version would be productive. Funding collapsed. Rosenblatt died in 1971. Neural networks became an academic backwater, and young researchers were warned off.

And yet everyone knew what the missing ingredient was. A network with hidden layers, units sitting between the input and the output, could in principle compute XOR and far more. The mathematics said so. What nobody had was a good way to train those hidden layers. If a network gets the wrong answer, which of its thousands of internal connections is to blame, and by how much should each one change?

This is called the credit assignment problem, and solving it is one of the great turning points in the history of AI. This chapter is about that solution, backpropagation, and the stubborn, partly forgotten people who brought it to life.

The slow reawakening

Before backpropagation became famous, several threads were quietly pulling the field back toward neural networks.

Geoffrey Hinton (left) and John Hopfield at the 2024 Nobel Prize lectures
Geoffrey Hinton (left) and John Hopfield at the 2024 Nobel Prize lectures. Image: Jay Dixit, CC BY-SA 4.0, via Wikimedia Commons.

Hopfield's memory networks

In 1982, the physicist John Hopfield of Caltech published a paper in the Proceedings of the National Academy of Sciences describing a new kind of neural network. A Hopfield network is a set of fully interconnected binary neurons that can store patterns as stable states, like valleys in a landscape. Give it a corrupted or partial version of a stored pattern, and the network's activity "rolls downhill" into the nearest valley, reconstructing the full memory. It is an associative memory: like how a snatch of a melody can bring the whole song to mind.

What made the paper electrifying was its use of ideas from statistical physics. Hopfield defined an energy function for the network and showed that the dynamics always decrease the energy, guaranteeing convergence. Physicists, who had a rich toolkit for such systems, suddenly had a reason to take neural networks seriously, and they brought mathematical prestige and, importantly, credibility.

Hopfield's contribution was recognized in 2024 with the Nobel Prize in Physics, which he shared with Geoffrey Hinton "for foundational discoveries and inventions that enable machine learning with artificial neural networks." It was a striking vindication of work that had been out of fashion for decades.

Boltzmann machines

Around the same time, Geoffrey Hinton, then at Carnegie Mellon, and Terrence Sejnowski developed the Boltzmann machine (1983 to 1985), a stochastic cousin of the Hopfield network that could learn internal representations. It was elegant but very slow to train. Still, it showed the field a model that learned about hidden structure in data, and it advertised a new vision of the brain as a probabilistic machine.

The PDP group

On the West Coast, a group of cognitive scientists and psychologists at the University of California, San Diego, led by David Rumelhart and James McClelland, with Hinton as a close collaborator, formed what they called the Parallel Distributed Processing (PDP) research group. They argued that the symbolic approach to the mind was fundamentally mistaken. Cognition, they said, didn't work by manipulating discrete symbols according to rules. It worked through many simple units, working in parallel, with knowledge stored not in explicit rules but in the strengths of connections among them.

The movement got a new name: connectionism. It had a manifesto and a cause, and now it needed a method.

The algorithm: backpropagation

Here is the problem in concrete terms. Imagine a small network with an input layer, one hidden layer, and an output layer. You show it an example, and it produces an output. You compare the output to the correct answer, giving you an error. Now you want to adjust every weight in the network so that next time, the error is smaller.

For the output layer, this is straightforward: you can see how each weight contributed to the error, as Rosenblatt's perceptron rule and Widrow's delta rule did. But for a weight deep in the hidden layer, how can you know whether increasing it would help or hurt? Its effect on the final output is mediated by everything downstream.

The chain rule to the rescue

The answer comes from a piece of first-year calculus: the chain rule. If the output depends on layer 2, which depends on layer 1, which depends on a particular weight, then you can compute how a tiny change in that weight affects the error by multiplying together the local effects along the path. The elegant trick of backpropagation is to do this efficiently, by working backward from the output, reusing computations as you go.

The recipe has four steps:

  1. Forward pass. Feed an input through the network, layer by layer, computing and remembering each unit's output.
  2. Compute the error at the output by comparing with the target.
  3. Backward pass. Starting at the output, compute for each unit how much it contributed to the error ("its delta"), propagating that blame backward through the connections, layer by layer.
  4. Update. Adjust each weight a small step in the direction that reduces the error.

That fourth step is gradient descent. Picture a hiker lost on a foggy mountain who wants to reach the valley. They can't see the valley, but they can feel the slope under their feet. By repeatedly taking small steps downhill, they'll end up somewhere low. The "mountain" is the error as a function of all the weights, and backpropagation is the efficient way to compute the slope with respect to every weight at once.

One more ingredient is needed. The old McCulloch-Pitts and perceptron neurons used a hard threshold, which jumps from 0 to 1 and has no useful slope. To use calculus, you replace it with a smooth activation function, such as the sigmoid, which rises gently from 0 to 1. Now small changes in weights produce small changes in outputs, and the chain rule applies.

Let's build it

Here is a complete neural network that learns XOR, the function Minsky and Papert said a perceptron could never learn, written in plain Python with no libraries. It has two inputs, three hidden units, and one output:

import math, random random.seed(7) sigmoid = lambda x: 1 / (1 + math.exp(-x)) H = 3 # hidden units W1 = [[random.uniform(-1, 1) for _ in range(2)] for _ in range(H)] b1 = [0.0] * H W2 = [random.uniform(-1, 1) for _ in range(H)] b2 = 0.0 data = [((0, 0), 0), ((0, 1), 1), ((1, 0), 1), ((1, 1), 0)] lr = 0.5 def forward(x): h = [sigmoid(W1[j][0] * x[0] + W1[j][1] * x[1] + b1[j]) for j in range(H)] y = sigmoid(sum(W2[j] * h[j] for j in range(H)) + b2) return h, y for epoch in range(20000): for x, t in data: h, y = forward(x) # 1. forward pass  dy = (y - t) * y * (1 - y) # 2. output error signal  dh = [dy * W2[j] * h[j] * (1 - h[j]) for j in range(H)] # 3. blame hidden units (chain rule)  for j in range(H): # 4. gradient descent step  W2[j] -= lr * dy * h[j] W1[j][0] -= lr * dh[j] * x[0] W1[j][1] -= lr * dh[j] * x[1] b1[j] -= lr * dh[j] b2 -= lr * dy for x, t in data: print(x, "target", t, "output", round(forward(x)[1], 3)) 

Run it, and the outputs settle near 0, 1, 1, 0. The network has taught itself a function that no single-layer perceptron can represent. Look at line 3: the hidden units' blame (dh) is computed from the output's blame (dy) multiplied by the connecting weight (W2[j]) and the local slope of the hidden unit. That single line is the "back" in backpropagation: error flowing backward through the same connections the signal flowed forward through.

When you inspect the trained hidden units, you find that each has learned a useful feature, for example one that fires for "at least one input is on" and another that fires for "both inputs are on," and the output layer combines them: "at least one, but not both." Nobody programmed those features. They emerged from training. That emergence of internal representations is the central magic of deep learning, and it's what excited the PDP group.

The surprisingly tangled history of an idea

Here's the part that surprises people: backpropagation was not invented in 1986. The idea was discovered, forgotten, and rediscovered several times.

  • Control theory, 1960s. Engineers like Henry J. Kelley and Arthur Bryson developed similar gradient methods for optimizing the trajectories of spacecraft and aircraft.
  • 1970: The Finnish master's student Seppo Linnainmaa published the general method of reverse-mode automatic differentiation, essentially backpropagation for any computation, in his thesis.
  • 1974: Paul Werbos, in his Harvard PhD thesis, described applying the method to train neural networks. He later said it was hard to get anyone interested, and he published a clearer account in 1982.
  • 1985: David Parker and, independently, Yann LeCun in France, each arrived at similar methods.
  • 1986: David Rumelhart, Geoffrey Hinton, and Ronald Williams published "Learning representations by back-propagating errors" in the journal Nature, and the same year the PDP volumes appeared, two thick books that laid out connectionism's case. This is the paper that hit the field like a bomb.

Why did the 1986 version succeed when earlier ones didn't? Partly timing: the field had begun to feel the limits of symbolic AI, and computers had become fast enough for modest experiments. Partly the audience: the PDP group was embedded in cognitive science and had a compelling story about why it mattered for understanding minds. And partly the demonstrations. Rumelhart and Hinton showed that networks trained with backpropagation developed interesting internal representations on tasks like learning family relationships, finding structure that wasn't spelled out in the data.

Credit disputes persist. Many historians argue that the 1986 paper's real contribution was to make the idea work, spread, and matter, rather than to invent it. That, too, is an important contribution.

The great-great-grandson of Boole

A delightful detail for anyone following this series: Geoffrey Hinton, born in 1947 in London, is the great-great-grandson of George Boole, the man who turned logic into algebra, whom we met in Part 1. Hinton's family tree has a number of accomplished scientists. It's a neat coincidence that the person who did so much to build a learning, statistical alternative to symbolic logic descended from the founder of symbolic logic.

Hinton had grown disillusioned with the symbolic approach as a student, convinced that the brain must learn its knowledge rather than being born with rules. His career took him from Edinburgh and Sussex to San Diego to Carnegie Mellon, and then, in 1987, to the University of Toronto. A commonly told story says he left the US partly because he was uncomfortable with the heavy reliance of American AI research on military funding. Canada would become the unlikely center of the neural network revival.

What backprop made possible

With a method to train multi-layer networks, neural networks started to work on problems that had been out of reach.

NETtalk: a network that learns to speak

In 1987, Terrence Sejnowski and Charles Rosenberg built NETtalk, a neural network that learned to read English text aloud. English spelling is notoriously irregular ("though," "through," "tough"), and rule-based text-to-speech systems needed thousands of hand-crafted exceptions. NETtalk took a window of seven letters as input (around 200 input units), passed it through a hidden layer of about 80 units, and produced output units representing the phonemes to pronounce. It was trained on a dictionary of word pronunciations, and then connected to a speech synthesizer.

The recordings of NETtalk learning are famous. At first it babbles randomly. After a few passes, it produces baby-like sounds, then it begins to distinguish vowels and consonants, and eventually it produces recognizable speech, with a kind of childlike mispronunciation of unfamiliar words. People found it oddly moving: a machine learning to talk, with no rules for English pronunciation, simply through exposure to examples. It was a vivid demonstration of what learning could do.

TD-Gammon: learning by playing itself

In 1992, Gerald Tesauro at IBM created TD-Gammon, a neural network that learned to play backgammon purely by playing against itself. It combined a neural network with a technique called temporal difference learning, a reinforcement learning method in which the program updates its estimate of how good a position is based on how that estimate changes from move to move. Starting with no knowledge of backgammon strategy, it reached a level close to the best human players in the world, and it discovered some unconventional strategies that expert players later adopted.

TD-Gammon was an early demonstration that self-play plus neural networks plus reinforcement learning could produce expert-level play. Two and a half decades later, the same combination, scaled up enormously, would beat the world's best Go players. (That's Part 17.)

Seeing: LeCun and handwritten digits

Perhaps the most commercially important early success came from Yann LeCun, a young researcher who had worked with Hinton in Toronto and then joined Bell Labs in 1988.

Yann LeCun in 2018
Yann LeCun in 2018. Image: Jérémy Barande, CC BY-SA 2.0, via Wikimedia Commons.

LeCun realized that general-purpose networks, which connect every input to every hidden unit, are wasteful for images. A cat in the upper left of a picture and a cat in the lower right are the same cat, so a feature detector that works in one place should work everywhere. And nearby pixels are related to each other much more strongly than distant ones. He built a network architecture around these facts, called a convolutional neural network (CNN), in which a small filter slides across the image, detecting the same pattern in every location, and layers of such filters detect increasingly complex features: edges, then corners, then shapes, then digits. The architecture drew on the Neocognitron of Kunihiko Fukushima (1980), which had been developed in the quiet years, but LeCun trained it end to end with backpropagation.

His 1989 system learned to recognize handwritten ZIP code digits from the US Postal Service. By the late 1990s, a refined version called LeNet-5 (1998) was deployed commercially, and was reported to be reading a substantial fraction of all the checks processed in the United States. The 1998 paper also introduced a dataset of handwritten digits, MNIST, which became the "Hello, World" of machine learning, so ubiquitous that generations of students have trained their first neural network on it.

Sample handwritten digits from the MNIST dataset
Sample handwritten digits from the MNIST dataset. Image: Suvanjanprasai, CC BY-SA 4.0, via Wikimedia Commons.

It was a real system doing real work, in the real world, at scale. And it was a neural network. It worked beautifully. And yet the field largely didn't notice.

Why the revolution stalled

If backpropagation worked so well, why didn't neural networks take over immediately, in the late 1980s? Why did it take until about 2012?

The practical problems

  • Limited computing power. Training even moderately sized networks took days or weeks on the machines of the era. Anything larger was impractical.
  • Limited data. Big labeled datasets didn't yet exist. Training a deep network on a few thousand examples led to overfitting, memorizing the training data instead of generalizing.
  • Vanishing gradients. As networks got deeper, the error signal flowing backward tended to shrink exponentially, so the earliest layers barely learned at all. German researcher Sepp Hochreiter analyzed this in his 1991 diploma thesis, and Yoshua Bengio and others confirmed it in the mid-1990s. For about fifteen years, this made deep networks with many layers hard to train.
  • Fussiness. Training was sensitive to initialization, learning rate, and architecture. It felt more like alchemy than engineering, and results were hard to reproduce.
  • Local minima worries. Researchers feared training would get trapped in poor solutions. (In practice, in large networks, this turned out to be less of a problem than feared, but theory couldn't prove it at the time.)

The competition arrives

At the same time, a new family of methods emerged that were more mathematically elegant and easier to use. Support vector machines (SVMs), introduced in the 1990s by Vladimir Vapnik and colleagues, came with strong theoretical guarantees and often matched or beat neural networks on benchmarks of the day, with less fiddling. Kernel methods, random forests, boosting, and Bayesian methods (the subject of Part 10) were taking over machine learning conferences. For about a decade and a half, from the mid-1990s to the late 2000s, neural networks were again unfashionable. Papers about neural nets were routinely rejected from major conferences, reviewers saying they were "not principled."

Hinton, LeCun, and Bengio, later nicknamed the "godfathers of deep learning," kept at it, a small and sometimes embattled group. A critical lifeline came from an unexpected source: the Canadian Institute for Advanced Research (CIFAR), which in 2004 funded a program on neural computation and adaptive perception that gave this scattered community a place to meet and the means to continue working. LeCun has said that during this period it was sometimes hard to get neural network papers accepted at all, so they had to be rebranded. Some researchers joked about the term "deep learning" itself, which came into use in the mid-2000s as a way to give the field a fresh name, a case of rebranding in the best AI tradition.

Theory catches up: universal approximation

One more development deserves a mention. In 1989, George Cybenko proved, and Kurt Hornik and colleagues independently proved around the same time, the universal approximation theorem: a neural network with even a single hidden layer, given enough hidden units, can approximate any continuous function to any desired accuracy.

This closed the loop on Minsky and Papert's criticism. A single layer couldn't do XOR; but with a hidden layer, a network can represent essentially any input-output mapping you care about. The theorem doesn't say it's easy to learn the right weights, or that the network will generalize, but it confirmed that the representational ceiling was gone. The "sterile" extension was, mathematically, as rich as one could hope.

A deeper shift in thinking

The return of neural networks wasn't only a technical matter. It represented a philosophical shift in how people thought about intelligence, and it's worth pausing on.

Symbolic AI Connectionism
Knowledge is... Explicit symbols and rules Distributed patterns of connection strengths
Built by... Human experts writing rules Learning from examples
Fails by... Brittleness at the edges Graceful degradation, but opaque errors
Strength Transparent, precise reasoning Perception, pattern recognition
Weakness Can't learn, can't handle fuzziness Hard to interpret, hungry for data
Metaphor The mind as a program The mind as a brain

Each camp had real strengths. Symbolic systems were good at explicit reasoning and could explain themselves. Neural networks were good at messy perception and could learn. The debate between the two, which at times became a culture war, has never fully ended. Today, researchers talk about neurosymbolic AI, attempts to combine learning and reasoning, as a possible path to systems with both strengths.

There was also a well-known critique from the symbolic camp. In 1988, philosophers Jerry Fodor and Zenon Pylyshyn argued that neural networks couldn't capture the systematic and compositional nature of thought: if you can think "John loves Mary," you can also think "Mary loves John." Connectionists responded with models that showed some of this ability emerging, and the debate rolled on. In a way, it's still going: critics of modern language models raise very similar objections.

The 1990s: a different kind of AI

By the early 1990s, the cultural landscape of AI had changed. The grand symbolic ambitions of the 1960s to 1980s were fading. Neural networks were back but under suspicion. A third approach, statistical machine learning, was rising, built on probability theory, large datasets, and careful evaluation. It was less glamorous than "thinking machines," but it was delivering results in speech recognition, text classification, fraud detection, and more.

At the same time, a famous symbolic and search-based AI milestone was approaching, one that would put AI on the front pages of newspapers around the world: a computer was about to challenge the reigning world chess champion.

But first, we need to understand the quiet revolution in methods that was going on behind the scenes, because it changed what "AI" meant for the next twenty years.

Backpropagation by hand: a two-weight network

If the full XOR network felt like a lot to absorb, here is the smallest possible version of the same idea: a network with exactly two weights, one input, one hidden unit, and one output. We'll compute the gradient two ways: with backpropagation, and with a brute-force "nudge each weight a hair and see what changes" check. If backpropagation is right, the two answers must match.

import math sigmoid = lambda z: 1 / (1 + math.exp(-z)) x, target = 1.0, 0.0 w1, w2 = 0.8, -0.6 # a two-weight "network": x -> hidden -> output  def loss(w1, w2): h = sigmoid(w1 * x) y = sigmoid(w2 * h) return 0.5 * (y - target) ** 2 # backpropagation: chain rule, working backward from the output h = sigmoid(w1 * x) y = sigmoid(w2 * h) delta2 = (y - target) * y * (1 - y) # blame at the output grad_w2 = delta2 * h delta1 = delta2 * w2 * h * (1 - h) # blame passed back to the hidden unit grad_w1 = delta1 * x # gradient check: nudge each weight a hair and see how the loss actually changes eps = 1e-6 num_w2 = (loss(w1, w2 + eps) - loss(w1, w2 - eps)) / (2 * eps) num_w1 = (loss(w1 + eps, w2) - loss(w1 - eps, w2)) / (2 * eps) print(f"loss = {loss(w1, w2):.4f}") print(f"dL/dw2: backprop {grad_w2:+.6f} numerical {num_w2:+.6f}") print(f"dL/dw1: backprop {grad_w1:+.6f} numerical {num_w1:+.6f}") 

The output:

loss = 0.0792 dL/dw2: backprop +0.065786 numerical +0.065786 dL/dw1: backprop -0.012237 numerical -0.012237 

Read the numbers. The loss is 0.0792. The gradient for w2 is positive, meaning that increasing w2 would increase the error, so training should decrease it. The gradient for w1 is small and negative: the first weight matters less, because the error signal had to pass through the hidden unit's slope (h * (1 - h), at most 0.25) and through w2 on its way back. Notice that the two methods agree to six decimal places. This "gradient check" is how practitioners to this day verify that their backpropagation code is correct, and it also reveals why very deep networks have trouble: each extra layer multiplies in another factor like that 0.25, and the signal shrinks geometrically. That's the vanishing gradient problem in a single line of arithmetic.

Timeline: 1969 to 1998

  • 1969: Perceptrons published.
  • 1970: Linnainmaa describes reverse-mode automatic differentiation.
  • 1974: Werbos's thesis applies it to neural networks.
  • 1980: Fukushima's Neocognitron.
  • 1982: Hopfield networks.
  • 1983 to 1985: Boltzmann machines.
  • 1986: Rumelhart, Hinton, and Williams in Nature; the PDP volumes.
  • 1987: NETtalk; Hinton moves to Toronto.
  • 1989: LeCun's ZIP code network; universal approximation theorems; ALVINN.
  • 1991: Hochreiter analyzes vanishing gradients.
  • 1992: TD-Gammon; Vapnik and colleagues introduce the SVM.
  • 1997: LSTM invented (Part 15); Deep Blue beats Kasparov (Part 11).
  • 1998: LeNet-5 and the MNIST dataset.

Quick glossary

  • Gradient: the direction and steepness of increase of a function; here, how the error changes as each weight changes.
  • Gradient descent: repeatedly stepping weights opposite to the gradient to reduce error.
  • Hidden layer: a layer between input and output whose units learn internal features.
  • Activation function: the nonlinear function a unit applies to its weighted input (sigmoid, tanh, ReLU).
  • Overfitting: memorizing training examples instead of learning patterns that generalize.
  • Epoch: one full pass through the training data.

Key takeaways

  • Neural networks needed a way to train hidden layers: the credit assignment problem.
  • Backpropagation uses the chain rule to compute how much every weight in a network contributed to the error, then adjusts all of them by gradient descent.
  • The method was discovered several times (Linnainmaa 1970, Werbos 1974) but became famous with Rumelhart, Hinton, and Williams in 1986, and the PDP volumes.
  • Hopfield networks (1982) and Boltzmann machines brought physics and probability to neural networks.
  • Early successes included NETtalk (learning to pronounce English), TD-Gammon (backgammon by self-play), and LeCun's convolutional networks for reading handwritten digits and bank checks.
  • Progress stalled in the 1990s because of limited compute, data, and vanishing gradients, and because SVMs and other methods were easier to use.
  • The universal approximation theorem (1989) showed that one hidden layer suffices in principle.
  • Hopfield and Hinton shared the 2024 Nobel Prize in Physics for this foundational work.

Try it yourself

  1. Watch it learn. Modify the XOR network to print the error every 1,000 epochs. Notice the long plateau at the start followed by a sudden drop. That's a famous feature of training; what do you think is happening during the plateau?
  2. Change the architecture. Try 2 hidden units, then 1. What happens? Why can't one hidden unit solve XOR (hint: think about what a single sigmoid unit can represent)?
  3. Break it with a bad learning rate. Set lr to 0.01, then to 10. Describe what each does. This is your first encounter with the delicate art of hyperparameter tuning.
  4. Train on something new. Replace the XOR data with the three-input parity function and see how many hidden units you need.

Next up

In Part 10, we look at the quiet revolution of the 1990s and 2000s: statistical machine learning. Bayesian networks, hidden Markov models, support vector machines, and random forests transformed AI into an empirical, data-driven science, powering spam filters, speech recognition, and search engines, often without anyone calling it AI.

If you've trained your first neural network on MNIST, tell me how it went in the comments. And follow the series so you get Part 10 when it lands.

See you in Part 10.

☕ If this series helped you, you can support my writing on Ko-fi.

Support me on Ko-fi