The History of AI, Part 14 of 24. Over thirteen chapters we've followed the dream of thinking machines through myths, logic, winters, booms, and the quiet rise of statistics. Part 12 assembled the ingredients. Now comes the moment they combine. In the autumn of 2012, one neural network, trained on two gaming graphics cards, upended a field overnight.

On 30 September 2012, the organizers of the ImageNet Large Scale Visual Recognition Challenge posted the results of that year's competition. For anyone who followed computer vision closely, the leaderboard looked like a typo.

For two years, the best systems in the world had been inching forward. The 2010 winner had made mistakes on about 28 percent of test images; the 2011 winner, about 26 percent. The runner-up in 2012 would score 26.2 percent, right on trend. Everything about the field said that the next improvement would be a point or two.

But at the top of the table, in a different league, was an entry from the University of Toronto with an error rate of around 15 to 16 percent. It wasn't a point or two better. It was ten points better, a reduction in errors of more than a third, achieved in a single leap.

The entry was called SuperVision. History remembers it as AlexNet. This chapter is the story of that network, the people behind it, and the avalanche that followed.

The team

AlexNet was built by three people.

Alex Krizhevsky was a graduate student at the University of Toronto, a Ukrainian-born programmer of unusual talent. Krizhevsky had a knack for squeezing performance out of GPUs. In 2009 and 2010, while working on a smaller image dataset called CIFAR-10, he had written a highly optimized GPU implementation of convolutional neural network training, a piece of code later known as cuda-convnet. This hard engineering work was the secret ingredient: it made it practical to train a big network on a lot of images.

Ilya Sutskever (right) at Stanford in 2014
Ilya Sutskever (right) at Stanford in 2014. Image: Steve Jurvetson from Los Altos, USA, CC BY 2.0, via Wikimedia Commons.

Ilya Sutskever, born in Russia and raised in Israel and Canada, was a fellow PhD student of Hinton's with a reputation for conviction bordering on the fanatical. He is said to have been the one who pushed his colleagues to try ImageNet, arguing that if you made a neural network large enough and trained it with enough data, it would simply work. Others in the lab were less sure. (Sutskever would go on to co-found OpenAI in 2015, a story we'll pick up in Parts 19 and 21.)

Geoffrey Hinton, their supervisor, was 64 at the time, a Cambridge-educated British-Canadian scientist who had been championing neural networks since the 1970s, including through the long periods when almost nobody else did. We met him in Part 9: co-author of the 1986 backpropagation paper, great-great-grandson of George Boole.

The setup was modest by today's standards. Krizhevsky trained the network on two Nvidia GTX 580 graphics cards, each with only 3 gigabytes of memory, in his bedroom at his parents' house, according to a story widely told about the project. The network was too big to fit on one card, so he split it across two. Training took five to six days. Those gaming GPUs, which cost about $500 each, did the job that would have required a supercomputer a decade earlier.

What AlexNet actually was

AlexNet wasn't a bolt from the blue conceptually. It was a convolutional neural network, the kind Yann LeCun had pioneered at Bell Labs in the late 1980s (Part 9), and its structure would have been familiar to him. What was new was the scale and a handful of crucial practical refinements.

The architecture

The network had eight learned layers: five convolutional layers followed by three fully connected layers, ending in a 1,000-way output, one for each ImageNet category, whose values were converted into probabilities. In total, it had about 60 million parameters and 650,000 neurons. That was more than a hundred times larger than LeNet-5 of 1998.

The typical structure of a convolutional neural network
The typical structure of a convolutional neural network. Image: Aphex34, CC BY-SA 4.0, via Wikimedia Commons.

The convolutional layers did the seeing. The first layer slid 96 small filters (11 by 11 pixels) across the input image, detecting basic patterns: oriented edges, color blobs, textures. The second layer combined those into more complex patterns, such as corners and curves. By the fifth layer, units responded to object parts: a wheel, an eye, a patch of fur. Then the fully connected layers combined these parts into a decision about which object was in the image.

