The History of AI, Part 12 of 24. In Part 11, a machine beat the world chess champion by brute force. Now we turn to a different kind of brute force: the two ingredients, enormous labeled datasets and cheap parallel computing, that finally let neural networks do what their inventors had always promised.

Imagine that it's 2007, and you've just had an idea that you believe could transform computer vision. The idea is simple to state: to teach a machine to recognize objects, don't write better algorithms. Instead, show it a lot more pictures. Not thousands. Not hundreds of thousands. Tens of millions, organized into thousands of categories, every one correctly labeled by a human.

You mention this to your colleagues. They are polite, but skeptical. The state of the art in vision is a collection of ingenious, hand-engineered algorithms, and conferences reward cleverness, not data collection. Building a giant dataset sounds like a lot of tedious, expensive work that isn't even research. A senior colleague suggests that you'd be wasting your time.

This was, more or less, the situation of Fei-Fei Li, a young professor at Princeton. She went ahead anyway. And together with an unlikely accident of hardware, a chip built for video games, her dataset would help detonate the modern AI boom.

This chapter tells that story. It's about the two ingredients that, mixed with the algorithms of Parts 9 and 10, finally produced deep learning: data and compute.

The third winter that never came

To set the scene, remember where neural networks stood in the mid-2000s. They'd been used successfully in niche applications (reading checks, screening credit card fraud), but within academic machine learning they were out of fashion. Support vector machines and kernel methods ruled. Deep networks with many layers were considered too hard to train, for the reasons we saw in Part 9: vanishing gradients, small datasets, slow computers, and fiddly tuning.

Geoffrey Hinton, Yann LeCun, and Yoshua Bengio were not convinced. They believed that the right approach to perception was to learn features directly from raw data (pixels, audio waveforms) through many layers of processing, rather than relying on hand-engineered features. They had a hunch that the obstacles were practical rather than fundamental. What they lacked was proof.

They were about to get it, from three directions at once.

Ingredient 1: Data

The data explosion

Starting in the late 1990s, and accelerating through the 2000s, the world began producing digital data on an unprecedented scale:

  • The World Wide Web grew from a few thousand sites to billions of pages.
  • Digital cameras, and then smartphones (the iPhone launched in 2007), put a camera in everyone's pocket. Photo-sharing sites like Flickr (2004) and Facebook (2004) accumulated billions of images, and YouTube (2005) accumulated video.
  • Wikipedia (2001) became a vast, free, multilingual text corpus.
  • Search engines, e-commerce, and social networks logged every click, query, and purchase.
  • Cloud computing and distributed data processing arrived: Google published its MapReduce paper in 2004, the open-source Hadoop followed in 2006, and Amazon launched AWS in 2006, making it practical to store and process enormous datasets.

The phrase "big data" entered everyday language. But raw data wasn't enough for the kind of machine learning that dominated the era, supervised learning, where each example has to come with a label (this photo contains a dog; this sentence is positive; this email is spam). Labels cost human effort. And in vision, the standard datasets were tiny by modern standards: MNIST had 70,000 handwritten digits; Caltech 101 had around nine thousand images in 101 categories; the PASCAL VOC challenge had about 20 categories and some thousands of images.

Fei-Fei Li and ImageNet

Fei-Fei Li was born in Beijing and moved to New Jersey at 16, where her family ran a dry-cleaning business while she studied hard and eventually went to Princeton on a scholarship. She earned a PhD at Caltech in computer vision, then became a professor, first at Princeton and later at Stanford.

Her insight, which she has described in interviews and her memoir, was that the vision field was obsessed with algorithms while ignoring data. Children learn to see by being exposed to millions of images over years of waking life. Yet researchers expected algorithms to learn to recognize objects from a few hundred examples. What if the problem was not the learning algorithm but the poverty of the diet?

Fei-Fei Li, creator of ImageNet
Fei-Fei Li, creator of ImageNet. Image: ITU Pictures, CC BY 2.0, via Wikimedia Commons.

