by SeanLuke · 4y ago · 0 comments
> Deep learning entered the sphere of mainstream awareness less than a decade ago, but the science is ancient. This 1986 paper in Nature contains almost all of the core technical innovations that make it work well. (The term deep learning hadn’t been coined yet and neural networks was used instead).
> However, the dataset sizes and compute resources that were available in the 1980s weren’t enough to demonstrate the effectiveness of deep learning, and other machine learning techniques like support vector machines took center stage.
I think there are two glaring errors here. First, multilayer error backpropagation wasn't developed in 1986. It was developed in the early 1970s, but was quashed by the elimination of funding after the Perceptrons papers and book. It was rediscovered several times but didn't take hold until the PDP group (Rummelhart et al) pushed things through with enough gravitas.
Second, and this is the big one: there were plenty of reasonably large datasets, and frankly plenty of sufficiently large compute resources in the late 1980s and certainly the 1990s to do this research. That wasn't the problem. The problem was that neural networks were largely restricted to two layers due to the vanishing gradient problem, so they had to be fat rather than deep, which wasn't good. That's the whole point of the name deep learning -- by overcoming issues which prevented deep networks, researchers were able to do the stuff they can now. That didn't come until later.
Even that was not the decisive problem - given enough compute multilayer NNs could be trained just fine. The real obstruction was a political failure of deep learners (connectionists) in securing academic prestige and associated access to large-scale compute; By now it's all but forgotten, but then this was a prominent academical political debate of the decade: https://en.wikipedia.org/wiki/Neats_and_scruffies and even though "neats" eventually prevailed, the connectionists were still sidelined by statistical ML practicioners (whose efforts didn't happen to scale, although more than a few weighty theses and books happened to be published as a result).
Perhaps in the near future, when this wave of AI will give us impossible to deny life-changing outcomes (for example: new cures for chronic diseases) we will look back and think about how many years or even decades of progress were postponed, essentially lost for nothing but academic hubris of a camp that won the funding battle then, only to be swept away in a few decades.
Until we haven't really understood the Bitter Lesson http://incompleteideas.net/IncIdeas/BitterLesson.html every bit of progress that was not realized is our fault.
As someone who has worked in deep learning, this isn't true. Figuring out the right recipe is extremely important. The regime in which you can effectively train a neural network with good performance is just very small. If you structure things just slightly wrong, training just won't converge.
IMO we totally could have trained something like a smaller ImageNet with a decently large dataset on a supercomputer in the late 90s. We just didn't know how. In the late 90s and early 2000s, NN researchers didn't know about (or didn't appreciate the importance of) batchnorm, or ReLUs, or which hyper-parameters to use. Convnets had been invented but hadn't yet been popularized.
In the late 90s, you might have tried training an 8-layer deep MLP on a dataset of 50K images on your Cray T3E supercomputer. But you would most likely have failed, because you weren't using convnets, your sigmoid activation function lead to a vanishing gradient, and your hyper-parameters were off. You might let this run overnight, but 12 hours later, your loss barely went down, and you were out of compute budget on a supercomputer you were sharing with other researchers. Given the right code, the right recipe, you could have made it work on that 90s supercomputer and with the compute budget you had, but the right recipe just wasn't known at the time.
We needed time to figure out and to publish about the really basic ingredients needed to train bigger neural networks successfully. Having access to more compute can help figure out what the right recipe is through trial and error, but ReLUs are a super basic innovation. They are a very simple function, and essentially a theoretical innovation. Someone needed to sit down and figure out that vanishing gradients were actually a problem we needed to think about.
> Given the right code, the right recipe, you could have made it work on that 90s supercomputer and with the compute budget you had, but the right recipe just wasn't known at the time.
We could expect the best of the best given access to these powerful computing machines, surely they would know their lenet (1989) http://karpathy.github.io/2022/03/14/lecun1989/ and could have studied statistics of gradients and activations to implement something like ReLu - which is one line of code.It was a low-hanging fruit.
> Someone needed to sit down and figure out that vanishing gradients were actually a problem we needed to think about.
If Sepp Hochreiter could do it, surely someone from CalTech could do it as well, given the caliber of people who study there. Again, looks like a simple problem of misapplication of best and brightest (who, surely, know what they want to work on in life, but are still influenced by academic prestige and their advisors' advice which would repel them from connectionism then).
I think there just weren't enough people looking at neural networks back then. At the time, they were still considered a niche machine learning technique, just one tool in the toolbox, and not necessarily the best one.
Also, it's one thing to say that the best of the best had access to computation, but if your university has just one supercomputer, which is shared among everyone, and you have a limited number of hours during which you can use it, that's not increasing your chances at running very thorough experiments. If anything, it's not that we didn't have the compute to do deep learning in the 90s and early 2000s, it's that more access to compute makes a broader range of experimentation a lot more accessible. That makes it a lot easier to find the right training recipe more quickly.
Back in 2009 the enthusiasm around neural nets was starting to grow, as there were some early successes with deep neural nets, but I remember some people were still trying to argue that support vector machines were just as effective for image classification. It seemed laughable to me at the time, but I think that everyone who wasn't a connectionist was starting to feel threatened and wanted to justify their chosen research specialty, which they would keep doing until they couldn't anymore.
Batch Norm and Residual connections opened the door to actual depth.
(On edit: ReLu activations were also vital for dealing with vanishing gradients. And there were some real advances in initialization and opportunities along the way, as well.)
For the really huge models we now have commodity cloud compute available when in the past you would have had to be among the elect with access to a supercomputer. You couldn't just go whip out a credit card and rent time on a Cray II or a Connection Machine and commodity hardware back then would have taken years to train something like GPT-3 if it even had enough storage.
And I'm pretty sure that a modern computer with 4 GPUs beats the best clusters from the 80s
i'm curious what you believe it was instead