You can see how the parameters are distributed with a few lines of arithmetic. The following code counts the parameters in each layer of the network (using the slightly slimmed single-tower variant found in popular software libraries, which has the same overall design):

def conv_params(k, c_in, c_out): return (k * k * c_in + 1) * c_out # weights + one bias per filter  def fc_params(n_in, n_out): return n_in * n_out + n_out layers = { "conv1 (11x11, 3->64)": conv_params(11, 3, 64), "conv2 (5x5, 64->192)": conv_params(5, 64, 192), "conv3 (3x3, 192->384)": conv_params(3, 192, 384), "conv4 (3x3, 384->256)": conv_params(3, 384, 256), "conv5 (3x3, 256->256)": conv_params(3, 256, 256), "fc6 (9216->4096)": fc_params(256 * 6 * 6, 4096), "fc7 (4096->4096)": fc_params(4096, 4096), "fc8 (4096->1000 classes)": fc_params(4096, 1000), } total = sum(layers.values()) for name, n in layers.items(): print(f"{name:28} {n:>12,} {100 * n / total:5.1f}%") print(f"{'TOTAL':28} {total:>12,}") 

Run it and you'll see roughly 61 million parameters, with the three fully connected layers holding over 90 percent of them, while the convolutional layers (with their few parameters reused at every position in the image) do most of the computational work. That asymmetry, few parameters but heavy compute in the convolutional layers, many parameters but light compute in the dense layers, is a recurring theme in network design.

The ingredients that made it work

AlexNet combined most of the tricks we met in Part 12:

  • ReLU activations. Instead of sigmoids, AlexNet used the rectified linear unit, max(0, x). The paper reported that a network with ReLUs reached a given training error several times faster than the same network with tanh units. Fast training was the difference between an experiment that finishes in a week and one that never finishes.
  • GPU training. Two GPUs, with the network split across them, and a clever scheme in which the cards communicated only at certain layers.
  • Dropout. In the fully connected layers, half the units were randomly switched off during each training step, preventing the huge dense layers from simply memorizing the training set.
  • Data augmentation. The team artificially enlarged the training set, 1.2 million images, by randomly cropping, flipping horizontally, and slightly altering the colors of the training images, so the network never saw exactly the same image twice. This was a cheap and powerful defense against overfitting.
  • Overlapping pooling and local response normalization. Two other design choices that helped a little (the latter was later abandoned as unnecessary).
  • Big data. ImageNet's 1.2 million labeled images were exactly what such a large network needed.

None of these ideas was entirely new. The achievement was in assembling them all, getting them to work together, and scaling up. It's a pattern worth remembering: breakthroughs in AI are often less about a single brilliant idea than about the right combination at the right scale, executed with great engineering skill.

The reaction

The results were presented at a workshop at the European Conference on Computer Vision in Florence in October 2012. The paper, "ImageNet Classification with Deep Convolutional Neural Networks," appeared at the NIPS (now NeurIPS) conference in December. In the years since, it has become one of the most cited papers in the history of computer science, with well over a hundred thousand citations.

The reaction within the computer vision community was a mix of astonishment, excitement, and denial. Researchers who had spent their careers designing clever hand-built feature extractors, such as SIFT, HOG, and Fisher vectors, suddenly saw a "generic" learning machine with no hand-designed features outperform all of their work by a huge margin. It was the vision-field equivalent of a rookie walking into a chess tournament and beating the grandmasters.

Yann LeCun, who had been working on convolutional networks for twenty-five years, was in the audience in Florence. People who were present have described the session as a turning point: some skeptics asked whether the network might be exploiting some quirk of the dataset. But within months, the dominant opinion had flipped. Research groups around the world dropped what they were doing and began training deep convolutional networks. By the 2013 ImageNet challenge, almost every top entry used deep learning. Within a few years, essentially all of computer vision did.

The speed of the shift is staggering in retrospect. The field's central approach, built up over some forty years, was effectively replaced within about eighteen months.