She was inspired by WordNet, a hierarchical database of English words created by the Princeton psychologist George Miller beginning in the 1980s, in which words are organized into sets of synonyms linked by relationships such as "is a kind of" (a poodle is a dog is a canine is a mammal...). Li proposed to build a visual equivalent: for every concept in WordNet, collect hundreds or thousands of images. Starting in 2006, she and her collaborators set out to build it. They called it ImageNet.

How do you label 14 million images?

The obvious problem: who labels them? Hiring undergraduates to do it by hand would take decades and cost fortunes. Li's team estimated it would take 19 years at the pace of the first approach.

The solution came from an old friend of this series. In 2005, Amazon launched a service called Mechanical Turk, named, tongue in cheek, after the 18th-century chess-playing hoax we met in Part 1. It was a marketplace where people anywhere in the world could perform small tasks, such as labeling an image, for a few cents each. It was literally human intelligence hidden inside a machine interface, and it was perfect for this job.

The team first collected candidate images by searching the web for each WordNet concept, then asked crowdsourced workers to verify, for each image, whether it actually contained the object. To guard against errors, each image was checked by multiple workers. Over roughly two and a half years, tens of thousands of workers in about 167 countries sorted and labeled hundreds of millions of candidate images, winnowing them down to a clean dataset. By 2009, when the team presented a poster at the Computer Vision and Pattern Recognition (CVPR) conference in Florida, ImageNet contained several million labeled images, and it eventually grew past 14 million images in more than 20,000 categories.

The reception at the conference was lukewarm. The poster was in a corner. Many attendees didn't see the point.

The challenge

To get researchers to use the dataset, Li's team launched an annual competition in 2010, the ImageNet Large Scale Visual Recognition Challenge (ILSVRC). The task: given a photograph, name the object in it, selected from 1,000 categories (including 120 breeds of dog), using a training set of about 1.2 million images. Teams submitted their programs, which were tested on 100,000 hidden images. The headline measure was the top-5 error rate: how often was the correct label not among the system's top five guesses.

The early results were respectable but unspectacular:

  • 2010: the best system had a top-5 error of about 28%.
  • 2011: the winner reduced it to about 26%.

These were built with the best traditional methods: hand-designed features (like SIFT and HOG descriptors, which capture local patterns of edges and gradients) fed into SVM-style classifiers. Progress was steady and slow, the kind that suggests an approach is nearing its limit. A one or two percentage-point gain per year was cause for celebration.

Hold that thought. The 2012 result is the subject of Part 14.

A demonstration: what "learning features" means

To see why features mattered so much, and why learning them was such a prize, consider the simplest vision operation: detecting an edge. Here's a tiny image, six pixels wide, with a dark region on the left and a bright region on the right, and a hand-designed filter that responds to vertical edges:

image = [ [0, 0, 0, 9, 9, 9], [0, 0, 0, 9, 9, 9], [0, 0, 0, 9, 9, 9], [0, 0, 0, 9, 9, 9], ] kernel = [[-1, 0, 1], [-1, 0, 1], [-1, 0, 1]] # responds to dark-to-bright vertical edges  def convolve(img, k): kh, kw = len(k), len(k[0]) out = [] for r in range(len(img) - kh + 1): row = [] for c in range(len(img[0]) - kw + 1): row.append(sum(img[r + i][c + j] * k[i][j] for i in range(kh) for j in range(kw))) out.append(row) return out for row in convolve(image, kernel): print(row) # [0, 27, 27, 0] # [0, 27, 27, 0] 

The filter lights up exactly where the brightness jumps. Old-school computer vision was a massive library of such hand-crafted filters, designed by experts over decades. Deep learning's radical proposal was: don't design the filter, learn it. Start with random numbers in kernel, show the network millions of labeled images, and let backpropagation adjust the numbers until they detect whatever is useful. In practice, networks trained this way discover edge detectors on their own in the first layer, then texture and shape detectors, and eventually detectors for eyes, wheels, and faces. But learning thousands of such filters across many layers demands two things: a huge dataset to learn from, and enormous computation to do the learning. ImageNet delivered the first. The second came from an unexpected direction.

