← Back to More

In my previous post we left the story with the Perceptron and its limitations, one of them being the lack of a suitable algorithm to deal with the multiple layers of neural networks. By 1986 a candidate for such an algorithm had appeared, with the somewhat fancy name of backpropagation (for a full explanation of this and other concepts, see this post). I always read about how backpropagation laid the foundation of the deep learning revolution in 1986. But if that is the case, then why didn't deep learning explode already in 1986 if it all was so wonderful? The short answer is that, for networks with more than two or three hidden layers, backpropagation didn't work very well.

To understand why, recall what backpropagation does (click here for a more detailed explanation of how neural networks in general function). We try to find in which direction (up or down) our weights and biases need to be tuned in order to decrease the loss function and improve the predictive power of our network. We perform this for each layer in the network, starting at the last layer (the layer before the output layer) and sequentially going back through each layer until we are at the input layer. It was well recognized that adding more layers to neural networks would improve their performance and allow them to recognize and predict more and more hidden features within a dataset. But as the networks grew in size and more layers got added, the learning became more and more difficult. The learning signals (the numbers indicating the direction in which to tune the weights) became weaker and weaker as the backpropagation algorithm moved through the different layers. Researchers dubbed it the vanishing gradient problem, and it drove them to despair.

We have already seen several of these episodes throughout AI's brief but sometimes brutal history. Periods where expectations and hopes were sky-high, only for these hopes and dreams to run into practical realities or constraints. What followed was a time where funding dried up, researchers lost faith, and AI largely disappeared from serious scientific conversation. The dreaded "AI winter", and it was back with a vengeance.

It would take more than a decade and several developments to tame the vanishing gradient problem. Many of these improvements were highly technical and mathematical, but I want to highlight three which I found to be fascinating in their own regard.

The above, together with many other improvements, finally allowed neural networks with tens or hundreds of layers to become effective. The most famous demonstration happened in September 2012. For several years, an annual competition called the ImageNet challenge was organised, in which neural networks competed to classify images. In 2012 a deep neural network with 8 layers and 60 million parameters, called AlexNet, won the competition. But it did not just win, it blew the competition out of the water with its performance. Improvements were usually measured in fractions of a percent better error rates. AlexNet managed a full 10 percent improvement compared to the next competitor. The AI Winter was over. Deep neural networks were finally a reality.

One of the key figures in the above story is Geoffrey Hinton, one of the so-called fathers of AI. He was instrumental in several key developments mentioned here: co-author of the seminal 1986 backpropagation paper, fighting against the vanishing gradient and motivating his researchers to use the ReLU activation function in building AlexNet. He was one of those researchers who kept going in the face of budget cuts, the common belief that deep neural networks would just never work, the many disappointments. It's a nice illustration that personalities do matter, and the story of AI is ripe with them. Hinton's persistence and refusal to give up culminated in him winning the 2024 Nobel Prize in Physics, together with John Hopfield. They were nominated "for foundational discoveries and inventions that enable machine learning with artificial neural networks."

AlexNet was significant for another reason as well. By now the backpropagation algorithm, the ReLU activation function and the many other improvements had shown the way forward. Deep neural networks could be made to work. The calculations were doable. But the amount of computations proved to be a formidable challenge, and classical computer chips (CPUs) were just not up to the task. Something else was needed. And it needed to be blazingly fast.

The story continues in my next post, where we turn our attention to the advancements in hardware which made today's AI revolution a reality. As always please drop me a note if you find this interesting, or if you want me to cover other topics in my posts. I would love to hear from you!

← Back to More