The gold rush

The AlexNet result triggered a scramble that reshaped the technology industry.

The auction

Geoffrey Hinton at the 2024 Nobel Prize events
Geoffrey Hinton at the 2024 Nobel Prize events. Image: Jennifer 8. Lee, CC BY-SA 4.0, via Wikimedia Commons.

In late 2012, Hinton, Krizhevsky, and Sutskever formed a tiny company called DNNresearch, with no products and essentially no assets beyond themselves and their papers. Several tech giants wanted them. Hinton, who was working on a deadline, was reportedly flying to a conference at Lake Tahoe in December 2012 when the story of what happened next, as told in Cade Metz's book Genius Makers, became legend: he decided to run an auction for the company among Google, Microsoft, Baidu, and DeepMind. The bidding rose in a hotel room at Harrah's casino, in million-dollar increments, until Hinton called a halt at $44 million, selling to Google. The price, for a three-person company with no product, announced that AI talent had become one of the most valuable commodities on earth.

Hinton joined Google and divided his time between Toronto and Mountain View, until he resigned in 2023 to speak more freely about the risks of the technology he helped create (see Part 24).

The talent war

What followed was a frenzy:

  • Google bought the London start-up DeepMind in January 2014 for a reported $500 million or more, for a team that had barely any product. (DeepMind's story is central to Parts 17 and 21.) It also created the Google Brain group, which Andrew Ng, Jeff Dean, and Greg Corrado had started in 2011.
  • Facebook created Facebook AI Research (FAIR) in December 2013 and hired Yann LeCun to lead it.
  • Baidu hired Andrew Ng to lead a lab in Silicon Valley in 2014.
  • Microsoft, Amazon, Apple, IBM, and Nvidia all expanded their research. Nvidia pivoted decisively, tuning its chips and software libraries (such as cuDNN, released in 2014) specifically for neural network training. Its stock price would eventually climb into the trillions.
  • Universities found their top machine learning professors recruited by industry with salaries and compute budgets they couldn't match, a dynamic that continues to this day.

Academic conferences, which had been small, collegial gatherings (NIPS had only a few hundred attendees in the 2000s), ballooned. By the late 2010s they had tens of thousands of attendees and sold out within minutes.

The tools

A wave of open-source software lowered the barrier to entry:

  • Theano (Université de Montréal), Torch, and Caffe (Berkeley, 2013 to 2014) offered early frameworks.
  • Keras (2015, by François Chollet) made building networks accessible to ordinary programmers.
  • TensorFlow, released by Google in November 2015, and PyTorch, released by Facebook in 2016 to 2017, became the standard tools. PyTorch's flexible style won over researchers; today it is the dominant research framework.
  • Google announced a custom chip, the Tensor Processing Unit (TPU), in 2016, designed specifically for neural network math.

Equally important was the culture of openness: researchers posted their papers on arXiv immediately, released code, and shared pretrained models. The pace of progress accelerated because everyone could build on everyone else's work within days.

The cascade of improvements

Once the world noticed that deep convolutional networks worked, they got better and better, at an astonishing pace. The ImageNet challenge itself became a scoreboard for the progress.

Year Winning system Top-5 error
2010 Traditional features + SVM (NEC-UIUC) ~28%
2011 Traditional features (Xerox) ~26%
2012 AlexNet (8 layers) ~16%
2013 ZFNet / Clarifai (tweaked AlexNet) ~11.7%
2014 GoogLeNet (22 layers) and VGG (19 layers) ~6.7% / ~7.3%
2015 ResNet (152 layers) ~3.6%
2017 SENet (final competition) ~2.3%

For comparison, the researcher Andrej Karpathy, then a Stanford PhD student, took on the task of classifying ImageNet images himself in 2014, spending days training himself on the categories, and reached a top-5 error of about 5.1 percent. In 2015, Microsoft's ResNet beat that human benchmark. Machines were now better than a dedicated person at this particular image classification task, a fact that made headlines worldwide. (There are many caveats, including that the labels themselves contain errors, and that a human can do things the network can't. But the milestone was real.)

