In the 1980s, Geoffrey Hinton and David Rumelhart were trying to get their “artificial neural networks” to do anything interesting. Their central problem: how do we update the parameters of the neural network, in response to feedback from the environment?
Rumelhart (re-)invented the backpropagation algorithm, where the weights of the neural network were adjusted by gradient descent on the loss function, i.e. taking the line of steepest descent. Hinton thought this couldn’t possibly work, arguing that:
It would get stuck in local minima. There was no guarantee you’d find a global optimum. Since you’re bound to get stuck in local minima, it wasn’t really worth investigating.[1]
Indeed, this was a serial concern with all types of local optimization processes, which contributed to the lack of interest in machine learning.
And let’s remember that Hinton was one of the connectionist radicals of this time, who was more willing to believe the then-unintuitive reasons why neural networks should work compared to the vast majority of his contemporaries. But even he was skeptical about this!
But after failing at other approaches, Hinton dusted off the idea and coded it up:
The error was zero. I was amazed. …Then I tried it on a bunch of other things, and it worked amazingly well on all of the things we tried.
Nowadays, neural networks reign supreme, and they all use gradient descent. They might fail to train for just about any reason under the Sun, but getting stuck in a local optimum is not one of them. In particular, a large language model receives trillions of gradient updates during pretraining, and yet its cross-entropy loss keeps going down.
Why is this?
The basic reason is that the 2-D picture is completely misleading. In reality, the parameter-space is thousands of dimensions even for a small neural network. It’s very unlikely for all those dimensions to “conspire” to wall us off at the same time. Here’s an animation:[2]
Roughly speaking, in N dimensions the chance that all N slope against us is about 2-N. This exponentially decays, so even at N = 100 we get 2-100, a negligible quantity.
That’s the basic intuition, although the more rigorous explanation involves the random matrix theory of Hessian matrices (see this paper for more).
Let’s consider a similar problem.
When Charles Darwin published On the Origin of Species, arguing that it was by Means of Natural Selection, a chief and persistent objection to his theory was that a simple hill-climbing process couldn’t possibly answer this great “question of questions”. The breadth and diversity of all life surely required forces much more formidable. Convinced that natural selection was a dead end, post-Darwin biologists searched for richer explanations, such as a guiding hand that caused organisms to grow in complexity. This continued for the better part of a century after Origin, only ending when genetics came along to rule out all the alternatives.
A particular objection Darwin anticipated was “Organs of extreme Perfection and Complication”: how could a structure as complex as the eye have evolved? In Chapter 6 of Origin he walked through the intermediate forms that natural selection might produce along the way. In modern form:
This didn’t preempt critics. Most persistent of these was George Jackson Mivart, who argued at length that certain complex organs could not be arrived at by natural selection, triumphantly listing out: giraffe necks, insect mimicry, baleen plates, flatfish eyes, prehensile tails, mammary glands, pollinia, and vines.
In the 6th edition of Origin (1872), Darwin saw fit to include an entire chapter addressing these point-by-point. For every one of Mivart’s examples, he gave a detailed explanation for how it could have arisen by innumerable fine gradations, and why those intermediate forms would be more adaptive than the last.
After one sees enough examples, the pattern is quite clear (and that chapter, like the rest of Origin, is quite readable and well-argued).
But why should all these complex adaptations resolve so cleanly? Why should everything be path-connected in phenotype-space? Why should the “reach” of natural selection have been so vast, that from a single bacterium it could attain an endless range of other forms of life?
If we were making predictions 4 billion years ago, at the dawn of life, none of this would have been obvious. Perhaps the first rudimentary bacteria would locally optimize their fitness function, then get stuck at a local optimum, and the story of life would end there.
But we can answer this deeper question with our modern understanding of high-dimensional optimization. When we optimize a machine learning system towards some fixed task, we can persistently and relentlessly descend toward low loss. And this explains the origin of capabilities: LLMs are relentlessly optimized to have low loss on next-token prediction, and in the limit this results in superhuman capabilities. It’s that simple.
And it also explains why natural selection works. How is it able to traverse so far in design-space, to persistently optimize complicated organs, to create endless forms most beautiful? Because it is optimizing over a high-dimensional space: the fitness of an organism in its environment as a function of its phenotype. Since the phenotype-space is zillions of variables, a hill-climbing process on this space doesn’t get stuck, because it’s extremely unlikely to ever get walled off in all zillion of those dimensions.
Therefore if we give this process a rudimentary RNA-based microbe that can barely replicate, then with high probability it will make something that is much better at replicating. If “eyes” are high in this fitness landscape, but very far from the starting point, then there will be a path there, and a hill-climbing process will be able to traverse it.[3]
Same goes with “brains.”
So if it weren’t for this phenomenon, we wouldn’t be here.
On some level, this is “just” a mathematical fact about high-dimensional spaces. But it is not an obvious one. If the universe behaved according to our low-dimensional intuitions, nothing interesting would have ever happened.
For this, I am grateful to these geometric facts, that local optimization could work at all. For whatever comes next in the story of optimization, we know this all had to start somewhere. If not for it, it’s not that the ball would’ve never started rolling; but once it did, it would quickly stop.
Does this argument prove too much? It’s not that natural selection can produce every innovation: you won’t find any animal that uses wheels, lasers, radio, metal, or combustion engines. But it’s not obvious that these actually rank higher in the fitness landscape, given their costs and benefits.
But natural selection does get stuck in certain local minima sometimes, such as with the recurrent laryngeal nerve in mammals (which takes a suboptimal route, by unnecessarily going around the aortic arch, a consequence of the relative positions of these in fish). This means our high-dimensional phenotype-space abstraction isn’t perfect, but I still think it explains why natural selection doesn’t get pwned by local optima as often as one would naively expect.
In the 1980s, Geoffrey Hinton and David Rumelhart were trying to get their “artificial neural networks” to do anything interesting. Their central problem: how do we update the parameters of the neural network, in response to feedback from the environment?
Rumelhart (re-)invented the backpropagation algorithm, where the weights of the neural network were adjusted by gradient descent on the loss function, i.e. taking the line of steepest descent. Hinton thought this couldn’t possibly work, arguing that:
Indeed this was a standard objection:
source
Indeed, this was a serial concern with all types of local optimization processes, which contributed to the lack of interest in machine learning.
And let’s remember that Hinton was one of the connectionist radicals of this time, who was more willing to believe the then-unintuitive reasons why neural networks should work compared to the vast majority of his contemporaries. But even he was skeptical about this!
But after failing at other approaches, Hinton dusted off the idea and coded it up:
Nowadays, neural networks reign supreme, and they all use gradient descent. They might fail to train for just about any reason under the Sun, but getting stuck in a local optimum is not one of them. In particular, a large language model receives trillions of gradient updates during pretraining, and yet its cross-entropy loss keeps going down.
Why is this?
The basic reason is that the 2-D picture is completely misleading. In reality, the parameter-space is thousands of dimensions even for a small neural network. It’s very unlikely for all those dimensions to “conspire” to wall us off at the same time. Here’s an animation:[2]
Roughly speaking, in N dimensions the chance that all N slope against us is about 2-N. This exponentially decays, so even at N = 100 we get 2-100, a negligible quantity.
That’s the basic intuition, although the more rigorous explanation involves the random matrix theory of Hessian matrices (see this paper for more).
Let’s consider a similar problem.
When Charles Darwin published On the Origin of Species, arguing that it was by Means of Natural Selection, a chief and persistent objection to his theory was that a simple hill-climbing process couldn’t possibly answer this great “question of questions”. The breadth and diversity of all life surely required forces much more formidable. Convinced that natural selection was a dead end, post-Darwin biologists searched for richer explanations, such as a guiding hand that caused organisms to grow in complexity. This continued for the better part of a century after Origin, only ending when genetics came along to rule out all the alternatives.
A particular objection Darwin anticipated was “Organs of extreme Perfection and Complication”: how could a structure as complex as the eye have evolved? In Chapter 6 of Origin he walked through the intermediate forms that natural selection might produce along the way. In modern form:
Source: Wikipedia
This didn’t preempt critics. Most persistent of these was George Jackson Mivart, who argued at length that certain complex organs could not be arrived at by natural selection, triumphantly listing out: giraffe necks, insect mimicry, baleen plates, flatfish eyes, prehensile tails, mammary glands, pollinia, and vines.
In the 6th edition of Origin (1872), Darwin saw fit to include an entire chapter addressing these point-by-point. For every one of Mivart’s examples, he gave a detailed explanation for how it could have arisen by innumerable fine gradations, and why those intermediate forms would be more adaptive than the last.
After one sees enough examples, the pattern is quite clear (and that chapter, like the rest of Origin, is quite readable and well-argued).
But why should all these complex adaptations resolve so cleanly? Why should everything be path-connected in phenotype-space? Why should the “reach” of natural selection have been so vast, that from a single bacterium it could attain an endless range of other forms of life?
If we were making predictions 4 billion years ago, at the dawn of life, none of this would have been obvious. Perhaps the first rudimentary bacteria would locally optimize their fitness function, then get stuck at a local optimum, and the story of life would end there.
But we can answer this deeper question with our modern understanding of high-dimensional optimization. When we optimize a machine learning system towards some fixed task, we can persistently and relentlessly descend toward low loss. And this explains the origin of capabilities: LLMs are relentlessly optimized to have low loss on next-token prediction, and in the limit this results in superhuman capabilities. It’s that simple.
And it also explains why natural selection works. How is it able to traverse so far in design-space, to persistently optimize complicated organs, to create endless forms most beautiful? Because it is optimizing over a high-dimensional space: the fitness of an organism in its environment as a function of its phenotype. Since the phenotype-space is zillions of variables, a hill-climbing process on this space doesn’t get stuck, because it’s extremely unlikely to ever get walled off in all zillion of those dimensions.
Therefore if we give this process a rudimentary RNA-based microbe that can barely replicate, then with high probability it will make something that is much better at replicating. If “eyes” are high in this fitness landscape, but very far from the starting point, then there will be a path there, and a hill-climbing process will be able to traverse it.[3]
Same goes with “brains.”
So if it weren’t for this phenomenon, we wouldn’t be here.
On some level, this is “just” a mathematical fact about high-dimensional spaces. But it is not an obvious one. If the universe behaved according to our low-dimensional intuitions, nothing interesting would have ever happened.
For this, I am grateful to these geometric facts, that local optimization could work at all. For whatever comes next in the story of optimization, we know this all had to start somewhere. If not for it, it’s not that the ball would’ve never started rolling; but once it did, it would quickly stop.
Quotes taken from Talking Nets: An Oral History of Neural Networks.
AI disclosure: 2-shotted by Claude 5.5 based on my whiteboard illustrations + written explanations.
Does this argument prove too much? It’s not that natural selection can produce every innovation: you won’t find any animal that uses wheels, lasers, radio, metal, or combustion engines. But it’s not obvious that these actually rank higher in the fitness landscape, given their costs and benefits.
But natural selection does get stuck in certain local minima sometimes, such as with the recurrent laryngeal nerve in mammals (which takes a suboptimal route, by unnecessarily going around the aortic arch, a consequence of the relative positions of these in fish). This means our high-dimensional phenotype-space abstraction isn’t perfect, but I still think it explains why natural selection doesn’t get pwned by local optima as often as one would naively expect.