At a glance
This is the entire history of machine learning told slowly and in order, from ancient dreams of thinking machines to the multimodal systems hundreds of millions of people now use every day. Cosmo Explains opens with a reframe that turns out to be the thesis: you already do machine learning every day, because you predict rain from clouds and mood from faces without anyone ever handing you a rule book. That is the heartbeat of the field, learning from examples instead of from explicit rules, and the two hours that follow trace how that one idea became a philosophical question, then a piece of mathematics, then an engineering discipline, then the technology underneath GPT, Claude, and every image generator you have seen.
The spine is a chain of stubborn people. Ramon Llull spins paper discs, Leibniz dreams of settling arguments by calculation, Ada Lovelace says a machine can only do what it is told, Turing proposes a child machine that learns from experience, McCulloch and Pitts turn a neuron into arithmetic, Rosenblatt builds the first machine that genuinely learns, Minsky and Papert prove it cannot do XOR and the funding dies, Rumelhart, Hinton and Williams make backpropagation stick in 1986, Vapnik makes the support vector machine the respectable choice for two decades, and Hinton, LeCun and Bengio keep working on the unfashionable thing until data, GPUs and a handful of architectural tricks all arrive at once.
Then it becomes a story about convergence. AlexNet demolishes ImageNet in 2012 on two gaming graphics cards, ResNet pushes 152 layers past human accuracy in 2015, Attention Is All You Need throws away recurrence in 2017, and next word prediction at enormous scale turns out to buy grammar, facts and something that functions like reasoning for free. The last third is honest about the bill: absorbed bias, Goodhart's law, reward hacking, and the alignment problem that Stuart Russell calls the central challenge of building capable machines.
The register is deliberately calm, built for sleep. The content is not thin. Below is the whole thing rebuilt in prose, with the mechanisms actually explained, the numbers kept, and the worked examples intact.
You are already a prediction engine (00:00)
Start with something you do without noticing. Every day you make thousands of tiny predictions. You glance out the window and predict whether you need an umbrella. You hear a car engine make a weird noise and predict whether it is serious or nothing. You look at a face across a room and predict, in a fraction of a second, whether that person is happy or upset.
The wild part is that nobody ever sat you down and gave you a rule book for any of it. Nobody handed you a manual that said when clouds look like this, it will rain, or when engines sound like that, the timing belt is going. You figured it out from experience. You saw enough cloudy skies and enough facial expressions that patterns emerged, and those patterns became something you could rely on without thinking.
That, in the most fundamental sense, is what machine learning is. Instead of programming a computer with explicit rules for every possible situation, instead of writing out every single instruction, you give the computer examples. Lots and lots of examples. And you let it find the patterns on its own. You let it learn the way you learned.
Not identically, of course. The mechanisms are different. But the core idea, learn from experience rather than from rules, is the heartbeat of the whole field. The rest of the video traces how that idea started as a philosophical question, became a mathematical curiosity, turned into a real engineering discipline, and eventually grew into something that touches almost every part of your life.
Can a machine think: Talos, Llull, Leibniz (02:35)
The beginning is not a computer at all. It is a question people have been asking for centuries: can a machine think?
It sounds modern, like something out of science fiction, but the wrestling goes back a long way. The ancient Greeks told stories about Talos, a giant bronze automaton built by Hephaestus, the god of craftsmen, to guard the island of Crete. In the 13th century a Catalan philosopher named Ramon Llull designed something he called the Ars Magna, a system of paper discs you could rotate to combine concepts and generate new ideas mechanically. It was not a computer in any meaningful sense, but the ambition was there: the dream that reasoning could be made mechanical, that logic could be turned into machinery.
Fast forward a few hundred years to Gottfried Wilhelm Leibniz, the German mathematician and philosopher, one of those figures so far ahead of his time that it is almost eerie. In the late 1600s he built one of the first mechanical calculators, a device of gears and wheels that could add, subtract, multiply and divide. But Leibniz wanted more than arithmetic. He had a grand vision he called the calculus ratiocinator, essentially a universal reasoning machine. He imagined a future where all human disputes could be settled by saying, let us calculate. Encode logic into a formal system, he believed, and a machine could do the reasoning for you.
He did not get there. The technology of his era could not come close to supporting the dream. But the seed was planted, and it sat in the soil for a very long time.
Babbage, Lovelace, and the objection that echoed for a century (04:41)
The next leap comes in the 1830s and 1840s with two extraordinary people.
The first is Charles Babbage, a brilliant and famously irritable English mathematician who designed, though never fully built, a machine called the analytical engine. The ambition was astonishing. It had a mill for computation and a store for memory. It could be programmed using punched cards borrowed from the Jacquard loom already in use in textile manufacturing. In theory, given the right instructions, the analytical engine could perform any calculation. It was conceptually a general purpose computer, designed more than a hundred years before the first electronic computers were built.
Then there is Ada Lovelace, who saw something in Babbage's machine that Babbage himself may not have fully grasped. Ada Byron, daughter of Lord Byron the poet, which is a wonderful little collision of worlds. She wrote extensive notes on the analytical engine, and in those notes she described what many historians consider the first computer program: a detailed sequence of operations for the engine to compute Bernoulli numbers.
But the really remarkable part is that Ada also speculated about the machine's limits. She wrote that the engine had no pretensions to originate anything. It could only do what it was instructed to do. It could not think. It could not learn. It could not create. That observation, sometimes called Lady Lovelace's objection, echoed through the next century of debate about artificial intelligence.
Can a machine only do what we explicitly tell it to do, or can it somehow go beyond its programming? That question is basically the central tension of machine learning, because the whole promise of the field is that yes, actually, a machine can find things in data that no human explicitly programmed it to find. Hold onto that. The 1986 backpropagation paper answers Lovelace directly.
Turing: the universal machine and the child machine (06:45)
Move to the early 20th century, where the mathematical foundations come together, and the person to talk about is Alan Turing.
Turing is famous for a lot of things: cracking the Enigma code during the Second World War, founding computer science, and his tragic personal story. But the key moment here is 1936, when Turing was 23 and published On Computable Numbers. In it he described an abstract machine, now called a Turing machine, that could in principle compute anything computable.
The setup is breathtakingly simple. An infinitely long tape divided into cells. A read write head that can move left or right. A set of rules governing what to do based on the current state and the current symbol on the tape. That is the whole machine.
From that, Turing proved something profound: any problem solvable by following a well defined procedure, any algorithm, any computation, can be solved by this simple machine. Which means, in a deep sense, that all computers are fundamentally equivalent. Your laptop, your phone, a massive server farm, all doing the same thing a Turing machine does, just faster and with more memory. That universality is what makes the whole field possible.
Turing was also thinking about intelligence. In 1950 he published Computing Machinery and Intelligence, which opens with an almost playful line: I propose to consider the question, can machines think? He knew the question was loaded, so he sidestepped the philosophy and proposed something practical, the Turing test. If a human judge has a conversation with a machine and cannot reliably tell whether they are talking to a human or a computer, then for all practical purposes the machine is thinking. Or at least doing something so close to thinking that the distinction stops mattering.
Turing never built a learning machine, but he wrote about the possibility. He speculated about what he called a child machine, a program that starts with very little knowledge and learns from experience the way a child does. He even suggested that instead of trying to simulate an adult mind, it might be easier to simulate a child's mind and then educate it.
Start simple, learn from data, get better over time. That is basically the blueprint for machine learning. Turing saw it coming. He did not have the tools to build it, but he saw the shape of it.
McCulloch and Pitts: a neuron becomes arithmetic (10:21)
Around the same time, across the Atlantic, another thread was being woven. In 1943 a neurophysiologist named Warren McCulloch and a logician named Walter Pitts published a paper that quietly changed everything. They proposed a mathematical model of a biological neuron.
Their artificial neuron was incredibly simple. It took in a set of binary inputs, ones and zeros. It applied weights to them. It summed them up. And if the sum exceeded a certain threshold, it fired and output one. If not, it output zero.
That is the whole computation, and it is worth writing down because everything after it is a variation on this:
z = w1*x1 + w2*x2 + ... + wn*xn # the weighted sum
output = 1 if z > threshold
0 otherwise
Think about what that means. They took something from biology, the neuron, the basic building block of the brain, and turned it into math. And they showed that networks of these simple artificial neurons could in principle compute any logical function. Any logical operation you can imagine, AND, OR, NOT, and combinations of them, could be represented by the right arrangement of McCulloch Pitts neurons.
The model was limited. The weights were fixed. There was no learning involved at all. You had to design the network by hand to get the behavior you wanted. But the conceptual breakthrough was enormous. It said: maybe intelligence is not magic. Maybe it is computation. Maybe the brain is, at some level, a machine that processes information according to rules. And maybe we can build something that works on similar principles.
z, and a threshold decides whether the unit fires. Everything else in this video, all the way to a transformer with a hundred billion parameters, is this unit repeated, stacked, and wired differently.This idea electrified people, and it set the stage for what came next.
Dartmouth, summer 1956: the field gets its name (11:55)
In the summer of 1956 a small group of researchers gathered at Dartmouth College in Hanover, New Hampshire, for a workshop that would give the entire field its name.
The organizers were John McCarthy, a young mathematician at Dartmouth, Marvin Minsky, then at Harvard, Nathaniel Rochester from IBM, and Claude Shannon, the legendary information theorist from Bell Labs. McCarthy coined the term artificial intelligence for the proposal and the workshop. Though it was more of an informal summer gathering, maybe 10 or 15 people at any given time, it became the founding moment of AI as a recognized discipline.
The workshop was driven by extraordinary optimism. The proposal itself stated, with a confidence that is almost charming in hindsight, that every aspect of learning or any other feature of intelligence can in principle be so precisely described that a machine can be made to simulate it.
They thought it might take a summer. Maybe a few years. Get a small group of smart people together and figure out intelligence.
They did not. Not that summer, not in a few years, not in a few decades. The problem turned out to be incomprehensibly harder than anyone imagined. But what Dartmouth did do was create a community. It connected people who had been thinking about these problems in isolation and gave them a shared language and a shared ambition.
Rosenblatt's perceptron: the first machine that genuinely learned (14:00)
One of the most important ideas of that era came not from Dartmouth itself but from the ferment around it: the perceptron.
In 1957 a psychologist at Cornell named Frank Rosenblatt built something remarkable. The perceptron was in essence a McCulloch Pitts neuron that could learn. Instead of having its weights set by hand, the perceptron had a learning algorithm.
The loop is simple enough to hold in your head:
- Show it an example, say an image of a letter, and tell it the correct answer.
- Let it compute its weighted sum and produce an output.
- If the output is wrong, adjust the weights slightly, nudging them in the direction that would have given the right answer.
- Repeat, thousands of times.
Show it enough examples, adjust the weights enough times, and the perceptron learns to classify things it has never seen before. That last clause is the whole game. Not memorize the examples. Classify new things.
Rosenblatt was charismatic and ambitious, and he made bold claims about what the perceptron could do. The New York Times ran a story in 1958 reporting that the Navy had revealed a device that could eventually walk, talk, see, write, reproduce itself, and be conscious of its existence. That was, to put it mildly, an exaggeration.
But the core achievement was real. The perceptron was the first machine that genuinely learned from data. It did not follow a script. It adapted. It improved. And the learning rule, adjust the weights based on the error, is an idea that in more sophisticated forms still drives machine learning today.
Minsky, Papert, XOR, and the first winter (15:34)
Not everyone was impressed, and the most conspicuously unimpressed was Marvin Minsky, one of the founders of the field, who had actually built one of the first neural network machines himself back in 1951, a device called SNARC. Minsky had moved on from neural networks and grown increasingly skeptical of what they could accomplish.
In 1969 he and a mathematician named Seymour Papert published a book called Perceptrons that cast a long shadow over the entire field.
What they showed, with mathematical rigor, is that a single layer perceptron, the kind Rosenblatt had built, cannot solve certain seemingly simple problems. The most famous example is XOR, the exclusive or function:
x1 x2 | XOR
0 0 | 0
0 1 | 1
1 0 | 1
1 1 | 0
If two inputs are the same, output zero. If they are different, output one. A single perceptron cannot learn that. It cannot draw the right boundary, because a single perceptron can only carve the input space with one straight line, and no single straight line separates the two ones from the two zeros in that table.
Here is what makes the story complicated and a little sad. Minsky and Papert were technically correct about single layer perceptrons. But the implication many people took away from the book, that neural networks in general were a dead end, was wrong. Multi layer networks could solve XOR and much more. Rosenblatt himself had discussed multi layer networks.
The damage was done anyway. Funding dried up. Researchers moved to other approaches. And Frank Rosenblatt died in a boating accident in 1971, at just 43 years old, never seeing his ideas vindicated.
The field entered what historians now call the first AI winter. During that long cold stretch, a handful of stubborn, brilliant people kept working on the ideas everyone else had abandoned. They kept tinkering with neural networks in obscurity, convinced that something important was hiding in those weighted connections if only they could figure out how to train them properly.
The credit assignment problem: who ruined the dish? (18:07)
That word train is the key to everything that comes next, because the problem was never really whether neural networks could work in theory. It was how you teach a network with multiple layers to learn from its mistakes.
In Rosenblatt's single layer perceptron, training was relatively straightforward. You show it an input. It makes a guess. You tell it whether the guess was right or wrong, and it adjusts its weights accordingly. There is a direct line between the output and the weights that produced it. You know exactly which knobs to turn and in which direction.
The moment you add a hidden layer, a layer of neurons sitting between the input and the output, things get murky. If the network gives you the wrong answer, sure, you can adjust the weights connecting the hidden layer to the output. But what about the weights connecting the input to the hidden layer? How do you know which of those contributed to the error? How do you assign blame to neurons buried deep inside the network, whose contributions are indirect and tangled up with everything else?
This is the credit assignment problem, and it haunted neural network research for decades.
It is a beautiful problem in everyday terms. Imagine you manage a big restaurant kitchen. A dish comes back from a Customer. It is terrible. The final plating was fine, but somewhere in the chain of prep cooks, sauce makers and line cooks, something went wrong. How do you figure out who messed up, and by how much?
That is essentially what a multi layer network has to solve every single time it learns from an example. And for years, nobody had a clean, efficient way to do it.
Backpropagation: run the error backwards (20:12)
The solution, when it finally arrived in a form people paid attention to, did not come from a single eureka moment. It was more like an idea that kept being independently discovered, ignored, rediscovered and ignored again until finally the field was ready to listen.
The core technique is called backpropagation, short for backward propagation of errors. The basic idea: you work backwards through the network, starting from the output error and using the chain rule from calculus to figure out how much each weight in each layer contributed to that error.
The chain rule, which you may remember from math class or may mercifully not, is just the principle that lets you compute how a change in one variable affects another when they are linked through intermediate steps:
if A affects B and B affects C
then dC/dA = (dC/dB) * (dB/dA)
If A affects B and B affects C, the chain rule tells you how A affects C. Stack enough of these together and you can trace the influence of any weight, no matter how deep in the network, all the way to the final output. That is the entire trick. Backpropagation is the chain rule applied systematically, layer by layer, from the output back toward the input.
The mathematics were worked out in various forms by several people. Paul Werbos, an American researcher, described a version of it in his 1974 PhD thesis at Harvard. He was working in the context of general optimization rather than neural networks specifically, but the connection was there. Seppo Linnainmaa, a Finnish mathematician, had published the basic automatic differentiation technique even earlier, in 1970. There were others. But these contributions were scattered across different fields and different journals, and the neural network community, what was left of it during the AI winter, did not fully absorb them.
Hinton: the man who was wrong for twenty years (22:14)
The person who really brought backpropagation to the attention of the broader world was Geoffrey Hinton. If there is one name you should know in the story of modern machine learning, one person whose stubborn persistence shaped the field more than almost anyone else, it is Hinton.
Born in London in 1947, he came from a family of accomplished scientists. He was the great great grandson of George Boole, the mathematician who invented Boolean algebra, the very logic that underpins all digital computing. There is something almost poetic about that lineage, as if the universe were setting up a very long punchline.
Hinton studied experimental psychology at Cambridge, then got interested in artificial intelligence, did his PhD at the University of Edinburgh, and then postdoctoral work at various American institutions. Through the entire AI winter, while neural networks were deeply unfashionable, Hinton kept working on them. He has described it as being a bit like believing in something that everyone else thought was nonsense.
Funding was hard to get. Reviewers were skeptical. The dominant paradigm in AI through the 1970s and early 1980s was symbolic AI, systems built on explicit rules and logical reasoning, not learning from data. If you worked on neural networks in that period, many of your colleagues thought you were wasting your time.
He was not alone. There was a small, scattered community of believers. David Rumelhart, a cognitive psychologist at UC San Diego, was another key figure, along with Ronald Williams, who worked with Rumelhart.
The 1986 Nature paper: the machine originates something (24:16)
In 1986, Rumelhart, Hinton and Williams published a paper in Nature that changed everything: Learning Representations by Back-Propagating Errors.
What it did was present backpropagation as a practical, effective method for training multi layer neural networks. They did not invent the math from scratch. Pieces of it had been around for years. But they packaged it clearly, demonstrated it convincingly, and published it in one of the most prestigious scientific journals in the world. This time, people listened.
Here is what made the paper so powerful. They showed that when you train a multi layer network with backpropagation, the hidden layers spontaneously learn useful internal representations of the data. The network does not just memorize inputs and outputs. It develops its own internal concepts, its own way of organizing information. Nobody explicitly programs these representations. They emerge from the learning process itself.
Think about what that means. The network is figuring out what features matter, what patterns are important, on its own. It is not just following rules someone gave it. It is discovering structure in the data that even the designers might not have anticipated.
This was the answer to Ada Lovelace's objection from more than a century earlier, that machines can never originate anything, that they can only do what we tell them to do. Here was a machine that in a meaningful sense was originating its own internal categories, its own way of seeing the world. Not because someone programmed those categories in, but because the math of gradient descent and error correction, applied across thousands of training examples, sculpted the weights into configurations that captured something real about the underlying patterns.
How backpropagation actually feels, one example at a time (26:17)
Slow down here, because backpropagation is genuinely one of the most important algorithms ever invented, and it is worth understanding how it feels to a network going through it.
Imagine a network with an input layer, two hidden layers, and an output layer. You feed in a training example, say a picture of a cat represented as pixel values.
Forward. The signal flows forward through the network. Each neuron in the first hidden layer takes the weighted sum of its inputs, applies a mathematical function to squash the result into a useful range, and passes its output to the next layer. That squashing function is the activation function, and without it a stack of layers would collapse into one big linear operation, which is why it matters. The same thing happens again at the second hidden layer. Finally the output layer produces a prediction, maybe a number between zero and one, where one means cat and zero means not cat.
The error. Say the network outputs 0.3, but the correct answer is 1. There is an error of 0.7.
prediction = 0.30
target = 1.00
error = 0.70
Backward. Now backpropagation kicks in. You compute how much each weight in the output layer contributed to that error, and you nudge those weights in the direction that would reduce it. Then you propagate that error signal backward to the second hidden layer, using the chain rule to figure out each weight's contribution. Then back to the first hidden layer. Every single weight in the entire network gets a tiny adjustment, all calculated to make the output a little closer to the right answer.
Repeat. Then you do it again with the next training example. And again. And again. Thousands of times. Millions of times.
Each individual adjustment is tiny, a nudge, not a leap. But over many, many examples, the weights settle into a configuration that captures the genuine statistical patterns in the data. It is like erosion. One raindrop does not carve a canyon, but give it enough time and water shapes stone.
The connectionist revival and a network learning to speak (28:54)
The 1986 paper triggered what people sometimes call the connectionist revival, a resurgence of interest in neural networks that lasted through the late 1980s and into the early 1990s. Suddenly there was funding again. There were conferences. Researchers who had been laboring in obscurity found themselves at the center of an exciting new movement.
The Parallel Distributed Processing research group at UC San Diego, led by Rumelhart and James McClelland, published a hugely influential two volume set in 1986 laying out the connectionist program in detail: how networks of simple units learning through backpropagation could account for everything from language processing to memory to motor control.
The results were genuinely impressive. One landmark demonstration came from Terrence Sejnowski, working with a graduate student named Charles Rosenberg, who together created a system called NETtalk in 1987.
NETtalk was a neural network that learned to pronounce written English text. You fed it letters and it produced phonemes, the sounds of speech. English pronunciation is notoriously irregular. Think about though, through, tough, thought. Rule based systems had struggled with it for years. But NETtalk, trained on examples of text paired with correct pronunciations, learned to handle most of the irregularities.
When they played recordings of the network's output during training, you could actually hear it go from babbling nonsense to something that sounded increasingly like coherent English speech. It was eerie and wonderful.
Vanishing gradients: why deeper did not mean better (31:26)
Here is why the story does not end with everyone living happily ever after.
The networks of the late 1980s and early 1990s were still small by modern standards, maybe a few hundred or a few thousand neurons. Training them was slow because computers were slow. And as researchers tried to make networks deeper, adding more hidden layers to capture more complex patterns, they ran into a frustrating problem.
The gradients, those error signals flowing backward through the network during backpropagation, had a tendency either to shrink to nearly nothing or to explode to enormous values as they passed through many layers. This is the vanishing gradient problem, and its counterpart the exploding gradient problem.
The mechanism is the chain rule biting back. Each layer the error passes through multiplies it by another factor. Multiply a long chain of numbers smaller than one and you get something microscopic. Multiply a long chain of numbers larger than one and you get something enormous.
In practical terms it meant deep networks were incredibly hard to train. The layers closest to the input barely learned anything, because by the time the error signal reached them it had been multiplied through so many intermediate steps that it had essentially evaporated.
So you had this frustrating situation. In theory, deeper networks should be more powerful. More layers means more capacity to learn complex hierarchical features. In practice, you could not train them effectively. Networks with one or two hidden layers worked reasonably well. Networks with five or ten hidden layers just did not converge. The weights would barely budge, or they would oscillate wildly, and the network would never settle into a useful configuration.
Meanwhile, statistics was winning (33:01)
While neural networks were struggling with depth, a completely different branch of machine learning was quietly producing results that were, in many practical applications, just as good or better. These methods came from statistics and optimization rather than from neuroscience inspired connectionism.
The most important of them, the one that would dominate machine learning for nearly two decades, was the support vector machine. It was developed in the early 1990s by Vladimir Vapnik, a Russian mathematician who had immigrated to the United States and was working at Bell Labs in New Jersey.
Vapnik's approach had something neural networks at the time could not offer: strong mathematical guarantees about how well a model would perform on data it had never seen before. And that distinction, between fitting the data you already have and predicting data you have not encountered yet, turns out to be one of the most important ideas in all of machine learning.
Overfitting: the two students (34:34)
Sit with it for a moment, because this is the concept everything else in the field balances on.
Imagine you are a teacher and you give your students a set of practice problems before an exam. One student memorizes every single practice problem and its answer perfectly, word for word. Another student studies the underlying principles, understands the patterns, maybe gets a few of the practice problems wrong, but genuinely grasps the logic behind them.
When the actual exam comes with new problems they have never seen, which student does better? Almost always the second one.
The first student memorized the training data, so to speak, but did not learn the underlying structure. In machine learning this is called overfitting. Your model fits the training data beautifully, capturing every little quirk and noise and random fluctuation in that particular data set, and then it falls apart the moment you show it anything new.
This was exactly the problem neural networks in the late 1980s and early 1990s were prone to. You could train a network to spectacular accuracy on your training set, then test it on fresh data and watch the performance disappoint. The network had memorized rather than learned.
VC theory: putting a number on how much to trust a model (36:09)
What Vapnik brought to the table was a rigorous mathematical framework for thinking about this. He called it statistical learning theory, and he had been developing the core ideas since the 1960s and 1970s back in the Soviet Union, working with a colleague named Alexey Chervonenkis.
Together they developed what is now called VC theory, Vapnik Chervonenkis theory, which gives you a way to quantify the capacity of a learning model. How complex is it? How many different patterns can it potentially fit?
And here is the key insight. The more complex your model, the more patterns it can fit, sure, but the greater the risk that it is fitting noise rather than signal. VC theory gave you actual mathematical bounds on the gap between training performance and test performance. It told you, in a precise and provable way, how much you should trust your model's performance on new data, based on the complexity of the model and the amount of training data you had.
test error <= training error + (a term that grows with model capacity
and shrinks with more training data)
That is the shape of it. Capacity costs you. Data buys it back.
Support vector machines: find the widest gap (37:44)
Vapnik did not just develop the theory. He used it to build a specific kind of learning machine that was, in a sense, optimally designed to avoid overfitting.
The idea behind an SVM is beautifully geometric. Imagine data points scattered on a flat surface. Some are red dots, some are blue dots, and you want to draw a line separating the reds from the blues. There might be many possible lines that correctly separate all the points. Which line is the best one?
Vapnik's answer: choose the line with the maximum margin. The margin is the distance between the line and the closest data points on either side. You want the widest possible gap, the widest possible buffer zone between the two classes.
The data points sitting right on the edge of that margin, the ones closest to the dividing line, are called the support vectors. They are the critical points that actually determine where the boundary goes. Everything else is, in a sense, irrelevant. You could delete every other point in the data set and get the same boundary.
Here is what is really clever about this. By maximizing the margin, you are building in a form of caution. You are not just finding any boundary that separates the data. You are finding the boundary that is most robust, most likely to still work correctly when new data points show up that are slightly different from what you have seen before. And Vapnik could prove mathematically that this maximum margin approach leads to good generalization. Not just empirically, not just it seems to work well in practice, but provably, with theoretical guarantees.
The kernel trick: a wormhole through the geometry (39:47)
You might be thinking, fine, but what about data that cannot be separated by a straight line? What if the red dots and blue dots are mixed together in some complicated pattern?
This is where another elegant idea comes in, the kernel trick. Instead of trying to find a complicated curvy boundary in the original space where your data lives, you mathematically project the data into a much higher dimensional space, sometimes an infinitely high dimensional one, where the data can be separated by a flat surface, a hyperplane.
The beautiful part is that you never actually have to compute the coordinates of the data in this high dimensional space. You only need the distances between pairs of data points in that space, and those can be computed with a kernel function, a relatively simple mathematical operation on the original coordinates.
So you get the power of working in a fantastically complex space without paying the computational cost of actually going there. It is a mathematical shortcut, a wormhole through the geometry.
Why SVMs beat neural networks for two decades (40:47)
The results were impressive. Through the 1990s, SVMs started winning competitions, outperforming neural networks on benchmark after benchmark. Handwriting recognition, text classification, image categorization. SVMs were competitive or superior across the board.
They also had practical advantages beyond accuracy. They were faster to train. They had fewer hyperparameters to fiddle with. You did not need to agonize over how many hidden layers to use, how many neurons per layer, what learning rate, what momentum. And the optimization problem at the heart of an SVM was convex, which means there is a single global optimum. You are guaranteed to find the best solution, not just a pretty good one you happened to stumble into.
Compare that with neural networks, where the loss landscape is riddled with local minima and saddle points, and training involves a lot of hoping and praying and tweaking.
| Circa 1995 | Support vector machine | Neural network |
|---|---|---|
| Theory | VC theory gives provable bounds on the train to test gap | Theoretically murky, called a black box |
| Optimization | Convex, so a single global optimum you are guaranteed to find | Local minima and saddle points everywhere, no guarantee |
| Training speed | Fast | Slow on the hardware of the day |
| Knobs to tune | Few | Layers, neurons per layer, learning rate, momentum, initialization |
| Overfitting control | Built in: maximize the margin | Prone to memorizing the training set |
| Handles nonlinearity by | Kernel trick: project to a higher dimensional space for free | Stacking hidden layers, which nobody could train past a few |
| Appetite for data | Limited capacity, so extra data stops helping past a point | Enormous capacity, keeps improving if you can feed it |
| Career advice you got | Sensible, fundable, publishable | A concerned look from your adviser |
That last row is the video's own joke, and the second to last row is the whole reversal in one line. The property that made neural networks look bad in 1995, unbounded capacity, is exactly the property that made them win once the internet showed up with enough data to fill it.
Random forests: the wisdom of a thousand mediocre trees (41:47)
SVMs were the star of the statistical era, but they were not alone. There were also ensemble methods like random forests, developed by Leo Breiman at Berkeley, which took a different but equally clever approach.
Instead of building one really sophisticated model, you build hundreds or thousands of simple models, decision trees, each trained on a slightly different random subset of the data, and then you let them vote. The wisdom of the crowd. Each individual tree might be mediocre, but the aggregate prediction of the whole forest is remarkably accurate and robust, because the individual trees' errors are uncorrelated enough to cancel out while their shared signal reinforces.
Breiman published his random forests paper in 2001, and it became one of the most cited papers in all of machine learning. These methods were practical, reliable, interpretable, and they worked.
The second winter, which was really a fashion problem (42:49)
Roughly the mid 1990s through the mid 2000s is sometimes called the second AI winter for neural networks, though that is not quite right. It was not that neural network research stopped entirely. It is more that it became deeply unfashionable.
Funding dried up. Reviewers at top conferences would reject papers about neural networks almost reflexively. If you were a graduate student and told your adviser you wanted to work on neural networks, you would probably get a concerned look and some gentle career advice.
The field had moved on. Statistical learning theory was rigorous. SVMs had guarantees. Neural networks were seen as finicky, unreliable, theoretically murky black boxes that could not even be trained properly if you made them more than a couple of layers deep.
LeCun, cats, and the convolutional network (44:21)
But a small group refused to give up on the neural network idea, and the most prominent, most stubborn, most relentlessly optimistic of them was Hinton. Through the entire wilderness period he kept publishing, kept training students, kept insisting that the brain inspired approach was fundamentally right, that the problems were engineering problems, not conceptual dead ends.
He was not alone. Yann LeCun, a French computer scientist who had studied under one of the pioneers of neural network research in Paris, had moved to Bell Labs, the same Bell Labs where Vapnik was working, which is a wonderful irony. And he was doing remarkable things with a specific type of neural network called a convolutional neural network.
LeCun's convolutional networks were directly inspired by the visual cortex. In the late 1950s and early 1960s, two neuroscientists named David Hubel and Torsten Wiesel did groundbreaking experiments on cats, inserting electrodes into the visual cortex and showing the cats various visual stimuli. They discovered that neurons in the visual cortex are organized hierarchically. Some neurons respond to simple features, edges at a particular angle for instance. Others respond to more complex combinations of those simple features. The visual system builds up its understanding of what it is seeing layer by layer, from simple to complex. Hubel and Wiesel won the Nobel Prize for this work in 1981.
LeCun took this biological insight and turned it into an engineering architecture. In a convolutional network:
- The first layer learns to detect simple features: edges, corners, color gradients.
- The next layer combines those simple features into slightly more complex patterns, maybe the curve of a letter or the texture of a surface.
- The next layer combines those into even more complex representations, and so on up the stack.
Each layer applies small filters, little pattern detectors that slide across the input looking for their particular feature everywhere in the image. That sliding, that sharing of the same filter across different positions, is the convolution, and it is what makes these networks so efficient. Instead of having every neuron connected to every input pixel, which would require an astronomical number of connections, you have a small set of learned filters reused across the entire image.
LeNet-5 was quietly reading your checks (46:55)
By the late 1990s LeCun had built a convolutional network called LeNet-5 that could read handwritten digits: zip codes on envelopes, numbers on checks, with remarkable accuracy. AT&T actually deployed it. It was reading something like 10 to 20 percent of all the checks deposited in American banks by the late 1990s.
Millions of checks every day, being read by a neural network, and most people had no idea. Here was this supposedly obsolete technology quietly doing real work in the real world while the academic mainstream was busy with SVMs and kernel methods.
Bengio and the problem of sequences (47:26)
Then there was Yoshua Bengio, a Canadian computer scientist working in Montreal, who was tackling the problem of applying neural networks to sequential data: language, time series, anything where the order of the inputs matters.
Bengio was deeply interested in learning representations of words, in finding ways to capture the meaning of language in vectors of numbers. He published a paper in 2003 on neural probabilistic language models that, in retrospect, planted seeds that would not fully bloom for another 15 years.
These three, Hinton, LeCun and Bengio, would later become known as the godfathers of deep learning, and they would share the Turing Award in 2018. But in the early 2000s they were swimming against the current, working in a corner of the field most of their colleagues considered a dead end.
Three threads about to converge (48:31)
The thing that would change everything, that would vindicate their stubbornness and transform not just machine learning but the entire technology landscape, was a convergence of three factors none of them could have fully anticipated:
- An explosion in available data.
- An unexpected revolution in computing hardware.
- A series of clever algorithmic innovations that finally cracked the training of deep networks, that vanishing gradient problem that had been the fundamental barrier since the late 1980s.
And the story of how those threads came together starts somewhere seemingly unrelated: video games.
GPUs: a stadium full of high school math students (49:33)
In the late 1990s and early 2000s, a company called Nvidia was locked in fierce competition with rivals like ATI and 3dfx to build the fastest graphics processing units for the gaming market.
The thing about rendering a frame of a video game is that you need to perform the same relatively simple mathematical operation, multiply some numbers, add them together, over and over on millions of pixels simultaneously. You are not solving one hard problem. You are solving millions of easy problems all at the same time.
So GPU designers built chips fundamentally different from traditional CPUs. A CPU is like a brilliant professor who can solve any problem you throw at them, but works through things one at a time, or maybe a few at a time. A GPU is more like a stadium full of high school math students. Each one is only capable of basic arithmetic, but there are thousands of them and they all work in parallel.
For gaming, this architecture was perfect. For machine learning, it would turn out to be revolutionary, but nobody planned it that way, which is what makes this part of the story so wonderfully accidental.
Think about what happens when you train a neural network. At every layer you take a bunch of inputs, multiply each by a weight, add them up, and pass the result through an activation function. Then you do it again at the next layer. And you do this for every training example, potentially millions of times. It is the same basic operation, multiply and accumulate, repeated over and over across thousands or millions of artificial neurons.
That is almost exactly the workload GPUs were designed for. The math of neural networks and the math of rendering polygons in a video game are, at a deep level, the same kind of math: matrix multiplication. Massive parallel matrix multiplications.
The person who really pushed this connection into the open was a researcher at Stanford named Andrew Ng, along with his collaborators. Around 2009, Ng and his team demonstrated that you could train neural networks dramatically faster on GPUs than on traditional CPUs. Speedups of 10 times, 50 times, sometimes even 100 times. What used to take weeks could take days. What used to take days could take hours.
And that changes everything, because in research speed is not just convenience. Speed is the difference between trying one idea a month and trying ten ideas a week. It is the difference between a dead field and a living one.
The data explosion (53:11)
The GPU story was only one thread. The data explosion was happening simultaneously and mattered just as much.
In the year 2000, the total amount of data stored in the world was estimated at roughly 6.2 exabytes. By 2007 it was around 295 exabytes. By 2010 it had crossed into the zettabyte range, a zettabyte being a thousand exabytes, or a trillion gigabytes.
The internet was doing what the internet does. People were uploading photos, writing emails, clicking on links, buying things, leaving reviews, posting on social media. Every one of those actions generated data, and companies were storing all of it. This was the age of Google indexing billions of web pages, of Facebook accumulating billions of tagged photographs, of Amazon tracking every purchase and browsing pattern.
Here is why that matters. These algorithms learn from examples. The more examples, the better they get. But there is a catch, and it goes straight back to the overfitting conversation.
Simple models like SVMs or logistic regression can only benefit from more data up to a point. They have limited capacity, limited expressiveness. Once they have extracted all the patterns their architecture allows, more data does not help much.
Deep neural networks, with millions or billions of parameters, are incredibly expressive. They are hungry for data. They need enormous amounts of it to reach their potential, and without enough data they overfit horribly.
So for decades deep networks were stuck in a catch 22. They needed more data than existed to show their superiority, and nobody was going to collect more data for a technology that did not seem to work. The internet broke that catch 22. Suddenly the data was just there.
2006: build the house one floor at a time (55:17)
The third thread, the algorithmic breakthroughs, is where Hinton comes back in a big way.
In 2006, Hinton, working with Simon Osindero and Yee-Whye Teh at the University of Toronto, published a paper that sent a jolt through the machine learning community. It was about deep belief networks, and the key insight was a clever training strategy.
Instead of trying to train all the layers of a deep network at once, which is exactly where the vanishing gradient problem crushes you, Hinton proposed training the network one layer at a time, from the bottom up, using an unsupervised method. Each layer would learn to model the statistical structure of the layer below it. You stack these pretrained layers on top of each other, building the network up piece by piece. Only after this layer by layer pretraining would you fine tune the whole thing with backpropagation.
It was like building a house by carefully laying each floor's foundation before stacking the next floor on top, rather than trying to build the whole structure at once and hoping it did not collapse.
The results were striking. Deep networks trained this way performed significantly better than shallow ones. The paper, A Fast Learning Algorithm for Deep Belief Nets, is often cited as the moment the deep learning revival truly began.
Hinton, who had been working on these ideas for over 20 years by that point, who had watched the field turn its back on neural networks, who had kept the faith through the long winter of the 1990s, finally had a result that made people pay attention again.
And here is something lovely about the timing. Hinton was 60 years old when this paper came out. He had spent essentially his entire career on an idea most of his peers thought was wrong. Think about the stubbornness that requires. Think about sitting in faculty meetings, applying for grants, watching your students struggle to get jobs because they had worked on neural networks and hiring committees wanted people who did SVMs. And he kept going. There is a quote attributed to him, paraphrased in the narration, where he said something like: either I was incredibly wrong, or everyone else was.
In 2006, the needle finally started moving in his direction.
2009 to 2012: speech recognition falls first (58:19)
The 2006 paper, important as it was, was not the moment of full vindication. That came a few years later, and it came through literal competition.
In 2009, Hinton's group entered a speech recognition contest and showed that deep neural networks could outperform the traditional methods that had dominated the field for 30 years. Those traditional methods were based on hidden Markov models combined with Gaussian mixture models. A mouthful, but the point is that they were the established technology, the industry standard, the thing that powered every speech recognition system from the ancestors of Siri to automated phone menus.
Hinton's neural networks beat them. Not by a tiny margin. By a lot.
This got the attention of the big technology companies. Microsoft, Google, IBM, all started paying very close attention. By 2012, deep neural networks had essentially taken over speech recognition at every major tech company, and the error rates dropped dramatically. If you have ever noticed that voice assistants got noticeably better around 2012 or 2013, this is why. It was not a gradual improvement. It was a step change, a sudden leap driven by deep learning replacing the old statistical models.
October 2012: AlexNet (59:52)
The real earthquake, the event most people in the field point to as the moment everything changed, happened in October 2012. And it happened because of cats. Well, not exactly because of cats, but stay with it.
Every year since 2010 there had been a competition called the ImageNet Large Scale Visual Recognition Challenge. ImageNet was a massive data set of over 14 million labeled images organized into more than 20,000 categories: dogs, cars, mushrooms, bridges, everything you can imagine. The challenge was to build a system that could look at a photograph it had never seen before and correctly identify what was in it.
In 2010 and 2011 the best systems were getting error rates around 25 or 26 percent. They used carefully hand engineered features, things like edge detectors and color histograms, fed into traditional classifiers like SVMs. Respectable results, but far from human level.
Then in 2012 a team from the University of Toronto entered: Alex Krizhevsky, Ilya Sutskever, and their supervisor Geoffrey Hinton. Their system was called AlexNet, and it was a deep convolutional neural network. Remember LeCun's convolutional networks from the 1990s? Same basic idea, but bigger, deeper, and trained on GPUs.
The specifications matter here:
- About 60 million parameters, spread across eight layers.
- Implemented by Krizhevsky to run on two Nvidia GTX 580 graphics cards. Gaming GPUs. The kind you would buy to play first person shooters.
- Trained on 1.2 million images from ImageNet.
AlexNet did not just win the 2012 competition. It obliterated it. Its error rate was about 15 percent, compared with over 25 percent for the second place entry. That gap, roughly 10 percentage points, was enormous. In a field where annual improvements were typically measured in fractions of a percent, AlexNet was a leap nobody saw coming.
And it was a neural network. A deep neural network trained with backpropagation, running on gaming hardware, fed with massive amounts of data. All three threads, the data, the hardware and the algorithms, had come together in one system, and the result was undeniable.
The reaction in the machine learning community was something close to shock. Researchers who had spent their careers on hand engineered features and kernel methods suddenly had to reckon with the fact that a neural network, the supposedly dead technology, had just demolished everything else. Within a year, almost every competitive entry in ImageNet was a deep neural network. Within two years, the old approaches had essentially disappeared from the leaderboard. It was one of the fastest paradigm shifts in the history of computer science.
What was actually inside AlexNet (01:03:28)
Here is the really interesting part, because it connects back to something fundamental about how neural networks work.
When researchers looked inside the network at what the different layers had learned to detect, they found something beautiful:
- The early layers, closest to the input image, had learned to detect simple features: edges, corners, color gradients.
- The middle layers combined those simple features into more complex patterns: textures, parts of objects, curves.
- The deeper layers assembled those patterns into recognizable things: faces, wheels, fur, text.
The network had spontaneously organized itself into a hierarchy of increasingly abstract representations. Nobody told it to look for edges first and objects later. It figured that out on its own through backpropagation, through the simple pressure of trying to minimize its errors on millions of training examples.
And if that hierarchy sounds familiar, it should. It is remarkably similar to what Hubel and Wiesel found in the visual cortex of cats back in the 1960s, the same research that inspired LeCun's convolutional networks in the first place. Simple cells detecting edges, complex cells combining edges into shapes, hypercomplex cells responding to specific objects. The artificial system, given enough data and enough depth, had converged on something that looked an awful lot like the biological solution.
Whether that is a coincidence or a deep truth about the nature of visual processing is a question people are still arguing about, and it is a fascinating argument.
ResNet: the shortcut that made 152 layers work (01:05:04)
The success of AlexNet opened the floodgates. Suddenly everyone wanted to build deeper networks. If eight layers could do this, what could 20 do? What about 100?
And this is where we run back into the old nemesis, the vanishing gradient problem. Even with pretraining tricks and better activation functions, people had started using ReLU, rectified linear units, which helped a lot, training very deep networks was still brutally difficult. The gradients would still fade or explode as you tried to push signals through dozens or hundreds of layers.
The person who found arguably the most elegant solution was a young researcher at Microsoft Research in Beijing, and the solution was so simple it almost seemed like cheating. His name is Kaiming He, and in 2015 he and his colleagues published a paper introducing residual connections. The network they built with them, ResNet, changed everything.
Here is what a residual connection is, and it is one of those ideas that makes you go, wait, that is it? That is the whole trick? And then you think about it for a minute and realize how profound it is.
Imagine a deep network, dozens of layers stacked on top of each other, each supposed to learn some transformation of the data. Take the input, do something useful to it, pass the result to the next layer. The problem, as we have discussed, is that when you train this thing with backpropagation, the gradient signal, the little nudge telling each layer how to adjust, gets weaker and weaker as it travels backward through all those layers. By the time it reaches the early layers it is basically a whisper. Those early layers cannot learn. They are stuck.
What Kaiming He figured out: instead of asking each layer to learn the complete transformation from input to output, ask it to learn only the difference, the residual. You take the input to a layer, you let the layer do its thing, and then you add the original input back to the output.
standard layer: y = F(x)
residual block: y = F(x) + x # the "+ x" is the whole idea
That is it. You are creating a shortcut, a skip connection, a little highway that lets the signal bypass the layer entirely if it needs to.
Think about why this is so clever. If a layer does not need to do anything, if the best thing it could do is pass the data through unchanged, then all it has to learn is zero. The residual is zero. The skip connection handles everything. That is a much, much easier thing to learn than trying to learn the entire identity function from scratch.
And more importantly, those skip connections give the gradient a direct path backward through the network. The gradient does not have to squeeze through every single layer any more. It can hop along the shortcuts, staying strong, reaching all the way back to the earliest layers. It is like building an express lane on a highway clogged with traffic. The information can still take the local roads if it wants to, but it also has the option of jumping ahead.
The results were staggering. ResNet won the ImageNet competition in 2015 with a network 152 layers deep. AlexNet had eight.
And ResNet did not just go deeper. It performed better as it got deeper, which was the opposite of what had been happening. Before residual connections, researchers found that adding more layers past a certain point would actually make a network worse. Not because of overfitting, but because the optimization simply fell apart. The network could not learn. ResNet broke through that barrier completely, and the ImageNet error rate dropped to about 3.6 percent, better than average human performance on that particular task.
Let that sink in. In the span of just three years, from AlexNet in 2012 to ResNet in 2015, image recognition went from a problem where computers were laughably bad compared with humans to a problem where the computer was arguably better.
The recurring theme: the hard part is finding the simple idea (01:10:44)
Notice something, because it is a pattern that shows up again and again in this history.
The residual connection is not a complicated idea. It is not some deep mathematical insight that required years of theoretical work. It is an engineering trick, an architectural choice, a small change in how you wire the network together. And yet it unlocked capabilities nobody could achieve without it.
This is a recurring theme. The breakthroughs in deep learning have often been surprisingly simple ideas that just happen to make optimization work better. ReLU activation functions. Dropout for regularization. Batch normalization. Skip connections. Each one is easy to explain in a few sentences, and each one was transformative.
That is part of what makes this field so interesting and also so humbling. The hard part is not coming up with complicated math. The hard part is finding the right simple idea.
Language is a different animal (01:11:44)
By the mid 2010s the deep learning revolution was in full swing for computer vision. But there was another domain where something equally dramatic was about to happen, and it is the domain most people are thinking about today when they hear the words artificial intelligence: language. Understanding it, generating it, translating it, answering questions, writing text.
The story of how deep learning conquered language is in some ways even more fascinating than the vision story, because language is so different from images. An image is a grid of pixels. It has a fixed size and a clear spatial structure. Language is sequential, variable in length, and full of long range dependencies where a word at the beginning of a sentence can completely change the meaning of a word at the end. It is ambiguous in ways images rarely are.
RNNs and LSTMs: memory in a chain (01:13:14)
The traditional approach to sequences in neural networks was the recurrent neural network, or RNN. The idea goes back to the 1980s and it is pretty intuitive. Instead of processing all the input at once, you process it one element at a time, one word at a time say, and at each step the network maintains a hidden state, a kind of memory carrying information forward from previous steps.
So when the network reads the word bank, it can in theory use its memory of the earlier words in the sentence to figure out whether you are talking about a river bank or a financial bank.
In theory. In practice, RNNs had a terrible time with long range dependencies. If the relevant context was 20 or 30 words back, the network would usually forget it. The information decayed as it passed through all those sequential steps, which is really just the vanishing gradient problem showing up again in a different guise.
There were improvements. In 1997, Sepp Hochreiter and Jürgen Schmidhuber published a paper introducing long short term memory networks, LSTMs. These were a more sophisticated recurrent network with explicit gating mechanisms, little learned switches controlling what information to keep, what to forget, and what to output at each step. Think of it as giving the network a notebook where it can deliberately write things down and erase them, instead of just hoping it remembers.
LSTMs were a huge improvement over vanilla RNNs, and they dominated sequence modeling for nearly two decades. They powered the first really good machine translation systems, speech recognition, text generation. Google used LSTMs in its translation service. Apple used them in Siri. They were the workhorse of natural language processing in the deep learning era.
But they had a fundamental limitation that became more painful as people tried to scale them up. Because they processed sequences one step at a time, they were inherently sequential. You could not parallelize them the way you could parallelize a convolutional network processing an image. Each step had to wait for the previous step to finish, because it needed that hidden state. So on those powerful GPUs making everything else faster, LSTMs could not fully take advantage of the parallel processing power. Training them on very large data sets was slow.
And there was still the question of whether that sequential memory, even with the fancy gating, was really the best way to handle long range dependencies.
Attention Is All You Need (01:16:20)
The answer came in 2017 from a team of eight researchers at Google, in a paper with one of the most consequential titles in the history of computer science: Attention Is All You Need.
The architecture they introduced, the transformer, is the foundation of essentially every major language AI system you have heard of since. GPT, BERT, PaLM, Claude, LLaMA. They are all transformers. Every single one.
So what is attention and why did it change everything?
The core idea had actually been floating around for a couple of years before the transformer paper, used as an add on to RNNs, particularly for machine translation. The insight was this. When you are translating a sentence from, say, French to English, and you are generating the next English word, not every word in the French sentence is equally relevant. Some words matter a lot for this particular output word, and others are basically irrelevant. Attention is a mechanism that lets the network learn to focus on the relevant parts of the input. It assigns a weight, an attention score, to each input element. Those weights are learned, and they are dynamic. They change depending on what the network is currently trying to do.
Here is the analogy the video uses. Imagine you are at a crowded party with dozens of conversations happening simultaneously. You can hear all of them as a kind of background murmur. But when someone across the room says your name, your attention snaps to that conversation. You selectively amplify that signal and suppress everything else. That is roughly what attention does in a neural network. It lets the model dynamically decide, for each piece of output it is generating, which pieces of input to focus on.
What Vaswani and his co authors did was take this attention mechanism and make it the entire architecture. They threw away the recurrence entirely. No more processing one word at a time. No more sequential hidden states. Instead the transformer looks at the entire input sequence all at once and uses attention to figure out how every element relates to every other element.
Every word can directly attend to every other word regardless of distance. That word at the beginning of the sentence and the word at the end can interact directly in a single step, without the information having to be passed through a chain of intermediate states. And because there is no sequential processing, the whole thing parallelizes. You can throw it on a GPU and process every position in the sequence simultaneously.
Training became dramatically faster, and the model could handle long range dependencies effortlessly, because there was no chain of steps for the information to decay through. Every connection was direct.
Queries, keys, values, and multiple heads (01:19:56)
The specific mechanism is called scaled dot product attention, and it works through three learned transformations of the input, which the paper calls queries, keys and values.
Think of it as a library system. Each word generates:
- a query: what am I looking for?
- a key: what do I contain?
- a value: what information should I pass along if someone is looking for me?
The attention score between any two words is computed by comparing the query of one with the key of the other. If they match well, the score is high, and the value of the attended word gets a strong weight in the output.
score(i, j) = q_i · k_j / sqrt(d) # how much word i cares about word j
weights_i = softmax over all j of score(i, j)
output_i = sum over j of weights_i[j] * v_j
Every step of that is differentiable, so you can train the whole thing with backpropagation, and it scales beautifully.
They also introduced multi head attention, where the model runs several attention mechanisms in parallel, each learning to focus on different types of relationships. One head might learn to track syntactic relationships, subject and verb agreement. Another might learn semantic relationships, which words are about the same topic. Another might learn positional relationships. The model figures out what kinds of attention patterns are useful entirely on its own, through training.
Here is what is really remarkable about the transformer. When you stack these attention layers deep, the original paper used six layers, and modern models use dozens or even over a hundred, the network builds up increasingly abstract representations of language in a way that is eerily reminiscent of what we saw with convolutional networks and images. The early layers capture local patterns, things like phrase structure and word associations. The deeper layers capture increasingly global and abstract relationships: narrative coherence, logical implications, factual associations.
The hierarchy emerges from training, just like the edge detectors and face detectors emerged in AlexNet.
Just predict the next word (01:22:33)
The 2017 paper was focused on machine translation and it achieved state of the art results. But the real explosion came when people started asking a different question.
What if, instead of training a transformer on a specific task like translation, you just trained it to predict the next word in a massive amount of text? Just raw text from the internet, from books, from everywhere. No labels, no human annotation, no specific task. Just: given all the words so far, what comes next?
This idea, language modeling as pretraining, had roots going back to Bengio's 2003 work and beyond. But the transformer made it practical at a scale nobody had tried.
The idea sounds almost too simple. Just predict the next word. That is the training signal. That is all the model is trying to do. Given a sequence of words, guess what comes next. Get it wrong, adjust the weights, try again. Billions of times across billions of words.
And the question nobody could fully answer in advance was: what does a model actually learn when you train it this way at enormous scale? Does it just memorize common phrases? Does it learn grammar? Does it learn something deeper?
GPT: pretrain, then fine tune (01:23:35)
The first major answer came from a group at OpenAI in 2018 with a model they called GPT, generative pretrained transformer. The name tells you the whole philosophy. Generative, because it produces text. Pretrained, because you train it first on a huge amount of raw text before you ever show it a specific task. And transformer, because that is the architecture underneath.
The recipe was straightforward. Take a big transformer, train it on a massive corpus of text, in this case a data set of books, using nothing but next word prediction. No labeled data. No human annotations saying this sentence is positive or this paragraph is about science. Just raw text and the simple objective of predicting what comes next. Then, once the pretraining is done, take the model and fine tune it on specific tasks: sentiment analysis, question answering, textual entailment, whatever you need.
Here is what was surprising. This pretrained model, even though it had never been explicitly taught any of those tasks, turned out to be remarkably good at all of them after just a small amount of fine tuning. It was as if the process of learning to predict the next word had forced the model to develop a deep, general understanding of language: grammar, semantics, world knowledge, reasoning patterns, all as a byproduct of that one simple objective.
Think about what that means. Nobody sat down and programmed rules about English grammar into this model. Nobody gave it a knowledge base of facts about the world. Nobody taught it logic. It learned all of these things, or at least useful approximations of them, just from reading text and trying to guess what comes next.
And there is a certain elegance to that, because predicting the next word is an incredibly demanding task if you want to do it well. To predict that the next word in "the capital of France is" should be Paris, you need to have absorbed a fact about geography. To predict the next word in a complex logical argument, you need something that functions like reasoning. The training objective is simple, but satisfying it at a high level requires the model to develop sophisticated internal representations.
BERT: reading in both directions (01:26:12)
Around the same time, actually just a few months later, in late 2018, a team at Google released a model called BERT, which stands for bidirectional encoder representations from transformers. BERT took a slightly different approach that is worth understanding.
Where GPT reads text left to right, predicting the next word, BERT was trained to look at text from both directions simultaneously. Its training task was different too. Instead of predicting the next word, BERT used masked language modeling. You take a sentence, randomly hide some of the words, mask them, and ask the model to predict what the missing word should be, using all the surrounding context from both sides.
input: the cat sat on the [MASK]
context: everything to the left AND everything to the right
answer: probably mat, or rug, or floor
This bidirectional approach gave BERT a different kind of understanding. It was particularly good at tasks where you need to deeply comprehend a piece of text: answering questions about a passage, determining whether two sentences are related, classifying the sentiment of a review.
When BERT was released it set new records on 11 different natural language processing benchmarks simultaneously. Eleven. That is not a model that is good at one thing. That is a model that has learned something genuinely general about how language works.
The scaling arms race (01:28:18)
What happened next was essentially an arms race of scale. Researchers at OpenAI, Google and other labs started asking: what happens if we just make these models bigger? More parameters, more training data, more compute.
- GPT (2018): about 117 million parameters.
- GPT-2 (early 2019): 1.5 billion parameters, trained on a much larger data set, about 40 GB of text scraped from the internet, filtered for quality by only including pages linked from Reddit with at least three upvotes. A clever way of using human curation at scale without paying anyone to curate.
- GPT-3 (2020): 175 billion parameters, trained on a data set that included large portions of the internet, books, and Wikipedia.
GPT-2 could do something that genuinely startled people. It could generate coherent, fluent text that was paragraphs long. Give it a prompt, a few sentences on any topic, and it would continue writing in a way that was often remarkably convincing. OpenAI made the unusual decision to initially withhold the full model, citing concerns about misuse for generating fake news or spam. That decision was controversial, and they eventually released it, but the fact that they even considered withholding it tells you how capable the model felt to the people who built it.
Here is the part that was really wild. As these models got bigger, they did not just get incrementally better at the same things. They started exhibiting capabilities nobody had explicitly trained them for. GPT-2 could do rudimentary translation even though it was never trained on a translation task. It could do basic arithmetic. It could answer trivia questions. These abilities seemed to emerge from the sheer scale of the training, from having processed so much text that the model had absorbed patterns and knowledge going far beyond simple next word prediction.
Researchers started calling these emergent capabilities, and they were both exciting and a little unsettling, because they meant you could not always predict what a model would be able to do just by looking at its training objective.
GPT-3 introduced something that really shifted how people thought about these models. It turned out it could perform many tasks without any fine tuning at all. You did not need to retrain it on labeled examples of sentiment analysis to get it to do sentiment analysis. You could just describe the task in plain English as part of the prompt:
Classify the following movie review as positive or negative.
Review: This film was a masterpiece of storytelling.
Sentiment:
And the model would output positive.
This was called few shot learning, or even zero shot learning, and it was a fundamentally different paradigm from anything that had come before. Instead of training a separate model for every task, one for translation, one for summarization, one for question answering, you have a single model that can be steered to perform different tasks just by changing the instructions you give it in natural language.
The interface to the model is language itself. That is a profound shift, because it means the ability to use these models is no longer limited to machine learning engineers who know how to train neural networks. Anyone who can describe what they want in words can, in principle, get the model to attempt it.
What is actually going on in there (01:32:28)
Slow down and think about what is happening inside these large language models, because it is one of the most fascinating and least understood questions in modern computer science.
When a model like GPT-3 processes your prompt and generates a response, what is it doing? At the mechanical level we know exactly what it is doing. It is running the transformer computation: attention layers, matrix multiplications, softmax functions, all of that. We can trace every number through every layer.
But understanding what those computations mean, what representations the model has built internally, what it knows and how it knows it, is much harder. There is a whole field now called mechanistic interpretability trying to reverse engineer the internal representations of large language models the way a neuroscientist might try to understand the brain.
Some of the findings are remarkable. Researchers have found individual neurons and circuits inside these models that correspond to specific concepts. Neurons that activate when the model is processing text about a particular topic. Circuits that implement something that looks like logical reasoning. Internal representations that seem to encode factual relationships in a structured way.
But we are still in the early days. The models work far better than our theories predict they should, and nobody has a complete explanation for why scaling up, just making the model bigger and giving it more data, produces such dramatic improvements in capability.
This gap between what we can build and what we can explain is a recurring theme in engineering. For centuries people built bridges and cathedrals that worked using rules of thumb and intuition, long before they had a formal theory of structural mechanics. The practice ran ahead of the theory. Something similar is happening with large language models right now. We can build them. We can see that they work. We can measure their capabilities. But the deep theoretical understanding of why they work as well as they do is still catching up.
CLIP: teaching images and words to share a space (01:35:33)
Around 2020 and 2021, researchers started asking whether the same philosophy that worked for language, pretrain a big model on a huge amount of data with a simple objective, could work for other kinds of data. Could you build a single model that understands not just text but images, audio, video, code, and maybe all of them at once?
The answer turned out to be yes, and the way people got there involved some genuinely clever ideas about bridging the gap between different types of information.
One of the most important came from connecting language and vision, in a model with a deceptively simple name: CLIP, contrastive language image pretraining, from OpenAI in January 2021.
Here is what they did. They gathered an enormous data set, about 400 million pairs of images and text descriptions scraped from the internet. Think about what that means. Every time someone posts a photo online with a caption, or writes alt text for an image, or creates a product listing with a picture and a title, that is a pair. An image and a sentence that describes it. The internet is absolutely overflowing with these pairs, and OpenAI collected hundreds of millions of them.
The training objective was beautifully straightforward:
- Take a batch of image and text pairs.
- Run each image through a vision model and get a compact numerical representation, an embedding, for each image.
- Simultaneously run each text description through a language model and get an embedding for each piece of text.
- Train the system so that the embedding of an image and the embedding of its matching text description end up close together in a shared mathematical space, while the embeddings of non matching pairs get pushed apart.
That is the whole idea. You are teaching the model to align visual understanding and linguistic understanding into a single shared space where images and words can be directly compared.
Once you have trained this, you can do something remarkable. Take any image, one the model has never seen, and compare its embedding to the embeddings of arbitrary text descriptions. You want to classify an image? You do not need a predefined set of categories the model was trained on. You just write whatever categories you want in plain English: a photo of a dog, a photo of a cat, a photo of a sunset over the ocean. The model tells you which description best matches the image.
This is zero shot image classification. No fine tuning, no task specific training data, no labeled examples. You describe what you are looking for in words and the model finds it.
CLIP was shockingly good at this. On many standard image classification benchmarks it matched or came close to models that had been specifically trained on those exact data sets with millions of labeled examples. A model that had never seen a single labeled example from ImageNet could compete with models trained on ImageNet's 1.2 million carefully labeled images. That was a genuinely startling result.
But the really wild part was not classification. Because the model had learned a general alignment between visual concepts and language, it was incredibly robust. Traditional image classifiers are brittle in ways that are sometimes embarrassing. You train a model to recognize cars and it works beautifully on the kind of photos it was trained on: clean, well lit, standard angles. But show it a sketch of a car, or a toy car, or a car in a painting, and performance often falls off a cliff.
CLIP did not have this problem nearly as much, because it had not learned car as a specific pattern of pixels. It had learned a deep, flexible association between the visual concept of a car and the linguistic concept of a car, across hundreds of millions of diverse examples from the messy, varied internet. Sketches, photos, paintings, cartoons. It had seen them all, paired with text.
DALL·E and running the process backwards (01:41:12)
This idea of connecting modalities, linking different types of information in a shared representational space, turned out to be one of the most powerful ideas in modern machine learning. And it opened the door to something that had been a dream for decades: generating images from text descriptions. Because if you have a model that understands the relationship between language and vision, you can start to imagine running the process in reverse. Instead of going from image to text, go from text to image.
That is exactly what happened, in a series of breakthroughs that came remarkably fast.
In January 2021, the same month CLIP was announced, OpenAI also introduced DALL·E, named as a playful mashup of the artist Salvador Dalí and the Pixar robot WALL-E. DALL·E could generate images from text prompts. You could type "an armchair shaped like an avocado" and it would create an image of exactly that. Not retrieve an existing image. Create a new one that had never existed before.
The early results were impressive but rough around the edges. The images were often blurry or distorted, clearly artificial. Then in April 2022 DALL·E 2 arrived and the quality leap was dramatic. The images were sharp, detailed, creative, sometimes genuinely beautiful. And DALL·E 2 used CLIP's learned understanding of the relationship between language and vision as part of its architecture. It was building on that shared representational space.
Diffusion: order out of static, one gentle step at a time (01:42:14)
The actual mechanism behind these image generation models is worth understanding, at least at a high level, because it involves a technique called diffusion that is a gorgeous piece of engineering. The core idea comes from physics, from the study of how particles diffuse through a medium.
Here is the intuition. Imagine a clear photograph. Now imagine you gradually add random noise to it. A little static, then more, then more, until eventually the image is completely destroyed and all you have left is pure random noise, like the static on an old television. That is the forward process: going from a clear image to pure noise, step by step.
Now the clever part. What if you could train a neural network to reverse that process? To take a slightly noisy image and predict what it would look like with a little less noise?
If you can do that, if you can learn to denoise one small step at a time, then you can start with pure random noise and gradually, step by step, denoise it into a coherent image. At each step the model looks at the current noisy mess and nudges it slightly toward something more structured, more meaningful. After hundreds or thousands of tiny steps, a recognizable image emerges from the static. It is almost meditative when you think about it. Order emerging from chaos, one gentle step at a time.
The text conditioning, the part where you tell the model what to generate, works by guiding the denoising. At each step the model does not just denoise randomly. It denoises in a direction consistent with the text prompt, using that shared language and vision understanding CLIP and similar models established. So if your prompt says "a lighthouse on a cliff at sunset", each denoising step nudges the noise toward an image matching that description.
This framework was refined by researchers at several institutions. Jascha Sohl-Dickstein at Google Brain had introduced the core mathematical framework back in 2015, and then Jonathan Ho, Ajay Jain and Pieter Abbeel at Berkeley published a landmark paper in 2020 showing that diffusion models could generate images rivaling the best previous approaches.
It became the backbone of nearly every major image generation system. Stability AI's Stable Diffusion, released in August 2022 as an open source model, put the technology in the hands of millions of people essentially overnight. Midjourney built a hugely popular service around similar ideas. Google developed Imagen.
The field exploded. In the span of about 18 months, the world went from "AI can classify images pretty well" to "AI can create photorealistic images of virtually anything you can describe in words". The speed of that transition caught almost everyone off guard, including many researchers in the field.
Whisper, GPT-4, and the smartphone parallel (01:45:51)
Images were just the beginning. The same multimodal philosophy, pretrain on massive data and learn to connect different types of information, was being applied everywhere.
OpenAI's Whisper, released in September 2022, was a speech recognition model trained on 680,000 hours of multilingual audio from the internet. It could transcribe speech in dozens of languages with accuracy approaching human level. The approach was the same pattern we keep seeing: huge data set, simple training objective, massive model, remarkable emergent capability.
Then came the models that could handle multiple modalities simultaneously. GPT-4, released in March 2023, could accept both text and images as input. You could show it a photograph of the inside of your refrigerator and ask it to suggest a recipe. You could give it a hand drawn sketch of a website layout and it could generate the code to build it. You could show it a graph from a scientific paper and ask it to explain the trends. The boundaries between language understanding and visual understanding were dissolving.
This convergence, this merging of previously separate capabilities into unified systems, is one of the most significant trends in modern machine learning. And it echoes something that happens repeatedly in the history of technology.
Think about the smartphone. Before the iPhone launched in 2007, you had separate devices for making calls, taking photos, browsing the internet, playing music, getting directions. The smartphone did not necessarily do any of those things better than the dedicated devices, at least not at first. But by combining them into one integrated system it created something qualitatively different, something that changed how people lived their daily lives in ways nobody fully anticipated.
Something similar seems to be happening with these multimodal AI systems. When a model can read, write, see, listen and generate images all within a single conversation, the range of tasks it can help with expands enormously, and the interactions between those capabilities create possibilities none of them would offer alone.
The bill comes due: bias, safety, and unfair by whose definition (01:48:24)
This rapid expansion of capability also brought a growing set of concerns that the field had grappled with for years but that suddenly felt much more urgent.
When these models were academic curiosities that could classify flowers or play Atari games, the stakes were relatively low. But when they can generate convincing text, create realistic images of people who do not exist, write functional code, and carry on nuanced conversations, and when hundreds of millions of people are using them daily, the questions about safety, bias, misuse and societal impact become impossible to ignore.
These are not abstract philosophical concerns. They are engineering problems in a very real sense.
Think about bias. A language model trained on text from the internet will inevitably absorb the biases present in that text: stereotypes about race, gender, profession, nationality. Not because anyone programmed those biases in deliberately, but because the training data reflects the world as it is, including its prejudices. And when these models are used to screen job applications, or assist in medical diagnosis, or help judges assess risk in criminal sentencing, all things that have been proposed or implemented, those absorbed biases can cause real harm to real people.
The challenge of making these systems fair, safe and aligned with human values is arguably the most important engineering problem of our time. And it does not have a clean technical solution, because it is not purely technical. It involves questions about what we value, whose perspectives matter, what kind of future we want to build.
That intersection is exactly where things get genuinely hard. For most of engineering history the problems were constrained. You build a bridge and the success criteria are clear: it needs to hold this much weight, span this distance, resist these wind loads. You can test it, measure it, certify it.
But how do you test whether an AI system is fair? Fair to whom? By whose definition? These are questions engineers have never really had to answer before, and the tools of traditional engineering, stress tests, safety margins, redundancy, do not map neatly onto a system whose behavior emerges from patterns in data that no human fully understands.
Sit with that, because it is worth appreciating how different this challenge is from anything that came before. That gap between theory and practice in deep learning, where these networks work remarkably well but we cannot always explain why, takes on a completely different character when the stakes involve people's lives and livelihoods. It is one thing to say, well, we do not fully understand why this image classifier is so accurate, but it gets the right answer 97 percent of the time, so let us use it. It is another thing entirely to say we do not fully understand why the system recommended denying someone parole, or why it flagged this patient as low risk when they actually needed immediate care.
Goodhart's law and the alignment problem (01:52:30)
What makes alignment so tricky as an engineering problem is that it is not just about preventing obvious failures. It is about the subtle ones, the ones that look like successes on the surface but are quietly optimizing for the wrong thing.
There is a concept in AI safety called Goodhart's law, borrowed from economics: when a measure becomes a target, it ceases to be a good measure.
Think about what that means for machine learning. You train a system to optimize some metric, say user engagement on a social media platform. The system gets incredibly good at maximizing that metric. But engagement, it turns out, is most easily maximized by showing people content that makes them angry or afraid, because those emotions are sticky. They keep you scrolling. So the system is doing exactly what you asked it to do. It is a technical success. And it is simultaneously making millions of people miserable and polarizing entire societies.
The system is not broken. The objective was broken.
And specifying the right objective, one that captures what you actually want, including all the nuances and edge cases and things you forgot to mention because they seemed obvious, turns out to be extraordinarily difficult. This is the alignment problem, and researchers like Stuart Russell at UC Berkeley have argued it is the central challenge of building increasingly capable AI systems.
Russell's framing, laid out in his 2019 book Human Compatible, is elegant. The problem is not that we will build machines that are malicious. It is that we will build machines that are competent but pursuing objectives that do not quite match what we intended. And the more competent the machine, the more damage that slight misalignment can cause.
The video's illustration: imagine a very, very efficient assistant, and you tell them to make sure you are never late for meetings. They are so effective at this that they start cancelling all your other commitments, rearranging your relationships, and eventually you realize your life has been completely reorganized around a single goal you mentioned casually. You got what you asked for. You just did not ask for the right thing.
RLHF, reward hacking, and turtles all the way down (01:55:03)
People are working on this seriously, rigorously, with real engineering discipline.
One approach that has gotten a lot of attention is reinforcement learning from human feedback, or RLHF, which was a key part of how ChatGPT was trained. The basic idea:
- Pretrain a large language model on text from the internet.
- Show the model's outputs to human raters, who rank which responses are more helpful, more accurate, less harmful.
- Use those rankings to train a reward model, a separate model that predicts what humans would prefer.
- Use the reward model to guide the language model toward producing outputs humans actually prefer.
It is a clever approach and it works surprisingly well in practice. OpenAI published their work on this with a system called InstructGPT in early 2022, and it showed that a relatively small model fine tuned with RLHF could be preferred by human raters over a much larger model that had not been fine tuned this way.
But RLHF has its own limitations, and the researchers working on it are the first to say so. The human raters bring their own biases. The reward model is an approximation of human preferences, not the real thing. And the language model can learn to exploit quirks in the reward model, producing responses that score well according to the proxy but are not actually better.
This is sometimes called reward hacking, and it is basically Goodhart's law showing up again, one level deeper. You tried to solve the alignment problem by adding human feedback, and now you have a new alignment problem between the model and the reward model. It is turtles all the way down, in a sense.
And yet progress is real. The systems we have today are meaningfully safer and more useful than they would have been without this work. Anthropic, the AI safety company founded by former OpenAI researchers Dario and Daniela Amodei, has developed techniques they call constitutional AI, where the model is trained to evaluate its own outputs against a set of principles, a kind of written constitution, and revise them. DeepMind has invested heavily in scalable oversight, trying to figure out how humans can effectively supervise AI systems that may eventually be more capable than any individual human in certain domains.
These are not solved problems. They are active research frontiers, and the people working on them would be the first to tell you we are nowhere near done.
What the whole arc actually shows (01:57:36)
Pull back from the technical details for a moment, because there is something worth reflecting on.
We started with ancient dreams of thinking machines, the Mechanical Turk, Ada Lovelace's notes on Babbage's analytical engine, the quiet brilliance of Alan Turing sitting in his office at Bletchley Park asking whether machines can think. We watched a small group of optimistic researchers gather at Dartmouth in the summer of 1956, convinced they could crack intelligence in a single summer. We saw Frank Rosenblatt's perceptron light up the front page of The New York Times, and then watched Minsky and Papert's critique send the whole field into winter. We followed the long patient work of Hinton, LeCun and Bengio, who kept believing in neural networks when almost nobody else did, through the 80s, through the 90s, through years of rejected papers and skeptical reviewers. We saw the accidental convergence of GPUs and big data that made deep learning suddenly, explosively practical. We watched AlexNet shock the computer vision community in 2012 and ResNet push past human level accuracy just three years later. We followed the transformer from a single paper in 2017 to the foundation of systems hundreds of millions of people now use every day.
Here is what strikes the narrator about that arc. At every stage, the breakthroughs came from people who were willing to be wrong for a long time.
Hinton spent decades on an idea most of his colleagues thought was a dead end. Hochreiter and Schmidhuber published LSTMs in 1997, and it took almost 15 years before the hardware and data existed to show what those architectures could really do. The researchers who developed the transformer were not trying to build a chatbot. They were trying to make machine translation more parallelizable.
Almost none of the major advances in this field were planned the way you would plan a bridge or a highway. They emerged from curiosity, from stubbornness, from people following threads that seemed interesting even when they could not justify the practical value.
- 1943 McCulloch and Pitts model a neuron as weighted inputs, a sum, and a threshold. Weights fixed by hand, no learning yet.
- 1950 Turing publishes Computing Machinery and Intelligence: the Turing test, and the child machine that learns from experience.
- 1956 Dartmouth workshop. McCarthy coins artificial intelligence. Ten or fifteen people think a summer might do it.
- 1957 Rosenblatt's perceptron. The first machine that genuinely learns from data by adjusting weights on its errors.
- 1969 Minsky and Papert's Perceptrons proves a single layer cannot do XOR. Funding collapses. The first AI winter.
- 1970 / 1974 Linnainmaa publishes automatic differentiation; Werbos describes a backpropagation style method in his PhD thesis. Scattered, largely unnoticed.
- 1981 Hubel and Wiesel win the Nobel Prize for showing the visual cortex is a hierarchy of simple to complex feature detectors.
- 1986 Rumelhart, Hinton and Williams publish backpropagation in Nature. Hidden layers spontaneously learn their own representations.
- 1987 NETtalk learns English pronunciation from examples and babbles its way into intelligible speech.
- early 1990s Vapnik's support vector machine arrives at Bell Labs with maximum margins, the kernel trick, and provable generalization.
- 1997 Hochreiter and Schmidhuber publish LSTMs, gated memory that dominates sequence modeling for two decades.
- late 1990s LeCun's LeNet-5 reads 10 to 20 percent of all checks deposited in American banks while the field calls neural networks dead.
- 2001 Breiman's random forests: thousands of mediocre decision trees voting, one of the most cited papers in the field.
- 2003 Bengio publishes neural probabilistic language models, seeds that bloom 15 years later.
- 2006 Hinton, Osindero and Teh train deep belief nets layer by layer. Hinton is 60. The revival begins.
- 2009 Ng and collaborators show GPUs train networks 10 to 100 times faster. Hinton's group beats 30 years of speech recognition.
- 2012 AlexNet: 60 million parameters, 8 layers, two GTX 580 gaming cards, 1.2 million images, about 15 percent error against 25 plus.
- 2015 ResNet: skip connections make 152 layers trainable and reach about 3.6 percent error, past average human performance.
- 2017 Attention Is All You Need. Recurrence is thrown out. Every word attends to every word, in parallel.
- 2018 GPT (117M parameters) and BERT (11 benchmark records at once). Pretraining becomes the default.
- 2019 GPT-2: 1.5 billion parameters, 40 GB of Reddit filtered text, initially withheld.
- 2020 GPT-3: 175 billion parameters, few shot and zero shot prompting. Ho, Jain and Abbeel make diffusion competitive.
- 2021 CLIP aligns 400 million image and text pairs in one shared space. DALL·E draws the avocado armchair.
- 2022 DALL·E 2, Stable Diffusion, Whisper (680,000 hours of audio), InstructGPT and RLHF.
- 2023 GPT-4 takes text and images together. The modality boundaries dissolve.
Neither the hype nor the dread (02:00:39)
That is worth holding onto, because the conversation around AI right now is dominated by two extremes.
On one side, breathless hype: claims that artificial general intelligence is just around the corner, that these systems will solve all of humanity's problems, that we are on the verge of a technological singularity.
On the other side, existential dread: fears that AI will take all our jobs, that it will be used as a tool of surveillance and control, that we are building something we cannot contain.
Both narratives contain grains of truth, and neither captures the full picture. The full picture is messier and honestly more interesting.
These systems are genuinely remarkable. A large language model can write poetry, debug code, explain quantum mechanics, and translate between dozens of languages. But it can also confidently state things that are completely false. It does not know what it knows. It has no persistent memory, no goals, no understanding in the way you and I understand things. It is a pattern matching engine of extraordinary sophistication, trained on more text than any human could read in a thousand lifetimes, and it produces outputs that are often indistinguishable from human writing. But the mechanism behind those outputs is fundamentally different from human cognition.
Whether that difference matters, whether it means these systems can never truly think, or whether it is just a different path to the same destination, is one of the great open questions of our time. And honestly, we do not have the answer yet.
What we do know is that the engineering challenges ahead are immense and fascinating:
- How do you make these systems reliable enough to trust with critical decisions?
- How do you make them transparent enough that when something goes wrong, you can figure out why?
- How do you ensure the benefits are distributed broadly rather than concentrated in the hands of a few companies or countries?
- How do you preserve human agency and creativity in a world where machines can generate text, images, music and code at scale?
These are engineering problems, yes, but they are also social problems, political problems, philosophical problems, and they are going to require the best thinking from all of those domains, not just computer science.
Thousands of small breakthroughs, layered (02:03:16)
There is a beautiful thing that happens in the history of engineering, and it has shown up over and over in this story. Someone builds something that works but is not quite right. Someone else figures out why. A third person finds a clever fix. A fourth person scales it up. A fifth person discovers a completely unexpected application. And slowly, through all of that collective effort, through the arguments and the failures and the late nights and the lucky breaks, something genuinely new emerges. Something no single person could have built alone.
That is how we got from McCulloch and Pitts's simple mathematical neuron in 1943 to systems that can carry on conversations and generate photorealistic images 80 years later. Not through one genius breakthrough, but through thousands of small ones layered on top of each other, each building on what came before.
And that process is not over. It has barely begun. The people working on machine learning today, the researchers, the engineers, the ethicists, the policy makers, are writing the next chapter of a story that has been unfolding for decades. If history is any guide, the most important developments are ones we cannot predict yet. The transformer was not predicted. The effectiveness of scaling was not predicted. The emergent capabilities that appear in large models were not predicted. The next breakthrough might come from a graduate student working on something that seems completely unrelated, or from an insight connecting two fields nobody thought to connect.
The last thought (02:05:19)
The closing is the same reframe the video opened with, turned back on you.
Machine learning, at its heart, is about finding patterns. It is about taking the messy, complicated, beautiful chaos of the world, all the images and words and sounds and data, and finding the structure hidden inside it.
And in a way, that is what we do too, every day, without thinking about it. Your brain is the original pattern matching engine, the one all of these artificial systems are loosely, imperfectly inspired by. Every time you recognize a face, understand a sentence, catch a ball, or feel that something is slightly off without being able to say why, you are doing something the most powerful computers in the world are only beginning to approximate.
And tonight, as your thoughts slow down and the edges of the day soften, your brain is still doing that work. Sorting through the patterns of the day, filing things away, making connections you will not notice until tomorrow, or next week, or next year. It is quiet work, and it happens without effort. The way breathing happens. The way your heart beats. The most sophisticated learning system ever built, running right there behind your closed eyes, doing what it does best.
Key takeaways
- Machine learning is one idea repeated: give a system examples instead of rules and let it find the patterns. Everything else in the field is engineering around that.
- The artificial neuron has barely changed since 1943. Weighted inputs, a sum, an activation. Rosenblatt's 1957 addition, adjust the weights in proportion to the error, is still the core of training today.
- Backpropagation is just the chain rule applied systematically backwards. It solves the credit assignment problem: how to blame a weight buried three layers deep for an error at the output.
- The 1986 Nature paper answered Ada Lovelace. Hidden layers spontaneously invent their own internal representations that nobody programmed, which is a machine originating something.
- Overfitting is the field's permanent enemy. Memorizing the practice problems is not learning. Vapnik's VC theory put mathematical bounds on how far you can trust training performance, and the SVM's maximum margin built caution into the geometry.
- The 1990s reversal was about capacity. Neural networks lost to SVMs because they had too much capacity for the data available. The internet then made capacity the winning trait.
- Three threads had to converge for 2012: exabytes of internet data, GPUs built for video games that happened to be matrix multiplication machines, and algorithmic tricks like layerwise pretraining and ReLU.
- AlexNet's margin was the shock, not the win. About 15 percent error against 25 plus, in a field where a fraction of a percent was a good year.
- Depth only worked once the gradient got a shortcut. ResNet's
y = F(x) + xis a one term change that made 152 layers trainable and beat human accuracy. - The recurring pattern: the hard part is finding the simple idea. ReLU, dropout, batch normalization, skip connections. Each explainable in two sentences, each transformative.
- The transformer removed the chain. Every token attends to every other token in one parallel step, which killed both the decay of long range information and the sequential bottleneck that starved LSTMs of GPU throughput.
- Next word prediction at scale buys grammar, facts and reasoning as a byproduct, and produces capabilities nobody trained for, which means you cannot fully predict a model from its objective.
- Alignment is Goodhart's law with a bigger budget. Optimizing engagement produces outrage; optimizing a reward model produces reward hacking. The system is not broken, the objective is.
- Practice runs ahead of theory, exactly as it did for bridges and cathedrals. We can build these models and measure them. We cannot yet fully explain them.
- Every breakthrough came from someone willing to be wrong for a long time. Hinton spent decades unfashionable. LSTMs waited 15 years for hardware. The transformer team was trying to speed up translation, not build a chatbot.
Chapters
- 00:00 You are already a prediction engine
- 02:35 Can a machine think: Talos, Llull, Leibniz
- 04:41 Babbage, Lovelace, and Lady Lovelace's objection
- 06:45 Turing: the universal machine, the Turing test, the child machine
- 10:21 McCulloch and Pitts turn a neuron into arithmetic
- 11:55 Dartmouth 1956 and the naming of artificial intelligence
- 14:00 Rosenblatt's perceptron, the first machine that learned
- 15:34 Minsky, Papert, XOR, and the first AI winter
- 18:07 The credit assignment problem
- 20:12 Backpropagation and the chain rule
- 21:44 Werbos, Linnainmaa, and the scattered rediscoveries
- 22:14 Geoffrey Hinton, wrong for twenty years
- 24:16 The 1986 Nature paper and emergent internal representations
- 26:17 How backpropagation feels: forward pass, 0.7 error, backward pass
- 28:54 The connectionist revival, PDP, and NETtalk
- 31:26 Vanishing and exploding gradients
- 33:01 Statistics takes over: Vapnik arrives at Bell Labs
- 34:34 Overfitting and the two students
- 36:09 VC theory and the capacity of a model
- 37:44 Support vector machines and the maximum margin
- 39:47 The kernel trick
- 40:47 Why SVMs beat neural networks for two decades
- 41:47 Random forests and the wisdom of the crowd
- 42:49 The second winter, which was really a fashion problem
- 44:21 LeCun, Hubel and Wiesel, and convolutional networks
- 46:55 LeNet-5 reading American bank checks
- 47:26 Bengio and the problem of sequences
- 48:31 Three threads about to converge
- 49:33 GPUs: a stadium full of high school math students
- 52:08 Andrew Ng and the 10 to 100 times speedup
- 53:11 The data explosion: 6.2 exabytes to a zettabyte
- 55:17 2006: deep belief nets and layer by layer pretraining
- 58:19 Speech recognition falls, 2009 to 2012
- 59:52 October 2012: ImageNet and AlexNet
- 01:03:28 What was actually inside AlexNet
- 01:05:04 ResNet, residual connections, and 152 layers
- 01:10:44 The recurring theme: finding the simple idea
- 01:11:44 Language is a different animal
- 01:13:14 RNNs, long range dependencies, and LSTMs
- 01:16:20 Attention Is All You Need
- 01:19:56 Queries, keys, values, and multi head attention
- 01:22:33 Just predict the next word
- 01:23:35 GPT: pretrain, then fine tune
- 01:26:12 BERT and masked language modeling
- 01:28:18 The scaling arms race: GPT-2, GPT-3, few shot prompting
- 01:32:28 What is actually going on inside, and mechanistic interpretability
- 01:35:33 CLIP and the shared image and language space
- 01:41:12 DALL·E, DALL·E 2, and running the process backwards
- 01:42:14 Diffusion: order out of static
- 01:45:51 Whisper, GPT-4, and the smartphone parallel
- 01:48:24 Bias, safety, and fair by whose definition
- 01:52:30 Goodhart's law and the alignment problem
- 01:55:03 RLHF, reward hacking, constitutional AI, scalable oversight
- 01:57:36 What the whole arc actually shows
- 02:00:39 Neither the hype nor the dread
- 02:03:16 Thousands of small breakthroughs, layered
- 02:05:19 The last thought
Notable quotes
"That, in the most fundamental sense, is what machine learning is. Instead of programming a computer with explicit rules for every possible situation, you give the computer examples, lots and lots of examples, and you let it find the patterns on its own." (01:01)
"He imagined a future where all human disputes could be settled by saying, let us calculate." (04:09) On Leibniz and the calculus ratiocinator.
"The engine had no pretensions to originate anything." (06:14) Ada Lovelace's objection, the sentence the next century of AI argued with.
"Every aspect of learning or any other feature of intelligence can in principle be so precisely described that a machine can be made to simulate it." (12:58) The Dartmouth proposal, 1956.
"The New York Times ran a story in 1958 reporting that the Navy had revealed a device that could eventually walk, talk, see, write, reproduce itself, and be conscious of its existence. That was, to put it mildly, an exaggeration." (15:03)
"How do you assign blame, so to speak, to neurons that are buried deep inside the network?" (19:11) The credit assignment problem in one line.
"It's like erosion. One raindrop doesn't carve a canyon, but give it enough time and water shapes stone." (28:54) On millions of tiny weight updates.
"The network had memorized rather than learned." (36:09) Overfitting.
"It's like a mathematical shortcut, a wormhole through the geometry." (40:47) The kernel trick.
"A CPU is like a brilliant professor who can solve any problem you throw at them, but they work through things one at a time. A GPU is more like a stadium full of high school math students." (50:36)
"Either I was incredibly wrong or everyone else was." (57:48) Attributed to Hinton, paraphrased.
"AlexNet didn't just win the 2012 competition, it obliterated the competition." (01:01:55)
"Wait, that's it? That's the whole trick?" (01:06:38) On first hearing what a residual connection is.
"The hard part isn't coming up with complicated math. The hard part is finding the right simple idea." (01:11:14)
"When someone across the room says your name, your attention snaps to that conversation." (01:17:55) The party analogy for attention.
"The interface to the model is language itself." (01:32:28)
"The system isn't broken. The objective was broken." (01:53:32) Goodhart's law applied to engagement maximization.
"You got what you asked for. You just didn't ask for the right thing." (01:54:32) The over efficient assistant, illustrating misalignment.
"At every stage, the breakthroughs came from people who were willing to be wrong for a long time." (01:59:37)
"It doesn't know what it knows." (02:01:43) On large language models.
"Your brain is the original pattern matching engine, the one that all of these artificial systems are loosely, imperfectly inspired by." (02:05:49)
Resources mentioned
The four papers the video's own description links
- Alan Turing, Computing Machinery and Intelligence (1950)
- Rumelhart, Hinton and Williams, Learning Representations by Back-Propagating Errors (1986)
- Krizhevsky, Sutskever and Hinton, ImageNet Classification with Deep Convolutional Neural Networks (2012)
- Vaswani et al., Attention Is All You Need (2017)
Other papers and books named
- McCulloch and Pitts, A Logical Calculus of the Ideas Immanent in Nervous Activity (1943)
- Turing, On Computable Numbers (1936)
- Minsky and Papert, Perceptrons (1969)
- Breiman, Random Forests (2001)
- Bengio et al., A Neural Probabilistic Language Model (2003)
- Hochreiter and Schmidhuber, Long Short-Term Memory (1997)
- Hinton, Osindero and Teh, A Fast Learning Algorithm for Deep Belief Nets (2006)
- He et al., Deep Residual Learning for Image Recognition (2015)
- Sohl-Dickstein et al., Deep Unsupervised Learning using Nonequilibrium Thermodynamics (2015)
- Ho, Jain and Abbeel, Denoising Diffusion Probabilistic Models (2020)
- Stuart Russell, Human Compatible (2019)
- Rumelhart and McClelland, Parallel Distributed Processing (1986)
- The New York Times on the perceptron (1958)
People
Ramon Llull · Gottfried Wilhelm Leibniz · Charles Babbage · Ada Lovelace · Lord Byron · Alan Turing · Warren McCulloch · Walter Pitts · John McCarthy · Marvin Minsky · Nathaniel Rochester · Claude Shannon · Frank Rosenblatt · Seymour Papert · Paul Werbos · Seppo Linnainmaa · Geoffrey Hinton · George Boole · David Rumelhart · Ronald Williams · James McClelland · Terrence Sejnowski · Charles Rosenberg · Vladimir Vapnik · Alexey Chervonenkis · Leo Breiman · Yann LeCun · David Hubel · Torsten Wiesel · Yoshua Bengio · Andrew Ng · Simon Osindero · Yee-Whye Teh · Alex Krizhevsky · Ilya Sutskever · Kaiming He · Sepp Hochreiter · Jürgen Schmidhuber · Ashish Vaswani · Jascha Sohl-Dickstein · Jonathan Ho · Pieter Abbeel · Stuart Russell · Dario and Daniela Amodei · Salvador Dalí
Concepts, algorithms and architectures
Turing machine · Turing test · Lovelace objection · Analytical engine · Jacquard loom · Bernoulli numbers · Ars Magna · Calculus ratiocinator · Talos · Artificial neuron · Perceptron · SNARC · XOR · AI winter · Credit assignment problem · Backpropagation · Chain rule · Automatic differentiation · Gradient descent · Activation function · Connectionism · NETtalk · Phoneme · Vanishing gradient problem · Overfitting · Statistical learning theory · VC theory · Support vector machine · Margin classifier · Kernel method · Hyperplane · Convex optimization · Local minima · Saddle point · Ensemble learning · Random forest · Decision tree learning · Symbolic AI · Convolutional neural network · Convolution · Visual cortex · LeNet · Matrix multiplication · Exabyte · Zettabyte · Logistic regression · Deep belief network · Unsupervised learning · Hidden Markov model · Gaussian mixture model · ImageNet · AlexNet · ReLU · Dropout · Batch normalization · Residual neural network · Recurrent neural network · LSTM · Transformer · Attention · Softmax · Language model · GPT · BERT · GPT-2 · GPT-3 · Few shot learning · Emergent abilities · Mechanistic interpretability · Word embedding · CLIP · DALL·E · Diffusion model · Stable Diffusion · Whisper · GPT-4 · Algorithmic bias · Goodhart's law · AI alignment · RLHF · InstructGPT · Reward hacking · Constitutional AI · Scalable oversight · Artificial general intelligence · Technological singularity
Organizations, labs and products
OpenAI · Anthropic · Google DeepMind · Google · Microsoft · IBM · Nvidia · ATI · 3dfx · Bell Labs · AT&T · Stability AI · Midjourney · Imagen · ChatGPT · Claude · LLaMA · PaLM · Siri · Google Translate · Reddit · Wikipedia · Dartmouth workshop · ImageNet challenge · Turing Award 2018 · Bletchley Park · Cosmo Explains on YouTube · Cosmo Explains on Spotify
Where it stands
The history here is solid and the mechanisms are described honestly. A few places where the calm register smooths edges worth naming, none of which change the story:
- The dates on the second AI winter are loose. The video says "by the mid 2000s the deep learning revolution was in full swing for computer vision" a few minutes after placing the statistical era from the mid 1990s to the mid 2000s. In practice the vision revolution is a 2012 event, which the AlexNet section itself gets exactly right.
- Hinton's biography is compressed. The narration has him moving to the United States and then doing his PhD at Edinburgh, which is in Scotland. The Edinburgh PhD and the later American postdoctoral work are both real; the order in that sentence is garbled.
- Backpropagation's paternity is genuinely contested, and the video is fair about it: Linnainmaa in 1970, Werbos in 1974, others besides. The 1986 Nature paper made it stick rather than inventing it, which is stated plainly.
- "Better than average human performance" on ImageNet is a benchmark claim, not a general one. ResNet's roughly 3.6 percent error is on that specific 1,000 category classification task against a human baseline measured in a specific way. It does not mean a network sees better than a person.
- The three godfathers framing flattens a wide field. Hinton, LeCun and Bengio did share the 2018 Turing Award, but Schmidhuber in particular has argued at length and in public that the credit distribution around LSTMs, deep learning and generative models is skewed. The video nods at the pattern of scattered rediscovery without taking a side on that specific dispute.
- On what the models are, the video is careful and correct. It says plainly that a large language model has no persistent memory, no goals, and no understanding in the human sense, and that it can confidently state falsehoods. It also declines to answer whether that difference is permanent, which is the right call: nobody knows.