Deeper and deeper: ResNet

The trend of 2012 to 2015 was toward depth: more layers meant better results, as long as you could train them. The vanishing gradient problem had not gone away. When researchers tried simply stacking more layers, accuracy at some point got worse, even on the training data, a puzzling "degradation" phenomenon.

The solution, from Kaiming He and colleagues at Microsoft Research in 2015, was disarmingly simple: the residual connection, or skip connection. Instead of asking each block of layers to learn the desired output directly, ask it to learn only the difference, the "residual," from its input, and add the input back in. In code, one extra addition: output = input + block(input). The shortcut gives the gradient a direct path backward through the network, so even a 152-layer network (and later networks with a thousand layers) trained smoothly. The ResNet paper became, for a time, the most cited paper in modern AI. And the idea of residual connections has since become universal: the transformer architecture in Part 18 relies on it in every layer.

Other practical advances arrived at the same time: batch normalization (2015), which stabilized training by normalizing each layer's inputs, and Adam (2014), an adaptive optimizer that made tuning easier. Training deep networks, once an arcane art, became routine.

Why did it work, really?

Let's pause on the question the field was now asking: why did deep learning succeed where decades of other approaches hadn't? It's worth separating the real reasons from the myths.

1. Learned features beat engineered features. The central lesson of AlexNet. Rather than a human deciding what to measure, the network discovered its own hierarchy of features, from edges to textures to parts to objects. Matthew Zeiler and Rob Fergus's 2013 visualization work showed this vividly, revealing what each layer of a trained network responds to. The first layer looks like the oriented edge detectors found in the visual cortex of cats and monkeys (a fact discovered by neuroscientists David Hubel and Torsten Wiesel in the 1950s and 60s, work that inspired Fukushima's Neocognitron and ultimately LeCun's networks).

2. Scale. Big models, big data, big compute, as predicted by the "Bitter Lesson" of Part 12. As researchers kept scaling up, performance kept improving, in a surprisingly smooth and predictable way (a pattern that will become central in Part 19).

3. Convolution is a great inductive bias for images. Sharing the same filters across all positions, and building features out of local neighborhoods, builds in the right assumptions about how images work: objects look the same wherever they appear, and nearby pixels are related. This drastically reduces the number of parameters you need to learn and makes training with limited data feasible.

4. End-to-end training. The whole system, from pixels to answer, is trained at once, with every layer adjusting to serve the final goal. Previous systems were pipelines of separately designed stages, and errors compounded.

5. Engineering. GPU kernels, careful initialization, and good tooling. The unglamorous work of making things run fast and stably mattered enormously.

6. Timing. The ideas had mostly existed for 25 years. What changed was that the conditions finally existed to make them work: data and compute. It's a humbling thought: some of the key theoretical pieces were in place in 1989, but the world needed another twenty years of hardware and the Internet to catch up. As the saying goes, a great idea at the wrong time is a bad idea.

Beyond classification: everything becomes a vision problem

Once convolutional networks worked for classifying images, they spread to nearly every visual task, and to many non-visual ones.

  • Object detection. Instead of naming one object in a picture, find and outline all of them. R-CNN (2013), Fast and Faster R-CNN, and YOLO ("You Only Look Once," 2015) brought real-time detection, useful for everything from security cameras to self-driving cars.
  • Segmentation. Label every pixel. U-Net (2015), designed for biomedical images, became a workhorse of medical imaging.
  • Face recognition. Systems like DeepFace (Part 13) and Google's FaceNet reached human-level accuracy.
  • Medical imaging. In 2016, researchers at Google published in the Journal of the American Medical Association a deep network that detected diabetic retinopathy, a leading cause of blindness, from eye scans at a level comparable to ophthalmologists. In 2017, a Stanford team published in Nature a network trained on about 130,000 images that classified skin lesions at a level comparable to board-certified dermatologists. These made headlines, and they also led to sober follow-up work on how such tools perform in real clinical settings.
  • Transfer learning. A network trained on ImageNet turned out to be a great starting point for other image tasks: you could take the pretrained network, replace the last layer, and fine-tune it on a small dataset of your own, say, X-rays or satellite photos, with great results. This idea, pretraining on a large dataset then adapting to a specific task, is a precursor of the entire foundation-model paradigm that dominates AI today.
  • Beyond images. Convolutional networks were applied to audio (spectrograms), text, and even board games. The same principle, learn the features, spread everywhere.

