If you have looked at Artificial Intelligence (AI) publications or literature since the year 2000, you may notice the term Deep Learning went from rarely ever used to a centerpiece of many works. But what is Deep Learning? Why is it important now?
What is Deep Learning?
Deep Learning (DL) is a subset of Machine Learning (ML) that involves learning a hierarchy of features to gain meaningful insight from a complex input space. DL networks can be visualized as a neural network with two or more layers of neurons performing calculations.
This set of algorithms includes Deep Belief Networks (DBN,) Convolutional Neural Networks (CNN,) and Recurrent Neural Networks (RNN.)
Deep Learning vs. “Shallow” Learning
In traditional ML systems, a human (usually a subject matter expert) selects features that are determined to be useful in classification and given as inputs to an ML algorithm. Then, the algorithm learns how to use these features to maximize classification accuracy. In a DL system, features are learned through a mathematical process like backpropagation at every layer of the network. On the first layer of the network, the DL system would learn rudimentary features that can be calculated from the raw input signals. On the second layer, the network learns more complex features using combinations of the features learned on the first layer, and so on. By the end of the network, high-level features are learned on top of all the previous feature layers such that classification on these high-level features is an easy problem, where the classification on the raw input signals may have been very difficult.
You may be curious, “what can a deep neural network calculate that a single layer neural network cannot?” Surprisingly, the answer is...nothing! That’s right, a single layer perceptron is a universal function approximator, meaning that with just one layer of neurons, we are able to model any problems solution with just one layer. So why would we ever add more layers?
One problem with a single layer approach is that it can take an exponential number of neurons in a single layer to produce the same result as a deep network. If we had 3 layers of 500 neurons (a total of 1,500 neurons,) it could take hundreds of billions of neurons to achieve the same function approximation in a single layer! Beyond that, the problem is intractable, meaning that we cannot solve for the solution directly. Instead, we must approximate what this single layer is. Since we don’t know how to solve this problem compactly in a shallow layer, we instead exploit deep learning to solve our problems.
Why is Deep Learning considered hard?
While people are often excited to use deep learning, they can quickly get discouraged by the difficulty of implementing their own deep networks. Some of the main reasons people struggle with Deep Learning include:
1. Deep Learning requires large datasets. Because deep learning must learn to generalize these large feature hierarchies, they require a very large amount of data to operate on.
2. Deep Learning requires lots of computational power. A large dataset means that many computations will need to be done to iterate the training data enough times for learning to converge. Modern deep networks may have hundreds of layers, making every training example infeasible on anything except a high-end graphical processing unit (GPU.)
3. Deep Learning is hard to train and optimize. Because we don’t actually know what the features the networks learn are, it can be difficult to know what’s going wrong when our DL systems aren’t producing good results.
How can you overcome these challenges?
With the three problems enumerated above, building a DL system on your own may seem to be a futile task, but have no fear! Working with a vendor, like Clarifai, can make this easier.
1. Vendors have big datasets. If you’ve ever used Clarifai’s API to train your own custom model you know that you don’t need hundreds of images to learn a concept...only a handful! Our pre-trained networks have already seen so many images that you’ll only need a few to learn yourself.
2. Vendors have lots of computational power. The hardware that we use runs in a high powered cloud that is seamlessly integrated with our API (thanks to our very talented and attractive engineers) to reduce the computational burden from the user. You can get rooms full of computational power running on your smartphone or IoT device!
3. Vendors have a dedicated, experienced team of DL experts. Through years of schooling and training, Clarifai’s team of research scientists, machine learning engineers, and data strategists are able to get the best models from your data. Our job is to make our models the best they can be to classify your data, and we are constantly improving on our own state of the art performance by using current research literature, and proprietary algorithms. By working with us, there’s no need for our customers to spend all weekend tuning neural net hyperparameters.
Deep Learning is a subject that can (and has) filled entire books, but hopefully, this blog post helps you get started on learning about this. Check out our search demo to see applied deep learning in action, then sign up for your free API key to create a deep model of your own.