The unreasonable effectiveness of deep learning

2021/11/20

The search for building and understanding intelligent machines has been under way for thousands of years and appear fundamental to the human condition [1]. Deep learning models have recently been heavily dominating this search for artificial intelligence (AI), as demonstrated by the go-playing Alpha Go [2], the narrating GPT-3 [3], and many more. This is an odd development for many since computational graphs are old news, and because no ground-breaking heureka moment has guided the development. Rather, deep learning is guided by a primitive brute-force optimization mechanism.

Why is it that deep learning and deep neural networks have become so popular despite their simplicity? If there is no theoretical foundation to build on, why are they so unreasonably efficient?

In this essay, I will argue the answer is: part coincidence, part skill. Motivating the skillfulness, I will first define deep learning (DL) and attempt to explain the phenomenon from a first-principle's approach. In this light, I will describe the "coincidental" part by revisiting sets of problems DL is particularly good at, so we can finally arrive at an answer to our question: why are deep networks so useful?

Deep Learning

Even though many DL proponents promote its similarities to the human brain, the building block of deep networks have little to do with nervous systems. Deep networks can be roughly defined as large computational graphs with weighted nonlinearities.

This [4] is [5] not [6] new [7].

In fact, eerily similar approaches was attempted throughout 1960-1990, with little success. What makes deep networks interesting, though, is that they can approximate any function to any desired degree of approximation [8]. This striking fact was discovered in 1986 and tells us that deep networks can solve any problem, if they are big enough. Granted, that is a big if, and this has largely been driving the explosive growth of the graphics processing units (GPUs) market: the bigger network, the better approximations.

It still took several decades before the idea of a universal function approximator could be used to solve problems with any form of practical relevance. Theoretically, this was already solved in 1986, where 7 showed that large nets could be "trained" by searching for optimal configurations in a sea of possibilities. However, it was not until the early 2000's that sufficiently powerful hardware came along to build and search through massive deep networks now up to hundreds of trillions of parameters [3].

Figure 1. Two possible classification task based on the same cat picture: object identification (top) and masking out pixels belonging to the cat (bottom).

Deep Learning first principles

It may come as a surprise how this type of searching yields meaningful networks. Fortunately, physicists and mathematicians helped resolve parts of the conundrum with two ancient ideas: symmetry [9] and equivariance [10].

It turns out that symmetry is a useful property during learning. If you are to, say, identify a cat in an image, it should not matter how big the cat is. Or where in the picture the cat is. In other words, we want to find a way to learn a way to look at cats that are symmetric under scale (size) or translation (location in picture). This symmetry is normally called invariance, because the idea that a cat is in the picture does not vary if the cat is very large and dead-center, or really small in the lower left corner. We identify cats independently from those distortions, ξ\xi.

We can write this down more precisely by looking at some images xIx \in \mathbb{I} that we are looking to classify into a binary decision yC:{CAT,¬CAT}y \in \mathbb{C}: \{\text{CAT}, \neg\text{CAT}\} using a network f:ICf: \mathbb{I} \mapsto \mathbb{C}, we can therefore say that the guess without a distortion ξ:II\xi: \mathbb{I} \mapsto \mathbb{I}, should be the same with the distortion: f(x)=f(ξ(x))f(x) = f(\xi (x))

We can take this one step further by generalizing the invariance, so that the networks can operate on distorted images, while retaining the distortion [10]. Imagine for a while, that we are no longer identifying cats, but colouring them, as shown in Figure 1. In that case, invariance will not do because we need to include the distortion in the output. Relating this to the example of the cat, we cannot always think that the cat is in the center of the image and colour its outline there. Rather, we need to correctly scale and translate the outline in the output image, that is, we need to preserve the structure of the distortion. When we want to mask our cat (as in Figure 1), our structure preserving network should be written as f:IIf: \mathbb{I} \mapsto \mathbb{I} and fulfill1: ξ(f(x))=f(ξ(x))\xi(f(x)) = f(\xi(x))

Our network is now a structure preserving map, also known as equivariant maps. They are fundamental to, for instance, topology and graph theory.

Suitable problems for Deep Learning

It has been shown that deep networks are particularly good at preserving symmetry and structures [10; 9]. This kind of preservation allows for the detection of symmetries and structures, but also the mapping of symmetries and structures between domains such as image, 3d-space, language, audio and many others [11].

This is obviously relevant for classifying and masking cats, but what about everything else "AI"? What about other types of intelligence like bodily intelligences, causal reasoning (what is the source of the structure), abstract thinking, and so on? Is that all a matter of preserving mapping? Maybe. We do not know [12]. Please find out.