Ingredient 2: Compute

A hidden bottleneck

Training a neural network is, computationally, mostly a matter of multiplying large matrices of numbers. Each layer takes a vector of inputs, multiplies it by a matrix of weights, and applies a simple function. The backward pass of backpropagation involves more matrix multiplications. A modern network can do trillions of such arithmetic operations to process a single batch of data.

On a traditional CPU, the processor in your laptop, this is slow, because a CPU is designed to be a clever generalist: it has a handful of powerful cores optimized for running complicated, branching programs one step at a time. A neural network doesn't need cleverness. It needs millions of simple, identical, independent multiplications and additions at once.

Chips built for games

Meanwhile, in an apparently unrelated industry, the demand for realistic 3D video games was driving the development of a very different kind of chip. Rendering a scene means computing the color of every pixel on the screen, millions of them, 60 times a second, and each pixel's calculation is largely independent of the others. So graphics chips were designed with thousands of small, simple cores working in parallel.

A consumer Nvidia graphics card, the kind of hardware that unexpectedly powered deep learning
A consumer Nvidia graphics card, the kind of hardware that unexpectedly powered deep learning. Image: Thomas Galvin, CC BY-SA 4.0, via Wikimedia Commons.

In 1999, Nvidia marketed its GeForce 256 as the world's first "GPU," a graphics processing unit. Over the following years, GPUs became steadily more programmable, and some researchers noticed that they could be repurposed for non-graphics tasks. What a GPU does when it shades pixels, applying the same operation to huge arrays of numbers, is mathematically the same kind of operation as neural network training. A video-game card costing a few hundred dollars could do matrix arithmetic at rates that previously required a supercomputer.

Early GPU programming was awkward: you had to disguise your math as graphics operations, pretending that your data was a texture. Then in 2007, Nvidia released CUDA, a programming platform that let developers write general-purpose code for its GPUs in a variant of C. (It was based partly on research by Ian Buck, a Stanford PhD student who then joined Nvidia.) The company made a bet, long considered a bit odd at the time, that scientific computing would become a major market for GPUs.

The first demonstrations

By around 2009, researchers began to notice what GPUs could do for neural networks:

  • In 2009, Rajat Raina, Anand Madhavan, and Andrew Ng at Stanford published a paper showing that GPUs could train large deep belief networks up to about 70 times faster than a CPU.
  • Starting around 2010 and 2011, the Swiss researcher Dan Ciresan, working in Jürgen Schmidhuber's lab at IDSIA, trained deep convolutional networks on GPUs and began to win pattern-recognition contests: handwritten digits, Chinese characters, and traffic-sign recognition, where in 2011 their system reached a level that exceeded human accuracy on the benchmark.
  • Hinton's students Abdel-rahman Mohamed and George Dahl, working with Microsoft researchers, showed in 2009 and 2010 that deep neural networks could substantially improve speech recognition over the long-reigning HMM-based systems, and by 2012 several major groups (Google, Microsoft, IBM, Toronto) published a joint paper on the result. The industry quickly converted: within a couple of years, the speech recognizers in phones were neural.

These were early signs, but they were scattered, in niche benchmarks, and the mainstream was not yet convinced.

The scale of the shift

To appreciate how much compute mattered, consider the arithmetic. A GPU of the early 2010s could deliver on the order of a trillion operations per second. Today's AI accelerators deliver hundreds of times more. Over the following decade the amount of computation used to train the largest AI models would grow by a factor of hundreds of millions, doubling every few months, a far faster pace than Moore's Law. At each step, the old problem of the combinatorial explosion was met not with cleverness but with sheer arithmetic.