The cracks: adversarial examples and brittleness

The triumphant story has an important footnote, and it appeared almost immediately.

In 2013, Christian Szegedy and colleagues at Google published a paper called "Intriguing properties of neural networks," which contained a startling discovery. You can take an image that a network classifies correctly, add a tiny, carefully computed pattern of noise, imperceptible to the human eye, and make the network confidently output a completely different answer. A picture of a panda, plus invisible noise, becomes a "gibbon" with 99 percent confidence. These are called adversarial examples.

The following year, Ian Goodfellow and colleagues explained a simple method for generating them and showed that they were not mere quirks but a fundamental feature of how these models work. Researchers later showed that you could print an "adversarial patch" (a funny-looking sticker) that made a classifier see a banana as a toaster, or put small stickers on a stop sign that made a vision system read it as a speed limit sign.

What does this reveal? Deep networks perform spectacularly on average, on data that resembles what they were trained on, but they don't "see" the way people do. They pick up on statistical patterns, including textures and other subtle cues, that humans ignore. A 2019 study by Robert Geirhos and colleagues showed that standard ImageNet networks rely heavily on texture rather than shape: show them a cat with the texture of an elephant's skin and they say "elephant."

This fragility remains a live issue, and it connects to a theme we've seen from the very beginning of this series: performance on a benchmark is not the same as understanding. The critics who had warned about this, from Descartes to Dreyfus to Searle, weren't entirely wrong. The field's response has been to develop robust training methods, bigger and more diverse datasets, and better evaluation, but the problem hasn't gone away. In 2018, the cognitive scientist Gary Marcus published a widely discussed critique, "Deep Learning: A Critical Appraisal," listing limitations: dependence on large amounts of data, difficulty with abstraction and reasoning, brittleness, and opacity. Many of his points remain relevant even as models have advanced.

What the AlexNet moment means for the story

Take a step back and think about how this chapter fits into the larger arc.

  • Part 9: Backpropagation made multi-layer networks trainable in principle (1986).
  • Part 10: Statistical learning took over while neural nets were sidelined.
  • Part 12: Data (ImageNet) and compute (GPUs) matured.
  • Part 14: Everything combined, and the old approach of hand-engineering features collapsed in eighteen months.

A scientific community, accustomed to incremental progress, experienced something close to a paradigm shift in the sense of philosopher Thomas Kuhn: a sudden change in the fundamental way the field worked. The approach that had been dismissed as dead for two decades turned out to be the future.

For Hinton, LeCun, and Bengio, the vindication was complete. In 2018, the three shared the ACM Turing Award, the "Nobel Prize of computing," for their work on deep neural networks. In 2024, Hinton shared the Nobel Prize in Physics, as we noted in Part 9. For the younger researchers, the lesson was that the old adage "if it's worth doing, it's worth doing at scale" had found its proof.

But for the field as a whole, a deeper question loomed. Seeing, recognizing objects in pictures, was only one capability. What about sequences: speech, language, music, time? What about generating images instead of merely classifying them? What about acting in an environment? The tools to answer these questions, recurrent networks, generative adversarial networks, and deep reinforcement learning, were all being developed in parallel, and each of them would deliver its own shock. The next four chapters follow those threads.