Popularity of the search terms "deep learning" and "artificial intelligence" on Google Trends [13]. The Y-axis expresses relative popularity where 100 indicates the peak number of searchers.

Why did Deep Learning become so popular?

Returning to the idea of a universal function approximator, these networks are precisely exercising the approximation of domain mappings. They find appropriate responses such as "CAT", a colouring mask, or even a synthesized voice command. Pause here for a second and imagine how many problems can be solved this way. Is language a mapping of concepts to voice or text [3]? Is programming a mapping of concepts to code [14]?

By now, the reader is hopefully convinced of the usefulness of the approach. And plenty of evidence exists in applications for speech synthesis, self-driving cars, facial recognition, object detection, fake blob opera, etc. This is the coincidence: pioneers of the abovementioned principles could not possibly have known the extend to which their findings would generalize.

Figure 2 plots the relative popularity of two search terms: "artificial intelligence" and "deep learning" [13]. It appears the general public lost interest in "classical" AI in the beginning of the 00's only to slowly move towards deep learning-driven AI in the mid 10's. Interestingly enough, this coincides with the first papers on invariances and structure preservations in 2014/15.

It would be presumptuous to exclude other factors, and the advent of commercialized hardware that unlocks the training of large deep nets, is certainly one such influence. But the fundamental properties we have discussed here, are not only interesting because they explain what is feasible, they also hint at what is not. Perhaps that is why deep learning is losing popularity towards the end of 2020?

[ 1 ]: This is also known as *equivariance* and the formula is slightly more involved, since the distortion in the input domain may be different from the distortion in the codomain. See [11] for a more detailed treatment.

References

  1. Russel, Stuart and Norvig, Peter: Artificial Intelligence: A Modern Approach, 4th US ed., 2010, Pearson
  2. Silver, David and Schrittwieser, Julian and Simonyan, Karen and Antonoglou, Ioannis and Huang, Aja and Guez, Arthur and Hubert, Thomas and Baker, Lucas and Lai, Matthew and Bolton, Adrian and Chen, Yutian and Lillicrap, Timothy and Hui, Fan and Sifre, Laurent and van den Driessche, George and Graepel, Thore and Hassabis, Demis: Mastering the game of Go without human knowledge, 2017, Nature
  3. Brown, Tom B. and Mann, Benjamin and Ryder, Nick and Subbiah, Melanie and Kaplan, Jared and Dhariwal, Prafulla and Neelakantan, Arvind and Shyam, Pranav and Sastry, Girish and Askell, Amanda and Agarwal, Sandhini and Herbert-Voss, Ariel and Krueger, Gretchen and Henighan, Tom and Child, Rewon and Ramesh, Aditya and Ziegler, Daniel M. and Wu, Jeffrey and Winter, Clemens and Hesse, Christopher and Chen, Mark and Sigler, Eric and Litwin, Mateusz and Gray, Scott and Chess, Benjamin and Clark, Jack and Berner, Christopher and McCandlish, Sam and Radford, Alec and Sutskever, Ilya and Amodei, Dario: Language Models are Few-Shot Learners, 2020, arXiv:2005.14165 [cs]
  4. Carson, John R.: Electric circuit theory and the operational calculus, 1925, The Bell System Technical Journal
  5. Claude E. Shannon: Claude E. Shannon: Collected Papers, 1993, IEEE
  6. Rosenblatt, F.: The perceptron: A probabilistic model for information storage and organization in the brain, 1958, Psychological Review
  7. Rumelhart, D. and Hinton, Geoffrey E. and Williams, Ronald J.: Learning representations by back-propagating errors, 1986, Nature
  8. Hornik, Kurt and Stinchcombe, Maxwell and White, Halbert: Multilayer feedforward networks are universal approximators, 1989, Neural Networks
  9. Gens, Robert and Domingos, Pedro M: Deep Symmetry Networks, 2014, Advances in Neural Information Processing Systems
  10. Cohen, Taco S. and Welling, Max: Group Equivariant Convolutional Networks, 2016, arXiv:1602.07576 [cs, stat]
  11. Bronstein, Michael M. and Bruna, Joan and Cohen, Taco and Veličković, Petar: Geometric Deep Learning: Grids, Groups, Graphs, Geodesics, and Gauges, 2021, arXiv:2104.13478 [cs, stat]
  12. Saxe, Andrew and Nelli, Stephanie and Summerfield, Christopher: If deep learning is the answer, what is the question?, 2021, Nature Reviews Neuroscience
  13. Google: Google Trends, 2021, undefined
  14. Tiwang, Raymond and Oladunni, Timothy and Xu, Weifeng: A Deep Learning Model for Source Code Generation, 2019, 2019 SoutheastCon