This brings us to one of the most influential, and contested, essays in modern AI.

The Bitter Lesson

In 2019, the reinforcement learning pioneer Richard Sutton, whom we met in Part 10, published a short essay titled "The Bitter Lesson." It begins with a claim based on seventy years of AI history:

The biggest lesson that can be read from 70 years of AI research is that general methods that leverage computation are ultimately the most effective, and by a large margin.

Sutton pointed to repeated examples: computer chess (Deep Blue's brute-force search beat attempts to encode human chess knowledge), computer Go, speech recognition (statistical methods beat linguistically informed ones), and computer vision (learned features beat hand-designed ones). In each case, researchers built in human knowledge about the domain, and it helped in the short term, and then it was overtaken by a simpler method that scaled with more computation. The lesson was "bitter" because it implies that much of the cleverness we're proud of is eventually wasted.

His conclusion: search and learning, the two methods that scale arbitrarily with computation, are the ones worth betting on. Not everyone agrees; critics argue that clever architectures and good data matter enormously, and that raw scale has diminishing returns. But the essay captures a pattern we have seen throughout this series, from Moravec's paradox to the AI winters to Deep Blue: computing power has repeatedly been the hidden variable. Many of the "failures" of the 1960s to 1980s were, in a real sense, failures of hardware. The ideas were less wrong than the computers were small.

Ingredient 3: Better tricks

Data and compute would not have been enough without a set of algorithmic improvements, many of them surprisingly simple, that made deep networks trainable. The late 2000s and early 2010s produced them in a rush.

Pretraining and the "deep learning" rebrand. In 2006, Hinton, with Simon Osindero and Yee-Whye Teh, published "A Fast Learning Algorithm for Deep Belief Nets," and with Ruslan Salakhutdinov a paper in Science on reducing the dimensionality of data with neural networks. They showed that a deep network could be trained one layer at a time, each layer learning without labels to model the output of the one below, before a final fine-tuning with backpropagation. This gave the weights a good starting point and sidestepped the vanishing gradient problem. The papers also relaunched the whole field under a new name: "deep learning." (The technique itself was later mostly abandoned as better methods made pretraining unnecessary for many tasks, though a descendant of the idea, pretraining on large unlabeled data followed by fine-tuning, is the foundation of today's large language models.)

ReLU activations. For decades, networks used smooth, S-shaped activation functions like the sigmoid. A much simpler alternative, the rectified linear unit (ReLU), which just outputs max(0, x), turned out to train far faster and to suffer much less from vanishing gradients, because for positive inputs its slope is exactly 1, so the error signal passes back through undiminished. Papers by Vinod Nair and Hinton (2010) and Xavier Glorot, Antoine Bordes, and Bengio (2011) popularized it.

Better initialization. Glorot and Bengio (2010) showed how to choose the starting weights so that signals neither exploded nor vanished as they passed through many layers.

Dropout. In 2012, Hinton and his students proposed dropout: during training, randomly switch off half the units in each layer for each example. It sounds like sabotage, but it prevents units from relying too heavily on each other and acts as a powerful regularizer against overfitting. It would become a standard tool.

Stochastic gradient descent with mini-batches and momentum. Rather than computing gradients over the entire dataset, which is slow, compute them on small random batches. This noisy approach turned out to work remarkably well and to suit GPUs perfectly.

None of these was a thunderclap. Together, they turned deep networks from finicky research prototypes into trainable engineering tools.

The Google Brain "cat"

One more event from this period deserves mention, because it showed the world what scale could do, and because it became a meme.

Servers in a Google data center
Servers in a Google data center. Image: Wesley Nitsckie, CC BY-SA 2.0, via Wikimedia Commons.

In 2011 to 2012, a team at Google, including Andrew Ng, Jeff Dean, and Quoc Le, built a neural network of about a billion connections and trained it on ten million frames randomly taken from YouTube videos, using a cluster of 16,000 CPU cores across a thousand machines for three days. Crucially, the data was unlabeled: the network was never told what any frame contained. It was simply asked to learn to reconstruct its input, discovering structure by itself.

When the researchers inspected the trained network, they found that one of its neurons had become highly responsive to images of cat faces. Another responded to human faces, another to human bodies. Nobody had programmed these detectors or told the network what a cat was. They emerged because cats are very common on YouTube. The result was widely reported as "Google's computer taught itself to recognize cats," and it caught the public's imagination, partly because it was so cute, and partly because it hinted at something profound: given enough data and compute, networks could discover the concepts in the world by themselves.

It also drew attention within Google to the potential of deep learning, and the company hired Hinton and his students shortly afterward (more on that in Part 14), and by 2013 had begun to roll deep learning into products including voice search, photo tagging, and, later, translation.

The ethical underside of the data revolution

It would be a mistake to tell this story as pure triumph. The data-centric approach raised new problems, many of which became prominent later.

The hidden labor. The labeling that made ImageNet and its successors possible was done by crowds of human workers, often paid pennies per task, in many countries. The modern AI industry still relies heavily on such data annotation work, and on content moderation workers who review disturbing material to keep systems safe. The "Mechanical Turk" label from the 18th century was uncomfortably apt: much of the apparent machine intelligence in the system comes from hidden human intelligence.

Bias in, bias out. A model trained on a dataset inherits its flaws. If the photos in the dataset come mostly from certain countries, or depict certain groups in stereotyped ways, the model learns those patterns. Researchers later documented that face recognition systems performed worse on women and on people with darker skin (a landmark 2018 study by Joy Buolamwini and Timnit Gebru, "Gender Shades," found much higher error rates for darker-skinned women than for lighter-skinned men in commercial systems).

ImageNet's own problems. The dataset itself came under scrutiny. Because the categories were drawn from WordNet, which included many words for people, ImageNet included labels for people that were offensive, stereotyping, or simply inappropriate. In 2019, an art project called ImageNet Roulette, by researcher Kate Crawford and artist Trevor Paglen, let people upload their photos and see what labels the dataset-trained model assigned them, which sometimes produced shocking results. Soon after, the ImageNet team announced that it would remove hundreds of thousands of images from the "person" categories and acknowledged the problem. Li and her collaborators published work on making the dataset fairer.

Privacy and consent. Datasets scraped from the web contain images and text that people never agreed to contribute. This tension would grow dramatically with the large language models and image generators of Parts 19 to 21, and it is the subject of ongoing lawsuits and regulation.

These problems matter, and we'll return to them in Part 24. But it is also worth noting that the AI community took them seriously: Li and others became prominent advocates of "human-centered AI," and the field is much more attentive to dataset quality than it was in 2009.

The stage is set

By the summer of 2012, all the ingredients were on the table:

  • A huge labeled dataset (ImageNet, 1.2 million training images, 1,000 categories) and an annual competition to focus effort.
  • Cheap parallel hardware (Nvidia GPUs with CUDA) capable of training large networks in days rather than months.
  • Algorithmic tricks (ReLU, dropout, better initialization, mini-batch SGD) that made deep networks trainable.
  • A community of believers (Hinton, LeCun, Bengio, Schmidhuber, Ng) who had spent decades preparing.
  • A skeptical mainstream that had not noticed that the ground was shifting.

What was missing was a dramatic demonstration, a result so decisive that no one could ignore it. In September 2012, it came. A team from the University of Toronto submitted an entry to the ImageNet challenge that cut the error rate by more than a third in a single leap, and it ran on two gaming graphics cards in a student's bedroom.

That is the story of Part 14. But first, in Part 13, we look at two other pieces of the 2000s and 2010s landscape that put AI back in the public eye: a quiz show, and the voice assistant in your pocket.

ImageNet by the numbers

To feel the scale of the effort, here are the figures behind the dataset and the contest:

  • About 14 million labeled images in the full database, across more than 20,000 categories.
  • 1.2 million training images and 1,000 categories in the challenge version (ILSVRC).
  • 50,000 validation images and 100,000 test images in the challenge.
  • More than 100 categories are dog breeds, which forced systems to make fine-grained distinctions.
  • Tens of thousands of crowdsourced workers did the labeling, over several years.
  • Top-5 error: the fraction of images for which the correct label is not among a system's five best guesses. It was forgiving by design, because many photos contain more than one object.

The humbling part is how much of the dataset's success was social rather than technical: a community agreed on one benchmark, one scoreboard, and one deadline each year. That shared focus is part of why progress was so fast.

Timeline: 2004 to 2012

  • 2004: MapReduce paper; Facebook launches.
  • 2005: Mechanical Turk and YouTube launch.
  • 2006: AWS launches; Hinton's deep belief nets; ImageNet project begins.
  • 2007: CUDA released; the first iPhone.
  • 2009: ImageNet presented at CVPR; GPU training speedups published.
  • 2010: First ImageNet challenge; ReLU popularized.
  • 2011: GPU-trained networks win recognition contests.
  • 2012: The Google "cat" experiment; AlexNet (Part 14).

Quick glossary

  • Label: the correct answer attached to a training example.
  • Crowdsourcing: getting many people to do small tasks, often online.
  • GPU: a chip with thousands of simple cores, built for graphics and ideal for matrix math.
  • CUDA: Nvidia's platform for programming GPUs for general computation.
  • Data augmentation: artificially enlarging a dataset by transforming examples (flips, crops, color shifts).
  • Dropout: randomly switching off units during training to reduce overfitting.

Key takeaways

  • Deep learning needed three ingredients that arrived together around 2009 to 2012: big labeled datasets, cheap parallel compute (GPUs), and algorithmic tricks.
  • Fei-Fei Li's ImageNet (launched 2006, presented 2009) used WordNet categories and Amazon Mechanical Turk crowdsourcing to build a database of millions of labeled images, and in 2010 launched the ILSVRC competition with 1.2 million images in 1,000 classes.
  • GPUs, built for video games, are ideal for neural network math, and Nvidia's CUDA (2007) made them programmable. Researchers reported speedups of tens of times over CPUs.
  • Hinton's 2006 deep belief nets relaunched "deep learning," and tricks like ReLU, dropout, good initialization, and mini-batch SGD made deep networks trainable.
  • The Google Brain "cat" experiment (2012) showed a network discovering concepts from unlabeled video at scale.
  • Sutton's "Bitter Lesson" argues that general methods that scale with computation tend to win in the long run.
  • The data revolution brought ethical issues: hidden labor, bias, privacy, and flaws in ImageNet itself.

Try it yourself

  1. Design a filter. Modify the kernel in the code above to detect horizontal edges, and build a test image with a horizontal boundary. What does the output look like for a diagonal boundary?
  2. Add another filter. Write a second kernel that detects the opposite edge direction (bright-to-dark), and combine the two filters' outputs by adding their absolute values. You've built a primitive edge detector.
  3. Explore ImageNet. Browse the ImageNet category list (searching for "ImageNet 1000 classes") and pick five categories you think would be easy and five you think would be hard for a machine. Check your intuition against published per-class error rates.
  4. Audit a dataset. Choose any public dataset you've used (MNIST, CIFAR-10, a Kaggle dataset). Who collected it? How were the labels made? Who might be missing from it?

Next up

In Part 13, we look at two public faces of AI in the 2000s and early 2010s: IBM Watson's victory on the quiz show *Jeopardy!* in 2011, and the arrival of Siri and voice assistants. They made AI feel real to ordinary people, even as the revolution brewing in the labs was about to eclipse them both.

If you've worked on a machine learning project where the data turned out to matter more than the model, tell me about it in the comments, and follow the series for Part 13.

See you in Part 13.

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

Support me on Ko-fi