AlexNet by the numbers

  • 8 learned layers (5 convolutional, 3 fully connected).
  • About 60 million parameters and 650,000 neurons.
  • 1.2 million training images, each shown to the network many times.
  • About 90 passes (epochs) through the training data.
  • 5 to 6 days of training on two GTX 580 GPUs, each with 3 GB of memory.
  • Top-5 error of roughly 16% against 26% for the runner-up.
  • Over 100,000 citations for the paper in the years since.

Compare that with today: the training compute of the largest modern models exceeds AlexNet's by a factor of many millions, yet the lineage is direct.

Timeline: 2012 to 2018

  • 2012: AlexNet; dropout; the Google "cat" paper.
  • 2013: Adversarial examples discovered; DNNresearch sold to Google; Facebook AI Research founded.
  • 2014: DeepMind acquired by Google; VGG and GoogLeNet; Adam optimizer; cuDNN.
  • 2015: ResNet beats the human benchmark; batch normalization; TensorFlow released.
  • 2016: PyTorch appears; Google announces TPUs.
  • 2017: Final ImageNet challenge; the Transformer (Part 18).
  • 2018: Turing Award to Hinton, LeCun, and Bengio.

Quick glossary

  • Convolutional layer: a layer that slides small shared filters over its input.
  • Pooling: summarizing a small region (for example, by its maximum) to shrink data.
  • Fully connected layer: a layer in which every unit connects to every unit in the previous layer.
  • Top-5 error: how often the correct class isn't among the five highest-scoring guesses.
  • Transfer learning: reusing a model trained on one task as the starting point for another.
  • Adversarial example: an input altered, often imperceptibly, to make a model fail.
  • Residual connection: a shortcut that adds a layer's input to its output.

Key takeaways

  • AlexNet (Krizhevsky, Sutskever, Hinton) won the 2012 ImageNet challenge with a top-5 error of about 16 percent, versus 26 percent for the runner-up, a leap so large that it flipped computer vision to deep learning within about 18 months.
  • It was a convolutional neural network with 8 layers and ~60 million parameters, trained on two gaming GPUs, using ReLU, dropout, data augmentation, and ImageNet's 1.2 million images.
  • The result triggered an industry gold rush: Google paid $44 million for Hinton's three-person company, bought DeepMind, and Facebook, Baidu, and others rushed to build AI labs. Nvidia, TensorFlow, and PyTorch grew alongside.
  • ImageNet error fell from 28% (2010) to under 3% (2017), surpassing human-level performance on the task by 2015, aided by innovations like ResNet's skip connections.
  • Transfer learning turned pretrained networks into foundations for many tasks, including medical imaging.
  • Adversarial examples and texture bias revealed that deep networks are brittle and don't see like humans.
  • 2018 Turing Award for Hinton, LeCun, and Bengio; 2024 Nobel Prize for Hinton (with Hopfield).

Try it yourself

  1. Use a pretrained network. In Python, with PyTorch or TensorFlow, load a pretrained ResNet or AlexNet and classify five photos of your own. Look at the top-5 predictions. When is it confidently wrong?
  2. Fine-tune it. Take about 100 photos each of two things (your cat and your neighbor's cat, or two types of plants), replace the final layer of a pretrained network, and train only that layer. You've just done transfer learning.
  3. Count the cost. Modify the parameter counter above to model a network with twice as many filters in each convolutional layer. What happens to the total? Which layers dominate?
  4. Fool a network. Search for "fast gradient sign method" tutorials and generate an adversarial example against a pretrained classifier. It takes about 10 lines of code. How small does the perturbation need to be?

Next up

In Part 15, we open the hood on the three families of deep networks that dominated the mid-2010s: convolutional networks (the seeing machines), recurrent networks, and LSTMs (the machines with memory that conquered speech, handwriting, and translation). We'll meet Sepp Hochreiter and Jürgen Schmidhuber, whose 1997 invention was quietly powering your phone long before most people had heard of it, and we'll see how neural networks learned to handle time.

If you were in the field in 2012, I'd love to hear what the mood was like in the weeks after the result. Tell me in the comments, and follow the series for Part 15.

See you in Part 15.

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

Support me on Ko-fi